/* indivii.ca — one page, no build step.
   Carries the same *look* as the product (warm cream canvas, DM Serif display, rust accent
   used sparingly) with hand-copied values from packages/theme/src/tokens.css — there is no
   build step here, so nothing is imported. See the :root note. */

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Hand-copied from packages/theme/src/tokens.css (default theme), not imported:
     the landing page is a static nginx image with no build step, so there is no
     token pipeline here. Re-check these five values when the default theme moves;
     the accent pair is the one that carries contrast obligations. */
  --bg: #fdfcfa;
  --surface: #f8f5f0;
  --border: #e8e2d9;
  --ink: #1c1917;
  --ink-muted: #57504a;
  --accent: #c2410c;      /* primary-700: 5.0:1 on white, so link text and buttons pass */
  --accent-wash: #fff7ed; /* primary-50 */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  touch-action: manipulation;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }

p { text-wrap: pretty; }

[id] { scroll-margin-top: 2rem; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.masthead,
main > section,
.footer {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 1.75rem 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.quiet-link {
  font-size: .8125rem; font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.quiet-link:hover { color: var(--accent); border-color: var(--accent); }

.masthead-links { display: flex; align-items: baseline; gap: 1.25rem; }

/* ── Legal pages (/terms, /privacy) ────────────────────────────────────────
   Same page shell, one narrow column. Share this file rather than a second
   stylesheet: the legal pages use nothing that is not already here. */
.doc { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.doc-body { max-width: var(--measure); padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.doc-body h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; margin-bottom: .75rem; }
.doc-body h2 { font-size: 1.375rem; margin: 2.25rem 0 .6rem; }
.doc-body p, .doc-body li { color: var(--ink-muted); }
.doc-body p + p { margin-top: .9rem; }
.doc-body ul { margin: .9rem 0 0; padding-left: 1.15rem; }
.doc-body li + li { margin-top: .45rem; }
/* `:not(.button)` because `.doc-body a` is more specific than `.button`, so a
   button placed inside a document body used to inherit the link colour and
   render rust-on-rust — invisible text. Seen on the 404 page, which puts its
   call to action inside `.doc-body`. The exception belongs here, once, rather
   than a second `.doc-body .button` rule that fixes only that page. */
.doc-body a:not(.button) { color: var(--accent); }
.doc-meta { font-size: .8125rem; color: var(--ink-muted); margin-bottom: 2rem; }

.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); }

.eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.lede {
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: 4px;
  transition: background-color .15s ease;
}
.button:hover { background: #9a3412; }

.button-plain {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--border);
  padding-bottom: 3px;
}
.button-plain:hover { border-color: var(--accent); }

.shot { margin: clamp(2rem, 5vw, 4rem) auto 0; max-width: 860px; padding-inline: var(--gutter); }

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.shot figcaption {
  margin-top: .9rem;
  max-width: var(--measure);
  font-size: .8125rem;
  color: var(--ink-muted);
}

.why { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); }

.why h2, .closing h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.point { border-top: 1px solid var(--border); padding-top: 1.25rem; }
/* 1.625rem, not 1.375rem: the label scale is 13px, so this has to be 2x it for
   the page to read as three tiers (label / body / title) rather than a smear. */
.point h3, .point h4 { font-size: 1.625rem; margin-bottom: .6rem; }

/* Small caps, not a bigger serif: the point titles are already serif, and two
   serif sizes one step apart read as a mistake rather than a hierarchy. */
.subhead {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-muted);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.subhead + .agent-grid,
.subhead + .lede-small { margin-top: 1rem; }
.point p { color: var(--ink-muted); font-size: 1.0625rem; }

.agents {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.lede-small {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.agent-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  /* min() so a 390px phone does not get a 416px-wide column and a scrollbar */
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
}

.agents code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .1em .35em;
}

.snippet { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 44rem; }

.snippet pre {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--ink);
}

.snippet figcaption {
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--ink-muted);
}

.closing {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.closing p { max-width: 52ch; color: var(--ink-muted); }
.closing .actions { margin-top: 1.75rem; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--ink-muted);
}
.footer a { color: var(--ink-muted); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.fine { color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .footer { flex-direction: column; }
}
