@font-face {
  font-family:Inter;
  src:url('/assets/brand/Inter-Regular.ttf') format('truetype');
  font-style:normal;
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Inter;
  src:url('/assets/brand/Inter-Medium.ttf') format('truetype');
  font-style:normal;
  font-weight:500 700;
  font-display:swap
}
@font-face {
  font-family:'Liberation Serif';
  src:url('/assets/brand/LiberationSerif-Regular.ttf') format('truetype');
  font-style:normal;
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:'Liberation Serif';
  src:url('/assets/brand/LiberationSerif-Italic.ttf') format('truetype');
  font-style:italic;
  font-weight:400;
  font-display:swap
}
:root {
  font-family:Inter,system-ui,sans-serif;
  color:#1f1e1c;
  background:#f0f0f1;
  font-size:100%;
  line-height:1.6;
  --canvas:#f0f0f1;
  --ink:#1f1e1c;
  --secondary:#6b6862;
  --sage:#b4c2b3;
  --accent:#4f6351;
  --gold:#c6a866;
  --rule:#d9d6ce;
  --header:5.5rem;
  --gutter:clamp(1.25rem,4.4vw,5rem)
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
img {
  display:block;
  max-width:100%
}
a {
  color:inherit;
  text-underline-offset:.22em
}
button,a {
  -webkit-tap-highlight-color:rgba(79,99,81,.2)
}
a:hover {
  color:var(--accent)
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px
}
::selection {
  background:var(--sage);
  color:var(--ink)
}
h1,h2,h3,p,figure {
  margin:0
}
h1,h2 {
  overflow-wrap:anywhere;
  font-family:'Liberation Serif',Georgia,serif;
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.04;
  text-wrap:balance
}
h1 {
  font-size:clamp(3.5rem,6.8vw,6.75rem)
}
h2 {
  font-size:clamp(2.75rem,4.1vw,4.5rem)
}
h1 em {
  font-weight:400;
  color:var(--accent)
}
p {
  max-width:43ch
}
strong {
  font-weight:500
}
section {
  scroll-margin-top:calc(var(--header-height,var(--header)) + 1rem)
}
.skip-link {
  position:fixed;
  top:-100px;
  left:1rem;
  background:var(--ink);
  color:white;
  padding:.75rem 1rem;
  z-index:100
}
.skip-link:focus {
  top:.5rem;
  color:white
}
.site-header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(240,240,241,.94);
  border-bottom:1px solid rgba(130,125,114,.18)
}
@supports (backdrop-filter:blur(16px)) {
  .site-header {
    background:rgba(240,240,241,.85);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px)
  }
}
.nav-wrap {
  flex-wrap:wrap;
  max-width:1440px;
  margin:auto;
  min-height:var(--header);
  padding:.8rem var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem
}
.brand {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  flex-shrink:0
}
.brand img {
  width:110px;
  height:auto
}
nav {
  display:flex;
  flex-wrap:wrap;
  gap:clamp(1rem,3vw,2.5rem)
}
nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:.875rem;
  text-decoration:none
}
nav a[aria-current] {
  text-decoration:underline
}
nav a:hover {
  text-decoration:underline
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.875rem;
  line-height:1.5;
  font-weight:500;
  color:var(--accent);
  margin-bottom:1.5rem
}
.lede {
  font-size:1.125rem;
  line-height:1.7;
  color:var(--secondary)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:.8rem 1.5rem;
  background:var(--ink);
  color:var(--canvas);
  text-decoration:none;
  font-size:.9375rem;
  font-weight:500;
  border:1px solid var(--ink);
  border-radius:3px
}
.button:hover {
  background:var(--accent);
  color:var(--canvas);
  border-color:var(--accent)
}
.button:active {
  transform:translateY(1px)
}
.beta-status,.aside-note {
  font-size:.875rem;
  color:var(--secondary);
  line-height:1.65
}
.beta-status {
  margin-top:1.25rem
}
.story {
  max-width:1440px;
  padding:0 var(--gutter);
  margin:auto
}
.chapter {
  padding:4.5rem 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:4rem;
  border-bottom:1px solid var(--rule)
}
.chapter-copy {
  max-width:33rem
}
.chapter-copy>p:not(.eyebrow):not(.beta-status) {
  margin-top:1.25rem
}
.chapter-copy>p:not(.eyebrow):not(.aside-note):not(.beta-status) {
  font-size:1.0625rem;
  color:var(--secondary)
}
.chapter-copy .button {
  margin-top:2rem
}
.hero {
  padding-top:3.5rem
}
.hero h1 {
  font-size:clamp(3.5rem,6.2vw,6.25rem)
}
.hero .chapter-copy>p.lede {
  max-width:35ch
}
.phone-stage {
  display:none
}
.chapter-figure {
  margin:0 auto;
  text-align:center;
  width:min(100%,310px)
}
.device {
  position:relative;
  padding:7px;
  background:#252524;
  border:1px solid #868581;
  border-radius:14% / 6.5%;
  box-shadow:0 30px 50px -25px rgba(31,30,28,.45),0 5px 12px rgba(31,30,28,.16),inset 0 0 0 2px #555552;
  isolation:isolate
}
.device::before {
  content:'';
  position:absolute;
  left:-3px;
  top:20%;
  height:12%;
  width:2px;
  background:#6b6b68;
  border-radius:1px;
  z-index:-1
}
.device::after {
  content:'';
  position:absolute;
  right:-3px;
  top:26%;
  height:9%;
  width:2px;
  background:#6b6b68;
  border-radius:1px;
  z-index:-1
}
.app-screen {
  width:100%;
  height:auto;
  aspect-ratio:1206/2622;
  object-fit:contain;
  border-radius:12% / 5.5%;
  background:var(--canvas);
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none
}
.device-island {
  position:absolute;
  top:3%;
  left:36%;
  width:28%;
  height:3.4%;
  border-radius:100px;
  background:#141413;
  pointer-events:none
}
figcaption,.device-caption {
  text-align:center;
  color:var(--secondary);
  font-size:.8125rem;
  line-height:1.5;
  margin:1.6rem auto 0;
  letter-spacing:.02em
}
.feedback-key {
  list-style:none;
  padding:0;
  margin:1.5rem 0 0;
  display:grid;
  gap:.85rem
}
.feedback-key li {
  display:flex;
  align-items:center;
  gap:1rem;
  font-size:.9375rem;
  line-height:1.6;
  color:var(--secondary)
}
.feedback-key strong {
  color:var(--ink)
}
.mark {
  width:2.25rem;
  height:2.25rem;
  border-radius:50%;
  flex-shrink:0
}
.mark.exact {
  background:var(--sage)
}
.mark.elsewhere {
  border:2px solid #9b7629;
  background:transparent
}
.mark.absent {
  background:var(--rule);
  border:1px solid #827d72
}
.streak-copy {
  padding-left:1.25rem;
  border-left:2px solid var(--gold)
}
/* JS measures the real header, text, and available small viewport before enabling
   either composition. Static semantic chapters remain the failure/zoom fallback. */
