/*
 * tabbinotch.com, dressed like the icon.
 *
 * A warm brown ground, cream words, golden buttons, a pink paw, and very
 * round corners. Never black: the notch in the screenshots is the only
 * black on the page. One palette, whatever the visitor's appearance.
 * Motion only plays under prefers-reduced-motion: no-preference.
 */

:root {
  --ground: #2A231D;
  --card: #362D25;
  --card-2: #41372D;
  --line: #4A3F34;
  --ink: #FBF7F0;
  --ink-2: #E0D6C9;
  --ink-3: #BFB3A6;
  --on-ground: #FBF7F0;
  --on-ground-2: #DCD1C3;
  /* Taupe passes only for large text and borders (4.18:1 on the ground);
     small text uses the lighter --taupe-text (5.46:1, 4.75:1 on a card). */
  --taupe: #8E8379;
  --taupe-text: #A39888;
  --link: #F4D57E;
  --link-line: #8A7346;
  --pink: #F2A0A6;
  --gold-deep: #EBC15A;
  --btn-bg: #F4D57E;
  --btn-ink: #2A231D;
  --btn-hover: #FBE3A0;
  --btn-edge: #C9A951;
  --soft-edge: #251E18;
  --notch: #1F1A15;
  --chip: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.3);
  --head: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  color-scheme: dark;
}

/* Fredoka and Nunito (SIL Open Font License, see fonts/) are served from
   this site, so a visit sends nothing to a font service. Latin only:
   Fredoka at 600, Nunito variable from 400 to 800. */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fredoka-600.5cce26c7.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/nunito.c9c55a0a.woff2') format('woff2');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
/* A little paper grain over everything. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: url('/img/grain.02690a19.png') repeat; background-size: 160px 160px;
  opacity: 0.05; mix-blend-mode: overlay;
}
/* Short pages (404) still put the footer at the bottom of the window. */
main { flex: 1 0 auto; }

img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; text-wrap: balance; color: var(--ink); }
p, li, figcaption { text-wrap: pretty; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  /* A dark see-through chip shows on the ground, a card and a card inside a card. */
  font-size: 0.86em; background: rgba(0, 0, 0, 0.24); padding: 0.1em 0.45em; border-radius: 7px;
  overflow-wrap: anywhere;
  /* A path that wraps gets rounded ends and padding on every line. */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

a { color: var(--link); text-decoration: none; }
/* Links inside running text keep a quiet underline, so they never rely on color alone. */
:where(p, li, dd) a:not([class]) {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: var(--link-line);
}
:where(p, li, dd) a:not([class]):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 0 0 16px 0;
  font-weight: 800;
}
.skip:focus { left: 0; top: 0; text-decoration: none; z-index: 20; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 68ch; }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 8px;
}

/* --- header ------------------------------------------------------------ */
/* The tabs hang from the top edge like the notch, with the brand at the left. */
header.site { padding: 0 0 8px; }
header.site .wrap {
  max-width: 1120px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ground); justify-self: start; flex-shrink: 0; }
.brand .mark { flex-shrink: 0; width: 36px; height: 36px; }
.brand:hover { text-decoration: none; }
.brand .mark { display: block; flex: none; max-width: none; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.brand .name { font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: -0.2px; transition: color 0.2s ease; }
.brand:hover .name { color: var(--link); }
@media (prefers-reduced-motion: no-preference) {
  .brand .mark { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .brand:hover .mark { transform: rotate(-8deg); }
}
nav.site {
  display: flex; gap: 2px; padding: 6px;
  background: var(--notch); border-radius: 0 0 22px 22px;
}
nav.site a {
  font-weight: 800; font-size: 16px; color: var(--on-ground-2);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
}
nav.site a:hover { background: var(--chip); color: var(--on-ground); text-decoration: none; }
nav.site a[aria-current='page'] { background: var(--ink); color: var(--btn-ink); }

nav.site a.nav-cta { background: var(--btn-bg); color: var(--btn-ink); margin-left: 4px; box-shadow: 0 4px 0 var(--btn-edge); }
nav.site a.nav-cta:hover { background: var(--btn-hover); color: var(--btn-ink); }

/* --- hero -------------------------------------------------------------- */
.hero { color: var(--on-ground); text-align: center; padding: 28px 0 40px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.5px; line-height: 1.08;
  margin: 0 0 18px; color: var(--on-ground);
}
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--on-ground-2); margin: 0 auto; max-width: 36ch; font-weight: 600; text-wrap: balance; }

