/*
  christophereadie.com — shared styles for every page.

  Design tokens live in :root so the whole site restyles from one place.
  Fonts are self-hosted (see README, "Fonts") rather than loaded from
  Google Fonts: a request to Google would send every visitor's IP address
  to a third party, which would contradict the "collects nothing" privacy
  wording. Don't swap them back to a Google Fonts link.
*/

/* MARK: - Fonts */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

/* MARK: - Tokens */

:root {
  --ground: #F6F5F1;      /* page background: warm off-white */
  --surface: #FFFFFF;     /* banded sections and cards */
  --ink: #17191E;         /* headings and primary text */
  --ink-2: #3A3F48;       /* body text */
  --ink-3: #5B616B;       /* secondary text; still passes 4.5:1 on --ground */
  --ink-4: #9A9EA6;       /* decorative only (breadcrumb separators) — never for text people need to read */
  --line: #E4E1D9;
  --line-strong: #C9C6BD;
  --accent: #0B6E6E;      /* the one accent colour: teal */
  --accent-hover: #084F4F;
  --radius-card: 20px;
  --content-width: 1040px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
}

/* MARK: - Base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--content-width); margin: 0 auto; padding-inline: 32px; }
@media (max-width: 600px) { .wrap { padding-inline: 20px; } }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.section { padding-block: 72px; }
.section-title { font-size: 32px; margin-bottom: 32px; }
.muted { color: var(--ink-3); }
.body-copy { color: var(--ink-2); }
.body-copy p + p, .body-copy p + h3, .body-copy h3 + p { margin-top: 16px; }
.body-copy h3 + p { margin-top: 4px; }
.body-copy h3 { font-family: var(--font-body); font-size: 17px; color: var(--ink); letter-spacing: 0; }

/* MARK: - Header and breadcrumb */

/* Top-left is a breadcrumb on every page (Chris's call, 2026-11-27):
   "christophereadie.com" on the home page, "christophereadie.com / Potty Time"
   on an app page, and so on. The current page is plain text, not a link. */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 28px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb .tld { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-4); font-weight: 500; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
/* On the home page the domain is the only crumb, so it keeps the full-weight "logo" look. */
.breadcrumb li:only-child [aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding-block: 12px; }
.site-nav a:hover { color: var(--ink); }

/* MARK: - Buttons */

/* 48px tall so they clear the 44px minimum touch target. */
.button { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.button-primary { background: var(--ink); color: #FFFFFF; }
.button-primary:hover { background: #000000; color: #FFFFFF; }
.button-secondary { border: 1px solid var(--line-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }
.button-accent { background: var(--accent); color: #FFFFFF; }
.button-accent:hover { background: var(--accent-hover); color: #FFFFFF; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* MARK: - Home */

.hero { padding-block: 72px 88px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.hero h1 { max-width: 760px; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
.hero .lede { margin-top: 24px; max-width: 600px; font-size: 19px; color: var(--ink-2); }
.hero .button-row { margin-top: 36px; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.app-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius-card); background: var(--ground); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.app-card:hover { border-color: var(--line-strong); color: var(--ink); }
.app-card-head { display: flex; align-items: center; gap: 16px; }
.app-card h3 { font-size: 22px; }
.app-card .more { font-weight: 600; font-size: 15px; color: var(--accent); }
.app-card-placeholder { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; border-radius: var(--radius-card); border: 1px dashed var(--line-strong); color: var(--ink-3); min-height: 180px; }
.app-card-placeholder strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-2); }

/* Apple's continuous-corner icon mask is approximated at ~22.5% of the size. */
.app-icon { width: 64px; height: 64px; border-radius: 15px; }
.app-icon-large { width: 120px; height: 120px; border-radius: 27px; flex: 0 0 auto; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 220px; }
.split > :last-child { flex: 999 1 480px; min-width: 0; }

/* MARK: - App pages */

.app-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-block: 56px 72px; }
.app-hero > div { flex: 999 1 420px; min-width: 0; }
.app-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.app-hero .lede { margin-top: 12px; max-width: 620px; font-size: 19px; color: var(--ink-2); }
.app-hero .button-row { margin-top: 24px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-block: 56px; }
.features h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: 0; }
.features p { color: var(--ink-2); font-size: 16px; }

.support { display: flex; flex-wrap: wrap; gap: 32px; }
.support > .body-copy { flex: 999 1 480px; min-width: 0; }
.help-card { flex: 1 1 280px; align-self: flex-start; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.help-card p { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }
.help-card p:first-child { font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 8px; }

.policy { max-width: 720px; }
.policy .updated { font-size: 14px; color: var(--ink-3); margin: 8px 0 24px; }
.policy strong { color: var(--ink); }

/* MARK: - Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-block: 28px; font-size: 14px; color: var(--ink-3); }
.site-footer a { color: var(--ink-3); }
