/* ==========================================================================
   Redesign layer: type. Loads after styles.css on every page.
   Big Shoulders 900 caps -> Instrument Sans 600, sentence case. Labels lose caps too.
   Instrument Sans also replaces Figtree for reading and the voice: one family, the sans cousin of Instrument Serif.
   ========================================================================== */


@font-face { font-family: "Instrument Sans Text"; font-style: normal; font-weight: 400 700; font-display: swap; size-adjust: 92%; src: url(assets/fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans Text"; font-style: normal; font-weight: 400 700; font-display: swap; size-adjust: 92%; src: url(assets/fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root, html:root {
  --display: "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans Text", -apple-system, "Helvetica Neue", sans-serif;
  --voice: "Instrument Sans Text", -apple-system, "Helvetica Neue", sans-serif;
}

.display {
  font-weight: 400;
  text-transform: none;
  line-height: 1;
  letter-spacing: -0.035em;
}
.display--l  { font-size: clamp(48px, 6.6vw, 104px); }
.display--m  { font-size: clamp(36px, 4.6vw, 68px); }
.display--s  { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; font-weight: 400; letter-spacing: -0.025em; }

/* Small labels: no caps lock, quieter tracking */
.label, .mini-sheet .sheet__page b {
  text-transform: none;
  letter-spacing: 0.01em;
}
.label { font-size: 12px; }

/* Everything else that used the compressed caps face */
.subhead { text-transform: none; font-weight: 500; letter-spacing: -0.02em; font-size: 28px; line-height: 1.1; }

/* --------------------------------------------------------------------------
   Draw-on (r-draw.js): arrows and pen underlines draw themselves once, the first time they come into view.
   html.draw is set inline in <head> so nothing flashes before the script runs; reduced motion skips it all.
   -------------------------------------------------------------------------- */
html.draw :is(.duo-fork__svg, .flow, .mk-arrow, .note svg, .side-note svg, .ring__svg):not(.is-drawn) { visibility: hidden; }
/* circled word: the oval as an SVG the pen draws round (only when r-draw.js runs; otherwise the CSS oval stays) */
.ring.has-svg::after { display: none; }
.ring .ring__svg { display: block; position: absolute; left: -10%; top: -30%; width: 120%; height: 160%; overflow: visible; pointer-events: none; fill: none; stroke: #141A26; stroke-width: 2.6; stroke-linecap: round; }
.ring__svg path { vector-effect: non-scaling-stroke; }
/* underline: a paper-coloured cover over the stroke that pulls back to the right, so the line appears left to right */
html.draw :is(.hl, .mark-ul) {
  background: linear-gradient(var(--paper), var(--paper)) right bottom / 100% 11px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6.5 C30 5 60 4.2 104 4.6' stroke='%23141A26' stroke-width='2.8' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M112 4.2 C140 3.4 170 3.8 197 2.6' stroke='%23141A26' stroke-width='2.8' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat;
}
html.draw :is(.hl, .mark-ul).is-drawn { animation: ul-draw 650ms cubic-bezier(0.45, 0, 0.25, 1) 250ms forwards; }
@keyframes ul-draw { to { background-size: 0% 11px, 100% 9px; } }
@media (prefers-reduced-motion: reduce) {
  html.draw :is(.duo-fork__svg, .flow, .mk-arrow, .note svg, .side-note svg, .ring__svg):not(.is-drawn) { visibility: visible; }
  html.draw :is(.hl, .mark-ul) { background-size: 0% 11px, 100% 9px; animation: none; }
}

/* Nav: no soft fade under the bar */
.nav::after { display: none; }

/* About head, desktop: Vojta lower and left, Sebastian higher and right; one arrow swoops in from the left (drawn in main.js, .duo-fork--swoop) */
@media (min-width: 1280px) {
  .duo-head .figure.duo-a { left: 52.2%; right: auto; top: 160px; }
  .duo-head .figure.duo-b { left: 74.7%; right: auto; top: 48px; }
  .duo-head .figure.duo-a img { height: calc(var(--duo-h) * 0.89); }   /* Vojta a touch bigger, he stands nearer */
  .duo-head .figure.duo-b img { height: calc(var(--duo-h) * 0.84); }
}

/* Newsletter: a failed request shows why and keeps Yes / No, so you can try again */
.subscribe--ask.is-failed .ask__done { display: block; }

/* Be a guest, tablet: one 600px column, centred on the page; the text inside stays left-aligned */
@media (min-width: 761px) and (max-width: 1099px) {
  .guest-page > * { width: 100%; max-width: 600px; margin-inline: auto; }
}