.hero-home { padding: 24px 0 72px; }
.hero-home .wrap { max-width: 1120px; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.hero-icon {
  display: block; width: 120px; height: auto; margin: 0 auto 16px;
  filter: drop-shadow(0 14px 20px rgba(120, 88, 30, 0.3));
}
.hero-home h1 { font-size: clamp(2.5rem, 6.4vw, 4.2rem); margin-bottom: 14px; }
.hero-home .lede { font-size: 20px; max-width: 32ch; }
.hero-home .cta { margin-top: 26px; }

/* The laptop: drawn in CSS, with the real panel hanging from its notch.
   80% leaves room for the base (112% of the screen) and the cat beside it,
   and 600px keeps it from crowding out the tabs below on tablets. */
.laptop { position: relative; width: min(600px, 80%); margin: 0 auto; }
.laptop-screen {
  position: relative; z-index: 1; aspect-ratio: 16 / 10; overflow: hidden;
  border: 10px solid #15110E; border-radius: 20px 20px 8px 8px;
  background:
    radial-gradient(70% 90% at 12% 105%, rgba(242, 160, 166, 0.85), transparent 60%),
    radial-gradient(60% 80% at 92% 100%, rgba(244, 213, 126, 0.75), transparent 62%),
    radial-gradient(50% 50% at 80% 10%, rgba(242, 160, 166, 0.25), transparent 70%),
    linear-gradient(180deg, #4A3A2E 0%, #6E5141 55%, #9A6F55 100%);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.6);
}
.laptop-screen::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 5.5%; background: #15110E; border-radius: 0 0 12px 12px;
}
.laptop-panel {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  display: block; width: 55%; height: auto; border-radius: 0 0 22px 22px;
  filter: drop-shadow(0 14px 18px rgba(58, 30, 12, 0.5));
}
.laptop-base {
  position: relative; z-index: 1; width: 112%; margin-left: -6%; height: 14px;
  background: #3A3029; border-radius: 0 0 16px 16px;
  box-shadow: inset 0 2px 0 rgba(251, 247, 240, 0.07), 0 18px 30px -12px rgba(0, 0, 0, 0.55);
}
/* The app's own pixel cat, peeking out from behind the lid. The sprite is
   22x26 px, sitting then blinking, drawn at a whole multiple so it stays crisp. */
.pixel-cat {
  position: absolute; right: -56px; bottom: 14px; width: 66px; height: 78px;
  background: url('/img/pixel-cat.541f019c.png') 0 0 / 200% 100% no-repeat;
  image-rendering: pixelated;
}
@media (prefers-reduced-motion: no-preference) {
  .pixel-cat { animation: cat-blink 5s steps(1, end) infinite; }
}
@keyframes cat-blink {
  0%, 94% { background-position: 0 0; }
  95%, 98% { background-position: 100% 0; }
  99%, 100% { background-position: 0 0; }
}

/* Wide windows put the words beside the laptop, so all of it fits above the fold. */
@media (min-width: 1000px) {
  .hero-home { padding: 36px 0 80px; }
  .hero-home .wrap { flex-direction: row; gap: 40px; text-align: left; }
  .hero-home .hero-copy { flex: 0 0 420px; }
  .hero-home h1 { font-size: 3rem; }
  .hero-home .hero-icon { margin-left: 0; }
  .hero-home .lede { margin: 0; }
  .hero-home .cta { justify-content: flex-start; }
  /* The right margin is the cat's room: it peeks 56px past the lid. */
  .hero-home .laptop { flex: 1 1 auto; width: auto; max-width: 620px; margin: 0 64px 0 0; }
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 62px; padding: 0 36px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--head); font-weight: 600; font-size: 21px;
  box-shadow: 0 4px 0 var(--btn-edge);
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); text-decoration: none; }
.btn .ico { flex-shrink: 0; }
.btn.soft { background: var(--card-2); color: var(--ink); box-shadow: 0 4px 0 var(--soft-edge); }
.btn.soft:hover { background: var(--line); color: var(--ink); }

/* Toy buttons: they lift on hover and press down on click. */
@media (prefers-reduced-motion: no-preference) {
  .btn, nav.site a.nav-cta { transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
  .btn:hover, nav.site a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
  .btn.soft:hover { box-shadow: 0 6px 0 var(--soft-edge); }
  .btn:active, nav.site a.nav-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--btn-edge); }
  .btn.soft:active { box-shadow: 0 2px 0 var(--soft-edge); }
}
.cta-note { font-size: 15px; font-weight: 800; color: var(--on-ground-2); margin: 14px 0 0; }

/* --- home tabs --------------------------------------------------------- */
main { padding: 0 0 64px; }
main.home .wrap { max-width: 1120px; }