.story { position:relative; overflow-anchor:none; }
.viewport-probe { position:absolute; height:100svh; width:0; visibility:hidden; pointer-events:none; }
.story.is-pinned {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:clamp(1.5rem,4vw,4rem);
  overflow-anchor:none;
}
.is-pinned .chapters { grid-area:1 / 1; min-width:0; }
.is-pinned .chapter {
  display:flex;
  min-height:calc(var(--stage-height) * .8);
  padding:2.5rem 0;
  border:0;
}
.is-pinned .chapter:first-child,.is-pinned .chapter:last-child { min-height:var(--stage-height); }
.is-pinned .chapter-figure { display:none; }
.is-pinned .phone-stage {
  display:flex;
  flex-direction:column;
  grid-area:1 / 2;
  position:sticky;
  align-self:start;
  top:var(--header-height,var(--header));
  height:var(--stage-height);
  align-items:center;
  justify-content:center;
  gap:1.25rem;
  padding:1.25rem 0;
  perspective:1400px;
  pointer-events:none;
}
.phone-rest {
  width:var(--phone-width,310px);
  max-width:100%;
  flex-shrink:0;
  transform:translate3d(var(--phone-x,0px),var(--phone-y,0px),0) rotateY(var(--phone-ry,0deg)) rotateZ(var(--phone-rz,0deg));
  transform-origin:center;
}
.floating-device .app-screen { position:relative; }
.floating-device .screen-overlay {
  position:absolute;
  inset:7px;
  width:calc(100% - 14px);
  height:auto;
  visibility:hidden;
}
.floating-device .screen-overlay.visible { visibility:visible; }
.device-caption { font-size:.75rem; margin:0; }
.load-status { display:block; min-height:1.5em; }
.mobile-captions { display:none; }
.static-disclosure { text-align:center; max-width:none; margin:1.5rem auto 3rem; font-size:.8125rem; color:var(--secondary); }
.is-pinned + .static-disclosure { display:none; }
.story.is-pinned.is-stacked { grid-template-columns:minmax(0,1fr); gap:0; }
.is-stacked .phone-stage { grid-area:1 / 1; z-index:2; gap:10px; padding:10px 0; }
.is-stacked .chapter { min-height:calc(var(--stage-height) * .72); padding:0; }
.is-stacked .chapter:first-child,.is-stacked .chapter:last-child { min-height:var(--stage-height); }
/* The original chapter text remains in reading order for assistive technology.
   The compact visual captions duplicate no focusable controls. */
