/* Maze presentation site. Same materials as the application (frontend/src/styles.css):
   night-blue ink, slate sheets, one accent: brass. System fonts only, nothing loaded from elsewhere. */

:root {
  --ink: #161d29;
  --ink-deep: #10151e;
  --slate: #1f2836;
  --slate-2: #283344;
  --line: #374359;
  --bone: #e8e2d4;
  --text: #e8e2d4;
  --mist: #9aa5b5;
  --brass: #c9a45c;
  --brass-text: #d8b878;
  --brass-soft: rgba(201, 164, 92, 0.16);
  --secret: #f08a8e;
  --secret-line: rgba(210, 85, 90, 0.55);
  --secret-a: rgba(210, 85, 90, 0.08);
  --secret-b: rgba(210, 85, 90, 0.03);
  --read-a: rgba(201, 164, 92, 0.11);
  --read-b: rgba(201, 164, 92, 0.04);
  --read-line: rgba(201, 164, 92, 0.38);
  --code-bg: #10151e;
  --shot-shadow: 0 24px 60px rgba(5, 8, 14, 0.55), 0 2px 6px rgba(5, 8, 14, 0.4);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

/* Light variant for readers who prefer it: bone paper, ink text, a darker brass for contrast. */
@media (prefers-color-scheme: light) {
  :root {
    --ink: #e7eaef;
    --ink-deep: #dde1e8;
    --slate: #f3f5f8;
    --slate-2: #d5dbe4;
    --line: #c3cad5;
    --text: #161d29;
    --mist: #4a5568;
    --brass: #85652a;
    --brass-text: #6f5422;
    --brass-soft: rgba(133, 101, 42, 0.14);
    --secret: #a3373c;
    --secret-line: rgba(163, 55, 60, 0.5);
    --secret-a: rgba(163, 55, 60, 0.07);
    --secret-b: rgba(163, 55, 60, 0.02);
    --read-a: rgba(201, 164, 92, 0.2);
    --read-b: rgba(201, 164, 92, 0.08);
    --read-line: rgba(133, 101, 42, 0.45);
    --code-bg: #161d29;
    --shot-shadow: 0 22px 50px rgba(22, 29, 41, 0.22), 0 2px 6px rgba(22, 29, 41, 0.15);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(201, 164, 92, 0.35); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
p, ul, ol, pre { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; }
pre code { font-size: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 8px 14px; border-radius: 6px; background: var(--brass); color: #161d29; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.wordmark {
  font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
}
.wordmark::after {
  content: ""; display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.08em;
  border-radius: 50%; background: var(--brass);
}
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.site-nav a { color: var(--mist); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) 0; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  letter-spacing: -0.01em;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.hero__facts { color: var(--mist); margin-top: 18px; font-size: 16px; }
.hero__facts p + p { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-weight: 600; text-decoration: none;
}
.btn:hover { border-color: var(--brass); text-decoration: none; }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #161d29; }
.btn--brass:hover { background: var(--brass-text); border-color: var(--brass-text); }
@media (prefers-color-scheme: light) { .btn--brass { color: #fff; } }
.btn svg { width: 18px; height: 18px; flex: none; }

/* The two boxes of the scenario editor, used as the site's own voice:
   read-aloud for what Maze is, GM secret for what you should know before installing. */
.callout { position: relative; padding: 16px 20px 18px; border-radius: 8px; }
.callout__label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font: 600 13px/1.4 var(--sans); letter-spacing: 0.01em;
}
.callout__label svg { width: 14px; height: 14px; }
.callout--read {
  background: linear-gradient(180deg, var(--read-a), var(--read-b));
  border: 1px solid var(--read-line);
}
.callout--read .callout__label { color: var(--brass-text); }
.callout--read p { font-family: var(--serif); font-style: italic; font-size: 1.12em; line-height: 1.55; }
.callout--secret {
  background: repeating-linear-gradient(135deg, var(--secret-a) 0 10px, var(--secret-b) 10px 20px);
  border: 1px dashed var(--secret-line);
}
.callout--secret .callout__label { color: var(--secret); }


/* ---------- Screenshots ---------- */
.shot {
  margin: 0;
}
.shot a { display: block; border-radius: 10px; }
.shot img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: var(--shot-shadow); background: #161d29;
}
.hero__shot { margin-top: clamp(40px, 6vw, 72px); }
.shot figcaption { margin-top: 12px; color: var(--mist); font-size: 14.5px; max-width: 70ch; }

/* ---------- Feature plates ---------- */
.features { padding-block: clamp(56px, 9vw, 120px) 0; }
.plate {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.plate + .plate { margin-top: clamp(64px, 9vw, 120px); }
.plate--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.plate--flip .plate__text { order: 2; }
.plate--stack { grid-template-columns: minmax(0, 1fr); }
.plate--stack .plate__text { max-width: 64ch; }
.plate--stack .plate__text ul { columns: 2 22ch; column-gap: 40px; }
.plate--stack .plate__text li { break-inside: avoid; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.plate__text { max-width: 52ch; padding-top: 8px; }
.plate h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.plate h3 { font-size: 20px; margin: 22px 0 6px; }
.plate p { color: var(--text); }
.plate p + p { margin-top: 12px; }
.plate ul { margin-top: 14px; padding-left: 0; list-style: none; }
.plate li { position: relative; padding-left: 20px; color: var(--mist); }
.plate li + li { margin-top: 6px; }
.plate li::before {
  content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brass);
}
.plate li strong { color: var(--text); font-weight: 600; }

/* Text-only plates: integrations and languages. */
.columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line);
}
.columns h2 { font-size: 24px; margin-bottom: 10px; }
.columns p { color: var(--mist); }
.columns p + p { margin-top: 10px; }

/* ---------- Before you install ---------- */
.honest { margin-top: clamp(64px, 9vw, 120px); }
.honest .callout { max-width: 820px; }
.honest h2 { font-size: clamp(24px, 3vw, 30px); margin: 2px 0 12px; }
.honest ul { padding-left: 1.1em; }
.honest li + li { margin-top: 8px; }

/* ---------- Get started ---------- */
.start { padding-block: clamp(64px, 9vw, 120px) 0; }
.start__head { max-width: 62ch; }
.start h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.start__head p { color: var(--mist); }
.steps { list-style: none; padding: 0; margin-top: 36px; counter-reset: step; max-width: 860px; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; }
.steps > li + li { margin-top: 34px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--brass); border-radius: 50%;
  font: 600 16px/1 var(--serif); color: var(--brass-text);
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--mist); }
.steps p + .code, .steps .code + p { margin-top: 12px; }
.code {
  position: relative; margin-top: 10px;
  background: var(--code-bg); border: 1px solid #2b3547; border-radius: 8px;
}
.code pre {
  overflow-x: auto; padding: 14px 16px; padding-right: 76px;
  color: #e8e2d4; font: 14px/1.6 var(--mono); tab-size: 4;
}
.copy {
  position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 10px;
  border: 1px solid #374359; border-radius: 6px; background: #1f2836; color: #e8e2d4;
  font: 600 13px var(--sans); cursor: pointer;
}
.copy:hover { border-color: #c9a45c; }
.start__more { margin-top: 36px; max-width: 62ch; color: var(--mist); }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: clamp(72px, 10vw, 140px); padding-block: 32px 48px; border-top: 1px solid var(--line);
  color: var(--mist); font-size: 15px;
}
.site-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: baseline; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; }
.site-foot p + p { margin-top: 6px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero__grid, .plate, .plate--flip, .columns { grid-template-columns: minmax(0, 1fr); }
  .plate--flip .plate__text { order: 0; }
  .plate__text { padding-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav a.hide-sm { display: none; }
  .pair { grid-template-columns: 1fr; }
  .steps > li { padding-left: 0; }
  .steps > li::before { position: static; margin-bottom: 10px; }
  .code pre { font-size: 13px; padding-right: 16px; padding-top: 46px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
