@font-face {
  font-family:DM Sans;
  src:url(dm-sans.woff2) format("woff2");
  font-weight:100 1000;
  font-display:swap;
}

:root {
  --paper:#f8f8f4;
  --ink:#202520;
  --muted:#586159;
  --line:#d5d9d0;
  --accent:#c7f178;
  --purple:#bcade6;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:1rem/1.55 "DM Sans",system-ui,sans-serif;
}

a {
  color:inherit;
  text-underline-offset:.2em;
}

button,input {
  font:inherit;
}

button,a,input {
  touch-action:manipulation;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid #7a58c1;
  outline-offset:4px;
}

.wrap {
  width:min(1176px,calc(100% - 96px));
  margin:auto;
}

.site-header {
  border-bottom:1px solid var(--line);
}

.site-header .wrap,footer .wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.site-header .wrap {
  min-height:78px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:4px;
  letter-spacing:-1.1px;
  font-size:1.28rem;
  white-space:nowrap;
  text-decoration:none;
  font-weight:550;
}

.brand b {
  font-weight:790;
}

.mark {
  background:var(--ink);
  width:33px;
  height:33px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  border-radius:8px;
  margin-right:7px;
}

.mark i {
  width:2.5px;
  height:9px;
  background:var(--accent);
  border-radius:2px;
}

.mark i:nth-child(2) {
  height:16px;
}

.mark i:nth-child(3) {
  height:22px;
}

.mark i:nth-child(4) {
  height:13px;
}

.mark i:nth-child(5) {
  height:7px;
}

.site-header nav {
  display:flex;
  gap:30px;
  align-items:center;
}

.site-header nav a {
  font-weight:600;
  font-size:.92rem;
  text-decoration:none;
  padding:10px 0;
}

.site-header nav a:hover,.site-header nav [aria-current] {
  text-decoration:underline;
  text-decoration-thickness:2px;
}

.skip {
  position:absolute;
  left:8px;
  top:-120px;
  background:#fff;
  padding:8px;
  z-index:8;
}

.skip:focus {
  top:8px;
}

.hero {
  display:grid;
  grid-template-columns:1fr minmax(350px,.93fr);
  gap:7.5%;
  align-items:center;
  padding:74px 0 69px;
}

.eyebrow,.meta,.figure-caption,.card-copy small,.reviewed,.crumb,.deck-head,.screen-meta,.ruler,.counter,.voice,.format,.word-art>span,.paper span,.downloads small {
  font-family:var(--mono);
}

.eyebrow,.card-copy small {
  font-weight:650;
  letter-spacing:.105em;
  text-transform:uppercase;
  font-size:.76rem;
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.diamond {
  width:9px;
  height:9px;
  background:#79a23e;
  transform:rotate(45deg);
  display:inline-block;
}

.hero h1,.article-head h1,.section-head h2,.reference-link h2,.prose h2,.guide-card h3 {
  letter-spacing:-.052em;
  line-height:1.06;
}

.hero h1 {
  font-size:clamp(4.7rem,7.5vw,7.25rem);
  margin:19px 0 18px;
  line-height:.94;
  font-weight:700;
}

.hero h1 em {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:normal;
  letter-spacing:-.072em;
}

.lead {
  font-size:1.13rem;
  line-height:1.55;
  color:var(--muted);
  max-width:33rem;
  margin:0;
}

.actions {
  display:flex;
  gap:12px;
  margin-top:27px;
  flex-wrap:wrap;
}

.btn {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:45px;
  padding:0 20px;
  border:1px solid var(--ink);
  border-radius:6px;
  font-size:.93rem;
  font-weight:680;
  text-decoration:none;
}

.primary {
  color:#fff;
  background:var(--ink);
}

.primary:hover {
  background:#3c443a;
}

.secondary:hover {
  background:#e9ede3;
}

.deck {
  background:#242a25;
  color:#f5f6ed;
  padding:21px;
  border-radius:12px;
  box-shadow:0 5px 0 #191f1a,0 15px 25px -16px #17212370;
}

.deck-head,.deck-head>span,.transport,.screen-meta,.ruler,.section-head,.reference-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.deck-head {
  font-size:.76rem;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:17px;
}

.deck-head>span {
  gap:9px;
}

.mini-wave {
  color:var(--accent);
  font-size:1rem;
  letter-spacing:-.12em;
}

.format {
  color:#b7bfb0;
  letter-spacing:.04em;
}

.deck-screen {
  background-color:#191f1b;
  border:1px solid #424a40;
  border-radius:6px;
  overflow:hidden;
}

.screen-meta,.ruler {
  font-size:.73rem;
  color:#b3bdaf;
}

.screen-meta {
  padding:12px 15px 0;
}

.screen-meta span:first-child {
  color:#e8eddf;
}

.wave-area {
  height:103px;
  position:relative;
  margin:7px 15px 0;
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),#313b31 calc(10% - 1px),#313b31 10%),linear-gradient(transparent calc(50% - .5px),#3b453a 50%,transparent calc(50% + .5px));
}

