/* Casa Repaso website (casarepaso.com). The app's Ceramic look, set larger: one family (Hanken Grotesk),
   the app's own colours, rounded and warm. The wordmark is the only widely spaced capitals.
   Everything is visible without script; motion only where the visitor has not asked for less. */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/site/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #F4EEE6;
  --ink: #2A2522;
  --ink2: #4A413B;
  --muted: #6B625B;
  --line: #E6DDD1;
  --edge: #CDBDAA;
  --clay: #B8502C;
  /* clay deep enough to read as small text on the light grounds and on the clay tint (4.6:1 and up) */
  --clay-ink: #96401F;
  --good: #3E6B63;
  --goodsoft: #DDE8D9;
  --sand: #E9C9A8;
  --sage: #C9D8C5;
  --rose: #E6C6C3;
  --ochre: #EFD9A8;
  --claytint: #EDCDBB;
  --white: #FFFFFF;
  --shadow: 0 10px 24px rgba(74, 52, 35, .08);
  --shadow-up: 0 24px 60px rgba(74, 52, 35, .14);
  --r-hero: 34px;
  --r-tile: 30px;
  --r-ctl: 20px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(46px, 7.2vw, 100px); font-weight: 800; letter-spacing: -.048em; line-height: .96; }
h2 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.0; }
h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding-inline: var(--gut); }
.section-lead { margin-top: 18px; max-width: 34em; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 60px; padding: 0 28px; border-radius: 999px; border: 0;
  font: inherit; font-size: 18px; font-weight: 750; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-clay { background: var(--clay); color: var(--white); box-shadow: 0 10px 24px rgba(184, 80, 44, .28); }
.btn-clay:hover { box-shadow: 0 14px 30px rgba(184, 80, 44, .36); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(74, 52, 35, .12); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 750; color: var(--ink); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244, 238, 230, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .25s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(74, 52, 35, .06); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; min-height: 44px; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.wm { height: 15px; width: auto; }
.nav { display: none; gap: 6px; margin-left: 18px; }
.nav a { padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 650; color: var(--ink2); }
.nav a:hover { background: var(--white); color: var(--ink); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang, .signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lang { color: var(--ink2); font-weight: 650; }
.lang-short { display: none; }
.lang:hover, .signin:hover { background: var(--white); }
@media (min-width: 1040px) { .nav { display: flex; } }
@media (max-width: 520px) {
  .top-in { gap: 6px; }
  .wm { height: 12px; }
  .lang { padding: 0 8px; font-size: 15px; }
  .signin { padding: 0 8px; font-size: 15px; }
  .btn-sm { padding: 0 14px; font-size: 15px; min-height: 42px; }
}
@media (max-width: 520px) {
  .lang-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-short { display: inline; letter-spacing: .04em; }
}
@media (max-width: 340px) { .wm { height: 10px; } .top-in { padding-inline: 12px; } }

/* hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero-in { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.kicker { font-size: 17px; font-weight: 750; color: var(--clay-ink); margin-bottom: 18px; }
.lead { margin-top: 24px; max-width: 32em; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--ink2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 980px) { .ctas .btn { padding: 0 24px; } }
/* on a phone a long button wraps inside itself; the ones in the hero fill the width */
@media (max-width: 520px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: 10px; }
  .top-in .btn { white-space: nowrap; padding-block: 0; }
  .ctas .btn { width: 100%; padding-inline: 20px; }
}
.note { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 32em; }
.hero-art { position: relative; margin: 0; }
.village { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 40px rgba(74, 52, 35, .14)); }
.village .h { cursor: default; }
.village .win { fill: #F1C56B; transition: fill .5s var(--ease); }
.village .tick { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--spring), opacity .3s; }
.round-count { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; margin: 14px auto 0; padding: 12px 20px; border-radius: 28px; text-align: center; background: var(--white); box-shadow: var(--shadow); font-size: 16px; color: var(--ink2); }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.round-count strong { color: var(--ink); font-weight: 750; }
.round-count strong, .round-count [data-count] { white-space: nowrap; }
.round-count .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--goodsoft); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 650; padding: 8px 12px; border-radius: 12px; white-space: nowrap; transform: translate(-50%, -120%); }

