/* Par site base, copied from the health page (site-health): tokens, the brand row, the steps, the tactile button and par-section-link, which come
   from the music page (site-music/src/music.css), itself from the opening and par.css. Every
   word a reader or a crawler needs is in index.html; page.js only wires the section links. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400.ttf) format("truetype"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400-italic.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/geist-400.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-500.ttf) format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-600-latin.woff2) format("woff2"); }

:root {
  --bg: #f7f0e1;
  --bg-deep: #ede1ca;
  --surface: #fffdf8;
  --text: #211a10;
  --text-muted: #6e6350;
  --border: #e9dec7;
  --border-strong: #d8cbaa;
  --accent: #2b231b;
  --ok: #2f6b4f;
  --ok-bg: #e2eee5;
  --mid: #5b4e8a;
  --mid-bg: #e8e3f3;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --wrap: 1240px;
  --shot-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 18px 40px -22px rgb(60 40 10 / .45);

  --par-accent: oklch(0.72 0.12 258);
  --par-glass-brd: oklch(0.46 0.055 78 / 0.16);
  --par-glass-top: oklch(1 0.014 92 / 0.8);
  --par-sh-1: 0.13;
  --par-sh-2: 0.17;
  --par-sh-3: 0.26;
  --par-r-sm: 10px;
  --par-ease: cubic-bezier(.34, 1.56, .64, 1);
  --par-dur-fast: .1s;
  --par-dur: .18s;
  --par-dur-slow: .28s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; max-width: 14ch; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; }
p, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
main > section { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* status words: one look wherever a status shows */
i.hp-ok, i.hp-mid { display: inline-block; font: 12px/1 var(--font-mono); font-style: normal; padding: 5px 9px 4px; border-radius: 99px; white-space: nowrap; }
i.hp-ok { color: var(--ok); background: var(--ok-bg); }
i.hp-mid { color: var(--mid); background: var(--mid-bg); }

/* ── Nav ─────────────────────────────────────────────────────── */
.hp-nav { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 28px 0 0; display: flex; align-items: center; gap: 14px; }
.hp-brand { display: inline-flex; align-items: center; gap: 2px; font: 600 28px/1 "DM Sans", var(--font-body); letter-spacing: -0.035em; color: var(--accent); text-decoration: none; }
.hp-brand img { width: 48px; height: 48px; margin: 0 -2px 0 -11px; }
.hp-crumb { font: 14px var(--font-mono); color: var(--text-muted); }
.hp-signin { margin-left: auto; font-size: 15px; text-decoration: none; padding: 10px 2px; }

/* ── Opening: the three apps on her travel day ───────────────── */
.hp-hero { padding-top: clamp(40px, 8vh, 88px); }
.hp-lead { margin-top: 18px; max-width: 46ch; color: var(--text-muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.hp-trio { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 32px); }
.hp-trio img, .hp-phone { border-radius: clamp(18px, 2.6vw, 34px); box-shadow: var(--shot-shadow); }
.hp-trio figcaption { margin-top: 14px; font-size: 16px; color: var(--text-muted); }

/* ── Stories: three steps, the second screen, the detail ─────── */
.hp-story { margin-top: clamp(72px, 10vw, 140px); scroll-margin-top: 24px; }
.hp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hp-head h2:focus:not(:focus-visible) { outline: none; }
.par-section-link { font: 500 13px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); text-decoration: none; }
.par-section-link:hover, .par-section-link:focus-visible { color: var(--text); border-color: var(--text); }
.par-section-link-status { font: 12.5px var(--font-mono); color: var(--ok); }

.hp-steps { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.hp-slot, .hp-ask { aspect-ratio: 2 / 3; border-radius: clamp(18px, 2.6vw, 34px); }
.hp-slot { background: var(--bg-deep); }
/* Story 1 shows a close crop of the habits screen, so its row takes the crop's shape. */
.hp-steps--close .hp-slot, .hp-close { aspect-ratio: 16 / 15; }
.hp-close { width: 100%; border-radius: clamp(18px, 2.6vw, 34px); box-shadow: var(--shot-shadow); }
.hp-ask { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(18px, 2.6vw, 36px); background: var(--surface); border: 1px solid var(--border-strong); }
.hp-who { font: 14px var(--font-mono); color: var(--text-muted); }
.hp-bubble { padding: 14px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px 20px 20px 6px; font: 400 clamp(20px, 2vw, 26px)/1.28 var(--font-display); }
.hp-bubble::before { content: "\201C"; }
.hp-bubble::after { content: "\201D"; }
.hp-n { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 20px; border-radius: 50%; background: var(--text); color: var(--bg); font: 600 13px/1 var(--font-body); }
.hp-say { margin-top: 12px; font: 400 clamp(22px, 2.2vw, 28px)/1.22 var(--font-display); }
.hp-seal { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-muted); }
.hp-line { display: block; margin-top: 18px; font-size: 15px; color: var(--text-muted); }

