/* Spoken Well website: the shared system, from docs/design/website/export/round3/site.css.
   The website is light only (build brief §3): one theme, whatever the system's appearance.
   The dark ink sections (the product stage, the dark bands, the footer) use the --stage-* and
   --foot-* tokens. */

/* fonts: self-hosted Latin subsets (licences in /fonts/OFL.txt and THIRD_PARTY_NOTICES) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2");
}
/* Arial tuned to Instrument Sans's width and line metrics, one face per weight the site uses,
   so swapping fonts in doesn't move the layout. Measured in Chrome: ascent .97 em, descent .25 em;
   width against Arial regular 101.3% (400, body text) and 103.5% (500, the header links), and
   against Arial bold 98.3% (600, buttons) and 99.2% (700, headings and bold). Tuned on the
   rendered pages; the overrides are divided by size-adjust. */
@font-face {
  font-family: "Instrument Sans Fallback";
  font-weight: 100 449;
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.3%;
  ascent-override: 95.8%;
  descent-override: 24.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  font-weight: 450 549;
  src: local("Arial"), local("ArialMT");
  size-adjust: 103.5%;
  ascent-override: 93.7%;
  descent-override: 24.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  font-weight: 550 649;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 98.3%;
  ascent-override: 98.7%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  font-weight: 650 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 99.2%;
  ascent-override: 97.8%;
  descent-override: 25.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-soft-600-latin.woff2) format("woff2");
}
/* Georgia Bold tuned to Fraunces 600's width and line metrics, for the header wordmark while
   Fraunces loads (only Instrument Sans, the headline face, is preloaded). Measured in Chrome on
   "Spoken Well" at the header's 24 px (Fraunces has an optical-size axis): width 92.6% of
   Georgia Bold, ascent .98 em, descent .26 em. */
@font-face {
  font-family: "Fraunces Fallback";
  font-weight: 600;
  src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 92.6%;
  ascent-override: 105.8%;
  descent-override: 28.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/caveat-latin.woff2) format("woff2");
}

/* tokens */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #1d1a17;
  --muted: #5e5852;
  --band: #f4f2ee;
  --band-line: #e4e0d8;
  --soft: #f6f5f1;
  --card: #ffffff;
  --line: #e3dfd8;
  --line-strong: #c8c2b8;
  --pill: rgba(255, 255, 255, 0.92);
  --pill-edge: rgba(29, 26, 23, 0.09);
  --btn-bg: #1d1a17;
  --btn-ink: #ffffff;
  --chip: #ece9e3;
  --stage-bg: #171513;
  --stage-surface: #23201d;
  --stage-line: rgba(255, 255, 255, 0.12);
  --stage-ink: #f4f2ee;
  --stage-muted: #b5aea5;
  --foot-bg: #121110;
  --foot-ink: #f4f2ee;
  --foot-muted: #a8a29a;
  --foot-line: #2b2825;
}

