/* Murdoria — marketing site
   Palette and type are lifted directly from the app's `bright` theme
   (src/themes/bright/index.ts) so the site and the game cannot drift apart. */

:root {
  /* colours — bright theme tokens */
  --background: #faf3ec;
  --surface: #ffffff;
  --surface-alt: #f3e9df;
  --ink: #4a3b33;
  --ink-soft: #8a7668;
  --ink-faint: #b0a096;
  --accent: #e9b44c;
  --accent-ink: #3a2a16;
  --danger: #d4685f;
  --success: #6fa97c;
  --grid-line: #e0d3c6;
  --control-border: #e7dacd;

  /* the eight room pastels, in theme order */
  --room-rose: #f5b9c4;
  --room-apricot: #f7d0a0;
  --room-butter: #f2e3a2;
  --room-leaf: #b6dca9;
  --room-teal: #96d2c8;
  --room-sky: #a9cdee;
  --room-lilac: #bfb4e9;
  --room-orchid: #e9b7de;

  /* the icon's ground, used for the footer */
  --night: #22242e;

  --measure: 62rem;
  --radius: 18px;
  --shadow: 0 2px 4px rgba(74, 59, 51, 0.04), 0 8px 24px rgba(74, 59, 51, 0.07);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section {
  padding-block: 3.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

/* ---------- hero ---------- */

.hero {
  padding-block: 3rem 1rem;
  text-align: center;
}

.hero__icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.hero__name {
  font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem);
  margin-top: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-family: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.hero__hook {
  max-width: 40ch;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  text-wrap: balance;
}

/* ---------- "coming soon" badge ---------- */
/* Swap this whole block for the real App Store badge once the app is live —
   see site/README.md. */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.75rem 1.4rem;
  border: 2px dashed var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- board illustration ---------- */

.board {
  --gap: 0.055;
  max-width: 420px;
  margin: 3rem auto 0;
  padding: 3.5%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3.2%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile {
  aspect-ratio: 1;
  border-radius: 18%;
  display: grid;
  place-items: center;
  position: relative;
}

.tile img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(74, 59, 51, 0.25));
}

/* a pencilled-in cross, exactly as the game draws eliminations */
.tile--cross::after {
  content: '';
  position: absolute;
  inset: 32%;
  background:
    linear-gradient(to bottom right, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
    linear-gradient(to bottom left, transparent 44%, #fff 44%, #fff 56%, transparent 56%);
  opacity: 0.95;
}

.tile--victim {
  outline: 3px solid var(--danger);
  outline-offset: -3px;
}

.board-caption {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin-top: 0.85rem;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step__n {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.step__n::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--ink-soft);
}

/* ---------- cast ---------- */

.cast {
  background: var(--surface-alt);
}

.cast__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.75rem;
}

.cast__member {
  /* figure carries a browser-default `margin: 1em 40px`, which collapses the
     card to a sliver at mobile widths. */
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cast__member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.cast__member span {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---------- casebook list ---------- */

.casebook {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.casebook li {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  position: relative;
}

.casebook li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- footer ---------- */

.footer {
  background: var(--night);
  color: #d8d2cb;
  padding-block: 3rem;
  text-align: center;
}

.footer a {
  color: var(--accent);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-block: 1.25rem;
}

.footer__fine {
  color: #8a8279;
  font-size: 0.875rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  section {
    padding-block: 5rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .casebook {
    grid-template-columns: repeat(2, 1fr);
  }
}

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