/* Prismatic Apps — studio site.
   Shared by every page. Colors are tokens on :root. The document pages stay
   off-white even when the device is in dark mode; the home page (home.css)
   redefines the tokens for its dark look, and the Moments page's night bands
   keep their colors, like the app's paywall header. */

/* Fonts are hosted here rather than loaded from Google Fonts, so visiting the
   site sends nothing to a third party. Both are variable fonts under the SIL
   Open Font License (assets/fonts/OFL-*.txt). Downloaded from Google Fonts
   2026-11-11: Outfit v15, Atkinson Hyperlegible Next v7. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Base */
  --paper: #f3f4f9;          /* cool off-white, never cream */
  --surface: #ffffff;
  --ink: #1d1932;            /* deep indigo text */
  --ink-soft: #4f4a66;
  --rule: #dcdbe8;
  --focus: #4c6fe0;

  /* The spectrum: Moments' core emotion colors */
  --happy: #f4b63c;
  --calm: #3fbf97;
  --sad: #4f86e8;
  --anxious: #8a76ee;
  --angry: #e8615e;

  /* The studio bar (header), the same in both modes: neutral, no hue */
  --bar: #18181a;
  --bar-ink: #f4f4f5;
  --bar-soft: #a8a8ae;

  /* Night (Moments band), the same in both modes */
  --night-1: #2b2247;
  --night-2: #1d2a45;
  --night-ink: #f2f1fa;
  --night-soft: #b9b6d3;

  --font-display: "Outfit", ui-rounded, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
  /* Off-white in both light and dark mode (the user's choice, 2026-11-11),
     except the home page, which is dark (home.css). */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--surface); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */

/* The studio bar, on every page (the user, 2026-11-11): a plain charcoal with
   no hue, so the Chromatic logo's coral, green and blue are the only color in
   it, and the studio reads apart from Moments' blue-violet night below it. */
.site-header {
  padding-block: 18px;
  color: var(--bar-ink);
  background: var(--bar);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; }
/* On narrow phones the four links drop under the logo rather than run off the screen. */
@media (max-width: 420px) { .site-nav ul { gap: 18px; } }
.site-header :focus-visible { outline-color: var(--bar-ink); }

.studio { display: inline-flex; padding-block: 6px; }
/* The logo's own art is 684 × 110; 32 px tall keeps "apps" readable on phones
   while staying above the brand's 120 px minimum width. */
.studio img { display: block; height: 32px; width: auto; }

.site-nav ul { display: flex; gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--bar-soft); font-size: 1rem; padding-block: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bar-ink); text-decoration: underline; }

/* The home page's sections live in home.css. */

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding-block: 36px 48px; font-size: 1rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.doc .wrap { max-width: 720px; }
.doc h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.doc h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25;
  margin: 2.2em 0 0.5em; letter-spacing: -0.01em;
}
.doc h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 1.8em 0 0.4em; }
.doc p, .doc li { line-height: 1.7; }
.doc p { margin: 0 0 1em; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--ink-soft); }
.doc .meta { color: var(--ink-soft); font-size: 1rem; }
.doc a { overflow-wrap: anywhere; }

.doc .callout {
  margin: 28px 0; padding: 20px 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--rule);
}
.doc .callout p:last-child { margin-bottom: 0; }

/* The contact card (tools/contact-card.html), dark like the home page's:
   the studio bar's charcoal with the logo's three colors as faint light. */
.contact-card {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 8px 0 12px;
  padding: clamp(32px, 6vw, 52px) clamp(20px, 5vw, 44px);
  border-radius: 28px;
  text-align: center;
  color: var(--bar-ink);
  background: var(--bar);
  box-shadow: 0 30px 70px -40px rgba(29, 25, 50, 0.55);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 65% at 36% 0%, rgba(232, 97, 94, 0.2), transparent 70%),
    radial-gradient(32% 65% at 50% 0%, rgba(63, 191, 151, 0.2), transparent 70%),
    radial-gradient(32% 65% at 64% 0%, rgba(79, 134, 232, 0.2), transparent 70%);
}
.contact-card .logo { width: clamp(180px, 40vw, 220px); height: auto; margin: 0 auto 24px; }
.doc .contact-card h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; }
.doc .contact-card p { margin: 12px auto 0; color: var(--bar-soft); max-width: 40ch; }
.doc .contact-card .address {
  margin-top: 22px; color: var(--bar-ink);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  overflow-wrap: anywhere;
}
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.contact-card .pill {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.contact-card .pill.solid { background: var(--bar-ink); color: var(--bar); border: 1px solid var(--bar-ink); }
.contact-card .pill.ghost { background: rgba(255, 255, 255, 0.06); color: var(--bar-ink); border: 1px solid rgba(255, 255, 255, 0.3); }
.contact-card .pill:hover { text-decoration: underline; }
.contact-card .pill[hidden] { display: none; }
.contact-card :focus-visible { outline-color: var(--bar-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.doc .mail {
  display: inline-block; margin-top: 4px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
}
.doc .mail:hover { text-decoration: underline; }
