:root {
  color-scheme: light dark;
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-soft: #ebeaf0;
  --text: #17171c;
  --muted: #5f606b;
  --line: #d5d4dc;
  --accent: #7554b3;
  --accent-strong: #56358f;
  --accent-soft: #ebe4f7;
  --radius: 16px;
  --page: min(1180px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d12;
    --surface: #17171f;
    --surface-soft: #20202a;
    --text: #f0eef4;
    --muted: #aaa8b2;
    --line: #30303b;
    --accent: #a987df;
    --accent-strong: #c2a5ee;
    --accent-soft: #282036;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, footer {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-header { min-height: 72px; }
.wordmark { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; }
.site-header nav, footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-header nav a, footer nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover, footer nav a:hover { color: var(--accent-strong); }

main { overflow: hidden; }
.hero {
  width: var(--page);
  min-height: min(720px, calc(100dvh - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: 56px 0 72px;
}
.hero-copy { max-width: 570px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 760; }
.hero-summary { max-width: 470px; margin: 0 0 30px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { border-color: var(--accent); }
.hero-visual { margin: 0; }
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 30px 80px rgb(11 8 20 / 0.22);
}

.principles {
  width: var(--page);
  margin: 0 auto;
  padding: 92px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px 84px;
}
.principles h2, .section-wrap > h2, .method h2, .closing h2, .prose h1 { font-size: clamp(32px, 4vw, 50px); }
.principles > p { max-width: 620px; margin: 4px 0 0; color: var(--muted); font-size: 18px; }
.principles dl { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles dl div { padding: 26px 30px 0 0; }
.principles dt { color: var(--accent-strong); font-size: 15px; font-weight: 780; }
.principles dd { margin: 7px 0 0; color: var(--muted); }

.section-wrap { width: var(--page); margin: 0 auto; padding: 96px 0; }
.section-wrap > h2 { max-width: 650px; margin-bottom: 42px; }
.seed-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.seed {
  grid-column: span 5;
  min-height: 360px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.seed-featured { grid-column: span 7; background: var(--accent-soft); }
.seed:nth-child(3) { grid-column: 4 / span 7; min-height: 320px; }
.seed-genre { margin: 0 0 30px; color: var(--accent-strong); font-size: 13px; font-weight: 760; }
.seed h3 { margin-bottom: 18px; font-size: clamp(25px, 3vw, 38px); }
.seed > p:not(.seed-genre) { margin: 0; color: var(--muted); font-size: 17px; }
.seed-turn { margin-top: auto; padding-top: 28px; color: var(--text); }

.method {
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 110px);
}
.method > div p { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.method ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method li { display: grid; gap: 7px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method li strong { font-size: 18px; }
.method li span { color: var(--muted); }

.closing {
  width: var(--page);
  margin: 32px auto 96px;
  padding: clamp(38px, 7vw, 76px);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.closing h2 { max-width: 760px; margin-bottom: 20px; }
.closing p { max-width: 700px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.closing > a { color: var(--accent-strong); font-weight: 800; text-underline-offset: 5px; }

footer { min-height: 120px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-brand { display: grid; gap: 4px; }
.footer-brand span { color: var(--muted); font-size: 13px; }

.prose {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 100px;
}
.prose .back { display: inline-block; margin-bottom: 34px; color: var(--muted); font-weight: 700; text-decoration: none; }
.prose .updated { margin: -22px 0 40px; color: var(--muted); font-size: 14px; }
.prose h2 { margin: 42px 0 13px; font-size: 23px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent-strong); }
.prose .privacy-control { margin-top: 26px; }

.not-found { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.not-found div { max-width: 560px; }
.not-found h1 { font-size: clamp(44px, 8vw, 82px); }
.not-found p { color: var(--muted); font-size: 18px; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; padding: 20px 0; }
  .site-header nav { justify-content: flex-end; gap: 14px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 52px 0 70px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 420px; }
  .principles, .method { grid-template-columns: 1fr; }
  .principles dl { grid-template-columns: 1fr; }
  .principles dl div { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .seed, .seed-featured, .seed:nth-child(3) { grid-column: 1 / -1; min-height: auto; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --page: min(100% - 28px, 1180px); }
  .site-header { display: grid; }
  .site-header nav { justify-content: flex-start; }
  .site-header nav a { font-size: 13px; }
  .hero { padding-top: 26px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .principles, .section-wrap, .method { padding: 72px 0; }
  .closing { margin-bottom: 70px; padding: 30px 24px; }
  footer nav { gap: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
