:root {
  color-scheme: light dark;
  --bg: #f7f3ed;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fffdf9;
  --text: #211f1c;
  --muted: #6f6961;
  --line: #ded6cc;
  --accent: #c95f32;
  --accent-dark: #8f3d1d;
  --note: #f4dfd4;
  --warning: #fff0c9;
  --shadow: 0 18px 50px rgba(60, 42, 28, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(201, 95, 50, 0.10), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent-dark); text-underline-offset: 0.18em; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner,
.page,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.top-nav { display: flex; align-items: center; gap: 16px; font-size: 0.92rem; }
.top-nav a { text-decoration: none; }
.language-link {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 74px 0 56px;
}
.hero > *, .chapter-head > *, .shot-grid > * { min-width: 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.28rem; }
.lead { max-width: 680px; margin: 22px 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: white; }
.hero-visual {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}
.hero-visual img { display: block; width: 100%; height: auto; }

.toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 82px;
}
.toc a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
.toc span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 500; }

.chapter { scroll-margin-top: 80px; padding: 0 0 94px; }
.chapter-head {
  display: grid;
  grid-template-columns: 0.28fr 0.72fr;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.chapter-number { color: var(--accent); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.12em; }
.prose { max-width: 790px; }
.prose > :first-child { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0; }
.steps li {
  position: relative;
  padding: 0 0 20px 52px;
  min-height: 42px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
}
.note,
.warning {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--note);
}
.warning { border-color: #c18400; background: var(--warning); }
.note strong,
.warning strong { display: block; margin-bottom: 2px; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.shot-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.shot a { display: block; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 14px 14px; color: var(--muted); font-size: 0.88rem; }
.shot.wide { grid-column: 1 / -1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.feature-card p { margin: 0; color: var(--muted); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { max-width: 790px; margin-bottom: 0; color: var(--muted); }

.site-footer {
  margin-top: 20px;
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }

.release-page { max-width: 1040px; }
.release-intro { padding: 76px 0 70px; }
.release-intro .lead { max-width: 760px; }
.release-section { padding: 38px 0 70px; border-top: 1px solid var(--line); }
.release-section > h2 { max-width: 760px; }
.release-section .feature-grid { margin-top: 30px; }
.release-section .feature-card h3 { margin-bottom: 12px; }
.version-entry {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) 0.7fr;
  gap: 32px;
  padding-top: 16px;
}
.version-entry h2 { margin-bottom: 6px; }
.version-entry h2 small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.45em; letter-spacing: 0; }
.version-entry p { margin-top: 0; }
.version-date { color: var(--muted); }
.release-note { margin: 0 0 70px; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--note); border-radius: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { max-width: 680px; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-head { grid-template-columns: 1fr; gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-entry { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 620px) {
  .site-header { position: static; }
  .header-inner, .page, .site-footer { width: min(100% - 22px, 1180px); }
  .header-inner { flex-wrap: wrap; gap: 6px 16px; padding-block: 10px; }
  .top-nav { flex-wrap: wrap; gap: 5px 12px; font-size: 0.82rem; }
  .top-nav .language-link { padding: 3px 8px; }
  .hero { gap: 30px; padding: 38px 0 42px; }
  .release-intro { padding: 46px 0 54px; }
  h1 { font-size: 2.55rem; overflow-wrap: anywhere; }
  .toc, .shot-grid, .shot-grid.three { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .chapter { padding-bottom: 68px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: rgba(38, 35, 32, 0.86);
    --surface-strong: #24211e;
    --text: #f4eee7;
    --muted: #bdb3a8;
    --line: #454039;
    --accent: #dc764a;
    --accent-dark: #f19a74;
    --note: #3b2922;
    --warning: #40351d;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

@media print {
  .site-header { position: static; }
  .hero { padding-top: 30px; }
  .hero-actions, .toc { display: none; }
  .chapter { break-inside: avoid-page; }
  .shot { box-shadow: none; }
}
