/* Xuda Femori — The Emerald Table
   club-theme.css — light editorial club styling */

:root {
  --xf-paper: #f6f4ee;
  --xf-card: #ffffff;
  --xf-ink: #1c1c1c;
  --xf-soft: #5f5f57;
  --xf-emerald: #0f5132;
  --xf-emerald-soft: #e3ede7;
  --xf-brass: #b8892b;
  --xf-hair: #ddd8cc;
  --xf-shadow: 0 12px 34px rgba(28, 28, 28, .08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--xf-paper);
  color: var(--xf-ink);
  font: 16px/1.72 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .55em;
  color: var(--xf-emerald);
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.14rem; }

p { margin: 0 0 1.05em; }
a { color: var(--xf-emerald); }
img { max-width: 100%; display: block; }

.xf-hold { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }

.xf-eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--xf-brass);
  margin-bottom: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.xf-rule {
  width: 54px;
  height: 2px;
  background: var(--xf-brass);
  border: 0;
  margin: 0 0 22px;
}

.xf-rule--mid { margin-inline: auto; }

/* ---------- Header : brand left, menu right ---------- */
.xf-head {
  background: var(--xf-card);
  border-bottom: 1px solid var(--xf-hair);
  position: sticky;
  top: 0;
  z-index: 70;
}

.xf-head__bar {
  max-width: 1140px;
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.xf-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.xf-mark img { width: 44px; height: 44px; }
.xf-mark b {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.3rem;
  color: var(--xf-emerald);
  display: block;
  line-height: 1.1;
}
.xf-mark span { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--xf-brass); }

.xf-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.xf-links a {
  color: var(--xf-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.xf-links a:hover { color: var(--xf-emerald); }
.xf-links a[aria-current="page"] { color: var(--xf-emerald); border-bottom-color: var(--xf-brass); }

/* ---------- Buttons ---------- */
.xf-act {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 2px;
  background: var(--xf-emerald);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--xf-emerald);
  cursor: pointer;
  transition: background .22s, color .22s;
}

.xf-act:hover { background: #0b3d26; }

.xf-act--ghost { background: transparent; color: var(--xf-emerald); }
.xf-act--ghost:hover { background: var(--xf-emerald-soft); }

.xf-act--brass { background: var(--xf-brass); border-color: var(--xf-brass); }
.xf-act--brass:hover { background: #9c721f; }

.xf-act:disabled { background: #b9b9b0; border-color: #b9b9b0; cursor: not-allowed; }

/* ---------- Hero : copy left, framed picture right ---------- */
.xf-open { padding: 66px 0 62px; background: var(--xf-card); border-bottom: 1px solid var(--xf-hair); }

.xf-open__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.xf-open p { color: var(--xf-soft); font-size: 1.05rem; max-width: 36em; }
.xf-open__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.xf-frame { position: relative; padding: 14px; }
.xf-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--xf-brass);
  transform: translate(14px, 14px);
  pointer-events: none;
}
.xf-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.xf-frame--upright img { aspect-ratio: 4 / 5; }

/* ---------- Sections ---------- */
.xf-part { padding: 70px 0; }
.xf-part--tint { background: var(--xf-emerald-soft); }
.xf-part--white { background: var(--xf-card); }
.xf-centre { text-align: center; max-width: 620px; margin: 0 auto 42px; }

/* ---------- Pillars ---------- */
.xf-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }

.xf-pillar {
  background: var(--xf-card);
  border: 1px solid var(--xf-hair);
  padding: 30px 26px;
  box-shadow: var(--xf-shadow);
}

.xf-pillar__no {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2rem;
  color: var(--xf-brass);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.xf-pillar__mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.xf-pillar__mark svg { width: 100%; height: 100%; display: block; }

.xf-pillar p { color: var(--xf-soft); font-size: .95rem; margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.xf-table-wrap { overflow-x: auto; background: var(--xf-card); border: 1px solid var(--xf-hair); box-shadow: var(--xf-shadow); }

table.xf-compare { width: 100%; border-collapse: collapse; min-width: 560px; }

table.xf-compare th,
table.xf-compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--xf-hair); font-size: .94rem; }

table.xf-compare thead th {
  background: var(--xf-emerald);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}

table.xf-compare tbody tr:last-child td { border-bottom: 0; }
table.xf-compare td:first-child { font-weight: 600; }
.xf-yes { color: var(--xf-emerald); font-weight: 700; }
.xf-no { color: #9a3b3b; font-weight: 700; }

/* ---------- Timeline ---------- */
.xf-line { position: relative; padding-left: 34px; }
.xf-line::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--xf-hair); }

.xf-line__item { position: relative; margin-bottom: 30px; }
.xf-line__item:last-child { margin-bottom: 0; }

.xf-line__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--xf-brass);
  border: 3px solid var(--xf-paper);
}

.xf-line__when {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xf-brass);
  font-weight: 700;
  margin-bottom: 4px;
}

.xf-line p { color: var(--xf-soft); margin-bottom: 0; font-size: .95rem; }

/* ---------- Pull quote ---------- */
.xf-quote {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.2rem, 2.6vw, 1.62rem);
  line-height: 1.5;
  color: var(--xf-emerald);
}

.xf-quote footer { font-family: "Segoe UI", Arial, sans-serif; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--xf-brass); margin-top: 18px; }

