@font-face {
  font-family:Diane Lora;
  src:url("./assets/lora-normal.ttf") format("truetype");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}

@font-face {
  font-family:Diane Lora;
  src:url("./assets/lora-italic.ttf") format("truetype");
  font-style:italic;
  font-weight:500;
  font-display:swap;
}

:root {
  --night:#181716;
  --paper:#f4efdf;
  --ink:#25201c;
  --muted:#c4baab;
  --red:#852e31;
  --rose:#dbb4a0;
  --line:#c9bfad;
  --serif:"Diane Lora",Georgia,serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  scroll-behavior:smooth;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input {
  font:inherit;
}

a:focus-visible,button:focus-visible {
  outline:3px solid #839cbb;
  outline-offset:5px;
}

img {
  display:block;
  max-width:100%;
}

.wrap {
  width:min(1192px,calc(100% - clamp(40px,10vw,156px)));
  margin-inline:auto;
}

.night {
  color:var(--paper);
  background:radial-gradient(ellipse at 83% 59%,#33201e 0,transparent 46%),var(--night);
}

.skip,.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.skip:focus {
  width:auto;
  height:auto;
  clip-path:none;
  margin:8px;
  padding:12px;
  background:var(--paper);
  color:var(--ink);
  z-index:10;
}

.mast,.mast nav,.brand,.actions,.cta,.nav-beta,.eyebrow,.kind,.portrait figcaption,.footer,.footer div {
  display:flex;
  align-items:center;
}

.mast {
  min-height:84px;
  justify-content:space-between;
  border-bottom:1px solid #ffffff28;
}

.brand {
  gap:12px;
  font:600 21px var(--mono);
  letter-spacing:-1.2px;
}

.brand img {
  border-radius:10px;
}

.mast nav {
  gap:32px;
  font-size:14px;
}

.nav-example {
  color:#dacfc4;
}

.nav-beta {
  gap:13px;
}

.mast nav a {
  padding-block:12px;
}

.languages {
  display:inline-flex;
  align-items:center;
  color:var(--muted);
  font:500 13px var(--mono);
}

.languages a {
  display:grid;
  min-width:32px;
  min-height:44px;
  place-items:center;
}

.languages a[aria-current="page"],.languages a:hover {
  color:var(--paper);
  text-decoration:underline;
  text-underline-offset:4px;
}

.nav-beta span,.cta span {
  transition:transform .22s;
}

.nav-beta:hover span,.cta:hover span {
  transform:translate(2px,-2px);
}

.nav-example:hover,.footer a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

.hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.93fr);
  gap:clamp(40px,6vw,94px);
  align-items:center;
  padding-block:clamp(50px,6.2vw,90px) clamp(60px,6.5vw,96px);
}

.eyebrow,.kind,.system,legend {
  font:500 11px/1.5 var(--mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}

.eyebrow {
  gap:11px;
  margin:0;
}

.intro .eyebrow {
  color:#d1c4b6;
}

.record-dot {
  display:inline-block;
  flex:none;
  width:9px;
  height:9px;
  background:#c04c50;
  border-radius:50%;
}

h1,h2,h3,.quote {
  font-family:var(--serif);
  font-weight:500;
}

h1 {
  font-size:clamp(82px,9.55vw,142px);
  line-height:.96;
  letter-spacing:-.064em;
  margin:26px 0 25px;
}

h1 em {
  color:var(--rose);
  white-space:nowrap;
}

.lede {
  font-size:clamp(17px,1.45vw,21px);
  line-height:1.55;
  max-width:36ch;
  margin:0;
  color:#d3cbbf;
}

.actions {
  gap:22px;
  margin-top:33px;
  flex-wrap:wrap;
}

.cta {
  gap:21px;
  background:var(--paper);
  color:var(--ink);
  min-height:52px;
  padding:0 22px;
  border-radius:6px;
  font-size:15px;
  font-weight:650;
  transition:background .2s,transform .2s;
}

.cta:hover {
  background:#fff9e9;
  transform:translateY(-2px);
}

.cta span {
  font-size:19px;
}

.system {
  letter-spacing:.03em;
  color:var(--muted);
  text-transform:none;
}

.portrait {
  position:relative;
  margin:0;
  max-width:483px;
  width:100%;
  justify-self:end;
  transform:rotate(2deg);
  background:#e1d4b9;
  color:var(--ink);
  padding:clamp(8px,1vw,13px);
  box-shadow:0 22px 50px #08050450;
}

.print {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  aspect-ratio:1.09;
  background:#721e20;
}

.print img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 34%;
}

.portrait figcaption {
  justify-content:space-between;
  padding:13px 4px 3px;
  font:italic 500 clamp(18px,2vw,27px)/1 var(--serif);
}

.signal {
  width:115px;
  height:23px;
  background:#842f31;
  clip-path:polygon(0 48%,14% 48%,19% 37%,22% 60%,27% 27%,32% 70%,38% 8%,44% 90%,50% 24%,55% 66%,60% 36%,64% 55%,70% 46%,76% 49%,100% 49%,100% 55%,77% 55%,70% 53%,64% 62%,60% 45%,55% 76%,50% 35%,44% 100%,38% 20%,32% 81%,27% 39%,22% 70%,19% 47%,14% 55%,0 55%);
}

.paper {
  border-top:5px solid var(--red);
  scroll-margin-top:0;
}

.example-layout {
  padding-block:clamp(56px,6.5vw,88px);
  display:grid;
  grid-template-columns:.83fr 1.17fr;
  gap:clamp(40px,7vw,100px);
  align-items:start;
}

.example-heading .eyebrow {
  color:var(--red);
}

.mini-zig {
  width:29px;
  height:9px;
  background:var(--red);
  clip-path:polygon(0 69%,24% 0,49% 67%,75% 0,100% 68%,100% 100%,75% 32%,49% 100%,24% 32%,0 100%);
}

