/*
 * 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-row { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ground); flex-shrink: 0; }
/* The version beside the logo, a small chip that opens What's new. */
.version {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px;
  background: var(--chip); color: var(--on-ground-2); font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums; transition: background 0.2s ease, color 0.2s ease;
}
.version:hover { background: var(--card-2); color: var(--link); text-decoration: none; }
.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); }

/* --- 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; }

/* The home hero: the icon and the line side by side as one lockup, the
   download button centered under both. The notch demo follows right away,
   so the hero stays short. */
.hero-home { padding: 32px 0 48px; }
.hero-lockup { display: flex; align-items: center; justify-content: center; gap: 32px; text-align: left; }
.hero-icon {
  display: block; flex: none; width: 152px; height: auto;
  filter: drop-shadow(0 14px 20px rgba(120, 88, 30, 0.3));
}
/* Each half of the line is its own row, so it always reads as two lines
   beside the icon (and only wraps further if a phone is too narrow). */
.hero-home h1 { font-size: clamp(2.5rem, 5.6vw, 3.6rem); margin: 0 0 16px; }
.hero-home h1 .ln { display: block; }
.hero-home .lede { font-size: 20px; max-width: none; margin: 0; }
/* A soft golden highlighter stroke under "notch": the low half of the word,
   slightly tilted, like a marker swipe. Kept as a background so the word
   wraps and reads as plain text. */
.hl {
  white-space: nowrap; padding: 0 0.08em; margin: 0 -0.04em;
  background: linear-gradient(177deg, transparent 56%, rgba(235, 193, 90, 0.45) 56.5%, rgba(235, 193, 90, 0.45) 88%, transparent 88.5%);
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-home .cta { margin-top: 36px; }

/* Phones and tablets (up to an iPad in portrait) stack the icon over the
   line and center it all. */
@media (max-width: 900px) {
  .hero-lockup { flex-direction: column; gap: 20px; text-align: center; }
  .hero-icon { width: 112px; }
}

.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 { transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
  .btn.soft:hover, .btn.store:hover { box-shadow: 0 6px 0 var(--soft-edge); }
  .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--btn-edge); }
  .btn.soft:active, .btn.store: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; }
/* "10,000+ downloads" (_downloads.py), kept whole on one line when the note wraps. */
.cta-note .downloads { white-space: nowrap; }
.cta-note .sep { margin: 0 0.15em; }
/* The quiet link to the other platform's download, after the note. */
.cta-note .other-platform { white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cta-note .other-platform:hover { color: var(--ink); }

/* Apple's Mac App Store badge, used on the Support page. The App Store Marketing Guidelines ask for the
   badge as Apple draws it, at least 40 px tall on screen, with a quarter of
   its height kept clear on every side, so the gaps around it are never
   smaller than that (62 px tall here, so 15.5 px). It does not lift like the
   toy buttons: Apple's artwork stays still. */
/* The hero's Mac App Store button: the same toy pill as Direct download,
   in ink instead of yellow, so the two editions sit as an equal pair. */
.btn.store { background: var(--card-2); color: var(--ink); box-shadow: 0 4px 0 var(--soft-edge); }
.btn.store:hover { background: var(--line); color: var(--ink); }
.store-badge { display: inline-flex; flex: none; border-radius: 10px; }
.store-badge img { display: block; width: auto; height: 62px; max-width: none; }
.store-badge:hover { text-decoration: none; }
.store-badge[hidden], .editions[hidden] { display: none; }
.cta.get { gap: 20px; align-items: center; }
/* One line on how the two Mac editions differ, so people can pick. */
.editions {
  font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--on-ground-2);
  margin: 20px auto 0; text-wrap: balance;
}
.editions strong { color: var(--on-ground); font-weight: 800; }
.editions .edition { display: block; }
.editions + .cta-note { margin-top: 6px; }
/* On the Support page the badge sits in an answer, at a calmer size
   (44 px tall, so 11 px kept clear). */
.faq-badge { margin: 12px 0; }
.faq-badge .store-badge img { height: 44px; }

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

.features-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 28px; color: var(--on-ground);
}
.paw { color: var(--pink); flex-shrink: 0; }
/* Feature cards: a pet from the app's sprites sits on top of each one,
   with a slight tilt each way that straightens up on hover. */
.feature-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
main .feature-row li { margin: 0; }
.feature-card {
  background: var(--card); border-radius: 24px; padding: 8px 20px 22px;
  border: 1px solid rgba(251, 247, 240, 0.06); box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}
.feature-card:nth-child(even) { transform: rotate(-0.8deg); }
.feature-card h3 {
  margin: 10px 0 6px; font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink);
}
.feature-card p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
/* The demo's 32 px sprite frames drawn at 2x, so each sprite pixel stays
   crisp. The frames carry headroom above the pet, hence the card's short top. */
