@font-face {
  font-family: Figtree;
  src: url('assets/fonts/Figtree-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #232520;
  --muted: #55564f;
  --line: #dedbd1;
  --accent: #284737;
  --surface: #fffefa;
  --board: #f1eee6;
  --paper: #faf8f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 Figtree, system-ui, sans-serif;
}
h1, h2, h3, p, blockquote { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .5rem 1rem;
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.header-layout, .footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.header-layout { min-height: 4.7rem; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand img { display: block; object-fit: contain; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .2em; }

.reading-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.7rem, 4.2vw, 3.8rem);
  padding-block: clamp(2.6rem, 6vw, 5.25rem);
}
.hero-title {
  max-width: 13em;
  font-size: clamp(2.4rem, 4.45vw, 3.8rem);
  font-weight: 670;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.lead {
  max-width: 29rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-wrap: pretty;
}
.cta, .example summary {
  background: var(--accent);
  color: white;
  border-radius: .5rem;
  font-weight: 650;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  margin-top: 1.45rem;
  padding: .65rem 1rem;
  text-decoration: none;
}
.cta:hover, .example summary:hover { background: #1e382b; }

.reading-stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--board);
  box-shadow: 0 12px 36px #302b2010;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 1rem 1rem 0 0;
  font-size: .875rem;
}
.board-heading span, .fine { color: var(--muted); }
.fine { font-size: .875rem; }
.board-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 1.25rem clamp(1rem, 3vw, 1.9rem) 1.5rem;
}
.source-sheet, .reading-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.source-sheet {
  justify-self: start;
  width: min(92%, 20rem);
  border-radius: .35rem;
  box-shadow: 0 7px 17px #352d1713;
  transform: rotate(-2deg);
}
.source-sheet strong {
  display: block;
  margin: .45rem 0 .65rem;
  font-size: 1.3rem;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -.025em;
}
.source-sheet p:last-child { font-size: .98rem; line-height: 1.55; }
mark {
  padding-inline: .15em;
  color: var(--ink);
  background: #eee5d3;
  box-decoration-break: clone;
}
.reading-card {
  position: relative;
  justify-self: end;
  width: min(91%, 18.9rem);
  margin-top: .7rem;
  padding: 1.15rem 1.25rem;
  border-radius: .65rem;
  box-shadow: 0 9px 23px #352d181a;
}
.reading-card img {
  position: absolute;
  top: .75rem;
  right: .85rem;
  object-fit: contain;
}
.reading-card b {
  display: block;
  margin: .65rem 0 .6rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.reading-card summary { color: var(--accent); font-weight: 650; cursor: pointer; font-size: .925rem; }
.reading-card details p { margin-top: .55rem; font-size: .9375rem; }

.section-title {
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.demo, .reading-more, .availability, .site-footer { border-top: 1px solid var(--line); }
.demo, .availability { background: var(--surface); }
.demo { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
  align-items: start;
  gap: clamp(1.25rem, 5vw, 4.5rem);
}
.demo-copy p { margin-top: .85rem; max-width: 24rem; color: var(--muted); }
.example {
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .8rem;
}
.example h3 {
  margin: .45rem 0 1.05rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.example blockquote {
  margin-top: .3rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface);
}
.example details { margin-top: .95rem; }
.example summary { width: fit-content; padding: .55rem .85rem; cursor: pointer; }
.feedback {
  margin-top: .8rem;
  padding: .8rem .95rem;
  border-left: 3px solid var(--accent);
  border-radius: .25rem;
  background: var(--surface);
}
.feedback p + p { margin-top: .5rem; }

.reading-more, .availability { padding-block: clamp(2.5rem, 5vw, 4rem); }
.reading-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 1.65rem;
}
.reading-steps h3 { margin-bottom: .4rem; font-size: 1.13rem; }
.reading-steps p, .availability p { color: var(--muted); }
.launch-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
}
.availability p { margin-top: .7rem; max-width: 26rem; }
.faq h3 { margin-bottom: .45rem; font-size: 1.1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: .75rem 0; cursor: pointer; font-weight: 650; }
.faq details p { margin: 0 0 .8rem; }
.site-footer { padding-block: 1rem; }
.site-footer .brand { color: var(--muted); font-size: .875rem; font-weight: 700; }
.privacy-notice { max-width: 34rem; color: var(--muted); font-size: .875rem; }
.footer-layout { align-items: flex-start; }
.privacy-notice summary {
  width: fit-content;
  min-height: 2.75rem;
  padding: .7rem .1rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.footer-layout .privacy-notice summary { margin-inline-start: auto; }
.privacy-notice p + p { margin-top: .5rem; }

@media (min-width: 46.01rem) {
  @supports selector(::details-content) {
    /* Reserve the answer's height so opening the card doesn't move the hero. */
    .reading-card details:not([open])::details-content {
      content-visibility: visible;
      visibility: hidden;
    }
  }

  @supports not selector(::details-content) {
    .reading-hero > :first-child { align-self: start; }
  }
}

@media (max-width: 46rem) {
  .wrap { width: min(100% - 2rem, 33rem); }
  .reading-hero, .reading-steps, .demo-layout, .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.55rem); }
  .reading-card img { top: .65rem; right: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 clamp(.5rem, 2vw, 1.5rem);
}
.language-switch { position: relative; }
.language-switch summary, .share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  cursor: pointer;
  font: inherit;
  font-size: .925rem;
  font-weight: 650;
}
.language-switch summary { list-style: none; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary i {
  width: .43rem;
  height: .43rem;
  margin: -.18rem .15rem 0 .1rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.language-switch[open] summary i { transform: translateY(.16rem) rotate(225deg); }
.language-options {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  min-width: 10rem;
  padding: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .6rem;
  box-shadow: 0 6px 20px #302b201a;
}
.site-header .language-options a {
  display: flex;
  justify-content: space-between;
  padding: .4rem .7rem;
  border-radius: .3rem;
}
.language-options a:hover, .language-options a:focus-visible { background: var(--board); }
.language-options a[aria-current]::after {
  content: '';
  width: .42rem;
  height: .8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.share-tools { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.share-button {
  background: transparent;
  border: 0;
  padding: .25rem .25rem .25rem 0;
  color: var(--accent);
}
.share-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.share-status, .share-manual { font-size: .9rem; color: var(--muted); }
.share-status { margin-inline-start: .45rem; }
.share-manual:not([hidden]) { display: block; }
.share-manual input { display: block; max-width: 100%; padding: .4rem; font: inherit; }
@media (max-width: 24rem) {
  .header-layout { gap: .4rem; }
  .header-layout .brand { gap: .25rem; font-size: 1.3rem; }
}