/* ---------- Split media ---------- */
.xf-duo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.xf-duo--right .xf-duo__pic { order: 2; }

.xf-duo__pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* ---------- Forms ---------- */
.xf-form { display: grid; gap: 16px; }

.xf-form label {
  display: block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--xf-soft);
  margin-bottom: 6px;
}

.xf-form input,
.xf-form textarea,
.xf-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--xf-hair);
  border-radius: 2px;
  background: #fff;
  color: var(--xf-ink);
  font: inherit;
}

.xf-form input:focus,
.xf-form textarea:focus,
.xf-form select:focus { outline: 2px solid var(--xf-emerald); outline-offset: 1px; }

.xf-said { color: var(--xf-emerald); font-weight: 600; font-size: .92rem; }

.xf-row-form { display: flex; gap: 10px; flex-wrap: wrap; }
.xf-row-form input { flex: 1 1 240px; }

/* ---------- Card game ---------- */
.xf-table-felt {
  background: linear-gradient(160deg, #10583a, #0b3d26);
  border-radius: 8px;
  padding: 40px 30px;
  color: #f2f7f3;
  text-align: center;
  box-shadow: inset 0 0 60px rgba(0,0,0,.32);
}

.xf-table-felt h2 { color: #fff; }

.xf-cards-row { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 26px 0; flex-wrap: wrap; }

.xf-playcard {
  width: 118px;
  height: 168px;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  position: relative;
}

.xf-playcard__rank { font-size: 2.5rem; font-weight: 400; line-height: 1; }
.xf-playcard__suit { width: 34px; height: 34px; display: block; color: inherit; }

.xf-playcard.is-red { color: #a52020; }
.xf-playcard.is-back {
  background: repeating-linear-gradient(45deg, #b8892b, #b8892b 8px, #96701f 8px, #96701f 16px);
  color: transparent;
}

.xf-playcard.is-back .xf-playcard__suit { display: none; }

.xf-playcard small {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7d7d75;
}

.xf-vs { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }

.xf-guess-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

.xf-tallies { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.xf-tally {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  padding: 10px 18px;
  min-width: 116px;
}

.xf-tally span { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.xf-tally b { font-family: "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.6rem; color: #ffd88a; font-weight: 400; }

#xf-verdict { min-height: 1.7rem; font-weight: 600; margin: 18px 0 0; color: #ffe6ad; }

/* ---------- Documents ---------- */
.xf-doc {
  background: var(--xf-card);
  border: 1px solid var(--xf-hair);
  box-shadow: var(--xf-shadow);
  padding: 46px;
  max-width: 860px;
}

.xf-doc h2 { font-size: 1.26rem; margin-top: 34px; }
.xf-doc h2:first-of-type { margin-top: 20px; }
.xf-doc p { color: #3d3d38; }
.xf-doc ul { color: var(--xf-soft); padding-left: 20px; }
.xf-doc li { margin-bottom: 8px; }

/* ---------- Age notice ---------- */
.xf-door {
  position: fixed;
  inset: 0;
  background: rgba(28, 34, 30, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 20px;
}

.xf-door__panel {
  background: var(--xf-card);
  border-top: 6px solid var(--xf-brass);
  max-width: 470px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

.xf-door__panel p { color: var(--xf-soft); font-size: .95rem; }
.xf-door__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.xf-seal {
  display: inline-block;
  border: 2px solid var(--xf-emerald);
  color: var(--xf-emerald);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  line-height: 48px;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.xf-foot { background: var(--xf-emerald); color: #d6e5dc; padding: 52px 0 24px; }
.xf-foot h4 { color: #fff; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; margin-bottom: 14px; }
.xf-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.xf-foot ul { list-style: none; margin: 0; padding: 0; }
.xf-foot li { margin-bottom: 8px; }
.xf-foot a { color: #bcd3c6; text-decoration: none; font-size: .9rem; }
.xf-foot a:hover { color: #fff; text-decoration: underline; }
.xf-foot p { font-size: .9rem; color: #bcd3c6; }
.xf-foot__seal {
  display: inline-block;
  border: 1px solid #7fae94;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  line-height: 40px;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.xf-foot__base {
  border-top: 1px solid #2c6a49;
  margin-top: 34px;
  padding-top: 18px;
  font-size: .8rem;
  color: #9dbdaa;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 404 ---------- */
.xf-missing { text-align: center; padding: 96px 24px 84px; background: var(--xf-card); }
.xf-missing b {
  display: block;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--xf-emerald);
  line-height: 1;
}
.xf-missing p { color: var(--xf-soft); max-width: 40ch; margin-inline: auto; }
.xf-missing__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .xf-open__grid, .xf-duo { grid-template-columns: 1fr; gap: 32px; }
  .xf-duo--right .xf-duo__pic { order: 0; }
  .xf-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .xf-head__bar { justify-content: center; text-align: center; }
  .xf-links { justify-content: center; gap: 14px; }
  .xf-doc { padding: 26px 20px; }
  .xf-foot__grid { grid-template-columns: 1fr; }
  .xf-playcard { width: 96px; height: 138px; }
  .xf-playcard__rank { font-size: 2rem; }
  .xf-playcard__suit { width: 28px; height: 28px; }
}
