/* =============================================================
   Season IV · The Tavern
   A candlelit room: warm near-black, one brass accent, and
   parchment only where something is written down (rules, ledger).
   ============================================================= */

:root {
  /* room */
  --bg:        #14100c;
  --bg-alt:    #19140f;
  --surface:   #211a13;
  --surface-2: #2a2118;
  --line:      rgba(226, 190, 128, .14);
  --line-2:    rgba(226, 190, 128, .26);
  --text:      #eee3cb;
  --muted:     #b4a283;
  --faint:     #857559;

  /* the one accent */
  --brass:      #d4a24c;
  --brass-hi:   #e8c27f;
  --brass-deep: #8f6a2c;

  /* paper */
  --parch:      #f0e4c6;
  --parch-2:    #e6d6b1;
  --parch-edge: #cdb57f;
  --ink:        #2b1e12;
  --ink-soft:   #5e4932;
  --wax:        #9c2f22;
  --error-dark: #ef8a74;

  --f-display: "Alegreya", "Iowan Old Style", Georgia, serif;
  --f-body:    "Alegreya", "Iowan Old Style", Georgia, serif;
  --f-label:   "Alegreya SC", "Alegreya", Georgia, serif;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .8, .28, 1);

  --z-header: 50;
  --z-grain:  60;
  --z-skip:   70;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fine grain over everything, so flat colour reads as a surface */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brass-hi); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--parch); }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
}

:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--brass); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* placeholders the owner still has to write */
mark.todo {
  background: rgba(212, 162, 76, .14);
  color: var(--brass-hi);
  border: 1px dashed rgba(212, 162, 76, .55);
  border-radius: 3px;
  padding: 0 .3em;
  font-size: .82em;
  font-style: normal;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: -.01em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.parchment mark.todo { background: rgba(156, 47, 34, .08); color: var(--wax); border-color: rgba(156, 47, 34, .4); }

/* ---------- labels ---------- */
.eyebrow, .ticket-label, .ticket-meta dt, .field > label, .field > .label, legend, .tl-date {
  font-family: var(--f-label);
  font-weight: 500;
  letter-spacing: .06em;
}
.eyebrow {
  color: var(--brass);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--brass-deep); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1;
  color: var(--text); text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem;
  background: var(--btn-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { color: var(--parch); border-color: var(--brass-deep); background: #33281c; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .6; cursor: progress; }

.btn-primary {
  color: #22170b;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 60%, #c08c37);
  border-color: #a37a33;
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, .55), 0 8px 24px -10px rgba(212, 162, 76, .55);
}
.btn-primary:hover { color: #1a1108; background: linear-gradient(180deg, #f1d197, var(--brass-hi) 60%, var(--brass)); border-color: #b4883b; }
.btn-big { font-size: 1.22rem; padding: 1.05rem 1.9rem; }
.btn-small { font-size: .95rem; padding: .5rem .85rem; border-radius: var(--r-sm); }
.btn-ghost { background: transparent; }

.link-arrow {
  font-family: var(--f-display); font-weight: 700; font-size: 1.08rem;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--line-2); padding-bottom: .15rem;
  transition: color .2s, border-color .2s, gap .2s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--brass); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--parch); border-color: var(--brass); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(20, 16, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.topbar.is-scrolled, .apply-page .topbar {
  background: rgba(20, 16, 12, .86);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--text); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em;
}
.brand img { border-radius: 50%; }
.brand:hover { color: var(--parch); }

.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 1.05rem;
  padding: .45rem .7rem; border-radius: var(--r-sm);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: rgba(226, 190, 128, .06); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta {
  margin-left: .6rem;
  color: #22170b; font-family: var(--f-display); font-weight: 700;
  background: var(--brass); padding: .5rem 1rem;
}
.site-nav .nav-cta:hover { color: #1a1108; background: var(--brass-hi); }
.site-nav .nav-cta[aria-current="page"] { color: #22170b; box-shadow: 0 0 0 1px var(--brass-hi); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: var(--r);
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px;
  background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle .bars { top: 50%; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: -4.4rem; /* sit under the transparent header */
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(5rem, 10vh, 7rem);
  min-height: min(92dvh, 900px);
  display: flex; align-items: center;
  background:
    radial-gradient(60rem 36rem at 12% 8%, rgba(214, 140, 60, .20), transparent 60%),
    radial-gradient(40rem 30rem at 85% 90%, rgba(160, 90, 40, .12), transparent 65%),
    var(--bg);
}
.hero::after { /* floor line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hero-numeral {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-46%);
  font-family: var(--f-display); font-weight: 800; font-style: italic;
  font-size: clamp(18rem, 42vw, 38rem); line-height: .8; letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 162, 76, .13);
  pointer-events: none; user-select: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
}
.hero h1 {
  font-size: clamp(3.2rem, 7.4vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: .98;
  margin-bottom: 1.6rem;
}
.hero h1 em { font-weight: 500; color: var(--brass-hi); }
.lede { font-size: clamp(1.2rem, 1.6vw, 1.38rem); color: var(--muted); max-width: 34em; margin-bottom: 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.8rem; }

/* the ticket: server details as a brass-framed card */
.ticket {
  position: relative;
  padding: 2rem 1.9rem 1.7rem;
  background: linear-gradient(180deg, rgba(42, 33, 24, .92), rgba(28, 22, 16, .92));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 230, 180, .06);
}
.ticket::before { /* inner engraved frame */
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(212, 162, 76, .16); border-radius: calc(var(--r-lg) - 5px);
  pointer-events: none;
}
.ticket-logo {
  position: absolute; top: -28px; right: 1.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line-2);
}
.ticket-label { color: var(--muted); font-size: 1rem; margin-bottom: .5rem; }
.ip-row {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .65rem .65rem .65rem 1rem;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line); border-radius: var(--r);
}
.ip-row code { font-size: clamp(.98rem, 1.6vw, 1.22rem); color: var(--parch); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ticket-meta { margin: 1.4rem 0 0; display: grid; gap: 0; }
.ticket-meta div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .6rem 0; border-top: 1px dashed var(--line);
}
.ticket-meta dt { color: var(--faint); font-size: .98rem; }
.ticket-meta dd { margin: 0; text-align: right; color: var(--text); }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(5.5rem, 12vw, 9.5rem); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid rgba(226, 190, 128, .06); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.6rem); max-width: 40rem; }
.section h2 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.section-head h2 + .section-intro { margin-top: 1rem; }
.section-intro { color: var(--muted); font-size: 1.2rem; max-width: 34em; }