/* base */
body {
  margin: 0;
  background: var(--bg);
}
img {
  height: auto;
}
.sw {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  container-type: inline-size;
  container-name: sw;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.sw a {
  color: inherit;
}
.sw ::selection {
  background: #f0fb28;
  color: #1d1a17;
}
.sw :focus-visible {
  outline: 2px solid var(--focus, var(--ink));
  outline-offset: 3px;
}
.dark-band,
.stage-box,
.mode-dark,
.foot {
  --focus: #f4f2ee;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink) !important;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
}
.wrap-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.h1 {
  margin: 0;
  font-size: 74px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.01;
}
.h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}
.h2-lg {
  font-size: 60px;
  letter-spacing: -0.045em;
}
.h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.52;
  color: var(--muted);
}
.body {
  margin: 0;
  font-size: 16px;
  line-height: 1.52;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-inv-ghost {
  background: transparent;
  color: #f4f2ee !important;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24);
}
.meta {
  font-size: 14px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1d1a17;
  text-transform: uppercase;
}
.sec {
  padding: 68px 0;
}
.sec-tight {
  padding: 52px 0;
}
.band {
  background: var(--band);
  border-top: 1px solid var(--band-line);
  border-bottom: 1px solid var(--band-line);
}
.dark-band {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-top: 1px solid var(--stage-line);
  border-bottom: 1px solid var(--stage-line);
}
.dark-band .eyebrow,
.dark-band .lede,
.dark-band .body,
.dark-band .meta {
  color: var(--stage-muted);
}
.dark-band .note,
.dark-band .pen {
  color: var(--stage-ink);
}
.stack {
  display: flex;
  flex-direction: column;
}
.illo {
  display: block;
  width: 100%;
  height: auto;
}
.spot {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.num {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}

/* highlights */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl-s {
  position: absolute;
  left: -0.1em;
  top: 0.08em;
  width: calc(100% + 0.24em);
  height: 0.94em;
  overflow: visible;
}
.hl-t {
  position: relative;
  color: #1d1a17;
}
.logo .hl-s {
  top: 0.12em;
  height: 0.92em;
}
/* On white the highlight multiplies into the page. On the dark sections it sits larger, so no part
   of a letter falls off it onto the dark (ink on ink): tall enough for the thinnest shape (Dip) to
   hold capitals and descenders, and, since the shape is stretched to the phrase and its rounded
   ends grow with it, an overshoot that grows too (the percentages are of the phrase). */
.sw .hl-s {
  mix-blend-mode: multiply;
}
.sw .dark-band .hl-s,
.sw .stage-box .hl-s,
.sw .mode-dark .hl-s {
  mix-blend-mode: normal;
  top: -0.12em;
  height: 1.4em;
  left: calc(-0.13em - 3%);
  width: calc(100% + 0.28em + 6%);
}

/* handwriting & drawn arrows */
.note {
  position: absolute;
  z-index: 4;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}
.note-inline {
  position: static;
  display: inline-block;
}
.ch {
  display: inline-block;
  white-space: pre;
}
.pen {
  position: absolute;
  z-index: 4;
  overflow: visible;
  color: var(--ink);
  width: 96px;
  height: 64px;
  pointer-events: none;
}
.pen path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* motion */
@keyframes hl-draw {
  from {
    clip-path: inset(-20% 100% -20% -10%);
  }
  to {
    clip-path: inset(-20% -10% -20% -10%);
  }
}
@keyframes ch-in {
  from {
    clip-path: inset(-30% 100% -30% 0);
    transform: translateY(1px);
  }
  to {
    clip-path: inset(-30% -10% -30% -10%);
    transform: none;
  }
}
@keyframes pen {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rv {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes par {
  from {
    transform: translateY(var(--p0, 0));
  }
  to {
    transform: translateY(var(--p1, 0));
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(120px) rotate(var(--r0, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--r1, 0deg));
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Above-the-fold load animations */
  .hdr .hl-s,
  .hero .hl-s {
    animation: hl-draw 560ms cubic-bezier(0.6, 0.05, 0.3, 1) both;
  }
  .hero .ch {
    animation: ch-in 140ms cubic-bezier(0.4, 0, 0.6, 1) both;
  }
  .hero .pen path {
    stroke-dashoffset: 1;
    animation: pen var(--d, 520ms) cubic-bezier(0.45, 0.05, 0.4, 1) both;
  }
  .up {
    animation: up 660ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  /* Anything holding keyboard focus shows in full, even part-way through its entrance or reveal. */
  .up:focus-within,
  .rv:focus-within,
  .rise:focus-within {
    animation: none;
  }

  /* Scroll-driven reveals, highlights, handwriting and drawn arrows below the hero */
  @supports (animation-timeline: view()) {
    .rv {
      animation: rv linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
    .par {
      animation: par linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 36%;
    }
    .hl-v .hl-s {
      animation: hl-draw linear both;
      animation-timeline: view();
      animation-range: cover 8% cover 28%;
    }
    .dark-band .hl-v .hl-s,
    .stage-box .hl-v .hl-s,
    .mode-dark .hl-v .hl-s {
      animation-range: entry 0% cover 11%;
    }
    .pen-v path {
      stroke-dashoffset: 1;
      animation: pen linear both;
      animation-timeline: view();
      animation-range: cover 16% cover 34%;
    }
    .pen-v path.head {
      animation-range: cover 31% cover 37%;
    }
    .note-v .ch {
      animation: ch-in linear both;
      animation-timeline: view();
      animation-range: cover 8% cover 28%;
    }
    /* A parallax image in a clipping frame (.par-frame) runs past the frame's top and bottom by its
       travel (--p0), so moving it never shows a bare strip. Reduce Motion keeps the static crop. */
    .par-frame > .par {
      margin-block: calc(-1 * var(--p0, 0px));
    }
  }
}

/* phone layout. The export designed 1440 and 390; the phone layout runs up to 900 px so
   tablets get one column, with wider gutters from 721 px (below). */
@container sw (max-width: 900px) {
  .wrap,
  .wrap-wide {
    padding: 0 18px;
  }
  .h1 {
    font-size: 42px;
    letter-spacing: -0.045em;
    line-height: 1.03;
  }
  .h2,
  .h2-lg {
    font-size: 34px;
    letter-spacing: -0.035em;
    line-height: 1.05;
  }
  .h3 {
    font-size: 20px;
  }
  .lede {
    font-size: 17px;
    line-height: 1.48;
  }
  .body {
    font-size: 15px;
    line-height: 1.48;
  }
  .sec {
    padding: 42px 0;
  }
  .sec-tight {
    padding: 34px 0;
  }
  .note {
    font-size: 24px;
  }
  .pen {
    width: 68px;
    height: 44px;
  }
  .btn {
    min-height: 46px;
  }
  .rise {
    animation: none !important;
  }
}

@container sw (min-width: 721px) and (max-width: 900px) {
  .wrap,
  .wrap-wide {
    padding: 0 40px;
  }
}

/* small shared helpers for the pages */
.gap-10 {
  gap: 10px;
}
.gap-12 {
  gap: 12px;
}
.gap-14 {
  gap: 14px;
}
.tax-note {
  margin: 16px 0 0;
}
.foot[data-astro-cid-jo6i4kqk] {
  background: var(--foot-bg);
  color: var(--foot-ink);
  border-top: 1px solid var(--foot-line);
  padding: 68px 0 26px;
}

.foot-grid[data-astro-cid-jo6i4kqk] {
  display: grid;
  grid-template-columns: 1.7fr repeat(var(--cols),minmax(0,1fr));
  gap: 36px;
  align-items: start;
}

.foot-lead[data-astro-cid-jo6i4kqk] {
  gap: 16px;
}

.foot-tag[data-astro-cid-jo6i4kqk] {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.foot-req[data-astro-cid-jo6i4kqk] {
  font-size: 13px;
  color: var(--foot-muted);
}

.foot-h[data-astro-cid-jo6i4kqk] {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--foot-muted);
  text-transform: uppercase;
}

.foot[data-astro-cid-jo6i4kqk] nav[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.foot[data-astro-cid-jo6i4kqk] nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  text-decoration: none;
}

.foot-base[data-astro-cid-jo6i4kqk] {
  margin-top: 48px;
  border-top: 1px solid var(--foot-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--foot-muted);
}

.foot-base[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  color: inherit;
  text-underline-offset: 3px;
}

.foot[data-astro-cid-jo6i4kqk] .btn[data-astro-cid-jo6i4kqk] {
  background: #f4f2ee;
  color: #1d1a17 !important;
}

@container sw (width <= 900px) {
  .foot[data-astro-cid-jo6i4kqk] {
    padding: 48px 0 22px;
  }

  .foot-grid[data-astro-cid-jo6i4kqk] {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .foot-grid[data-astro-cid-jo6i4kqk] > [data-astro-cid-jo6i4kqk]:first-child {
    grid-column: 1 / -1;
  }

  .foot-base[data-astro-cid-jo6i4kqk] {
    flex-direction: column;
    margin-top: 32px;
    gap: 8px;
  }
}
.hdr[data-astro-cid-nen7h5rs] {
  position: relative;
  z-index: 20;
  padding: 20px 64px 0;
}

.pill[data-astro-cid-nen7h5rs] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pill);
  border-radius: 999px;
  padding: 9px 11px 9px 24px;
  box-shadow: 0 0 0 1px var(--pill-edge),0 8px 24px #0000000f;
  backdrop-filter: blur(10px);
}

.logo[data-astro-cid-nen7h5rs] {
  font-family: Fraunces, Fraunces Fallback, Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav[data-astro-cid-nen7h5rs] {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs], .hdr-end[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs].txt {
  text-decoration: none;
}

.nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs][aria-current], .menu-link[data-astro-cid-nen7h5rs][aria-current] {
  text-decoration: underline;
  text-decoration-color: #f0fb28;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.hdr-end[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

.hdr-end[data-astro-cid-nen7h5rs] .btn[data-astro-cid-nen7h5rs] {
  min-height: 42px;
  font-size: 14px;
  padding: 0 18px;
}

.menu-d[data-astro-cid-nen7h5rs] {
  display: none;
}

.menu[data-astro-cid-nen7h5rs] {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}

.menu[data-astro-cid-nen7h5rs]::-webkit-details-marker {
  display: none;
}

.i-close[data-astro-cid-nen7h5rs], .menu-d[data-astro-cid-nen7h5rs][open] .i-open[data-astro-cid-nen7h5rs] {
  display: none;
}

.menu-d[data-astro-cid-nen7h5rs][open] .i-close[data-astro-cid-nen7h5rs] {
  display: block;
}

.menu-panel[data-astro-cid-nen7h5rs] {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--pill-edge),0 16px 40px #00000024;
}

.menu-link[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.menu-link[data-astro-cid-nen7h5rs]:hover {
  background: var(--soft);
}

.menu-sub[data-astro-cid-nen7h5rs] {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  font-weight: 500;
  color: var(--muted);
}

@container sw (width <= 900px) {
  .hdr[data-astro-cid-nen7h5rs] {
    padding: 12px 12px 0;
  }

  .pill[data-astro-cid-nen7h5rs] {
    padding: 7px 8px 7px 16px;
  }

  .logo[data-astro-cid-nen7h5rs] {
    font-size: 20px;
  }

  .nav[data-astro-cid-nen7h5rs], .hdr-end[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs].txt {
    display: none;
  }

  .hdr-end[data-astro-cid-nen7h5rs] {
    gap: 8px;
  }

  .hdr-end[data-astro-cid-nen7h5rs] .btn[data-astro-cid-nen7h5rs] {
    min-height: 38px;
    font-size: 13px;
    padding: 0 14px;
  }

  .menu-d[data-astro-cid-nen7h5rs] {
    display: block;
  }

  .menu[data-astro-cid-nen7h5rs] {
    width: 38px;
    height: 38px;
  }
}
