@font-face {
  font-family: Newsreader;
  src: url('assets/fonts/Newsreader.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #fff;
  --ink: #111827;
  --orange: #ff9030;
  --muted: #586058;
  --line: #dedfd9;
  --serif: Newsreader, Georgia, serif;
  --sans: 'Google Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: #ff903033; }
button { cursor: var(--cursor-hand, pointer); }
a { color: inherit; text-underline-offset: 6px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7e2d10; outline-offset: 6px; }
::selection { background: var(--orange); color: var(--ink); }
[hidden] { display: none !important; }
/* Shared cursor roles keep native controls and their children consistent. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --cursor-default: url('assets/asterisk-cursor.svg?v=2') 12 12, auto;
    --cursor-hand: url('assets/hand-cursor.svg?v=2') 10 2, pointer;
    --cursor-text: url('assets/text-cursor.svg?v=2') 12 12, text;
  }
  body { cursor: var(--cursor-default); }
  a, button, summary, label[for] { cursor: var(--cursor-hand, pointer); }
  p, h1, h2, h3, li, output, small, .preview-content { cursor: var(--cursor-text, text); }
  input, textarea, [contenteditable='true'] { cursor: auto; }
  input:not([type]), input[type='text'], input[type='email'], input[type='search'], input[type='url'], input[type='tel'], input[type='password'], input[type='number'], textarea, [contenteditable='true'] { cursor: var(--cursor-text, text); }
  :where(a, button, summary, label[for]) * { cursor: inherit; }
}
@media (forced-colors: active) {
  :root { --cursor-default: auto; --cursor-hand: pointer; --cursor-text: text; }
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; padding: 24px 5%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; width: 76px; height: 76px; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a { position: relative; display: grid; place-items: center; width: 104px; height: 48px; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .16s ease-out; }
.nav-paper { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: filter .16s ease-out; }
.site-header nav a span { position: relative; padding-inline: 10px; }
.site-header nav a:focus-visible { transform: translate(-3px, -3px); }
.site-header nav a:focus-visible .nav-paper { filter: drop-shadow(4px 4px 0 var(--orange)); }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { transform: translate(-3px, -3px); }
  .site-header nav a:hover .nav-paper { filter: drop-shadow(4px 4px 0 var(--orange)); }
}
.site-header nav a:active { transform: translate(0, 0); }
.site-header nav a:active .nav-paper { filter: drop-shadow(1px 1px 0 var(--orange)); }
.hero { --hero-frame-min: 580px; position: relative; z-index: 1; height: calc(max(100svh, var(--hero-frame-min)) + 160vh); min-height: 650px; pointer-events: none; }
.hero-inner { height: 100svh; min-height: 580px; position: sticky; top: 0; display: flex; align-items: center; justify-content: center; padding: 115px 3% 125px; background: #fff; opacity: var(--hero-frame-opacity, 1); }
.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62vw, 720px);
  height: min(36svh, 320px);
  background-image: linear-gradient(#ddd7c9 1px, transparent 1px), linear-gradient(90deg, #ddd7c9 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at top right, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 8%, transparent 72%);
  pointer-events: none;
}
.hero-grid-mirrored { top: auto; right: auto; bottom: 0; left: 0; transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .hero-grid::before {
    content: '';
    position: absolute;
    left: var(--grid-cell-x, 0px);
    top: var(--grid-cell-y, 0px);
    width: 27px;
    height: 27px;
    background: var(--orange);
    opacity: 0;
    transition: opacity .18s ease-out;
  }
  .hero-grid.cell-active::before { opacity: 1; transition: none; }
}
.hero-color-field { display: none; position: absolute; inset: 0; background: var(--orange); pointer-events: none; }
.enhanced .hero-color-field { display: block; opacity: var(--hero-field-opacity, 0); clip-path: inset(var(--hero-field-inset, 50%)); }
.hero h1, .hero .scroll-invitation { position: relative; z-index: 1; opacity: var(--hero-text-opacity, 1); }
.hero .scroll-invitation { position: absolute; pointer-events: auto; opacity: var(--hero-link-opacity, 1); }
.hero h1 { pointer-events: auto; transform: scale(var(--hero-title-scale, 1)); transform-origin: center; }
.hero.is-handed-off h1, .hero.is-handed-off .scroll-invitation { pointer-events: none; }
.enhanced .hero + .context-screen { margin-top: calc(-1 * var(--opening-frame-height, 100svh)); }
html:not(.enhanced) .hero { height: max(100svh, 580px); }
h1 {
  max-width: 1300px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 4.3vw, 66px);
  line-height: .98;
  letter-spacing: -.065em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.hero-line { display: block; text-wrap: wrap; }
.hero-line:first-of-type { font-size: .72em; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.hero-line + .hero-line { margin-top: .55em; }
.hero-payday { white-space: nowrap; }
.hero-marker { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }
.marker-ready .hero-marker { display: block; }
.marker-ready .hero-highlight { background: none; }
.hero-highlight {
  color: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ff9030' d='M3 9Q105 5 200 8T397 6L400 51Q285 56 200 53T0 55Z'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
  padding: .07em .12em .03em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.scroll-invitation { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 52px; text-decoration: none; padding: 10px; }
.scroll-invitation svg { width: 15px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .25s ease; }
.scroll-invitation:hover svg { transform: translateY(5px); }
.intro-screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 8% 140px;
}
.context-screen { background: var(--orange); color: var(--ink); }
.enhanced .context-screen { z-index: 2; background: var(--opening-story-background, var(--orange)); clip-path: var(--opening-story-clip, none); }
.enhanced .context-screen > * { opacity: var(--opening-story-opacity, 1); }
.context-screen ::selection { background: var(--ink); color: var(--orange); }
.passage-copy { width: 100%; max-width: 1280px; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); grid-template-areas: 'school drawing' 'adult drawing'; column-gap: 6%; row-gap: 32px; align-items: center; }
.school-copy { grid-area: school; }
.adult-copy { grid-area: adult; }
.passage-copy p { font-size: clamp(20px, 1.65vw, 26px); line-height: 1.6; letter-spacing: -.005em; text-wrap: pretty; }
.adult-copy > h2 {
  margin: 0 0 25px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.story-drawing-stage { grid-area: drawing; min-width: 0; }
.story-figure { width: 100%; margin: 0; }
.story-diagram { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.story-shape { transform: translate(260px, 130px) scale(.48); }
.school-notations { opacity: 0; }
.enhanced .story-static-school { display: none; }
.enhanced .story-shape { transform: none; }
.enhanced .school-notations { opacity: var(--school-opacity, 1); }
.enhanced .adult-notations { opacity: 1; }
.enhanced .house-wall { stroke-dasharray: 1; stroke-dashoffset: var(--wall-offset, 1); }
.enhanced .home-details { opacity: var(--home-opacity, 0); }
.enhanced .house-windows { opacity: var(--window-opacity, 0); }
.enhanced .house-door { opacity: var(--door-opacity, 0); }
.enhanced .roof-texture { opacity: var(--roof-opacity, 0); }
.enhanced .loan-document { opacity: var(--loan-opacity, 0); }
.has-scroll-story { display: block; padding: 0; min-height: calc(var(--story-frame-height, 100svh) + 100vh); }
.has-scroll-story .story-layout { position: sticky; top: var(--story-pin-top, 0px); min-height: 100svh; max-width: none; padding: 80px max(8%, calc((100% - 1280px) / 2)) 140px; }
.story-figure.is-static .story-static-school { display: inline; }
.story-figure.is-static .story-shape { transform: translate(260px, 130px) scale(.48); }
.story-figure.is-static .school-notations { opacity: 0; }
.story-figure.is-static .adult-notations, .story-figure.is-static .home-details, .story-figure.is-static .roof-texture, .story-figure.is-static .loan-document { opacity: 1; }
.story-figure.is-static .house-wall { stroke-dashoffset: 0; }
.story-figure.is-static .house-windows, .story-figure.is-static .house-door { opacity: 1; }
.welcome-screen { background: #fff; }
.editorial-journey { position: relative; }
.welcome-connector { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; z-index: 2; pointer-events: none; color: var(--ink); }
.welcome-period { color: var(--orange); }
.connector-period { fill: var(--orange); }
.connector-line { fill: none; stroke: none; }
.connector-ribbon { fill: var(--orange); opacity: var(--connector-visible, 0); }
.connector-reveal { fill: none; stroke: white; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: var(--connector-dash, 0 2); stroke-dashoffset: var(--connector-offset, 0); }
.bridge-ready .welcome-connector { display: block; }
.bridge-ready .welcome-period { color: transparent; }
.bridge-ready .featured-underline { border-bottom-color: transparent; }
.welcome-screen > h2 {
  max-width: 920px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
}
footer { display: flex; gap: 16px 28px; align-items: center; padding: 28px 5%; border-top: 1px solid var(--line); font-size: 12px; }
footer > p { color: var(--muted); }
footer > small { margin-left: auto; color: var(--muted); font-size: inherit; }
.noscript-note { padding: 25px 8%; }
@media (max-width: 900px) {
  .story-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'school' 'drawing' 'adult'; row-gap: 28px; max-width: 620px; }
  .story-drawing-stage { width: 100%; max-width: 390px; justify-self: center; }
  .has-scroll-story { padding: 80px 8% 140px; min-height: 100svh; }
  .has-scroll-story .story-layout { position: static; padding: 0; min-height: 0; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 700px) {
  .site-header { padding: 17px 6%; }
  .brand { width: 62px; height: 62px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { width: 92px; height: 44px; font-size: 12px; }
  .hero { --hero-frame-min: 540px; min-height: 570px; }
  .hero-inner { padding: 100px 6% 110px; min-height: 540px; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 46px); }
  .hero-line:first-of-type { font-size: max(22px, .72em); }
  .scroll-invitation { bottom: 30px; }
  .intro-screen { padding: 65px 7% 120px; }
  .adult-copy > h2 { margin: 0 0 25px; }
  footer { flex-wrap: wrap; padding: 25px 6%; gap: 10px 25px; }
  footer > small { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-marker > svg { width: var(--marker-full-width); }
  .hero h1 { transform: none; }
  .hero { height: 100svh; }
  .hero-inner { position: relative; }
  .enhanced .hero + .context-screen { margin-top: 0; }
  .enhanced .context-screen { background: var(--orange); clip-path: none; }
  .enhanced .context-screen > * { opacity: 1; }
  .hero-inner, .hero h1, .hero .scroll-invitation { opacity: 1; }
  .enhanced .hero-color-field { display: none; }
  .enhanced .story-static-school { display: inline; }
  .enhanced .story-shape { transform: translate(260px, 130px) scale(.48); }
  .enhanced .school-notations { opacity: 0; }
  .enhanced .adult-notations, .enhanced .home-details, .enhanced .roof-texture, .enhanced .loan-document { opacity: 1; }
  .enhanced .house-wall { stroke-dashoffset: 0; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Start the story beneath the expansion and let native sticky positioning
   hold it through the reveal. No scroll-event position correction is needed. */
@media (prefers-reduced-motion: no-preference) {
  .enhanced .hero + .context-screen { margin-top: calc(-1 * var(--opening-frame-height, 100svh) - 62vh); }
  .enhanced .context-screen { display: block; padding: 0; min-height: calc(var(--story-frame-height, 100svh) + 62vh); scroll-margin-top: -62vh; }
  .enhanced .context-screen.has-scroll-story { min-height: calc(var(--story-frame-height, 100svh) + 222vh); }
  .enhanced .context-screen .story-layout { position: sticky; top: var(--story-pin-top, 0px); min-height: 100svh; max-width: none; padding: 80px max(8%, calc((100% - 1280px) / 2)) 140px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .enhanced .context-screen .story-layout { top: 0; min-height: 0; max-width: calc(620px + 16vw); margin-inline: auto; padding: 80px 8% 140px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .enhanced .context-screen .story-layout { max-width: calc(620px + 14vw); padding: 65px 7% 120px; }
}

/* The homepage offers three reading invitations; the library holds the series. */
.featured-section { max-width: 1400px; margin-inline: auto; padding: 90px 8% 110px; }
.featured-section h2, .author-section h2 { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 58px); font-weight: 450; line-height: 1.1; letter-spacing: -.025em; }
.featured-underline { display: inline-block; padding-bottom: 16px; border-bottom: 3px solid var(--orange); }
.featured-intro { max-width: 48ch; color: var(--muted); font-size: 14px; margin-top: 22px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 48px; }
.article-art { width: 100%; height: auto; display: block; margin-bottom: 28px; }
.featured-article h3 { font-family: var(--serif); font-size: clamp(27px, 2.6vw, 36px); font-weight: 450; line-height: 1.12; letter-spacing: -.02em; max-width: 19ch; }
.featured-article p { font-size: 15px; line-height: 1.7; margin-top: 18px; max-width: 36ch; }
.library-invitation { margin-top: 64px; display: flex; justify-content: center; }
.paper-button { position: relative; display: grid; place-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; transition: transform .16s ease-out; }
.paper-button > span { position: relative; padding: 18px 28px; text-align: center; line-height: 1.4; }
.library-button { width: min(100%, 440px); min-height: 64px; }
.library-button::before, .library-button::after { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.library-button::before { background: var(--ink); }
.library-button::after { inset: 2px; background: white; clip-path: polygon(0 0, calc(100% - 14px) 0, calc(100% - 14px) 14px, 100% 14px, 100% 100%, 0 100%); }
.library-button > span { z-index: 1; }
.paper-button:focus-visible { transform: translate(-3px, -3px); filter: drop-shadow(4px 4px 0 var(--orange)); }
@media (hover: hover) and (pointer: fine) {
  .paper-button:hover { transform: translate(-3px, -3px); filter: drop-shadow(4px 4px 0 var(--orange)); }
}
.paper-button:active { transform: none; filter: drop-shadow(1px 1px 0 var(--orange)); }
.author-section { max-width: 1400px; margin: auto; padding: 90px 8% 110px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.55fr; gap: 9%; align-items: start; }
.author-asterisk { color: var(--orange); }
.author-note { margin-top: 14px; font-size: 13px; line-height: 1.65; max-width: 44ch; }
.author-photo { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 28px; }
.author-copy { max-width: 65ch; font-size: 17px; }
.author-copy p + p { margin-top: 24px; }
.author-story { margin-top: 30px; }
.author-story summary { cursor: var(--cursor-hand, pointer); width: fit-content; padding-block: 10px; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 7px; }
.author-story-copy { margin-top: 28px; }
.library-page .site-header { position: relative; }
.library-main { max-width: 1240px; padding: 80px 7% 100px; margin: auto; }
.library-title { font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 450; line-height: 1; text-transform: none; text-align: left; letter-spacing: -.03em; max-width: 12ch; }
.library-intro { max-width: 54ch; margin-top: 28px; font-size: 18px; }
.library-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 64ch; }
.library-series { margin-top: 70px; }
.library-series > section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8%; padding-block: 42px; border-top: 1px solid var(--line); }
.library-series h2 { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 42px); font-weight: 450; line-height: 1.1; letter-spacing: -.02em; }
.library-series p { max-width: 52ch; }
.library-topics { margin-top: 18px; padding-left: 20px; font-size: 15px; }
.library-topics li + li { margin-top: 7px; }
@media (max-width: 700px) {
  .featured-section { padding: 64px 7% 72px; }
  .featured-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 34px; }
  .featured-article { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .article-art { grid-column: 1; grid-row: 1 / 3; margin: 0; width: 100%; }
  .featured-article h3 { font-size: 29px; }
  .featured-article p { grid-column: 2; margin-top: 12px; font-size: 14px; }
  .library-invitation { margin-top: 46px; }
  .author-section { padding: 60px 7% 72px; grid-template-columns: 1fr; gap: 28px; }
  .author-copy { font-size: 16px; }
  .library-main { padding-top: 45px; }
  .library-series > section { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-ready .welcome-connector { display: none; }
  .bridge-ready .welcome-period { color: var(--orange); }
  .bridge-ready .featured-underline { border-bottom-color: var(--orange); }
  .paper-button { transition: none; }
  .paper-button:hover, .paper-button:focus-visible, .paper-button:active { transform: none; }
}

.featured-article-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.featured-article-link:hover { color: #78459c; }
.featured-article-link:focus-visible { outline: 3px solid #78459c; outline-offset: 6px; }
