@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --ink: #172f42;
  --muted: #52636a;
  --accent: #137d80;
  --wash: #e1eeE8;
  --line: #d6dfd9;
  --orbit: #9fbfb4;
  --button: #173445;
  --button-text: #f7faf7;
  --seal: #eff5ef;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #132229;
    --ink: #eaf0ef;
    --muted: #b5c5c5;
    --accent: #70d1cc;
    --wash: #203b3e;
    --line: #34484d;
    --orbit: #487b7a;
    --button: #bce6de;
    --button-text: #142a31;
    --seal: #213d40;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #132229;
  --ink: #eaf0ef;
  --muted: #b5c5c5;
  --accent: #70d1cc;
  --wash: #203b3e;
  --line: #34484d;
  --orbit: #487b7a;
  --button: #bce6de;
  --button-text: #142a31;
  --seal: #213d40;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
[hidden] { display: none !important; }
.page-shell { width: min(1280px, calc(100% - 128px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px 20px; background: var(--paper); z-index: 2; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 112px; }
.brand { display: block; flex-shrink: 0; width: 218px; }
.brand img { width: 100%; height: auto; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-light { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-light { display: none; }
  :root:not([data-theme="light"]) .brand-dark { display: block; }
}
.header-actions { display: flex; align-items: center; gap: 26px; }
.site-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.site-status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-symbol { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.hero { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: 48px; padding: 40px 0 66px; min-height: 650px; }
.hero > *, .next-chapter > * { min-width: 0; }
.hero-copy { padding-bottom: 4px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .2em; line-height: 1.6; }
h1 { margin: 24px 0 26px; font-size: clamp(56px, 6vw, 88px); line-height: 1.035; letter-spacing: -.058em; font-weight: 500; }
h1 span { color: var(--accent); }
.hero-description { max-width: 385px; font-size: 16px; line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; padding: 16px 23px; min-height: 54px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; background: var(--button); color: var(--button-text); font-size: 13px; font-weight: 600; }
.primary-link > span { font-size: 21px; font-weight: 400; line-height: 1; }
.construction-note { margin-top: 24px; font-size: 11px; line-height: 1.85; color: var(--ink); }
.construction-note > span { color: var(--muted); }
.visual { position: relative; width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 1 / 1.12; isolation: isolate; }
.visual-wash { position: absolute; inset: 13% 0 2% 2%; background: var(--wash); border-radius: 48% 52% 46% 54%; transform: rotate(-13deg); z-index: -2; }
.visual-orbit { position: absolute; inset: 8% -1% 5% 4%; border: 1px solid var(--orbit); border-radius: 50%; transform: rotate(22deg); z-index: -1; }
.main-photo { position: absolute; top: 0; right: 3%; width: 80%; height: 90%; overflow: hidden; border-radius: 46% 46% 8px 8px; transform: rotate(5deg); border: 7px solid var(--paper); box-shadow: 0 18px 44px #142d3c0d; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 56%; }
.detail-photo { position: absolute; left: -1%; bottom: 0; width: 48%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 7px solid var(--paper); transform: rotate(-10deg); box-shadow: 0 12px 34px #142d3c12; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.brand-seal { position: absolute; right: 1%; bottom: 0; width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid var(--orbit); border-radius: 50%; background: var(--seal); transform: rotate(9deg); }
.brand-seal img { width: 54px; height: 54px; }
.next-chapter { border-top: 1px solid var(--line); padding: 38px 0 40px; display: grid; grid-template-columns: 1.03fr 1fr; gap: 48px; align-items: start; scroll-margin-top: 28px; }
.chapter-intro .eyebrow { font-size: 9px; }
h2 { margin: 11px 0 0; font-size: clamp(23px, 2.3vw, 32px); letter-spacing: -.035em; line-height: 1.3; font-weight: 500; }
.chapter-details { padding-top: 10px; }
.chapter-details summary { min-height: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.chapter-details summary::-webkit-details-marker { display: none; }
.expand-symbol { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.expand-symbol::before, .expand-symbol::after { content: ""; position: absolute; background: var(--accent); top: 7px; left: 1px; width: 14px; height: 1px; }
.expand-symbol::after { transform: rotate(90deg); }
.chapter-details[open] .expand-symbol::after { transform: rotate(0); }
.details-content { max-width: 460px; padding-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.details-content p + p { margin-top: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0 26px; color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.site-footer p { text-align: center; }
.site-footer a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; text-decoration: none; }

@media (hover: hover) {
  .theme-toggle:hover { background: var(--wash); }
  .primary-link:hover { transform: translateY(-2px); }
  .primary-link:hover > span { transform: translate(2px, -2px); }
  .site-footer a:hover, .chapter-details summary:hover { color: var(--accent); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: arrive .75s ease-out both; }
  .visual { animation: arrive 1s .12s ease-out both; }
  .primary-link, .primary-link > span, .theme-toggle { transition: transform .25s ease, background-color .2s ease; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 1500px) {
  .hero { padding-top: 55px; padding-bottom: 80px; }
}
@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 80px); }
  .hero, .next-chapter { gap: 32px; }
  .hero { min-height: 590px; padding-top: 30px; }
  h1 { font-size: clamp(52px, 6.3vw, 68px); }
  .hero-description { font-size: 15px; }
  .brand-seal { width: 70px; height: 70px; }
  .brand-seal img { width: 46px; height: 46px; }
}
@media (max-width: 767px) {
  .page-shell { width: calc(100% - 48px); max-width: 560px; }
  .site-header { min-height: 92px; gap: 14px; }
  .brand { width: 174px; }
  .header-actions { gap: 9px; }
  .site-status { max-width: 120px; font-size: 10px; line-height: 1.5; gap: 7px; }
  .theme-toggle { width: 38px; height: 38px; flex-shrink: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 38px; padding: 32px 0 44px; }
  .eyebrow { font-size: 9px; letter-spacing: .16em; }
  h1 { font-size: clamp(48px, 10.7vw, 69px); margin: 22px 0; letter-spacing: -.055em; line-height: 1.04; }
  .hero-description { max-width: 395px; font-size: 15px; line-height: 1.8; }
  .primary-link { margin-top: 24px; }
  .construction-note { margin-top: 20px; }
  .visual { width: 94%; max-width: 420px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
  .main-photo, .detail-photo { border-width: 5px; }
  .visual-orbit { right: 0; }
  .brand-seal { width: 64px; height: 64px; right: 0; }
  .brand-seal img { width: 42px; height: 42px; }
  .next-chapter { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 24px; }
  h2 { font-size: 27px; }
  .chapter-details { padding-top: 0; }
  .site-footer { flex-wrap: wrap; gap: 6px 16px; padding: 20px 0 24px; font-size: 10px; }
  .site-footer p { order: 3; width: 100%; text-align: left; line-height: 1.7; }
  .site-footer a { margin-left: auto; }
}
@media (max-width: 379px) {
  .page-shell { width: calc(100% - 36px); }
  .brand { width: 148px; }
  .site-status { max-width: 86px; font-size: 9px; }
  .header-actions { gap: 7px; }
  .theme-toggle { width: 34px; height: 34px; }
  .site-header { gap: 9px; }
  h1 { font-size: 46px; }
  .hero { padding-top: 24px; }
  .primary-link { width: 100%; }
}