.wave-bars {
  height:100%;
  display:flex;
  align-items:center;
  gap:1.3px;
  pointer-events:none;
}

.wave-bars i {
  height:var(--h);
  min-width:0;
  flex:1;
  background:#c9f180;
  border-radius:1px;
}

.wave-bars .leo {
  background:#c2b0ed;
}

.wave-bars .gap {
  background:#667264;
}

.seek {
  position:absolute;
  inset:0;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer;
}

.wave-area:focus-within {
  outline:2px solid var(--accent);
}

.play-line {
  width:2px;
  position:absolute;
  top:0;
  bottom:0;
  left:var(--position,0%);
  background:white;
  pointer-events:none;
}

.play-line:before {
  content:"";
  position:absolute;
  top:0;
  left:-3px;
  border-style:solid;
  border-width:5px 4px 0;
  border-color:white transparent transparent;
}

.ruler {
  padding:3px 15px 13px;
  font-variant-numeric:tabular-nums;
}

.deck-quote {
  min-height:64px;
  border-top:1px solid #394238;
  background:#222923;
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 15px;
}

.voice {
  background:#c9ef91;
  color:#253020;
  font-size:.72rem;
  letter-spacing:.045em;
  text-transform:uppercase;
  font-weight:700;
  padding:2px 6px;
  border-radius:3px;
}

.voice[data-speaker="Leo"] {
  background:var(--purple);
}

.voice:empty {
  display:none;
}

.caption-text {
  font-weight:600;
  line-height:1.3;
}

.transport {
  margin-top:15px;
}

.play {
  background:var(--accent);
  border:0;
  color:#20271d;
  border-radius:5px;
  padding:9px 13px;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:.88rem;
  font-weight:750;
  cursor:pointer;
}

.play:hover {
  background:#dbffa2;
}

.play-icon {
  display:block;
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:8px solid;
}

.play[aria-label="Pause sample"] .play-icon {
  height:11px;
  width:8px;
  border:0;
  border-inline:3px solid;
}

.counter {
  font-size:.8rem;
  color:#c8d1c2;
  font-variant-numeric:tabular-nums;
}

.deck audio {
  max-width:100%;
  margin-top:12px;
}

.deck .transport,.deck .play-line {
  display:none;
}

.deck.ready .transport {
  display:flex;
}

.deck.ready .play-line {
  display:block;
}

.deck.ready audio {
  display:none;
}

.figure-caption {
  font-size:.76rem;
  color:var(--muted);
  text-align:center;
  margin:16px 0 0;
}

.figure-caption i {
  font-style:normal;
  margin:0 3px;
}

.guide-section {
  border-top:1px solid var(--line);
  padding:33px 0 0;
}

.section-head {
  align-items:baseline;
  margin-bottom:20px;
}

.section-head h2,.reference-link h2 {
  font-size:clamp(2.1rem,3.5vw,3.06rem);
  margin:0;
}

.meta,.reviewed,.crumb {
  font-size:.83rem;
  color:var(--muted);
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:19px;
}

.guide-card {
  border:1px solid #ced3c9;
  border-radius:8px;
  overflow:hidden;
  text-decoration:none;
  background:#fdfdf9;
  display:block;
}

.guide-card:hover {
  border-color:#76846b;
  box-shadow:0 3px 9px #1d302010;
}

.card-copy {
  padding:18px 21px 22px;
}

.card-copy small {
  color:#586354;
  font-size:.73rem;
}

.guide-card h3 {
  font-size:1.45rem;
  margin:7px 0 8px;
}

.card-copy p,.reference-link p:not(.eyebrow) {
  color:var(--muted);
  margin:0;
}

.art {
  height:134px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
}

