/* zugax.com. The palette is the logo's (tools/brand.py): persimmon, ink and cream, flat. The outlines, lips and hard
   shadows are Wanderwhale's. */

@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka-500.woff?v=7e687e4777) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka-600.woff?v=2d2493c64f) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-500.woff?v=8d7bb566a8) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-800.woff?v=699981060b) format("woff"); font-weight: 800; font-display: swap; }

:root {
  --cream: #FFF4E4;
  --paper: #FFFCF7;
  --ink: #1F1410;
  --body: #3F2A1F;
  --muted: #6A4A36;
  --line: #EBD9C1;
  --lip: #EAD3B0;
  --persimmon: #FF5A2C;
  --persimmon-lip: #D8431B;
  --tint-persimmon: #FFE3D4;
  --link: #B5340E;          /* persimmon, deep enough for text: 5:1 or better on every ground here */
  --tint-sky: #DFF1FA;
  --tint-peach: #FFE6D6;
  --tint-honey: #FFF0CC;
  --tint-leaf: #E4F3D6;
  --tint-pearl: #F0E5FA;
  --radius: 24px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  /* The notch, the rounded corners and the home bar (viewport-fit=cover): content keeps clear of them, while the page's
     grounds (the about band, the footer) run under them to the screen's edge. */
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --head: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--body); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-tap-highlight-color: rgba(255, 90, 44, 0.16); }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--cream); font: 500 1.0625rem/1.65 var(--text); overflow-x: hidden; }
main { flex: 1 0 auto; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.25rem + 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.375rem; line-height: 1.2; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 800; }
::selection { background: #FFC9B3; color: var(--ink); }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right)); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: max(16px, var(--safe-left)); top: -100px; z-index: 10; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 1rem var(--head); text-decoration: none; }
.skip:focus { top: 12px; color: var(--cream); }
.eyebrow { margin: 0 0 0.6em; color: var(--link); font: 600 0.95rem/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.lede { max-width: 40ch; color: var(--body); font-size: clamp(1.15rem, 2.1vw, 1.375rem); line-height: 1.55; }

/* Buttons: Wanderwhale's button shape (outline, lip, hard shadow) in the studio's flat persimmon. Ink text: cream on
   persimmon is under 3:1. */
.button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 28px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--persimmon);
  box-shadow: inset 0 -4px 0 var(--persimmon-lip), 0 4px 0 var(--ink);
  color: var(--ink); font: 600 1.125rem/1.2 var(--head); text-align: center; text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
@media (hover: hover) {
  .button:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 -4px 0 var(--persimmon-lip), 0 5px 0 var(--ink); }
}
.button:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--persimmon-lip), 0 1px 0 var(--ink); }
.button-note { padding-left: 12px; border-left: 2px solid rgba(31, 20, 16, 0.35); color: var(--ink); font: 600 0.95rem var(--text); }

/* Header and footer. */
.site-header { padding-block: max(20px, env(safe-area-inset-top, 0px)) 20px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.header-logo { display: flex; align-items: center; min-height: 46px; border-radius: 6px; }
/* The word's x-height sits in the top two thirds of its box (the g's tail hangs below), so it drops a little to line
   up with the nav's words. */
.header-logo img { height: 34px; width: auto; transform: translateY(4px); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; color: var(--ink); font: 500 1.0625rem/1 var(--head); text-decoration: none; }
@media (hover: hover) { .site-nav a:hover { background: var(--tint-persimmon); color: var(--ink); } }
.site-nav a[aria-current="page"] { background: var(--tint-persimmon); box-shadow: inset 0 0 0 2px var(--persimmon); }

.site-footer { margin-top: clamp(72px, 10vw, 128px); padding-block: 48px calc(40px + var(--safe-bottom)); background: var(--ink); color: #E3D3C2; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer-logo { display: flex; align-items: center; width: max-content; min-height: 44px; border-radius: 6px; }
.footer-logo img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 999px; color: var(--cream); font: 500 1rem var(--head); text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { background: rgba(255, 244, 228, 0.1); color: var(--cream); } }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: -12px 0 0 -12px; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; padding: 6px 12px; border-radius: 999px; color: var(--cream); font: 500 1rem var(--head); text-decoration: none; }
.footer-social a span { color: #C9B5A2; }
@media (hover: hover) { .footer-social a:hover { background: rgba(255, 244, 228, 0.1); color: var(--cream); } }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 24px; border-top: 1.5px solid rgba(255, 244, 228, 0.14); font-size: 0.95rem; }