.feature-art { position: relative; display: flex; align-items: flex-end; height: 64px; }
.feature-pet.pet { width: 64px; height: 64px; background-size: 704px 256px; }
.feature-pet + .feature-pet { margin-left: -12px; }
.feature-lock {
  position: absolute; left: 50px; bottom: 2px; box-sizing: content-box; padding: 5px;
  border-radius: 999px; background: var(--link); color: var(--btn-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .feature-card { transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .feature-card:hover, .feature-card:nth-child(even):hover { transform: translateY(-4px) rotate(0deg); }
  .feature-pet { transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .feature-card:hover .feature-pet { transform: translateY(-6px); }
  .feature-card:hover .feature-pet + .feature-pet { transition-delay: 60ms; }
}
.more { text-align: center; color: var(--on-ground-2); font-weight: 600; font-size: 15.5px; margin: 32px auto 0; max-width: 60ch; }
.more a { color: var(--on-ground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }

.thanks { margin-top: 64px; }

/* The GitHub and coffee cards: quiet dark cards, so the Download button
   stays the page's only yellow call to action. */
.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: 0 auto; }
/* 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-mark { flex: none; color: var(--link); 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); }
.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; line-height: 1.3; }
.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; }
/* What's new: one card per release, newest first. */
.release { background: var(--card-2); border-radius: 22px; padding: 20px 24px; margin: 0 0 14px; }
.release h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 6px; font-size: 22px; }
.release-tag { font-variant-numeric: tabular-nums; }
.release-when { font-family: 'Nunito', ui-rounded, system-ui, sans-serif; font-size: 14px; font-weight: 800; color: var(--gold-deep); }
.release p { margin: 0; }
.release-more { margin: 26px 0 0; text-align: center; font-size: 15.5px; }

.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: 96px; height: 96px; margin: 0 0 12px; }
.lost p { margin: 0; text-wrap: balance; }
.lost .cta { margin-top: 22px; }

/* --- party invites ----------------------------------------------------- */
/* The code sits on a chip like the app's own code field, so it reads as
   something to type if the button does not open Tabbi. */
.invite { display: flex; flex-direction: column; align-items: center; text-align: center; }
.invite img { width: 96px; height: 96px; margin: 0 0 12px; }
.invite .eyebrow { margin: 0 0 10px; }
.invite-code {
  margin: 0; padding: 10px 28px; border-radius: 20px; background: var(--card-2);
  font-family: var(--head); font-weight: 600; font-size: 34px; line-height: 1.2;
  letter-spacing: 3px; color: var(--ink); font-variant-numeric: tabular-nums;
  user-select: all; -webkit-user-select: all;
}
.invite .cta { margin-top: 28px; }
.invite .note { margin: 22px 0 0; font-size: 15px; color: var(--ink-3); text-wrap: balance; }

/* --- suggest ----------------------------------------------------------- */
.suggest { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--ink); }
.field .optional { font-family: 'Nunito', ui-rounded, system-ui, sans-serif; font-size: 15px; font-weight: 700; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; margin: 0; padding: 13px 18px; border: 2px solid var(--line); border-radius: 18px;
  background: var(--card-2); color: var(--ink); font: inherit; font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 9.5em; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; min-height: 52px; padding-right: 48px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--taupe); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--link); outline: none; background-color: var(--line); }
.field ::placeholder { color: var(--taupe-text); opacity: 1; }
.field .note { margin: 0; font-size: 15px; color: var(--ink-3); }
.suggest .btn { align-self: flex-start; border: 0; cursor: pointer; }
/* The honeypot: out of sight and out of the tab order, but still in the
   form for bots that fill in every field. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- 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) {
  .feature-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; }
  .hero { padding: 16px 0 30px; }
  .hero-home { padding: 16px 0 36px; }
  .hero-icon { width: 96px; }
  .hero-lockup { gap: 16px; }
  .hero-home .lede { font-size: 18px; }
  .hero-home .cta { margin-top: 28px; }
  .btn { width: 100%; min-height: 58px; font-size: 20px; padding: 0 24px; }
  /* The two buttons stack, about as wide as each other. */
  .cta.get { flex-direction: column; gap: 16px; }
  .cta.get .btn { width: auto; min-width: 250px; }
  .feature-row { grid-template-columns: 1fr; gap: 16px; }
  .thanks { margin-top: 48px; }
  /* 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; }
  .invite-code { font-size: 28px; padding: 8px 22px; letter-spacing: 2px; }

  /* 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; }
}

/* Phones leave the version to the footer's What's new, so the tabs fit. */
@media (max-width: 520px) {
  .version { display: 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 800px the eight footer links wrap unevenly (7 + 1, 3 + 3 + 2).
   A zero-height break after the fourth link keeps them in two rows of four. */
@media (max-width: 799px) {
  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+5) { order: 2; }
}
/* Phones cannot fit four of them in a row: three, three and two, with a
   second break from the nav's ::before. */
@media (max-width: 479px) {
  footer.site nav::before { content: ''; flex-basis: 100%; order: 1; }
  footer.site nav::after { order: 3; }
  footer.site nav a:nth-child(n+4) { order: 2; }
  footer.site nav a:nth-child(n+7) { order: 4; }
}

@media (max-width: 350px) {
  .hero-home h1 { font-size: 2.1rem; }
  /* Keep "Open source on GitHub" on one line beside the mark and arrow. */
  .gh-card { gap: 10px; padding: 14px 14px 14px 12px; }
  .gh-text strong { font-size: 16.5px; }
  .gh-arrow { margin-left: 0; }
  nav.site a { padding: 0 8px; font-size: 14px; }
  footer.site nav { gap: 0; }
  footer.site nav a { padding: 0 8px; font-size: 14px; }
}
