:root {
  color-scheme: light;
  --ink: #132322;
  --muted: #485856;
  --accent: #08644c;
  --line: #d3ded9;
  --paper: #fff;
  --wrap: 72rem;
  --gutter: clamp(1.125rem, 4vw, 3.5rem);
  font: 100%/1.65 system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); word-break: keep-all; overflow-wrap: anywhere; }
img, video { display: block; max-width: 100%; height: auto; }
figure, dl, dd, p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.24; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.05rem); max-width: 24ch; }
h3 { font-size: clamp(1.125rem, 2vw, 1.425rem); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #be5e24; outline-offset: 4px; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(3.125rem, 7vw, 6.125rem); }
.section-intro { margin-top: .875rem; color: var(--muted); max-width: 53ch; }
.skip-link { position: absolute; z-index: 5; inset: .625rem auto auto .625rem; padding: .5rem 1rem; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: .8rem; }
.brand { display: inline-flex; gap: .625rem; align-items: center; font-weight: 800; line-height: 1.12; white-space: nowrap; text-decoration: none; }
.brand-mark { display: inline-block; width: 1.2rem; height: 1.2rem; border-radius: .05rem .58rem .05rem .58rem; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: .25rem; border: 1px solid #daf3de; border-radius: .04rem .36rem .04rem .36rem; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(.75rem, 3vw, 2.125rem); margin: 0; padding: 0; list-style-type: none; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { background: linear-gradient(110deg, #f4f9f4, #f2f6f6 60%, #eef1fa); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 7vw, 6.35rem); }
.eyebrow { margin-bottom: .8rem; font-size: .92rem; font-weight: 780; color: var(--accent); }
.hero h1 { font-size: clamp(2.55rem, 4.04vw, 4rem); font-weight: 830; line-height: 1.09; letter-spacing: -.063em; }
.hero h1 span { color: var(--accent); }
.lead { margin-top: 1.45rem; max-width: 25em; font-size: clamp(1rem, 1.7vw, 1.17rem); color: var(--muted); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.65rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .5rem 1.05rem; border-radius: .45rem; font-size: .95rem; line-height: 1.4; font-weight: 750; text-align: center; text-decoration: none; }
.primary { background: #174635; color: #fff; }
.primary:hover { background: #0a3123; }
.secondary { background: #fff; border: 1px solid #a0b4aa; }
.secondary:hover { border-color: var(--accent); }
.edition-stats { display: flex; flex-wrap: wrap; gap: .375rem 2rem; margin-top: 2rem; }
.edition-stats div { padding-top: .65rem; border-top: 1px solid #a7bbb0; }
.edition-stats dt { color: var(--muted); font-weight: 720; font-size: .9rem; }
.edition-stats dd { font-size: 1.65rem; font-variant-numeric: tabular-nums; font-weight: 850; line-height: 1.2; }
.edition-stats dd span { margin-left: .23em; font-size: .9rem; font-weight: 650; color: var(--muted); }
.book-stage {
  align-self: center;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.12fr .9fr;
  align-items: end;
  gap: clamp(.75rem, 3.2vw, 2.4rem);
  padding: clamp(1.4rem, 3.8vw, 3.1rem);
  border: 1px solid #2c4442;
  border-radius: 1rem;
  background-color: #112421;
  background-image: linear-gradient(#d5f6ed14 1px, transparent 1px), linear-gradient(90deg, #d5f6ed14 1px, transparent 1px), radial-gradient(ellipse at 72% 20%, #365269, transparent 83%);
  background-size: 1.9rem 1.9rem, 1.9rem 1.9rem, auto;
}
.stage-book { align-self: center; min-width: 0; text-align: center; }
.stage-main { margin-bottom: 1.25rem; }
.stage-guide { margin-top: 2.6rem; }
.stage-book img { width: 100%; aspect-ratio: 612/869; object-fit: contain; border-radius: .25rem; box-shadow: 0 1.3rem 2.6rem #050b10a6; }
.stage-main img { transform: rotate(-5deg); }
.stage-guide img { transform: rotate(5deg); }
.stage-book figcaption { margin-top: 1.15rem; color: #eef9f6; font-size: .875rem; font-weight: 650; line-height: 1.35; }

.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.edition { position: relative; padding: clamp(1.25rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-top: 4px solid #3d8f74; border-radius: .65rem; }
.edition-main { background: #f0f8f1; }
.edition-guide { background: #f4f1fc; border-color: #dbd5ee; border-top-color: #8263b8; }
.edition-kind { font-size: .9rem; color: var(--accent); font-weight: 770; }
.edition-guide .edition-kind { color: #5e408f; }
.edition h3 { font-size: clamp(1.5rem, 2.75vw, 2.05rem); margin-block: .4rem .85rem; }
.edition-note { border-top: 1px solid #536b5d34; padding-top: .9rem; margin-top: 1.15rem; color: #344a42; }
.edition-guide .edition-note { color: #443760; }

.showcase { background: #102321; color: #f2f8f6; }
.showcase .eyebrow { color: #9fe5cc; }
.demo-grid { display: grid; grid-template-columns: 1.38fr 1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4.75rem); margin-block: 1.5rem; }
.demo-grid video, .example img { width: 100%; aspect-ratio: 854/480; object-fit: contain; background: #101720; border: 1px solid #4e6664; border-radius: .65rem; }
.demo-copy p { max-width: 33ch; margin-block: .85rem 1.15rem; color: #d8e9e6; }
.text-link { font-weight: 720; color: var(--accent); }
.showcase .text-link { color: #a8ebd6; }
.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.65rem; }
.example { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; align-items: center; border: 1px solid #40605a; border-radius: .65rem; padding: .8rem; }
.example h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.example .text-link { font-size: .9rem; }
.library-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.showcase-link { border: 1px solid #9cd0bf; color: #d8f6e8; }
.showcase-link:hover { background: #23433a; }

.volume-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); margin-top: 1.55rem; }
.volume { min-width: 0; }
.volume img { width: 100%; aspect-ratio: 612/869; object-fit: contain; background: #142321; border-radius: .3rem; box-shadow: 0 .5rem 1rem #081e1722; }
.volume-meta { margin-top: .75rem; font-size: .875rem; color: var(--accent); font-weight: 780; }
.volume h3 { min-height: 2.5em; margin-block: .25rem .55rem; font-size: clamp(1rem, 1.65vw, 1.25rem); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.75rem; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; font-size: 1.35em; line-height: 1; color: var(--accent); }
details[open] > summary::after { content: "−"; }
.chapter-list { margin: 0 0 .75rem; padding-left: 1.1rem; color: var(--muted); font-size: .875rem; }
.chapter-list li + li { margin-top: .4rem; }

.options-section { background: #f3f7f5; border-block: 1px solid var(--line); }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.option { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1rem, 3vw, 1.9rem); background: #fff; border: 1px solid #c5d5cd; border-radius: .6rem; }
.option-full { border: 2px solid var(--accent); background: #f8fdfa; }
.option h3 { font-size: 1.28rem; }
.option-total { line-height: 1.1; font-size: clamp(2.3rem, 4.3vw, 3.25rem); font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.055em; color: var(--accent); }
.option-total span { margin-left: .15em; font-size: .42em; letter-spacing: 0; }
.inclusions { margin: .15rem 0 .3rem; padding-left: 1.1rem; }
.inclusions li + li { margin-top: .35rem; }
.files { margin-top: auto; border-top: 1px solid var(--line); padding-top: .6rem; font-weight: 730; color: #344a42; }
.option-info { margin-top: .95rem; font-size: .9rem; color: var(--muted); }
.registration { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.registration-title { font-weight: 800; }
.registration-title + p { color: var(--muted); }
.registration-channel { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .85rem; border-radius: .35rem; background: #e4ebe7; color: #394e45; font-size: .9rem; font-weight: 700; white-space: nowrap; }

.faq { margin-top: 1.55rem; max-width: 48rem; border-bottom: 1px solid var(--line); }
.faq summary { min-height: 3.25rem; }
.faq p { margin-bottom: 1.025rem; color: var(--muted); }
code { font-size: .88em; padding: .08em .24em; border-radius: .3em; background: #edf4ef; color: #214a3c; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 5.2rem; font-size: .925rem; }

@media (max-width: 58rem) {
  .hero-inner { gap: 1.5rem; }
  .demo-pair { gap: .875rem; }
  .example { grid-template-columns: 1fr; }
  .volume-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .header-inner { flex-wrap: wrap; }
  .hero-inner, .demo-grid, .option-grid { grid-template-columns: 1fr; }
  .hero-inner { align-items: start; padding-block: 2.3rem; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 3.7rem); }
  .book-stage { justify-self: center; width: min(100%, 31rem); }
  .edition-stats { margin-top: 1.35rem; }
  .edition-grid { grid-template-columns: 1fr; }
  .demo-copy p { max-width: none; }
  .volume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; align-content: center; padding-block: .9rem; }
}

@media (max-width: 27rem) {
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 2.55rem); }
  .nav { gap: 0 .85rem; }
  .action { padding-inline: .75rem; }
  .demo-pair { grid-template-columns: 1fr; }
  .example { grid-template-columns: .9fr 1.1fr; }
  .registration { align-items: flex-start; }
}

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