:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --ink: #151716;
  --muted: #5b625c;
  --line: #d5d9d2;
  --lime: #c4ef56;
  --lime-ink: #334609;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover { color: var(--lime-ink); }

a:focus-visible {
  outline: 3px solid var(--lime-ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 650;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 48px, 1200px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark,
.footer-mark {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 1;
  text-decoration: none;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.main-nav a,
.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--lime-ink);
}

.page-content {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding: clamp(66px, 11vw, 136px) 0 clamp(88px, 12vw, 144px);
}

.page-hero {
  max-width: 820px;
  margin-bottom: clamp(58px, 9vw, 108px);
}

.eyebrow,
.row-index {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 7.2vw, 5.1rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.2;
  text-wrap: balance;
}

.intro {
  max-width: 690px;
  margin: 28px 0 0;
  color: #343a35;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.subtle-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

.info-sections { border-top: 1px solid var(--line); }

.info-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.65fr);
  gap: clamp(22px, 6vw, 76px);
  padding: clamp(30px, 5vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.info-row > .row-index { margin: 7px 0 0; }

.row-copy { min-width: 0; }

.row-copy h2,
.info-row > h2 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.row-copy p,
.info-row > p:not(.row-index) {
  margin: 0;
  color: #414842;
  font-size: 0.98rem;
  line-height: 1.95;
  text-wrap: pretty;
}

.inline-link,
.text-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--lime-ink);
  text-decoration-thickness: 1px;
}

.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.license-list { margin: 0; }

.license-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.75fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.license-row:first-child { border-top: 1px solid var(--line); }

.license-row dt { font-weight: 650; }

.license-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 8vw, 104px);
  align-items: center;
  padding: clamp(30px, 6vw, 62px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.author-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: clamp(76px, 12vw, 112px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.author-identity .eyebrow { margin-bottom: 7px; }

.author-identity h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.author-handle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-copy p {
  max-width: 460px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.author-copy .text-link { margin-top: 12px; }

.info-row.about-note {
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.65fr);
  margin-top: 28px;
  border-bottom: 0;
}

.site-footer {
  width: min(100% - 48px, 1200px);
  min-height: 100px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.footer-mark { font-size: 1.15rem; }

.footer-nav { gap: clamp(12px, 2.5vw, 26px); }

.footer-nav a { font-size: 0.8rem; }

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.narrow-break { display: none; }

@media (max-width: 680px) {
  .header-inner,
  .site-footer { width: min(100% - 36px, 1200px); }

  .header-inner { min-height: 68px; gap: 16px; }

  .main-nav { gap: clamp(12px, 4vw, 24px); }

  .main-nav a { font-size: 0.82rem; }

  .page-content { width: min(100% - 40px, 1040px); }

  .info-row,
  .info-row.about-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-row > .row-index { margin-top: 0; }

  .author-section { grid-template-columns: 1fr; gap: 24px; }

  .site-footer { flex-wrap: wrap; }

  .footer-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 clamp(16px, 4vw, 28px); }

  .copyright { margin-left: auto; }
}

@media (max-width: 390px) {
  .header-inner,
  .site-footer { width: calc(100% - 32px); }

  .page-content { width: calc(100% - 36px); }

  .wordmark { font-size: 1.28rem; }

  .main-nav { gap: 11px; }

  .main-nav a { font-size: 0.78rem; }

  .license-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; letter-spacing: -.065em; }
.concepts { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 0 0 80px; }
.concepts > div { min-width: 0; }
.concepts h2 { font-size: 22px; letter-spacing: -.04em; margin: 18px 0 12px; }
.concepts p { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 30em; }
.concept-symbol { display: block; width: 80px; height: 80px; color: #536a39; }
.depth-symbol { border-radius: 16px; background: linear-gradient(135deg,#eff1e9 10%,#a7b391 55%,#34462c); box-shadow: 9px 9px 0 #d9e0cd,18px 18px 0 #e8ece2; margin-bottom: 28px; }
#models, #background { scroll-margin-top: 24px; }
@media(max-width:680px) { .concepts { grid-template-columns: 1fr; gap: 34px; margin-bottom: 48px; } .page-hero { margin-bottom: 48px; } .wordmark { font-size: 24px; } }

.technical-details { margin-bottom: 42px; max-width: 760px; color: var(--muted); font-size: 14px; }
.technical-details summary { display: flex; align-items: center; gap: 16px; min-height: 48px; cursor: pointer; color: var(--ink); }
.technical-details summary::after { content: '+'; }
.technical-details[open] summary::after { content: '−'; }
.technical-details p { line-height: 1.9; }
summary:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 4px; }
