:root {
  color-scheme: dark;
  --background: #191c19;
  --text: #eeefe7;
  --muted: #a4aaa0;
  --accent: #d7f479;
  --line: #3a4037;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
::selection { background: var(--accent); color: var(--background); }
p, h1, h2 { margin: 0; }
.page-shell { width: min(1380px, calc(100% - 120px)); margin: auto; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 108px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 28px; font-weight: 700; letter-spacing: -1.6px; }
.wordmark span { color: var(--accent); }
.header-note, .eyebrow, .edition, .footer { font-family: 'Courier New', Courier, monospace; font-size: 12px; letter-spacing: 1px; line-height: 1.6; }
.header-note { color: var(--muted); }
.github-link { font-size: 14px; display: inline-flex; align-items: center; gap: 16px; }
.github-link span { font-size: 20px; color: var(--accent); }
.github-link:hover { color: var(--accent); }
.intro { padding: 49px 0 63px; }
.intro-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.intro-topline .eyebrow { color: var(--accent); }
.edition { color: var(--muted); }
.name-layout { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 32px; padding: 57px 0 51px; }
.hello { color: var(--muted); font-size: 18px; margin-bottom: 12px; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(70px, 9.5vw, 146px); font-weight: 400; letter-spacing: -.065em; line-height: .99; }
h1 span { color: var(--accent); }
.index-mark { width: 176px; height: 176px; border: 1px solid var(--line); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(-12deg); }
.index-mark>span { font-family: Georgia, 'Times New Roman', serif; font-size: 61px; letter-spacing: -8px; padding-right: 8px; }
.index-mark small { font-family: monospace; font-size: 20px; color: var(--accent); margin-top: 4px; }
.intro-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-top: 37px; border-top: 1px solid var(--line); }
.title-block .eyebrow { color: var(--muted); margin-bottom: 15px; font-size: 11px; }
.title-block h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(29px, 3.2vw, 46px); line-height: 1.2; font-weight: 400; letter-spacing: -1px; }
.title-block em { color: var(--accent); font-weight: 400; }
.intro-copy { padding-top: 4px; max-width: 410px; }
.intro-copy>p { font-size: 18px; line-height: 1.65; }
.intro-copy .aside { color: var(--muted); font-size: 14px; margin-top: 12px; }
.code-link { display: inline-flex; gap: 33px; align-items: center; margin-top: 23px; padding: 13px 19px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; transition: background .15s, color .15s; }
.code-link span { font-size: 21px; line-height: 1; }
.code-link:hover { color: var(--background); background: var(--accent); }
.next-chapter { display: flex; align-items: center; justify-content: space-between; gap: 35px; background: #242a22; border: 1px solid var(--line); padding: 27px 30px; }
.chapter-label { display: flex; align-items: center; gap: 25px; }
.chapter-symbol { color: var(--accent); font-size: 47px; line-height: 1; }
.chapter-label .eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.chapter-label h2 { font-size: 20px; font-weight: 400; letter-spacing: -.5px; }
.next-chapter>p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 0; color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.footer p { display: flex; gap: 13px; flex-wrap: wrap; }
.footer p span { color: var(--accent); }
.footer-note { color: var(--text); }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--accent); color: var(--background); padding: 12px 18px; z-index: 10; }
.skip-link:focus { top: 15px; }
@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 80px); }
  .name-layout { grid-template-columns: 1fr 130px; gap: 20px; }
  .index-mark { width: 125px; height: 125px; }
  .index-mark>span { font-size: 46px; letter-spacing: -5px; }
  .index-mark small { font-size: 16px; }
  .intro-bottom { gap: 45px; }
  .edition { font-size: 10px; }
  .footer-note { display: none; }
}
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 48px); }
  .header { min-height: 85px; }
  .header-note, .edition { display: none; }
  .intro { padding: 32px 0 40px; }
  .intro-topline .eyebrow { font-size: 10px; letter-spacing: .7px; }
  .name-layout { display: block; position: relative; padding: 40px 0; }
  h1 { font-size: clamp(51px, 12.5vw, 95px); }
  .hello { font-size: 16px; }
  .index-mark { position: absolute; right: 0; top: 32px; width: 65px; height: 65px; }
  .index-mark>span { font-size: 26px; letter-spacing: -3px; padding-right: 3px; }
  .index-mark small { font-size: 11px; margin-top: 0; }
  .intro-bottom { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .title-block h2 { font-size: 35px; }
  .title-block .eyebrow { font-size: 10px; }
  .intro-copy { max-width: 500px; }
  .intro-copy>p { font-size: 17px; }
  .next-chapter { align-items: flex-start; flex-direction: column; padding: 23px; gap: 20px; }
  .chapter-label { gap: 17px; }
  .chapter-label h2 { font-size: 19px; }
  .chapter-symbol { font-size: 37px; }
  .next-chapter>p { font-size: 14px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 26px; }
}
@media (max-width: 360px) {
  .page-shell { width: calc(100% - 32px); }
  h1 { font-size: 12.5vw; }
  .intro-topline .eyebrow { max-width: 230px; }
  .index-mark { top: 20px; width: 55px; height: 55px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