.format-art {
  background:#dce8c9;
  background-image:radial-gradient(#b1c697 .7px,transparent .8px);
  background-size:6px 6px;
}

.paper {
  border:1.5px solid #40513c;
  background:#f7f9eb;
  width:100px;
  height:71px;
  position:absolute;
  border-radius:4px;
  box-shadow:3px 3px #95ac87;
  display:flex;
  flex-direction:column;
  padding:7px 10px;
  font-family:var(--mono);
}

.paper b {
  font-size:1.03rem;
}

.paper span {
  font-size:.6rem;
}

.paper i,.voice-art em {
  height:2px;
  background:#839376;
  width:66%;
  margin-top:5px;
}

.paper.back {
  transform:translate(-23px,-10px) rotate(-8deg);
  color:#455441;
}

.paper.front {
  transform:translate(25px,12px) rotate(6deg);
}

.word-art {
  background:#e7e0f1;
  flex-direction:column;
  color:#332c45;
}

.word-art p {
  font-weight:740;
  letter-spacing:-.045em;
  font-size:2rem;
  margin:4px 0;
  z-index:1;
}

.word-art b {
  background:#bfaae1;
  color:#332844;
  border:1px solid #89799f;
  border-radius:4px;
  padding:0 4px;
}

.word-art>span {
  font-size:.68rem;
  background:#ebe6f3;
  padding:1px 5px;
  position:relative;
}

.word-ticks {
  position:absolute;
  inset:18% 12%;
  border-block:1px dashed #b3a8c3;
  opacity:.8;
}

.voice-art {
  background:#f1e7cd;
  flex-direction:column;
  gap:5px;
  background-image:repeating-linear-gradient(0deg,transparent 0,transparent 17px,#ded4bc 18px);
}

.voice-art span {
  background:#fbf7e9;
  display:flex;
  align-items:center;
  border:1px solid #a59775;
  border-radius:4px;
  padding:2px 9px;
  min-width:115px;
  gap:8px;
  font:600 .73rem/1.55 var(--mono);
  transform:translateX(-18px);
}

.voice-art span:nth-child(2) {
  transform:translateX(21px);
}

.voice-art i {
  width:7px;
  height:7px;
  background:#83a763;
  border-radius:50%;
}

.voice-art span:nth-child(2) i {
  background:#a399c1;
}

.voice-art em {
  background:#baaf91;
  height:2px;
  width:34px;
  margin:0;
}

.reference-link {
  padding:33px 0;
  border-block:1px solid var(--line);
  margin:44px 0 52px;
  gap:25px;
}

.reference-link h2 {
  font-size:1.9rem;
  margin:9px 0 6px;
}

.reference-link .btn {
  flex:none;
}

footer {
  border-top:1px solid var(--line);
}

footer .wrap {
  min-height:89px;
  font-size:.87rem;
  color:var(--muted);
}

footer .brand {
  color:var(--ink);
  font-size:1.07rem;
}

footer .brand .mark {
  width:27px;
  height:27px;
}

.crumb {
  margin:28px 0 30px;
}

.crumb span {
  margin:0 7px;
}

.article-head {
  max-width:850px;
}

.article-head h1 {
  font-size:clamp(3rem,6.4vw,5.8rem);
  margin:15px 0;
}

.article-head .reviewed {
  margin:0 0 26px;
}

.article-grid {
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(215px,26%);
  gap:7%;
  padding:24px 0 65px;
  align-items:start;
}

.prose {
  max-width:790px;
  min-width:0;
  line-height:1.65;
}

.prose>p:first-child {
  font-size:1.18rem;
  line-height:1.55;
  margin-top:0;
}

.prose h2 {
  font-size:clamp(1.6rem,3vw,2.15rem);
  margin:1.45em 0 .45em;
}

.prose p {
  margin:0 0 1em;
}

.prose li+li {
  margin-top:8px;
}

.prose a,.side-box>a,.continue a {
  color:#355831;
}

.prose pre {
  border:1px solid #384139;
  background:#202721;
  color:#eff4e9;
  padding:18px;
  border-radius:7px;
  overflow-x:auto;
  font: .87rem/1.6 var(--mono);
  tab-size:2;
  max-width:100%;
}

.prose code {
  font-family:var(--mono);
  font-size:.9em;
  overflow-wrap:anywhere;
}

pre code {
  overflow-wrap:normal!important;
  font-size:inherit!important;
}

.prose p code,.prose li code,.prose td code {
  background:#e8ecdf;
  padding:.08em .27em;
  border-radius:3px;
}

.prose .deck {
  margin:24px 0 30px;
}

.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:6px;
}

.prose table {
  width:100%;
  border-collapse:collapse;
  font-size:.91rem;
}

.prose td,.prose th {
  text-align:left;
  padding:11px;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}

.prose th {
  background:#edf0e8;
}

.prose caption {
  text-align:left;
  font-size:.84rem;
  padding:10px;
  color:var(--muted);
}

.prose .side-box .eyebrow {
  margin:0;
}

aside {
  position:sticky;
  top:22px;
}

.side-box {
  border:1px solid var(--line);
  border-radius:7px;
  padding:17px;
  background:#f1f3eb;
  margin-bottom:15px;
}

.side-box>a,.continue a {
  display:block;
  margin:8px 0;
}

.side-box .eyebrow {
  color:var(--muted);
  margin-bottom:10px;
}

.side-box>a {
  font-size:.94rem;
}

.downloads,.script-list {
  list-style:none;
  margin:0;
  padding:0;
}

.downloads li,.script-list li {
  border-bottom:1px solid var(--line);
  margin:0!important;
}

.downloads a,.script-list li {
  display:flex;
  align-items:baseline;
  gap:14px;
  justify-content:space-between;
  padding:9px 0;
}

.downloads a {
  color:var(--ink);
  text-decoration:none;
}

.downloads a:hover span:first-child {
  text-decoration:underline;
}

.downloads small {
  color:#44583e;
  white-space:nowrap;
}

.download-icon {
  font-size:1.05rem;
  font-weight:700;
}

.script-list li {
  justify-content:flex-start;
}

.script-list li>span {
  flex:none;
  font: .85rem var(--mono);
  color:var(--muted);
  min-width:4.7em;
}

.script-list b {
  margin-right:.3em;
}

.continue {
  border-top:1px solid var(--line);
  margin-top:35px;
}

@media(min-width:1500px) {
  .hero {
    padding:85px 0;
  }
}

@media(max-width:900px) {
  .wrap {
    width:calc(100% - 56px);
  }
  .hero {
    gap:4%;
    grid-template-columns:1fr 1fr;
    padding:52px 0;
  }
  .hero h1 {
    font-size:clamp(4rem,9vw,6rem);
  }
  .deck {
    padding:15px;
  }
  .deck-quote {
    gap:7px;
  }
  .cards {
    gap:12px;
  }
  .card-copy {
    padding:14px;
  }
  .article-grid {
    gap:4%;
  }
  .figure-caption {
    font-size:.71rem;
  }
}

@media(max-width:700px) {
  .wrap {
    width:calc(100% - 36px);
  }
  .site-header .wrap {
    flex-wrap:wrap;
    gap:3px;
    padding:11px 0;
    min-height:66px;
  }
  .site-header nav {
    gap:16px;
  }
  .site-header nav a {
    font-size:.82rem;
    padding:4px 0;
  }
  .brand {
    font-size:1.08rem;
  }
  .mark {
    width:28px;
    height:28px;
  }
  .hero {
    grid-template-columns:1fr;
    gap:29px;
    padding:38px 0;
  }
  .hero h1 {
    font-size:clamp(4.5rem,15vw,6.2rem);
    margin:15px 0;
  }
  .lead {
    font-size:1.04rem;
  }
  .actions {
    margin-top:20px;
  }
  .cards {
    grid-template-columns:1fr;
  }
  .guide-card {
    display:grid;
    grid-template-columns:30% 1fr;
  }
  .guide-card>div:first-child {
    display:grid;
  }
  .art {
    height:100%;
    min-height:134px;
    border-bottom:0;
    border-right:1px solid var(--line);
  }
  .paper {
    width:73px;
    height:58px;
    padding:4px;
  }
  .paper.back {
    transform:translate(-8px,-9px) rotate(-8deg);
  }
  .paper.front {
    transform:translate(8px,9px) rotate(6deg);
  }
  .word-art p {
    font-size:1.01rem;
  }
  .voice-art span {
    min-width:0;
    transform:translateX(-5px);
  }
  .voice-art span:nth-child(2) {
    transform:translateX(6px);
  }
  .voice-art em {
    width:8px;
  }
  .card-copy p {
    font-size:.94rem;
  }
  .card-copy h3 {
    font-size:1.32rem;
  }
  .reference-link {
    align-items:flex-start;
    flex-direction:column;
    margin:30px 0;
  }
  .article-grid {
    display:flex;
    flex-direction:column;
    gap:24px;
  }
  .article-grid aside,.prose {
    width:100%;
  }
  .article-grid aside {
    position:static;
  }
  .crumb {
    margin:22px 0;
  }
  .section-head h2 {
    font-size:2.06rem;
  }
  .article-head h1 {
    font-size:clamp(2.8rem,10vw,4rem);
  }
  footer .wrap {
    flex-wrap:wrap;
    gap:10px;
    padding:15px 0;
  }
  footer .wrap>span {
    display:none;
  }
  .meta {
    font-size:.75rem;
  }
  .wave-area {
    height:88px;
  }
}

@media(max-width:450px) {
  .site-header .wrap {
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .site-header nav {
    gap:21px;
  }
  .hero {
    padding-top:30px;
  }
  .guide-section {
    padding-top:22px;
  }
  .prose td,.prose th {
    padding:6px;
  }
  .prose table {
    font-size:.83rem;
  }
  .btn {
    min-height:43px;
    padding:0 13px;
  }
  .figure-caption {
    font-size:.7rem;
  }
}

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

.caption-text .spoken {
  background: var(--accent);
  color: var(--ink);
  border-radius: 2px;
  box-shadow: 2px 0 var(--accent), -2px 0 var(--accent);
}
