/* ARENARCH site. One committed look: the game's own world after dusk — dark oiled wood and stone, gold leaf on the
   letters, the turquoise of the menu's gems for what you can press. Layout concept: a games programme posted at the
   arena gate — a painted hero, an inscription band with the match rules, then the four peoples as four gates. */
:root {
  --night: #15100d;        /* the page: dark wood after dusk */
  --stone: #241b16;        /* raised panels */
  --seam: #3d2f25;         /* hairlines and frames */
  --parchment: #ece0c8;    /* running text */
  --dust: #b5a58a;         /* secondary text */
  --gold: #e3b45c;         /* the letters, the logo */
  --gem: #35c9b8;          /* links and buttons: the menu's turquoise gems */
  --gem-ink: #062421;      /* text on a gem button */
  --blood: #c0283b;

  --display: "Cormorant SC", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --measure: 66ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.6rem, 7vw, 4.6rem);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gem); text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gem); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; color: var(--gold); }
p { margin: 0; }

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

/* ---- top bar */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--seam);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
.bar .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-size: var(--step-1); font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--dust); text-decoration: none; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.lang { border: 1px solid var(--seam); border-radius: 2px; padding: 2px 8px; }

/* ---- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--seam); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/backdrop-colosseum.jpg") center 35% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 35%, transparent) 0%, color-mix(in srgb, var(--night) 70%, transparent) 55%, var(--night) 100%);
}
.hero .wrap { padding-block: clamp(56px, 10vw, 120px) 56px; display: grid; gap: 22px; justify-items: start; }
.emblem { width: clamp(84px, 12vw, 120px); filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--gold) 45%, transparent)); }
.hero h1 { font-size: var(--step-4); letter-spacing: 0.14em; text-shadow: 0 3px 24px var(--night); }
.hero .tag { font-family: var(--display); font-size: var(--step-2); color: var(--parchment); max-width: 24ch; text-shadow: 0 2px 16px var(--night); }
.hero .lead { max-width: 54ch; color: var(--parchment); text-shadow: 0 1px 10px var(--night); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 3px; text-decoration: none; font-weight: 700;
  font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--gem); background: var(--gem); color: var(--gem-ink); cursor: pointer;
}
.btn:hover { background: var(--parchment); border-color: var(--parchment); color: var(--gem-ink); }
.btn.ghost { background: color-mix(in srgb, var(--night) 60%, transparent); color: var(--parchment); border-color: var(--seam); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.soon { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--gold); text-transform: none; font-weight: 400; }

/* ---- the inscription band: the match rules as carved into the gate */
.rules { border-bottom: 1px solid var(--seam); background: var(--stone); }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rules li { padding: 18px 16px; border-right: 1px solid var(--seam); display: grid; gap: 2px; }
.rules li:last-child { border-right: 0; }
.rules b { font-family: var(--display); font-size: var(--step-2); color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rules span { color: var(--dust); font-size: var(--step--1); }

/* ---- sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gem); }
.head { display: grid; gap: 10px; margin-bottom: 32px; max-width: var(--measure); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--dust); }

.hook { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: var(--parchment); max-width: 34ch; text-wrap: balance; }
.hook em { color: var(--gold); font-style: normal; }

/* six blocks: 3 x 2 on a wide screen, 2 x 3, then one column — never a row with a hole in it */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--seam); border: 1px solid var(--seam); margin-top: 36px; }
.features div { background: var(--night); padding: 24px 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.features h3 { font-size: var(--step-1); }
.features p { color: var(--dust); }

/* the four peoples as four gates */
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gate { position: relative; isolation: isolate; border: 1px solid var(--seam); background: var(--stone); overflow: hidden; display: grid; align-content: start; min-width: 0; }
.gate .sky { height: 120px; background-size: cover; background-position: center 30%; border-bottom: 1px solid var(--seam); }
.gate .face { width: 96px; height: 96px; margin: -52px auto 0; border-radius: 50%; border: 2px solid var(--gold); background: var(--night); }
.gate .text { padding: 14px 18px 20px; display: grid; gap: 10px; }
.gate h3 { font-size: var(--step-2); text-align: center; }
.gate p { color: var(--dust); font-size: var(--step--1); }
.classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.classes li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: baseline; }
.classes li::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg) translateY(1px); background: var(--c); }
.classes b { color: var(--c); font-family: var(--display); font-size: var(--step-1); }
.classes span { display: block; color: var(--dust); font-size: var(--step--1); }

/* the ults: one line each, the class color on the left */
.ults { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--seam); border: 1px solid var(--seam); }
.ults li { background: var(--night); padding: 18px 20px; display: grid; gap: 4px; border-left: 3px solid var(--c); min-width: 0; }
.ults b { font-family: var(--display); font-size: var(--step-1); color: var(--gold); }
.ults small { color: var(--c); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; }
.ults span { color: var(--dust); font-size: var(--step--1); }

/* lore */
.prose { max-width: var(--measure); display: grid; gap: 18px; }
.prose h2 { font-size: var(--step-3); margin-top: 26px; }
.prose h3 { font-size: var(--step-2); margin-top: 12px; }
.prose .drop::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: 0.85; padding: 6px 8px 0 0; color: var(--gold); }
.prose blockquote { margin: 0; padding: 14px 20px; border-left: 3px solid var(--gold); background: var(--stone); font-family: var(--display); font-size: var(--step-1); color: var(--parchment); }
.note { color: var(--dust); font-size: var(--step--1); border: 1px dashed var(--seam); padding: 10px 14px; }
.people { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.people img { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--gold); }
.people > div { display: grid; gap: 8px; min-width: 0; }

/* survey */
form.survey { max-width: 720px; display: grid; gap: 22px; }
fieldset { border: 1px solid var(--seam); background: var(--stone); margin: 0; padding: 18px 20px 20px; display: grid; gap: 10px; min-width: 0; }
legend { font-family: var(--display); font-size: var(--step-1); color: var(--gold); padding: 0 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choices label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--gem); width: 18px; height: 18px; }
input[type="text"], textarea { width: 100%; background: var(--night); color: var(--parchment); border: 1px solid var(--seam); border-radius: 2px; padding: 10px 12px; font: inherit; }
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--dust); font-size: var(--step--1); }
.status { border: 1px solid var(--gem); color: var(--parchment); padding: 12px 16px; }

/* footer */
footer { border-top: 1px solid var(--seam); background: var(--stone); }
footer .wrap { padding-block: 28px; display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--dust); font-size: var(--step--1); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dust); }

/* the promise: three blocks in a row, one column once a row would leave a hole */
.promise .features { margin-top: 0; }
.promise .note { margin-top: 20px; color: var(--dust); max-width: var(--measure); }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav { margin-left: 0; gap: 14px; }
  .people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .emblem { animation: rise 900ms ease-out both; }
  @keyframes rise { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
}
