/* Interim styling: a close copy of the old Squarespace look (off-white page,
   yellow uppercase wordmark, centered uppercase menu, thin gray rules, light
   gray text). Free look-alike fonts: Jost stands in for Brandon Grotesque and
   Futura PT, Figtree for Proxima Nova. Grays are darkened from Squarespace's
   so all text reads at 4.5:1 or better on the page, except the yellow
   wordmark, which keeps the brand yellow (founder choice). The current-page
   menu item is dark ink with a brand-yellow underline. No dark mode: the
   yellow brand and gray text are a light design. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/jost-v20-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/figtree-v9-latin.woff2") format("woff2");
}
:root {
  --bg: #fcfcfc;
  --brand: #ffbb0f;   /* Squarespace wordmark yellow, 1.7:1, brand only */
  --ink: #111111;     /* links, 18.4:1 */
  --heading: #333333; /* About names, 12.3:1 */
  --text: #6b6b6b;    /* body text, 5.2:1 (Squarespace #919191) */
  --soft: #747474;    /* "Hello!" and menu, 4.56:1 (Squarespace #d1d1d1, #999) */
  --app: #737373;     /* app names, 4.62:1, as Squarespace */
  --line: #dddddd;    /* rules, decoration only */
  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 900px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.8 var(--body);
}
/* Phone first: 16px side gutters; content never wider than 900px. */
header, main, footer { max-width: calc(var(--content) + 2rem); margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(17, 17, 17, 0.35); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 0.75rem; }

/* Header: centered wordmark, centered menu, then a thin rule. */
header { text-align: center; padding-top: clamp(2rem, 6vw, 4.75rem); }
header::after { content: ""; display: block; height: 1px; background: var(--line); margin-top: clamp(1.5rem, 3vw, 2rem); }
/* Sized so CHIN AND CHEEKS stays on one line at 320px wide. */
.brand {
  display: inline-block; padding: 0.5rem 0;
  font: 500 clamp(1.5rem, 7.5vw, 2.625rem)/1.2 var(--display);
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--brand); text-decoration: none;
}
/* Wraps when enlarged text no longer fits on one line. */
nav ul { list-style: none; margin: 0.45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 2.5rem; }
/* Thumb-sized: at least 44px tall. */
nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 1.125rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 1px;
  color: var(--soft); text-decoration: none;
}
nav a:hover { color: var(--ink); }
/* Current page: dark ink text (readable) with the brand-yellow underline as its cue. */
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

main { padding-top: clamp(2.25rem, 4vw, 3.2rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }

/* Home intro. */
.intro { text-align: center; margin: 0 auto 2.1rem; }
.intro h1 {
  margin: 0 0 0.6rem;
  font: 400 1.21875rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--soft);
}
/* Why the narrow block: Safari fills a multi-line text selection to the
   block's edges, so a full-width block makes the highlight run edge to edge. */
.intro p { font-size: 1rem; line-height: 1.8; max-width: 40rem; margin-inline: auto; }

/* App cards: one column on phones, three side by side from 640px. */
.apps { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.app-link { display: block; text-decoration: none; color: inherit; }
.app-link:hover h2 { text-decoration: underline; text-underline-offset: 0.2em; }
.app-icon { display: block; width: 160px; height: auto; aspect-ratio: 1; border-radius: 22.5%; }
.app h2 {
  margin: 1rem 0 0.6rem;
  font: 300 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--app);
}
.app p { font-size: 1rem; line-height: 1.5; margin-bottom: 0.6rem; }
/* Awards and ratings under a card: small uppercase Jost pills on a soft
   brand-yellow tint, so they stand apart from the paragraphs above. Amber
   text on the tint reads at 6.1:1. A list, so screen readers count them. */
.recognition {
  list-style: none; margin: 0.9rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.recognition li {
  padding: 0.3rem 0.65rem; border: 1px solid #f5dc93; border-radius: 999px;
  background: #fff3d1; color: #805200;
  font: 400 0.8125rem/1.35 var(--display); text-transform: uppercase; letter-spacing: 0.5px;
  text-wrap: balance; /* a pill too long for a narrow card splits evenly */
}
/* Phones: a small icon left of the name, roomier paragraphs, and a thin
   rule between apps in place of the grid gap (founder's layout C). */
@media (max-width: 639px) {
  .apps { row-gap: 0; }
  .app { padding: 2.25rem 0; border-top: 1px solid #e6e6e6; }
  .app:first-child { border-top: 0; padding-top: 0.5rem; }
  .app-link { display: flex; align-items: center; gap: 1rem; }
  .app-icon { width: 72px; flex: none; }
  .app h2 { margin: 0; }
  .app p { line-height: 1.75; margin-bottom: 1rem; }
  .app-link + p { margin-top: 1rem; }
}
@media (min-width: 640px) {
  .apps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(2rem, 6vw, 3.75rem); }
  .app-icon { width: 100%; }
  .app p { font-size: 0.9375rem; line-height: 1.47; }
  .intro p { font-size: 0.9375rem; line-height: 1.8; }
}

/* About: thin uppercase names, light gray text, in a reading column. */
main.prose { max-width: calc(40rem + 2rem); }
.prose h1, .prose h2, .not-found h1 {
  font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--heading); line-height: 1.25;
}
.prose h1, .not-found h1 { font-size: 1.625rem; margin: 0 0 1rem; }
.prose h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
@media (min-width: 640px) {
  .prose p { font-size: 0.9375rem; }
}
section { padding: 1.75rem 0 0.25rem; }
/* Links that stand alone on a line get a thumb-sized box. */
.solo, .not-found a { display: inline-block; padding: 0.6rem 0; }
figure { margin: 1.5rem 0; }
figure img { display: block; border-radius: 4px; }
.family img { width: 100%; }
/* "Our story, told elsewhere": a plain list of links, each with a small
   brand-yellow dot (decoration only) and a thumb-sized box. */
.elsewhere ul { list-style: none; margin: 0; padding: 0; }
.elsewhere li { display: flex; align-items: center; gap: 0.75rem; }
.elsewhere li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }
.elsewhere a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0; }
@media (min-width: 640px) {
  .elsewhere a { font-size: 0.9375rem; }
}
/* Each person (and the dogs): a round photo with the name and text beside
   it, as on the Squarespace About page. Stacked on phones. */
.person { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.headshot { display: block; width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
@media (min-width: 640px) {
  .person { grid-template-columns: 190px 1fr; gap: 2rem; }
  .headshot { width: 190px; height: 190px; }
}

/* 404 page. */
.not-found { text-align: center; }

footer { padding-bottom: 3rem; text-align: center; font-size: 0.875rem; color: var(--text); }
footer::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
footer p { margin: 0; }
/* Phones: the email gets its own line, so the dot never dangles at a wrap. */
@media (max-width: 639px) {
  footer .sep { display: none; }
  footer p a { display: block; }
}

/* Nothing moves today. This guard keeps later additions from moving for
   visitors who ask their device for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