.hp-second { margin-top: clamp(36px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); align-items: end; }
.hp-second figcaption { font: 400 clamp(20px, 1.9vw, 24px)/1.3 var(--font-display); }
.hp-second .hp-line { font-family: var(--font-body); }
.hp-laptop { border-radius: 14px; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 24px 50px -26px rgb(40 30 10 / .55); }
.hp-second--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); max-width: 820px; }
.hp-cap { display: block; }

.hp-more { margin-top: 28px; max-width: 760px; }
.hp-more > summary { list-style: none; width: max-content; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0; }
.hp-more > summary::-webkit-details-marker { display: none; }
.hp-more-body { margin-top: 8px; padding: 20px 22px 22px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; }
.hp-more-body > p + p { margin-top: 12px; }
.hp-said { margin-top: 18px !important; font: 400 21px/1.35 var(--font-display); }
.hp-said span { display: block; font: 14px var(--font-mono); color: var(--text-muted); margin-bottom: 6px; }
.hp-said q { quotes: "\201C" "\201D"; }
.hp-faq { margin: 18px 0 0; display: grid; gap: 12px; }
.hp-faq dt { font-weight: 500; }
.hp-faq dd { margin: 2px 0 0; color: var(--text-muted); }

/* ── Connect ─────────────────────────────────────────────────── */
.hp-connect { margin-top: clamp(72px, 10vw, 140px); }
.hp-svc { list-style: none; margin: 32px 0 0; padding: 0; max-width: 760px; border-top: 1px solid var(--border-strong); }
.hp-svc li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border-strong); }
.hp-svc b { font: 400 26px/1.2 var(--font-display); }
.hp-none { margin-top: 20px; font: 400 22px/1.3 var(--font-display); color: var(--text-muted); }

/* ── Now what ────────────────────────────────────────────────── */
.hp-start { margin-top: clamp(72px, 10vw, 140px); padding: 28px 0 clamp(80px, 10vw, 140px); border-top: 1px solid var(--border-strong); }
.hp-start h2 { max-width: 22ch; }
.hp-ask--wide { aspect-ratio: auto; max-width: 760px; margin-top: 28px; }
.hp-ctas { margin-top: 32px; }

/* Par's tactile button, verbatim (par-btn par-btn--primary cta) */
.hp-btn {
  --par-btn: oklch(from var(--par-accent) 0.81 0.11 h);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 17px 26px;
  min-height: 50px;
  border-radius: var(--par-r-sm);
  text-decoration: none;
  color: oklch(from var(--par-btn) 0.34 calc(c + 0.05) h);
  background-image: linear-gradient(180deg, color-mix(in oklch, var(--par-btn) 88%, transparent), var(--par-btn));
  box-shadow:
    0 3px 6px -1px oklch(0 0 0 / var(--par-sh-1)),
    0 14px 28px -6px oklch(0 0 0 / var(--par-sh-2)),
    0 26px 50px -12px oklch(0 0 0 / var(--par-sh-3));
  transition: background-color var(--par-dur-slow) ease, transform var(--par-dur) var(--par-ease), box-shadow var(--par-dur-slow) ease;
}
.hp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--par-glass-top), transparent 45%, var(--par-glass-brd));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hp-btn:hover { background-color: var(--par-btn); transform: translateY(-1px) scale(1.025); }
.hp-btn:active { transform: translateY(1px) scale(.95); transition: transform var(--par-dur-fast) ease; }
@media (prefers-reduced-motion: reduce) { .hp-btn, .hp-btn:hover, .hp-btn:active { transition: none; transform: none; } }

/* ── Narrow ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* The three apps become a strip to swipe; the next one peeks, so it reads as more. */
  .hp-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .hp-trio::-webkit-scrollbar { display: none; }
  .hp-trio figure { scroll-snap-align: start; }
  .hp-steps { grid-template-columns: 1fr; gap: 40px; }
  .hp-step > .hp-phone { max-width: 300px; }
  /* On a phone the step photos crop wide, as the music page does with Inês. */
  .hp-step > .hp-slot { aspect-ratio: 5 / 4; }
  .hp-step > .hp-ask { aspect-ratio: auto; }
  .hp-second, .hp-second--phone { grid-template-columns: 1fr; }
  .hp-second--phone .hp-phone { max-width: 300px; }
}
@media (max-width: 520px) {
  .hp-nav { padding-top: 18px; }
  .hp-brand { font-size: 25px; }
  .hp-brand img { width: 42px; height: 42px; }
  .hp-crumb { display: none; }
}
