/* Layout: a descent — crown (hero) → inscription → the land → excavation plates on parchment → signup at the roots.
   The page darkens as it goes down, like moving from the tree's crown into its roots. */
:root {
  --soil: #120d0b;       /* page ground, warm near-black */
  --umber: #1d1411;      /* raised dark surface */
  --bone: #e6d9c0;       /* main text on dark */
  --ash: #a3937e;        /* secondary text on dark */
  --copper: #c48052;     /* accent */
  --gold: #b38f4b;       /* logo gold */
  --crimson: #8e2a22;    /* rules, focus, hover */
  --parchment: #e4d8c1;  /* excavation-plate band */
  --ink: #1c1411;        /* text on parchment */
  --ink-soft: #5b4a3d;

  --display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.4rem);

  color-scheme: dark;
}

/* ---------- fonts (hosted on our own domain: no third-party requests) ---------- */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/spectral-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/spectral-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/spectral-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/spectral-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/spectral-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/spectral-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--soil); }
body {
  margin: 0;
  background: linear-gradient(180deg, #24170f 0%, var(--soil) 38%, #0b0807 100%);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* language: show only the active language's copy */
.t { display: none; }
html[data-lang="tr"] .t[lang="tr"],
html[data-lang="en"] .t[lang="en"],
html[data-lang="de"] .t[lang="de"] { display: revert; }
span.t { display: none; }
html[data-lang="tr"] span.t[lang="tr"],
html[data-lang="en"] span.t[lang="en"],
html[data-lang="de"] span.t[lang="de"] { display: inline; }

.eyebrow {
  font-family: var(--display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--bone); color: var(--soil); padding: 8px 12px; z-index: 20; }

/* ---------- header ---------- */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.brand img { width: 38px; }
.brand span { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.92rem; }
.lang { display: flex; gap: 2px; border: 1px solid #3a2a22; border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em;
  background: none; border: 0; color: var(--ash); padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { background: var(--copper); color: var(--soil); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 6vw, 72px) clamp(48px, 9vw, 112px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-emblem { position: relative; }
.hero-emblem::before {
  content: ""; position: absolute; inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(142, 42, 34, 0.55), rgba(142, 42, 34, 0) 75%);
  filter: blur(10px);
}
.hero-emblem img { position: relative; width: min(100%, 470px); margin-inline: auto; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); }
.hero h1 .sub { display: block; font-size: 0.42em; letter-spacing: 0.28em; color: var(--gold); margin-top: 0.35em; }
.hero .lead { font-size: var(--step-1); color: var(--ash); max-width: 32ch; line-height: 1.45; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.88rem;
  color: var(--soil); background: var(--copper); border: 1px solid var(--copper);
  padding: 14px 22px; border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--copper); }

/* ---------- inscription (rulebook quote) ---------- */
.inscription { padding-block: clamp(56px, 10vw, 128px); border-block: 1px solid #2c1f19; background: rgba(29, 20, 17, 0.55); }
.inscription .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
.inscription .root-line { width: 1px; background: linear-gradient(var(--crimson), transparent); }
.inscription figure { margin: 0; display: grid; gap: 22px; }
.inscription blockquote { margin: 0; }
.inscription blockquote p {
  font-family: var(--display); font-size: var(--step-3); line-height: 1.18; color: var(--bone); max-width: 22ch;
}
.inscription blockquote p .second { color: var(--copper); }
.inscription figcaption { color: var(--ash); font-style: italic; }

/* ---------- the game ---------- */
.game { padding-block: clamp(64px, 11vw, 140px); }
.game .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.game-text { display: grid; gap: 22px; min-width: 0; }
.game h2 { font-size: var(--step-3); }
.game h2 em { font-style: normal; color: var(--gold); }
.game-text p { max-width: 58ch; color: #d7c9b1; }
.plate-dark { margin: 0; display: grid; gap: 14px; }
.plate-dark img { width: 100%; }
.caption { font-size: var(--step--1); color: var(--ash); display: flex; gap: 12px; align-items: baseline; border-top: 1px solid #33241d; padding-top: 10px; }
.caption b { font-family: var(--display); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }

/* ---------- excavation plates (parchment band) ---------- */
.plates { background: var(--parchment); color: var(--ink); padding-block: clamp(64px, 10vw, 128px); position: relative; }
.plates .head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 60ch; }
.plates .eyebrow { color: var(--crimson); }
.plates h2 { font-size: var(--step-3); }
.plates .head p { color: var(--ink-soft); }
.plate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.plate { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 16px; min-width: 0; }
.plate .frame { border: 1px solid #b8a688; padding: clamp(16px, 3vw, 32px); display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 100%; min-width: 0; overflow: hidden; }
.plate .frame img { max-height: 100%; max-width: 100%; min-height: 0; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.plate .caption { color: var(--ink-soft); border-top-color: #b8a688; }
.plate .caption b { color: var(--crimson); }

/* ---------- notify ---------- */
.notify { padding-block: clamp(72px, 12vw, 150px); }
.notify .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.notify-text { display: grid; gap: 18px; min-width: 0; }
.notify h2 { font-size: var(--step-3); }
.notify-text p { color: var(--ash); max-width: 46ch; }
.form { display: grid; gap: 18px; background: var(--umber); border: 1px solid #33241d; padding: clamp(20px, 4vw, 36px); min-width: 0; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--ash); }
.field input {
  font: inherit; color: var(--bone); background: var(--soil); border: 1px solid #4a372c; border-radius: 2px; padding: 13px 14px; width: 100%;
}
.field input:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px rgba(196, 128, 82, 0.25); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step--1); color: var(--ash); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #2c1f19; padding-block: 32px; color: var(--ash); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- simple pages (legal, thanks, 404) ---------- */
.page { padding-block: clamp(40px, 8vw, 96px); }
.page .wrap { max-width: 760px; display: grid; gap: 22px; }
.page h1 { font-size: var(--step-3); }
.page h2 { font-size: var(--step-1); margin-top: 18px; color: var(--gold); }
.page p, .page li { color: #d7c9b1; }
.page ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.fill { background: rgba(142, 42, 34, 0.35); color: var(--bone); padding: 0 4px; }
.center-emblem { width: 120px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-emblem img { animation: rise 1.4s ease-out both; }
  .hero-text > * { animation: fade 1s ease-out both; }
  .hero-text > :nth-child(2) { animation-delay: 0.15s; }
  .hero-text > :nth-child(3) { animation-delay: 0.3s; }
  .hero-text > :nth-child(4) { animation-delay: 0.45s; }
}
@keyframes rise { from { opacity: 0.2; transform: translateY(18px) scale(0.98); filter: brightness(0.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0.25; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero .wrap, .game .wrap, .notify .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-emblem img { width: min(70%, 320px); }
  .game .plate-dark { order: -1; }
}
@media (max-width: 560px) {
  .plate-grid { grid-template-columns: minmax(0, 1fr); }
  .brand span { display: none; }
  .inscription .wrap { grid-template-columns: minmax(0, 1fr); }
  .inscription .root-line { display: none; }
}