/* The home page. */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px 56px; align-items: end; padding-block: clamp(28px, 6vw, 80px) clamp(32px, 4vw, 52px); }
.intro h1 { max-width: 13ch; margin: 0; }
.intro .lede { margin: 0; padding-bottom: 0.35em; }
.intro .lede a { font-weight: 800; }

.showcase { position: relative; overflow: hidden; isolation: isolate; border: 3px solid var(--ink); border-radius: 32px; background: #CFEAF7; box-shadow: 0 6px 0 var(--ink); }
.showcase-media { position: relative; aspect-ratio: 2 / 1; }
.showcase-video { width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; }
.showcase-copy { position: absolute; inset: 0 0 0 auto; width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px clamp(16px, 2.4vw, 40px); text-align: center; }
.showcase-title { margin: 0; line-height: 0; }
.showcase-cta { margin-top: 16px; }
.showcase-logo { width: min(100%, 440px); margin-bottom: 12px; }
.showcase-copy p { max-width: 26ch; color: var(--ink); font: 500 clamp(1.1rem, 1.7vw, 1.3rem)/1.4 var(--head); }
.showcase-copy .soon { max-width: none; }
.soon { display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 0; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 21px; background: rgba(255, 253, 249, 0.9); text-align: left; text-wrap: balance; font: 600 clamp(0.875rem, 0.75rem + 0.35vw, 1rem)/1.25 var(--head) !important; }
.soon-dot { flex: none; }
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--persimmon); box-shadow: 0 0 0 3px rgba(255, 90, 44, 0.25); }
.motion-toggle { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: rgba(255, 253, 249, 0.92); color: var(--ink); cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .icon-play { display: none; fill: currentColor; stroke-width: 2; }
.motion-toggle.paused .icon-play { display: block; }
.motion-toggle.paused .icon-pause { display: none; }

.section { padding-top: clamp(64px, 9vw, 120px); scroll-margin-top: 8px; }
.section-head { max-width: 46rem; }
.section-head > p:not(.eyebrow) { font-size: 1.125rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feature, .principle, .fact-card, .download { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 var(--ink); }
.feature { padding: 14px 14px 22px; }
.feature h3, .feature p { padding-inline: 8px; }
.feature p { margin: 0; font-size: 1rem; line-height: 1.55; }
.feature-art { display: flex; align-items: center; justify-content: center; gap: 6px; height: 184px; margin-bottom: 18px; padding: 18px; border-radius: 16px; }
.feature-art img { max-height: 148px; width: auto; }
.feature-art.pair img { max-height: 132px; max-width: 40%; object-fit: contain; }
.feature-art.pair img:first-child { order: 0; }
.feature-art.pair .pair-arrow { order: 1; flex: none; width: 28px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-art.pair img:nth-child(2) { order: 2; }
.tint-sky .feature-art, .download-preview.tint-sky, .resident.tint-sky { background: var(--tint-sky); }
.tint-peach .feature-art, .download-preview.tint-peach, .resident.tint-peach { background: var(--tint-peach); }
.tint-honey .feature-art, .download-preview.tint-honey, .resident.tint-honey { background: var(--tint-honey); }
.tint-leaf .feature-art, .download-preview.tint-leaf, .resident.tint-leaf { background: var(--tint-leaf); }
.tint-pearl .feature-art, .download-preview.tint-pearl, .resident.tint-pearl { background: var(--tint-pearl); }

.residents-block { margin-top: clamp(56px, 7vw, 88px); }
.subhead { font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; }
.residents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.resident { overflow: hidden; padding: 20px 16px 20px; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink); text-align: center; }
.resident-art { display: flex; align-items: flex-end; justify-content: center; height: 270px; margin-bottom: 14px; }
.resident-art img { max-height: 100%; width: auto; filter: drop-shadow(0 6px 0 rgba(31, 20, 16, 0.08)); }
.resident-name { margin: 0; color: var(--ink); font: 600 1.5rem/1.2 var(--head); }
.resident-role { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.residents-note { max-width: 44ch; margin: 28px auto 0; color: var(--muted); text-align: center; font-size: 1.0625rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border: 2px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); font: 500 1rem/1.3 var(--head); }
.chips li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #7CC35A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23FFFDF9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.about { margin-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 112px); background: #FCE6CF; border-block: 2.5px solid var(--lip); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.principle { padding: 26px 26px 24px; }
.principle svg { width: 60px; height: 60px; margin-bottom: 18px; padding: 8px; border-radius: 18px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.principle.tint-sky svg { background: var(--tint-sky); }
.principle.tint-peach svg { background: var(--tint-peach); }
.principle.tint-leaf svg { background: var(--tint-leaf); }
.principle p { margin: 0; font-size: 1.0625rem; }

.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 48px; align-items: center; padding: clamp(28px, 5vw, 56px); border: 3px solid var(--ink); border-radius: 32px; background: var(--tint-persimmon); box-shadow: 0 6px 0 var(--ink); }
.contact h2 { margin-bottom: 0.3em; }
.contact-copy p { margin: 0; font-size: 1.125rem; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.contact-label { color: #8A3420; font: 600 0.9rem/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 600 clamp(1.3rem, 2.6vw, 1.75rem)/1.2 var(--head); overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--link); }
.contact-more { padding-block: 9px; margin-block: -6px; color: var(--ink); font-size: 1rem; }
.contact-social { display: flex; flex-wrap: wrap; gap: 0 24px; }
.contact-social a { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; color: var(--ink); font: 600 clamp(1.15rem, 2vw, 1.35rem)/1.2 var(--head); }
.contact-social a span { color: var(--muted); font-weight: 500; }
.contact-social a:hover, .contact-social a:hover span { color: var(--link); }
.facts .sep:last-child { display: none; }
.contact.compact { grid-template-columns: 1.4fr 1fr; }

/* The press kit. */
.page-head { padding-block: clamp(28px, 6vw, 72px) 0; }
.page-head .lede { max-width: 46ch; margin-bottom: 1.4em; }
.fact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.page-head + .section { padding-top: clamp(40px, 5vw, 64px); }
.fact-card { padding: 28px 28px 20px; }
.fact-card h3 { margin-bottom: 18px; }
.fact-logo { height: 88px; width: auto; }
.fact-logo.studio { height: 48px; margin-block: 14px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 16px; padding: 11px 0; border-top: 1.5px solid var(--line); }
.facts dt { color: var(--muted); font: 600 1rem/1.5 var(--head); }
.facts dd { margin: 0; color: var(--ink); }
.press-text { max-width: 46rem; }
.press-text h3 { margin-top: 1.6em; }
.short { color: var(--ink); font: 500 1.3rem/1.45 var(--head); }
.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { position: relative; margin-bottom: 0.7em; padding-left: 28px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--persimmon); }
.section-note { max-width: 52ch; color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 28px; }
.download { display: flex; flex-direction: column; padding: 12px 12px 18px; }
.download.wide { grid-column: span 2; }
.download-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 18px; border-radius: 14px; overflow: hidden; }
.download.wide .download-preview { padding: 0; aspect-ratio: auto; flex: 1; }
.download.wide .download-preview img { width: 100%; height: 100%; object-fit: cover; }
.download-preview img { max-height: 100%; width: auto; object-fit: contain; }
.download-preview img.mark { height: 100%; }
.download-preview img.logo { width: 74%; height: auto; }
.download-preview.tall { aspect-ratio: 1; }
.download-preview video { width: 100%; height: auto; border-radius: 8px; }
.download-preview.sky { background: linear-gradient(#BFE5F7, #FFF3D9); }
.download-preview.cream { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.download-preview.ink { background: var(--ink); }
.download-name { margin: 14px 6px 2px; color: var(--ink); font: 600 1.0625rem/1.3 var(--head); }
.download-links { margin: 0 6px; font-size: 0.95rem; }
.sting { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px 32px; align-items: start; margin-top: 28px; }
.sting video { width: 100%; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); background: var(--cream); }
.sting-links { display: grid; gap: 4px; }
.sting-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; border-bottom: 1.5px solid var(--line); }
.sting-links a { font: 600 1.0625rem var(--head); }
.sting-links span { color: var(--muted); font-size: 0.95rem; }

/* Text pages. */
.prose { max-width: calc(46rem + 2 * var(--gutter)); padding-top: clamp(28px, 6vw, 72px); }
.prose h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.6vw, 1.75rem); }
.prose .lede { max-width: none; }
.updated { color: var(--muted); font-size: 0.95rem; }
.draft-note { padding: 12px 16px; border: 2px dashed var(--persimmon-lip); border-radius: 12px; background: var(--tint-persimmon); color: var(--ink); font: 500 1rem/1.45 var(--head); }
.facts.legal { margin-top: 28px; border-bottom: 1.5px solid var(--line); }

.notfound { display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; padding-block: clamp(40px, 9vw, 112px) 0; }
.notfound img { height: clamp(220px, 32vw, 340px); width: auto; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* Links in lists of facts and downloads: the words stay where they are, and the tap area reaches 44 px around them. */
.facts dd a, .download-links a, .sting-links a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.download-links a { padding: 12px 7px; margin: -12px -7px; }
.sting-links a { padding-block: 12px; margin-block: -12px; }

.section-cta { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; }

/* The game's page. */
.game-hero { padding-top: clamp(8px, 2vw, 24px); }
/* Five cards: three over two on a wide screen, two by two and one on a tablet, one under another on a phone. */
.help-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.help-cards li { display: flex; flex: 1 1 300px; }
.help-card { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 20px 20px 22px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 var(--ink); color: var(--body); text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease; }
.help-card:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--lip), 0 1px 0 var(--ink); }
@media (hover: hover) {
  .help-card:hover { color: var(--body); transform: translateY(-2px); box-shadow: inset 0 -4px 0 var(--lip), 0 6px 0 var(--ink); }
  .help-card:hover .help-title { color: var(--link); }
}
.help-icon svg { width: 52px; height: 52px; margin-bottom: 8px; padding: 7px; border-radius: 16px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.help-card.tint-sky .help-icon svg { background: var(--tint-sky); }
.help-card.tint-peach .help-icon svg { background: var(--tint-peach); }
.help-card.tint-leaf .help-icon svg { background: var(--tint-leaf); }
.help-card.tint-honey .help-icon svg { background: var(--tint-honey); }
.help-card.tint-pearl .help-icon svg { background: var(--tint-pearl); }
.help-title { color: var(--ink); font: 600 1.25rem/1.2 var(--head); }
.help-title::after { content: "\00a0\2192"; color: var(--link); }
.help-text { font-size: 1rem; line-height: 1.5; }
.game-contact { margin-top: clamp(40px, 6vw, 64px); }
.game-contact h3 { margin-bottom: 0.35em; font-size: clamp(1.5rem, 3vw, 2rem); }

/* A game's support and legal pages. */
.doc-page { padding-top: clamp(20px, 4vw, 48px); }
.crumb { margin: 0 0 4px; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 8px; color: var(--link); font: 600 1rem/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.crumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .crumb a:hover { color: var(--ink); } }
.doc-layout { display: grid; gap: 32px 56px; }
.doc-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
.doc { max-width: 46rem; padding: 0; }
.doc h1 { margin-bottom: 0.5em; }
.doc h3 { margin: 1.6em 0 0.5em; font-size: 1.25rem; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.doc li { margin-bottom: 0.45em; padding-left: 0.2em; }
.doc li > ul, .doc li > ol { margin: 0.45em 0 0; }
.doc ul li::marker { color: var(--persimmon); }
.doc ol li::marker { color: var(--link); font: 600 1em var(--head); }
.doc hr { margin: 2.4em 0; border: 0; border-top: 2px solid var(--line); }
.doc code { padding: 1px 6px; border-radius: 6px; background: #F6E8D6; color: var(--ink); font: 500 0.92em/1.4 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.doc code.open-point { background: #FFE08A; box-shadow: inset 0 0 0 1.5px #C98A00; }
.doc blockquote { margin: 0 0 2em; padding: 14px 18px; border: 2px dashed var(--persimmon-lip); border-radius: 14px; background: var(--tint-persimmon); color: var(--ink); }
.doc blockquote p { margin: 0 0 0.5em; font: 500 1rem/1.5 var(--head); }
.doc blockquote p:last-child { margin: 0; }
.doc h2 { scroll-margin-top: 16px; }
.table { margin: 0 0 1.4em; overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.table table { width: 100%; border-collapse: collapse; font-size: 0.975rem; line-height: 1.5; }
.table th { padding: 12px 16px; background: #FBEBD6; color: var(--ink); font: 600 0.95rem/1.3 var(--head); text-align: left; vertical-align: bottom; }
.table td { padding: 12px 16px; border-top: 1.5px solid var(--line); vertical-align: top; }
.toc-title, .toc-mobile summary { margin: 0; color: var(--ink); font: 600 1rem/1.3 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.toc a, .toc-mobile a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--body); font: 500 1rem/1.3 var(--head); text-decoration: none; }
@media (hover: hover) { .toc a:hover, .toc-mobile a:hover { color: var(--link); } }
.toc { display: none; }
.toc-mobile { margin: 0 0 8px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 10px; height: 10px; margin-top: -4px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform 160ms ease; }
.toc-mobile[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.toc-mobile ol { padding: 0 18px 10px; }
.toc-mobile li + li a, .toc li + li a { border-top: 1.5px solid var(--line); }
.holding .lede { max-width: 40ch; }
.doc-links { max-width: 46rem; margin-top: clamp(48px, 7vw, 72px); padding-top: 28px; border-top: 2px solid var(--line); }
.doc-links-title { margin: 0 0 10px; color: var(--muted); font: 600 0.95rem/1.2 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.doc-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 1rem/1.2 var(--head); text-decoration: none; }
@media (hover: hover) { .doc-links a:hover { border-color: var(--persimmon); color: var(--ink); } }
.doc-links a[aria-current] { border-color: var(--ink); background: var(--cream); font-weight: 600; pointer-events: none; }

@media (min-width: 1000px) {
  .doc-layout.has-toc { grid-template-columns: 15rem minmax(0, 46rem); }
  .toc { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding-top: 8px; }
  .toc-mobile { display: none; }
}

/* The invite page. */
.invite { max-width: calc(52rem + 2 * var(--gutter)); padding-top: clamp(16px, 4vw, 48px); }
.invite-card { display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 48px) clamp(26px, 5vw, 44px); border: 3px solid var(--ink); border-radius: 32px; background: linear-gradient(#CFEAF7, #FFF3DE 70%); box-shadow: 0 6px 0 var(--ink); text-align: center; }
.invite-logo { width: min(100%, 300px); margin-bottom: 18px; }
.invite-card h1 { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.4rem); }
.invite-card .lede { max-width: 32ch; margin-inline: auto; }
.invite-code { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 26rem); margin: 6px 0 18px; padding: 18px 18px 20px; border: 2.5px dashed var(--ink); border-radius: 22px; background: var(--paper); }
.invite-code-label { color: var(--muted); font: 600 0.9rem/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.invite-code-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
.invite-code-value { color: var(--ink); font: 600 clamp(1.9rem, 1.3rem + 3vw, 2.5rem)/1.1 var(--head); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; user-select: all; }
.copy-button { min-width: 88px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); box-shadow: 0 3px 0 var(--ink); color: var(--ink); font: 600 1rem/1 var(--head); cursor: pointer; }
.copy-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.invite-code .button { margin-top: 6px; }
.invite-code-note { color: var(--muted); font-size: 0.95rem; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(28px, 5vw, 44px); }
.step { position: relative; padding: 22px 22px 20px 78px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 var(--ink); }
.step h2 { margin: 2px 0 6px; font-size: 1.3rem; line-height: 1.2; }
.step p { margin: 0; font-size: 1rem; line-height: 1.55; }
.step-number { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); font: 600 1.25rem/1 var(--head); }
.step.tint-sky .step-number { background: var(--tint-sky); }
.step.tint-peach .step-number { background: var(--tint-peach); }
.step.tint-leaf .step-number { background: var(--tint-leaf); }
.step.tint-honey .step-number { background: var(--tint-honey); }

/* Narrower screens. */
@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .residents { grid-template-columns: repeat(2, 1fr); }
  .resident-art { height: 240px; }
  .principles { grid-template-columns: 1fr; }
  .principle { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; }
  .principle svg { grid-row: span 2; margin: 0; }
  .principle h3 { margin-top: 4px; }
}

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; }
  .intro .lede { padding: 0; }
  .showcase-media { aspect-ratio: 3 / 2; }
  .showcase-copy { position: static; width: auto; padding: 22px 22px 26px; border-top: 3px solid var(--ink); background: var(--paper); }
  .showcase-logo { width: min(100%, 320px); }
  .contact, .contact.compact { grid-template-columns: 1fr; }
  .fact-cards { grid-template-columns: 1fr; }
  .sting { grid-template-columns: 1fr; }
  .download.wide { grid-column: auto; }
  .download.wide .download-preview { aspect-ratio: 1024 / 500; flex: none; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; margin-left: -12px; }
  .footer-social { margin-top: -20px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header { padding-block: 12px 4px; }
  .header-logo img { height: 30px; transform: translateY(3px); }
  .site-nav { width: 100%; }
  .site-nav ul { margin-left: -12px; gap: 0; }
  .site-nav a { padding: 8px 12px; font-size: 1rem; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; align-items: start; padding: 12px 14px 16px 12px; }
  .feature-art { grid-row: span 2; height: 112px; margin: 0; padding: 10px; }
  .feature-art img { max-height: 88px; }
  .feature-art.pair { gap: 0; padding: 8px 4px; }
  .feature-art.pair img { max-height: 74px; max-width: 42%; }
  .feature-art.pair .pair-arrow { width: 14px; }
  .feature h3 { margin: 6px 0 4px; padding: 0; font-size: 1.2rem; }
  .feature p { padding: 0; font-size: 0.975rem; }
  .residents { gap: 12px; }
  .resident { padding: 14px 8px 16px; border-radius: 20px; }
  .resident-art { height: 190px; }
  .resident-name { font-size: 1.25rem; }
  .resident-role { font-size: 0.925rem; line-height: 1.35; }
  .chips { justify-content: flex-start; }
  .principle { grid-template-columns: 1fr; padding: 22px; }
  .principle svg { grid-row: auto; margin-bottom: 14px; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .notfound { grid-template-columns: 1fr; justify-items: start; }
  .notfound img { height: 200px; }
  .showcase-copy { padding: 20px 16px 24px; }
  .help-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; align-items: start; padding: 16px 18px 18px 16px; }
  .help-icon { grid-row: span 2; }
  .help-icon svg { margin: 0; }
  .help-title { padding-top: 2px; }
  .table { border: 0; background: none; overflow: visible; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tr { margin-bottom: 12px; padding: 4px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
  .table td { padding: 8px 0; border: 0; }
  .table td + td { border-top: 1.5px solid var(--line); }
  .table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font: 600 0.85rem/1.3 var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
  .step { padding: 18px 18px 18px 70px; }
  .step-number { left: 16px; top: 16px; }
}

@media (max-width: 374px) {
  .site-nav a { padding-inline: 7px; font-size: 0.95rem; }
  .site-nav ul { margin-left: -7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .help-card, .toc-mobile summary::after { transition: none; }
}