.tabs-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 24px; color: var(--on-ground);
}
.paw { color: var(--pink); flex-shrink: 0; }
.tab-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
/* Sticker cards: a slight tilt each way, straightening up on hover. */
.tab-card {
  position: relative; margin: 0; background: var(--card); border-radius: 28px; padding: 10px 10px 18px;
  border: 1px solid rgba(251, 247, 240, 0.06); box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.tab-card:nth-child(even) { transform: rotate(-1.2deg); }
@media (prefers-reduced-motion: no-preference) {
  .tab-card { transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .tab-card:hover, .tab-card:nth-child(even):hover { transform: translateY(-4px) rotate(0deg); }
}
.tab-label {
  position: absolute; z-index: 1; top: -11px; left: 22px;
  padding: 1px 12px; border-radius: 999px; background: var(--pink); color: var(--btn-ink);
  font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Trim the wallpaper either side of the notch so the panel gets the width. */
.tab-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 1120 / 520; object-fit: cover;
  border-radius: 20px;
}
.tab-card figcaption { padding: 12px 8px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.tab-card strong { display: block; font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.more { text-align: center; color: var(--on-ground-2); font-weight: 600; font-size: 15.5px; margin: 28px auto 0; max-width: 60ch; }
.more a { color: var(--on-ground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }

.gh-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: fit-content; max-width: 100%; margin: 0; padding: 16px 22px 16px 18px;
  background: var(--card); color: var(--ink); border-radius: 24px; box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
/* The cards also brighten on hover, so the hover still shows with reduced motion. */
.gh-card:hover { transform: translateY(-3px) rotate(-0.6deg); text-decoration: none; background: var(--card-2); }
.card-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 36px auto 0; }
/* Side by side the two cards share one width, so their text and arrows line up. */
.card-pair .gh-card { flex: 0 1 380px; }
.coffee-card { background: #F4D57E; color: #2A231D; }
.coffee-card .gh-text strong { color: #2A231D; }
.coffee-card .gh-text span { color: #5E4B2E; }
.coffee-card .gh-arrow { color: #7A6340; }
.coffee-mark { flex: none; color: #2A231D; overflow: visible; }
.coffee-card .steam { opacity: 0.55; transition: transform 0.6s ease, opacity 0.6s ease; }
.coffee-card:hover .steam { opacity: 1; transform: translateY(-2px); }
.coffee-card:hover .s2 { transition-delay: 0.08s; }
.coffee-card:hover .s3 { transition-delay: 0.16s; }
.coffee-card:hover { transform: translateY(-3px) rotate(0.6deg); background: var(--btn-hover); }
.gh-cat {
  position: absolute; top: -34px; right: 26px; width: 48px; height: 48px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gh-card:hover .gh-cat { transform: translateY(-6px) rotate(8deg); }
/* Same 30px box as the coffee cup, so both cards' text starts at the same x. */
.gh-mark { flex: none; width: 30px; color: var(--ink); }
.gh-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.gh-text strong { font-family: var(--head); font-weight: 600; font-size: 18px; }
.gh-text span { font-size: 14px; font-weight: 600; color: var(--ink-3); text-wrap: pretty; }
.gh-arrow { flex: none; margin-left: 6px; font-size: 20px; font-weight: 800; color: var(--taupe-text); transition: transform 0.25s ease; }
.gh-card:hover .gh-arrow { transform: translateX(3px); }
.socials { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.made a.social {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px;
  color: var(--on-ground-2); text-decoration: none; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.made a.social:hover { background: var(--chip); color: var(--on-ground); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .made a.social, .made a.social:hover { transition: none; transform: none; } }
.made a { color: var(--on-ground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
@media (prefers-reduced-motion: reduce) {
  .gh-card, .gh-cat, .gh-arrow, .coffee-card .steam { transition: none; }
  .gh-card:hover, .gh-card:hover .gh-cat, .gh-card:hover .gh-arrow { transform: none; }
}

.about { text-align: center; max-width: 34rem; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.about p { margin: 0 0 12px; text-wrap: balance; }
.about-cat { display: block; margin: 0 auto 12px; }
.about-lead { font-family: var(--head); font-weight: 600; font-size: 26px; color: var(--ink); }
.about .cta { margin-top: 24px; }
.press { margin-top: 48px; padding-top: 32px; border-top: 2px dashed var(--line); }
.press h2 { margin: 0 0 12px; }
.press p { font-size: 16px; color: var(--ink-2); }
.press .cta { margin-top: 24px; }

/* --- content pages ----------------------------------------------------- */
.sheet {
  background: var(--card); border-radius: 36px; padding: 40px 44px 44px;
  box-shadow: var(--shadow);
}
.sheet > :first-child { margin-top: 0; }
main h2 { font-size: 25px; margin: 44px 0 10px; scroll-margin-top: 24px; }
main h3 { font-size: 19px; margin: 26px 0 6px; }
main p, main li { color: var(--ink-2); }
main strong { color: var(--ink); font-weight: 800; }
main ul, main ol { padding-left: 24px; }
main li { margin-bottom: 8px; }
main li::marker { color: var(--gold-deep); font-weight: 800; }

.card { background: var(--card-2); border-radius: 26px; padding: 24px 28px; margin: 0 0 22px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card ul { margin-bottom: 0; }
.card > p:last-child { margin-bottom: 0; }

.faq { background: var(--card-2); border-radius: 22px; margin: 10px 0; scroll-margin-top: 24px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 17px 56px 17px 24px; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--ink);
  border-radius: 22px; text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep);
  border-radius: 2px; transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { background: var(--line); }
.faq-body { padding: 0 24px 8px; }
.faq-body > :first-child { margin-top: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
thead th { font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
tbody tr:last-child td { border-bottom: none; }
.scroller { overflow-x: auto; background: var(--card-2); border-radius: 22px; margin: 18px 0 22px; }
.scroller th:first-child, .scroller td:first-child { padding-left: 22px; }
.scroller th:last-child, .scroller td:last-child { padding-right: 22px; min-width: 9em; }

.lost { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lost img { width: 128px; height: 128px; margin: 4px 0 10px; }
.lost p { margin: 0; text-wrap: balance; }
.lost .cta { margin-top: 22px; }

/* --- footer ------------------------------------------------------------ */
footer.site { padding: 8px 0 28px; text-align: center; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
footer.site nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--on-ground-2); font-weight: 800; font-size: 15px;
}
footer.site nav a:hover { background: var(--chip); color: var(--on-ground); text-decoration: none; }
.made { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--on-ground-2); }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
  .tab-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header.site { padding: 0 0 6px; }
  header.site .wrap { grid-template-columns: auto 1fr; }
  header.site nav.site { justify-self: end; }
  .brand .name { font-size: 24px; }
  nav.site a { padding: 0 11px; font-size: 15px; }
  nav.site a.nav-cta { margin-left: 2px; }
  .hero { padding: 16px 0 30px; }
  .hero-home { padding: 12px 0 48px; }
  .hero-icon { width: 96px; }
  .hero-home .wrap { gap: 36px; }
  .laptop-screen { border-width: 6px; border-radius: 14px 14px 6px 6px; }
  .laptop-screen::before { border-radius: 0 0 7px 7px; }
  .laptop-panel { width: 60%; border-radius: 0 0 12px 12px; }
  .laptop-base { height: 9px; border-radius: 0 0 10px 10px; }
  .pixel-cat { right: -36px; bottom: 9px; width: 44px; height: 52px; }
  .tab-card { border-radius: 18px; }
  .tab-card img { border-radius: 12px; }
  .hero-home .lede { font-size: 18px; }
  .btn { width: 100%; min-height: 58px; font-size: 20px; padding: 0 24px; }
  .tab-row { grid-template-columns: 1fr; gap: 16px; }
  /* Cards nest inside the sheet, so their padding adds up twice: keep it
     tight to leave a readable line for the text inside. */
  .sheet { padding: 26px 16px 28px; border-radius: 28px; }
  .card { padding: 18px 16px; border-radius: 22px; }
  main ul, main ol { padding-left: 20px; }
  .faq summary { padding: 15px 46px 15px 16px; font-size: 17px; }
  .faq summary::after { right: 20px; }
  .faq-body { padding: 0 16px 6px; }
  main h2 { font-size: 22px; }

  /* Three columns do not fit a phone: each row becomes a small card of its
     own, the category as its title and how long it is kept underneath. */
  .scroller { background: none; overflow: visible; }
  .scroller thead { display: none; }
  .scroller table, .scroller tbody, .scroller tr, .scroller td { display: block; }
  .scroller tr { background: var(--card-2); border-radius: 20px; padding: 16px; margin-bottom: 10px; }
  .scroller td, .scroller td:first-child, .scroller td:last-child { padding: 0; border: none; min-width: 0; white-space: normal; }
  .scroller td:first-child { font-size: 16.5px; margin-bottom: 4px; }
  .scroller td:last-child { margin-top: 8px; font-weight: 700; color: var(--ink); }
  .scroller td:last-child::before { content: 'Kept: '; font-weight: 800; color: var(--gold-deep); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}

/* The narrowest phones keep the icon as the home link and drop the word,
   so the three tabs fit on one line. */
@media (max-width: 420px) {
  .brand .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Below 640px the six footer links wrap unevenly (5 + 1, 4 + 2, 3 + 2 + 1).
   A zero-height break after the third link keeps them in two even rows. */
@media (max-width: 639px) {
  footer.site nav { gap: 0 4px; }
  footer.site nav::after { content: ''; flex-basis: 100%; order: 1; }
  footer.site nav a { padding: 0 10px; }
  footer.site nav a:nth-child(n+4) { order: 2; }
}

@media (max-width: 350px) {
  nav.site a { padding: 0 8px; font-size: 14px; }
  footer.site nav { gap: 0; }
  footer.site nav a { padding: 0 8px; font-size: 14px; }
}