/* world */
.world-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.world-text h2 { margin-bottom: 1.6rem; }
.world-text p { max-width: 36em; color: #ddd0b5; }
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display); font-weight: 800; font-style: italic;
  font-size: 4.1em; line-height: .78;
  margin: .1em .12em 0 0;
  color: var(--brass);
}
.map-card {
  margin: 0;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transform: rotate(1.2deg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
}
.map-placeholder {
  aspect-ratio: 10 / 7;
  display: grid; place-items: center;
  color: var(--brass);
  border-radius: var(--r);
  background:
    radial-gradient(circle at 50% 55%, rgba(212, 162, 76, .08), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(212, 162, 76, .06) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(212, 162, 76, .06) 23px 24px),
    #1a140e;
}
.map-placeholder svg { width: 86%; }
.map-card figcaption { margin-top: .9rem; font-size: .95rem; color: var(--faint); }

/* notices: editorial grid with one featured item */
.notices {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.notice {
  padding: 2.1rem 2rem 2.3rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* left rule on every item that isn't first in its row (3 columns: rows start at children 2 and 5) */
.notice:not(.notice-feature):not(:nth-child(3n + 2)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.notice h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.notice p { color: var(--muted); }
.notice-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--brass);
}
.notice-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notice-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem;
  padding: 2.6rem 0 2.8rem;
}
.notice-feature .notice-icon { width: 64px; height: 64px; margin: 0; }
.notice-feature .notice-icon svg { width: 32px; height: 32px; }
.notice-feature h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.notice-feature p { font-size: 1.22rem; max-width: 40em; }
.notice .how { margin-top: .8rem; font-size: 1.05rem; color: var(--text); }
.notice-todo h3 { color: var(--muted); }

/* steps: three medallions on one thread */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 32px; right: 10%; top: 32px; height: 1px;
  background: linear-gradient(90deg, var(--brass-deep), rgba(143, 106, 44, .15));
}
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 1.5rem;
  color: var(--brass-hi);
  background: var(--bg);
  border: 1px solid var(--brass-deep); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), inset 0 0 18px rgba(212, 162, 76, .12);
  position: relative;
}
.steps h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); max-width: 22em; }
.steps .link-arrow { margin-top: 1rem; justify-self: start; }