/* the morning playing through: only when the script runs it and motion is welcome */
.village.playing .h:not(.on) .win { fill: #E6D9C9; }
.village.playing .tick:not(.on) { transform: scale(0); opacity: 0; }
.playing-count .dot { background: var(--ochre); box-shadow: 0 0 0 4px #F6E8C4; }

/* the name */
.name { background: var(--ink); color: var(--ground); padding: clamp(56px, 7vw, 96px) 0; }
.name-in { display: grid; gap: 34px; align-items: end; }
@media (min-width: 900px) { .name-in { grid-template-columns: 1.3fr 1fr; } }
.wm-big { height: clamp(28px, 5.4vw, 66px); width: auto; color: var(--ground); }
.name-words { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.name-words div { border-top: 2px solid rgba(244, 238, 230, .25); padding-top: 14px; }
.name-words dt { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; color: var(--sand); }
.name-words dd { margin: 4px 0 0; font-size: 18px; color: var(--ground); }
.name-line { grid-column: 1 / -1; max-width: 40em; font-size: clamp(19px, 1.6vw, 22px); color: rgba(244, 238, 230, .92); }
.said { color: var(--sand); font-weight: 700; white-space: nowrap; }

/* a day */
.day { padding: clamp(72px, 9vw, 140px) 0; }
.day-grid { display: grid; gap: 48px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 980px) { .day-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; } .try { position: sticky; top: 96px; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; --p: 1; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: 6px; top: 10px; width: 3px; border-radius: 3px; background: var(--clay); height: calc((100% - 20px) * var(--p)); }
.moment { position: relative; display: grid; gap: 6px; padding: 0 0 clamp(30px, 4vw, 46px); }
.moment::before { content: ''; position: absolute; left: -28px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 3px var(--edge); transition: box-shadow .3s; z-index: 1; }
.moment.seen::before { box-shadow: inset 0 0 0 3px var(--clay), inset 0 0 0 8px var(--ground); background: var(--clay); }
.time { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .35s; line-height: 1.1; }
.moment.seen .time { color: var(--clay); }
.moment h3 { margin-top: 2px; }
.moment p:not(.time) { margin-top: 8px; color: var(--ink2); max-width: 34em; }

/* the phone you can try */
.try { display: grid; justify-items: center; gap: 16px; }
.try-h { font-weight: 750; color: var(--ink2); font-size: 17px; }
.phone { position: relative; width: min(100%, 360px); border-radius: 46px; background: var(--ink); padding: 11px; box-shadow: var(--shadow-up); }
.phone.shake { animation: shake .42s var(--ease); }
.phone-screen { position: relative; overflow: hidden; border-radius: 36px; background: var(--ground); padding: 22px 16px 18px; min-height: 560px; }
.phone-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.phone-home { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.phone-round { display: block; font-size: 15px; color: var(--muted); font-weight: 650; }
.phone-lang { border: 0; background: var(--white); box-shadow: var(--shadow); border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 750; color: var(--ink); cursor: pointer; white-space: nowrap; }
.phone-bar { height: 8px; border-radius: 8px; background: var(--line); margin: 16px 0 14px; overflow: hidden; }
.phone-bar span { display: block; height: 100%; border-radius: 8px; background: var(--good); transition: width .45s var(--ease); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check { background: var(--white); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); transition: background-color .3s; }
.check.answered-met { background: #F1F6EF; }
.check.answered-not { background: #FBEFE9; }
.check-text { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.check-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ans { min-height: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); font: inherit; font-size: 15px; font-weight: 750; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.ans:active { transform: scale(.96); }
.ans.met[aria-pressed='true'] { background: var(--good); border-color: var(--good); color: var(--white); }
.ans.not[aria-pressed='true'] { background: var(--clay); border-color: var(--clay); color: var(--white); }
.phone-count { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.stamp { position: absolute; left: 50%; top: 46%; display: grid; justify-items: center; gap: 2px; padding: 14px 22px 12px; border: 4px solid var(--clay); border-radius: 16px; color: var(--clay); background: rgba(244, 238, 230, .9); transform: translate(-50%, -50%) rotate(-9deg) scale(.6); opacity: 0; pointer-events: none; }
.stamp.down { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); transition: transform .38s var(--spring), opacity .12s; }
.stamp-word { font-size: 30px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding-left: .15em; }
.stamp-time { font-size: 14px; font-weight: 750; letter-spacing: .02em; color: var(--clay-ink); }
.fixes { width: min(100%, 360px); display: grid; gap: 10px; }
.fix { background: var(--claytint); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow); transition: transform .45s var(--spring), opacity .3s; }
.fix.enter { transform: translateY(14px) scale(.96); opacity: 0; }
.fix-title { font-size: 14px; font-weight: 800; color: var(--clay-ink); }
.fix-what { font-weight: 750; margin-top: 4px; line-height: 1.3; }
.fix-due { font-size: 15px; color: var(--ink2); margin-top: 6px; }
.fix-wait { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); margin-top: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); animation: pulse 1.6s 3; }
.again { border: 0; background: none; font: inherit; font-weight: 750; color: var(--ink); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; min-height: 44px; }

/* the rules */
.rules { background: var(--sand); padding: clamp(72px, 9vw, 140px) 0; }
.rules-in { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .rules-in { grid-template-columns: 1fr 1fr; gap: 72px; } }
.rules .section-lead { color: var(--ink); }
.facts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 2px solid rgba(42, 37, 34, .12); }
.fact-n { min-width: 2.4em; font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact-l { font-weight: 650; color: var(--ink); }
.edition { margin-top: 18px; font-size: 16px; color: var(--ink); }
.examples { position: relative; display: grid; gap: 14px; }
.examples-h { font-weight: 750; font-size: 17px; }
.ex { background: var(--white); border-radius: var(--r-tile); padding: 22px 24px; box-shadow: var(--shadow); }
.ex:nth-of-type(2) { margin-left: clamp(0px, 3vw, 28px); }
.ex:nth-of-type(3) { margin-left: clamp(0px, 6vw, 56px); }
.ex-text { font-size: 20px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.ex-why { margin-top: 8px; color: var(--ink2); font-size: 17px; }
.ex-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; font-weight: 650; color: var(--ink2); font-variant-numeric: tabular-nums; }
.chip { display: inline-block; background: var(--ochre); color: var(--ink); border-radius: 12px; padding: 4px 10px; font-weight: 750; font-size: 14px; }

/* people */
.people { padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 5vw, 72px); }
.people-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px 40px; }
@media (min-width: 720px) { .people-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .people-list { grid-template-columns: repeat(4, 1fr); } }
.person { border-top: 3px solid var(--ink); padding-top: 18px; }
.person p { margin-top: 10px; color: var(--ink2); }

/* Spanish */
.spanish { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); }
.spanish-in { display: grid; gap: 34px; align-items: center; background: var(--sage); border-radius: var(--r-hero); padding: clamp(28px, 4.5vw, 56px); }
@media (min-width: 980px) { .spanish-in { grid-template-columns: 1fr 1fr; } }
.spanish .section-lead { color: var(--ink); }
.pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pairs li { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-size: 20px; font-weight: 750; }
.pairs li .pair-b { color: var(--good); }
/* with the script: one word at a time, turning over to the other language */
.pairs.flipping li { display: inline-grid; place-items: center; perspective: 400px; }
.pairs.flipping li span { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; backface-visibility: hidden; }
.pairs.flipping li .pair-b { transform: rotateX(90deg); opacity: 0; }
.pairs.flipping li.flip .pair-a { transform: rotateX(-90deg); opacity: 0; }
.pairs.flipping li.flip .pair-b { transform: rotateX(0); opacity: 1; }

/* privacy */
.privacy { padding: 0 0 clamp(72px, 9vw, 120px); }
.privacy-grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.pt { background: var(--white); border-radius: var(--r-tile); padding: 26px; box-shadow: var(--shadow); }
.pt:first-child { background: var(--ink); color: var(--ground); }
.pt:first-child h3 { color: var(--ground); }
.pt:first-child p { color: rgba(244, 238, 230, .9); }
.pt p { margin-top: 10px; color: var(--ink2); }

/* where we are */
.status { padding: 0 0 clamp(72px, 9vw, 120px); }
.status h2 { font-size: clamp(30px, 3.4vw, 44px); }
.status p { margin-top: 16px; font-size: clamp(19px, 1.6vw, 22px); color: var(--ink2); max-width: 36em; }
.status .made { font-size: 17px; color: var(--muted); }

/* questions */
.faq { background: var(--white); padding: clamp(72px, 9vw, 120px) 0; }
.faq-in { display: grid; gap: 36px; }
@media (min-width: 980px) { .faq-in { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.faq-list details { border-top: 2px solid var(--line); }
.faq-list details:last-child { border-bottom: 2px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%232A2522' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink2); max-width: 38em; }

/* tell us */
.tell { padding: clamp(72px, 9vw, 140px) 0; }
.tell-in { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .tell-in { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.who { margin-top: 18px; font-size: 16px; color: var(--muted); }
.form, .thanks { background: var(--white); border-radius: var(--r-hero); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 6px; font-size: 16px; font-weight: 700; }
.fld em { font-style: normal; font-weight: 600; color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 54px; border-radius: 16px; border: 2px solid var(--line); background: var(--ground); padding: 12px 16px; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.fld input[aria-invalid='true'] { border-color: var(--clay); }
.form-msg { min-height: 1.5em; font-weight: 700; color: var(--clay-ink); }
.form-msg.ok { color: var(--good); }
.form .btn { justify-self: start; }
.thanks-h { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.thanks p + p { margin-top: 8px; color: var(--ink2); }

/* footer */
.foot { background: var(--ink); color: var(--ground); padding: clamp(56px, 7vw, 88px) 0 40px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); display: grid; gap: 34px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
.wm-stack { height: 58px; width: auto; color: var(--ground); }
.foot-brand p { margin-top: 16px; color: var(--sand); font-weight: 650; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; font-weight: 650; color: var(--ground); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(244, 238, 230, .18); font-size: 15px; color: rgba(244, 238, 230, .8); }
.foot-small span { display: block; margin-top: 6px; }

/* the guide */
.guide { padding: clamp(28px, 4vw, 56px) 0 clamp(72px, 9vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 650; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink2); }
.guide h1 { font-size: clamp(40px, 5.6vw, 72px); }
.g-dates { margin-top: 22px; font-size: 16px; color: var(--ink2); }
.g-dates time { font-weight: 750; color: var(--ink); }
.g-note { margin-top: 12px; padding: 14px 18px; border-radius: 18px; background: var(--white); font-size: 16px; font-weight: 650; color: var(--ink2); box-shadow: var(--shadow); }
.g-body { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; overflow-wrap: break-word; }
.g-body h2 { font-size: clamp(28px, 3vw, 40px); }
.g-body section > p { margin-top: 12px; color: var(--ink2); }
.toc { background: var(--white); border-radius: var(--r-tile); padding: 22px 26px; box-shadow: var(--shadow); }
.toc-h { font-weight: 800; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink2); font-weight: 650; }
.g-table { width: 100%; margin-top: 16px; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); font-size: 17px; }
.g-table th, .g-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 520px) { .g-table { font-size: 15px; } .g-table th, .g-table td { padding: 10px 10px; } }
.g-table th { background: var(--sand); font-weight: 750; }
.g-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 650; }
.g-area { margin-top: 30px; }
.g-area h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.4vw, 30px); padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.g-n { display: inline-grid; place-items: center; min-width: 38px; height: 30px; border-radius: 999px; background: var(--sand); font-size: 16px; font-weight: 800; letter-spacing: 0; }
.g-items { list-style: none; margin: 0; padding: 0; }
.g-item { padding: 18px 0; border-bottom: 1px solid var(--edge); }
.g-text { font-size: 19px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.g-why { margin-top: 6px; color: var(--ink2); font-size: 17px; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.g-cite { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); margin-right: 4px; }
.sev, .tag { display: inline-block; border-radius: 10px; padding: 3px 9px; font-weight: 750; }
.sev-critical { background: var(--rose); }
.sev-high { background: var(--ochre); }
.sev-standard { background: var(--line); }
.tag { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--edge); color: var(--ink2); }
.g-cta { margin-top: 20px; background: var(--ink); color: var(--ground); border-radius: var(--r-hero); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; }
.g-cta h2 { color: var(--ground); }
.g-body .g-cta > p { margin-top: 0; color: rgba(244, 238, 230, .9); max-width: 34em; }

/* motion */
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px) rotate(-.4deg); } 50% { transform: translate(3px, -1px) rotate(.3deg); } 75% { transform: translate(-1px, 1px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 80, 44, .45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(184, 80, 44, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* print: the guide prints as a clean list */
@media print {
  .top, .foot, .toc, .g-cta, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .g-item { break-inside: avoid; }
}