h2 {
  font-size:clamp(44px,5vw,73px);
  letter-spacing:-.06em;
  line-height:1.06;
  margin:22px 0 0;
}

h2 em {
  color:var(--red);
}

.example-note {
  min-width:0;
}

fieldset {
  padding:0;
  border:0;
  min-width:0;
  margin:0;
}

legend {
  color:#68584b;
  padding:0;
  margin:0 0 14px;
}

.stages {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
}

.stages label {
  font-size:15px;
  font-weight:550;
  color:#655d55;
  text-align:center;
  padding:15px 4px;
  cursor:pointer;
  border-bottom:1px solid var(--line);
  transition:color .18s,background .18s;
}

.stages label:hover {
  background:#e8e1d3;
}

.stages input:checked+label {
  color:var(--red);
  box-shadow:inset 0 -2px var(--red);
}

.stages input:focus-visible+label {
  outline:2px solid var(--red);
  outline-offset:-3px;
}

.panels {
  grid-column:1/-1;
  min-height:173px;
}

.panel {
  display:none;
  padding:24px 1px 0;
}

#voice:checked~.panels .transcript,#note:checked~.panels .filed,#ask:checked~.panels .answer {
  display:block;
}

.kind {
  gap:8px;
  color:#725247;
  font-size:10px;
}

.kind .record-dot {
  width:6px;
  height:6px;
}

.quote,.panel h3 {
  font-size:clamp(23px,2.2vw,31px);
  line-height:1.37;
  letter-spacing:-.035em;
  margin:12px 0 0;
}

.panel h3 {
  font-size:25px;
}

.panel p:not(.quote) {
  font-size:16px;
  line-height:1.5;
  margin:7px 0;
  color:#51473f;
}

.source {
  background:none;
  border:0;
  border-bottom:1px solid #9e8074;
  color:var(--red);
  cursor:pointer;
  padding:4px 0;
  margin-top:8px;
  font-size:13px;
}

.footer {
  min-height:88px;
  gap:16px;
  justify-content:space-between;
  border-top:1px solid var(--line);
  color:#685e54;
}

.footer-brand {
  font:600 15px var(--mono);
  letter-spacing:-.06em;
}

.footer div {
  gap:24px;
  font-size:13px;
}

.footer a {
  padding-block:10px;
}

@keyframes enter {
  from {
    opacity:0;
    translate:0 12px;
  }
  to {
    opacity:1;
    translate:0 0;
  }
}

@keyframes unveil {
  from {
    opacity:0;
    transform:rotate(3.5deg) translateY(15px);
  }
  to {
    opacity:1;
    transform:rotate(2deg) translateY(0);
  }
}

@keyframes word {
  from {
    opacity:.18;
  }
  to {
    opacity:1;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .intro>* {
    animation:enter .65s both;
  }
  .intro h1 {
    animation-delay:.06s;
  }
  .intro .lede {
    animation-delay:.12s;
  }
  .intro .actions {
    animation-delay:.18s;
  }
  .portrait {
    animation:unveil .85s both;
  }
  .panel {
    animation:enter .28s both;
  }
  .reading .word {
    animation:word .3s both;
    animation-delay:var(--delay);
  }
}

@media(max-width:760px) {
  .mast {
    min-height:68px;
  }
  .mast nav {
    gap:18px;
  }
  .hero {
    gap:28px;
    padding-block:48px;
  }
  .brand {
    font-size:18px;
  }
  .brand img {
    width:34px;
    height:34px;
  }
  h1 {
    font-size:clamp(72px,11vw,88px);
  }
  .actions {
    gap:13px;
  }
  .system {
    font-size:10px;
  }
  .eyebrow {
    font-size:10px;
    letter-spacing:.07em;
  }
  .example-layout {
    grid-template-columns:.74fr 1.26fr;
    gap:26px;
  }
  .print {
    aspect-ratio:.8;
  }
}

@media(max-width:620px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .mast .nav-example {
    display:none;
  }
  .hero {
    grid-template-columns:1fr;
    gap:38px;
    padding-block:43px 40px;
  }
  .intro h1 {
    font-size:clamp(70px,17.5vw,92px);
    margin:18px 0;
  }
  h1 br {
    display:none;
  }
  .lede {
    max-width:35ch;
    font-size:17px;
  }
  .actions {
    margin-top:24px;
  }
  .cta {
    min-height:48px;
    padding:0 17px;
    font-size:14px;
  }
  .portrait {
    justify-self:center;
    width:calc(100% - 16px);
    max-width:410px;
    transform:rotate(2deg);
    padding:8px;
  }
  .print {
    aspect-ratio:1.38;
  }
  .portrait figcaption {
    padding:9px 3px 2px;
  }
  .signal {
    height:18px;
    width:85px;
  }
  .example-layout {
    grid-template-columns:1fr;
    gap:28px;
    padding-block:40px;
  }
  .example-heading h2 {
    font-size:clamp(38px,9vw,52px);
    margin-top:12px;
  }
  .example-heading h2 br {
    display:none;
  }
  .panels {
    min-height:164px;
  }
  .footer {
    align-items:flex-start;
    padding-block:20px;
    flex-wrap:wrap;
  }
  .footer div {
    gap:14px;
    font-size:12px;
  }
  .footer a {
    padding:0;
  }
  .footer-brand {
    font-size:13px;
  }
}

@media(max-width:360px) {
  .hero h1 {
    font-size:64px;
  }
  .brand {
    gap:7px;
  }
  .actions {
    gap:10px;
  }
  .footer {
    flex-direction:column;
  }
}

@media(max-width:460px) {
  .mast .nav-beta {
    display:none;
  }
}

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