/* rules: the one sheet of parchment on the home page */
.rules-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.rules-head { position: sticky; top: 7rem; margin-bottom: 0; }
.parchment {
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 250, 235, .55), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(150, 110, 50, .14), transparent 55%),
    var(--parch);
  border-radius: var(--r-sm);
  box-shadow:
    inset 0 0 0 1px rgba(120, 85, 40, .22),
    inset 0 0 60px rgba(150, 105, 45, .16),
    0 40px 70px -40px rgba(0, 0, 0, .9);
}
.parchment a { color: var(--wax); }
.parchment a:hover { color: var(--ink); }
.rules-sheet { padding: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 4vw, 3.4rem); transform: rotate(-.5deg); }
.rules { list-style: none; counter-reset: rule; margin: 0; padding: 0; }
.rules li {
  counter-increment: rule;
  position: relative;
  padding: .95rem 0 .95rem 2.8rem;
  border-bottom: 1px solid rgba(120, 85, 40, .2);
  font-size: 1.14rem; line-height: 1.55;
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  content: counter(rule, upper-roman);
  font-family: var(--f-display); font-style: italic; font-weight: 700;
  color: var(--wax); font-size: 1.1rem;
  position: absolute; left: 0; top: 1rem;
}
.rules strong { font-weight: 800; }

/* calendar */
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2);
}
.timeline li { position: relative; padding-top: 2.1rem; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--brass);
}
.timeline .tl-key::before { background: var(--brass); box-shadow: 0 0 0 5px rgba(212, 162, 76, .16), 0 0 22px rgba(212, 162, 76, .5); }
.tl-date { color: var(--brass); font-size: 1rem; margin-bottom: .4rem; }
.timeline h3 { font-size: 1.45rem; }

/* faq: everything visible, two columns */
.faq {
  margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}
.faq > div { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.faq dt { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin-bottom: .55rem; }
.faq dd { margin: 0; color: var(--muted); max-width: 34em; }

/* closing */
.closing {
  padding: clamp(5rem, 11vw, 8rem) 0;
  text-align: center;
  background: radial-gradient(50rem 22rem at 50% 100%, rgba(214, 140, 60, .16), transparent 70%), var(--bg);
}
.closing-inner { display: grid; justify-items: center; gap: 2rem; }
.closing h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-style: italic; font-weight: 600; max-width: 16em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--faint); font-size: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer .brand { font-size: 1.05rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.fine { margin: 0; flex-basis: 100%; font-size: .92rem; }

/* ---------- entrance motion ---------- */
.reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow, .link-arrow::after { transition: none; }
}

/* =============================================================
   Apply page · the guest ledger
   ============================================================= */
.apply-main {
  width: min(100% - 2.5rem, 820px); margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
}
.apply-head { margin-bottom: 2.6rem; }
.apply-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.1rem; }
.apply-head h1 em { color: var(--brass-hi); font-weight: 500; }
.apply-head .section-intro { font-size: 1.25rem; }
.apply-steps {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  color: var(--faint); font-size: 1rem;
}
.apply-steps li { display: inline-flex; align-items: center; gap: .5rem; }
.apply-steps span {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  border: 1px solid var(--brass-deep); color: var(--brass);
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: .9rem;
}

.preview-banner {
  margin: 0 0 1.5rem; padding: .9rem 1.1rem;
  background: rgba(212, 162, 76, .1); border: 1px dashed rgba(212, 162, 76, .5); border-radius: var(--r);
  color: var(--brass-hi); font-size: 1rem;
}

