:root {
  --ink: #1a1a1a;
  --muted: #666;
  --bg: #fffdf9;
  --line: #e6e1d8;
  --accent: #e8590c;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2efe9;
    --muted: #a09a90;
    --bg: #171512;
    --line: #302c26;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

header.site, footer.site {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px;
}

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero { padding: 48px 0 40px; max-width: 34ch; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.03em; }
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, var(--ink));
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(0 0 0 / .12); }
.card.is-soon { opacity: .62; }

.shot { position: relative; background: var(--accent); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin: 0 0 4px; font-size: 20px; }
.card-body p { margin: 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

.detail { padding: 24px 0 0; max-width: 70ch; }
.crumb { font-size: 14px; color: var(--muted); }
.detail h1 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 4px; letter-spacing: -0.02em; }
.hero-shot { border-radius: var(--radius); border: 1px solid var(--line); margin: 32px 0; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  margin-top: 8px;
}

.features { padding-left: 1.1em; }
.features li { margin-bottom: 8px; }

.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 700;
  opacity: .55;
}

/* --- Free-content strip on the landing page ------------------------------ */
.strip {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 40px 0 8px;
  max-width: 60ch;
}
.strip h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.strip p { margin: 0 0 14px; }

/* --- Word families ------------------------------------------------------- */
.family-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 10px;
}
.family-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.family-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.family-list .fam { font-weight: 700; font-size: 18px; color: var(--accent); }
.family-list .fam-eg { color: var(--muted); font-size: 14px; }
.family-list.compact { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.family-list.compact a { align-items: center; }

/* Wide on a phone, so it scrolls itself rather than the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 24px 0 32px;
}
table.words { border-collapse: collapse; width: 100%; min-width: 34rem; }
table.words th,
table.words td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); }
table.words thead th {
  border-top: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 600;
}
table.words td.ph { white-space: nowrap; color: var(--accent); }
table.words td.en { color: var(--muted); }

.steps { max-width: 60ch; padding-left: 1.2rem; }
.steps li { margin-bottom: 6px; }