.is-stacked .chapter-copy {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.is-stacked .chapter-copy .button { display:none; }
.is-stacked .mobile-captions {
  display:grid;
  width:100%;
  text-align:center;
  flex-shrink:0;
}
.mobile-caption {
  grid-area:1 / 1;
  visibility:hidden;
  max-width:28rem;
  justify-self:center;
}
.mobile-caption.current { visibility:visible; }
.mobile-caption .caption-title {
  font-family:'Liberation Serif',Georgia,serif;
  font-size:1.75rem;
  line-height:1.05;
  letter-spacing:-.035em;
  margin-bottom:.4rem;
  color:var(--ink);
  text-wrap:balance;
}
.mobile-caption:first-child .caption-title { font-size:2rem; }
.mobile-caption .mobile-beta { font-size:.75rem; margin-top:.4rem; display:flex; flex-wrap:wrap; justify-content:center; gap:.25rem .75rem; max-width:none; }
.mobile-caption p { font-size:.875rem; line-height:1.45; color:var(--secondary); max-width:38ch; }
.is-stacked .phone-rest { transform:none; }
.heading-detail { margin-top:1rem; color:var(--secondary); font-size:.9375rem; }
.heading-detail a { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); }
.preview-unavailable { font-size:.875rem; padding:2rem 1rem; text-align:center; color:var(--secondary); }
.tablet-section {
  padding:6rem var(--gutter) 5rem;
  max-width:1440px;
  margin:auto;
  border-top:1px solid var(--rule)
}
.tablet-heading {
  text-align:center;
  max-width:48rem;
  margin:0 auto 3.5rem
}
.tablet-heading p {
  margin:1.5rem auto 0;
  color:var(--secondary);
  font-size:1.0625rem
}
.tablet-heading .eyebrow {
  margin:0 auto 1.5rem;
  color:var(--accent);
  font-size:.875rem
}
.tablet-section figure {
  max-width:1050px;
  margin:auto
}
.tablet-device {
  padding:12px;
  border:1px solid #777772;
  background:#252524;
  border-radius:26px;
  box-shadow:0 25px 55px -30px #1f1e1c66
}
.tablet-device img {
  border-radius:15px;
  width:100%;
  height:auto;
  object-fit:contain;
  aspect-ratio:2360/1640;
  pointer-events:none
}
.site-footer {
  border-top:1px solid var(--rule);
  padding:3rem var(--gutter) 2rem;
  max-width:1440px;
  margin:0 auto
}
.footer-top,.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:2rem
}
.footer-top p {
  color:var(--accent);
  font-size:.875rem
}
.footer-bottom {
  margin-top:2rem
}
.footer-bottom>p {
  font-size:.875rem;
  color:var(--secondary)
}
.preview-note {
  font-size:.8125rem;
  color:var(--secondary);
  margin-top:2rem;
  max-width:none
}
.document {
  max-width:1280px;
  margin:auto;
  padding:5rem var(--gutter) 6rem
}
.document-heading {
  max-width:760px;
  padding-bottom:4rem;
  border-bottom:1px solid var(--rule)
}
.document-heading h1 {
  font-size:clamp(3.5rem,6.8vw,6rem)
}
.document-heading .lede {
  margin-top:1.5rem;
  max-width:45ch
}
.document-grid {
  display:grid;
  grid-template-columns:210px minmax(0,650px);
  gap:4rem;
  margin-top:3.5rem;
  align-items:start
}
.page-index {
  position:sticky;
  top:calc(var(--header) + 2rem);
  display:flex;
  flex-direction:column;
  gap:.25rem
}
.page-index a {
  min-height:40px
}
.prose {
  min-width:0
}
.prose section+section {
  padding-top:3rem;
  border-top:1px solid var(--rule);
  margin-top:3rem
}
.prose h2 {
  font-size:2.5rem;
  letter-spacing:-.025em
}
.prose p {
  margin-top:1.25rem;
  max-width:none
}
.prose dl {
  margin:1.5rem 0 0
}
.prose dt {
  font-weight:500;
  margin-top:1.25rem
}
.prose dd {
  margin:.25rem 0 0;
  color:var(--secondary)
}
.prose .callout,.draft-notice {
  padding:1.25rem 1.5rem;
  border-left:2px solid var(--gold);
  background:#eae9e6;
  font-size:.9375rem
}
.draft-notice {
  margin-top:2rem;
  max-width:60ch
}
.publication-fields {
  font-size:.9375rem
}
@media(max-width:1100px) {
  .story.is-pinned {
    gap:1rem
  }
  .chapter {
    gap:2rem
  }
  .document-grid {
    gap:2rem;
    grid-template-columns:170px minmax(0,1fr)
  }
}
@media(max-width:959px) {
  :root {
    --header:5rem
  }
  .chapter {
    gap:3rem
  }
  .chapter h1 {
    font-size:clamp(3.2rem,6vw,5.2rem)
  }
  .chapter h2 {
    font-size:clamp(2.75rem,4.5vw,4rem)
  }
  .chapter-figure {
    width:min(100%,285px)
  }
  .footer-bottom {
    align-items:flex-start
  }
  .footer-bottom nav {
    flex-wrap:wrap;
    gap:.5rem 1.5rem
  }
}
@media(max-width:650px) {
  :root {
    --header:4.5rem
  }
  .nav-wrap {
    gap:1rem
  }
  .brand img {
    width:92px
  }
  .site-header nav {
    gap:1.25rem
  }
  .site-header .story-link {
    display:none
  }
  .chapter {
    display:flex;
    flex-direction:column;
    gap:2.5rem;
    padding:3.75rem 0;
    align-items:stretch
  }
  .hero {
    padding-top:3rem
  }
  .chapter h1 {
    font-size:clamp(3.4rem,11vw,4.5rem)
  }
  .chapter h2 {
    font-size:clamp(2.8rem,10vw,3.6rem)
  }
  .chapter-copy {
    max-width:34rem
  }
  .chapter-copy>p:not(.eyebrow):not(.aside-note):not(.beta-status) {
    font-size:1rem
  }
  .chapter-figure {
    width:min(88%,300px)
  }
  .device {
    box-shadow:0 20px 35px -25px rgba(31,30,28,.5),0 4px 10px rgba(31,30,28,.13)
  }
  .tablet-section {
    padding-top:4rem;
    padding-bottom:3.5rem
  }
  .tablet-heading h2 {
    font-size:3rem
  }
  .tablet-heading p {
    font-size:1rem
  }
  .tablet-device {
    padding:7px;
    border-radius:15px
  }
  .tablet-device img {
    border-radius:8px
  }
  .footer-top,.footer-bottom {
    align-items:flex-start;
    flex-direction:column;
    gap:1rem
  }
  .footer-bottom {
    margin-top:1.5rem
  }
  .site-footer nav {
    gap:.25rem 1.25rem;
    flex-wrap:wrap
  }
  .site-footer nav a {
    font-size:.875rem
  }
  .document {
    padding-top:3rem
  }
  .document-heading {
    padding-bottom:2.5rem
  }
  .document-grid {
    display:block;
    margin-top:1.5rem
  }
  .page-index {
    position:static;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:0 1.5rem;
    border-bottom:1px solid var(--rule);
    padding-bottom:1.5rem;
    margin-bottom:2.5rem
  }
  .prose h2 {
    font-size:2.25rem
  }
  .eyebrow {
    margin-bottom:1.25rem
  }
}
@media(max-height:600px) and (min-width:651px) {
  .chapter {
    padding:3rem 0
  }
  .chapter-figure {
    max-width:230px
  }
  .chapter h1 {
    font-size:3.5rem
  }
  .chapter h2 {
    font-size:3rem
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
  .phone-stage {
    display:none!important
  }
  .story.is-pinned {
    display:block!important
  }
  .is-pinned .chapter-figure {
    display:block!important
  }
  .phone-rest {
    transform:none!important
  }
}
@media(prefers-reduced-transparency:reduce) {
  .site-header {
    background:var(--canvas);
    backdrop-filter:none;
    -webkit-backdrop-filter:none
  }
}
@media(prefers-contrast:more) {
  :root {
    --secondary:#3f3d39;
    --rule:#827d72
  }
  .site-header {
    background:var(--canvas)
  }
  .mark.elsewhere {
    border-width:3px
  }
}
@media print {
  .site-header {
    position:static
  }
  .phone-stage {
    display:none!important
  }
  .story.is-pinned {
    display:block
  }
  .is-pinned .chapter-figure {
    display:block
  }
  .chapter {
    break-inside:avoid
  }
  .device {
    box-shadow:none
  }
  .site-footer {
    break-inside:avoid
  }
}