.ledger { padding: clamp(1.6rem, 4.5vw, 3.2rem); counter-reset: part; }
.ledger fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ledger fieldset + fieldset { margin-top: 2.6rem; padding-top: 2.4rem; border-top: 1px solid rgba(120, 85, 40, .25); }
.ledger legend {
  counter-increment: part;
  display: flex; align-items: baseline; gap: .8rem; width: 100%;
  padding: 0; margin-bottom: 1.6rem;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.6rem, 3vw, 2rem); color: var(--ink);
}
.ledger legend::before {
  content: counter(part, upper-roman) ".";
  font-style: italic; font-weight: 600; color: var(--wax); font-size: .8em;
}

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field > label, .field > .label {
  display: block; margin-bottom: .45rem;
  font-size: 1.08rem; color: var(--ink); line-height: 1.35;
  letter-spacing: .02em;
}
.req { color: var(--wax); }
.hint, .hint-inline { font-size: 1rem; color: var(--ink-soft); margin: .45rem 0 0; line-height: 1.5; }
.hint-inline { font-style: italic; font-family: var(--f-body); letter-spacing: 0; }
.err { color: var(--wax); font-size: 1rem; font-weight: 700; margin: .4rem 0 0; }
.err:empty { display: none; }

.ledger input[type="text"], .ledger select, .ledger textarea {
  width: 100%;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: .7rem .9rem;
  background: rgba(255, 252, 240, .6);
  border: 1px solid rgba(120, 85, 40, .35);
  border-radius: var(--r-sm);
  box-shadow: inset 0 1px 2px rgba(90, 60, 25, .1);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ledger textarea { resize: vertical; min-height: 6.2rem; line-height: 1.5; }
.ledger select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e4932' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center;
}
.ledger input:hover, .ledger select:hover, .ledger textarea:hover { border-color: rgba(120, 85, 40, .55); }
.ledger input:focus, .ledger select:focus, .ledger textarea:focus {
  outline: none; background-color: rgba(255, 253, 246, .9);
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, .35);
}
.ledger [aria-invalid="true"] { border-color: var(--wax); box-shadow: 0 0 0 3px rgba(156, 47, 34, .14); }
.ledger :focus-visible { outline-color: var(--brass-deep); }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.choice {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; cursor: pointer;
  font-size: 1.05rem; color: var(--ink);
  background: rgba(255, 252, 240, .4);
  border: 1px solid rgba(120, 85, 40, .28); border-radius: var(--r-sm);
  transition: background-color .2s, border-color .2s;
}
.choice:hover { border-color: rgba(120, 85, 40, .5); }
.choice:has(input:checked) { background: rgba(212, 162, 76, .22); border-color: var(--brass-deep); }
.choice input { accent-color: var(--wax); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.check-line { align-items: flex-start; line-height: 1.45; padding: .85rem 1rem; }
.check-line input { margin-top: .2rem; }

/* honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Discord sign-in */
.btn-discord {
  color: #fff;
  background: #5865f2; border-color: #4752c4;
  box-shadow: 0 8px 20px -10px rgba(88, 101, 242, .7);
}
.btn-discord::before {
  content: ""; width: 20px; height: 15px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M20.3 1.5A19.8 19.8 0 0 0 15.4 0l-.6 1.3a18.4 18.4 0 0 0-5.6 0L8.6 0a19.7 19.7 0 0 0-4.9 1.5C.6 6.2-.3 10.7.1 15.2A19.9 19.9 0 0 0 6.2 18l1.3-2.1a12.9 12.9 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 12 0l.5.4c-.6.4-1.3.7-2 1l1.3 2.1a19.8 19.8 0 0 0 6.1-2.8c.5-5.2-.9-9.7-3.6-13.7ZM8 12.5c-1.2 0-2.2-1.1-2.2-2.4S6.8 7.7 8 7.7s2.2 1.1 2.2 2.4S9.2 12.5 8 12.5Zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M20.3 1.5A19.8 19.8 0 0 0 15.4 0l-.6 1.3a18.4 18.4 0 0 0-5.6 0L8.6 0a19.7 19.7 0 0 0-4.9 1.5C.6 6.2-.3 10.7.1 15.2A19.9 19.9 0 0 0 6.2 18l1.3-2.1a12.9 12.9 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 12 0l.5.4c-.6.4-1.3.7-2 1l1.3 2.1a19.8 19.8 0 0 0 6.1-2.8c.5-5.2-.9-9.7-3.6-13.7ZM8 12.5c-1.2 0-2.2-1.1-2.2-2.4S6.8 7.7 8 7.7s2.2 1.1 2.2 2.4S9.2 12.5 8 12.5Zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-discord:hover { color: #fff; background: #4f5bda; border-color: #3c45a5; }
.btn-discord[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.signin-in {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .8rem; color: var(--ink); font-size: 1.08rem;
  background: rgba(255, 252, 240, .5); border: 1px solid rgba(120, 85, 40, .3); border-radius: var(--r);
}
.signin-in[hidden], .signin-out[hidden] { display: none; }
.signin-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--parch-2); }
.signin-in .btn-small { margin-left: auto; color: var(--ink); background: transparent; border-color: rgba(120, 85, 40, .4); }
.signin-in .btn-small:hover { color: var(--wax); border-color: var(--wax); background: transparent; }

.form-status { margin: 2rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--wax); }
.submit-row {
  margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid rgba(120, 85, 40, .25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.submit-row .hint { margin: 0; }
.ledger .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 240, 205, .55), 0 10px 22px -12px rgba(90, 60, 20, .7); }

/* sealed confirmation */
.sealed { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.6rem, 5vw, 3.5rem); text-align: center; }
.sealed:focus { outline: none; }
.sealed h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .8rem; }
.sealed p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 1.8rem; }
.sealed .btn { color: var(--ink); background: transparent; border-color: rgba(120, 85, 40, .45); }
.sealed .btn:hover { border-color: var(--wax); color: var(--wax); }
.wax-seal {
  width: 92px; height: 92px; margin: 0 auto 1.6rem;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 1.9rem;
  color: #f3c9b6;
  background: radial-gradient(circle at 35% 30%, #c4483a, #8e261b 60%, #6b1a12);
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), inset 0 0 0 8px rgba(255, 180, 160, .14), 0 8px 18px -6px rgba(80, 15, 10, .6);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.payload { margin-top: 1.5rem; padding: 1.5rem; }
.payload h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.payload pre { margin: 0; overflow: auto; font-size: .85rem; background: rgba(255, 252, 240, .6); padding: 1rem; border-radius: var(--r-sm); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem clamp(1.25rem, 4vw, 2.5rem) 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7);
    isolation: isolate;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .site-nav .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: var(--r); border: 0; }
  .topbar:has(.site-nav.open) { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice:not(.notice-feature):not(:nth-child(3n + 2)) { padding-left: 0; border-left: 0; }
  .notice:not(.notice-feature):nth-child(odd) { padding-left: 2rem; border-left: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-grid, .world-grid, .rules-grid { grid-template-columns: 1fr; }
  .hero-numeral { font-size: 22rem; right: -14vw; top: 34%; }
  .ticket { max-width: 30rem; }
  .rules-head { position: static; }
  .map-card { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps::before { left: 32px; right: auto; top: 32px; bottom: 32px; width: 1px; height: auto; background: linear-gradient(180deg, var(--brass-deep), rgba(143, 106, 44, .15)); }
  .steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.4rem; }
  .steps li > :not(.step-num) { grid-column: 2; }
  .steps .step-num { grid-row: 1 / span 3; margin: 0; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .timeline::before { display: none; }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1.1rem; }
  .notices { grid-template-columns: 1fr; }
  .notice, .notice:not(.notice-feature):nth-child(odd) { padding: 1.8rem 0; border-left: 0; }
  .notice-feature { grid-template-columns: 1fr; gap: 1.1rem; }
  .field-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .rules-sheet { transform: none; }
  .ticket-meta div { flex-direction: column; gap: .1rem; }
  .ticket-meta dd { text-align: left; }
  .footer-links { width: 100%; }
}
