/* LinkedReach — the site's base, shared by every page: stone paper, navy ink, navy on the single action,
   coral only for you and your team, peach for people who know you. A display size for chapter lines,
   generous rhythm, interface fragments as the pictures. */
:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --paper: #f3f2ef;
  /* No black anywhere: the ink and the night are the brand's navy, #070B12, the logo's colour; the
     night's words are the same light ink as the app's dark mode. */
  --ink: #070B12;
  --muted: #57554e;
  --accent: #0A2540;
  --accent-ink: #ffffff;
  --coral: #FF6A5B;
  --night: #070B12;
  --night-ink: #FAFAFA;
  --night-muted: #A4ACBA;
  --ash: #16233A;          /* an ink button, hovered */

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: 1.375rem;
  --step-head: clamp(1.75rem, 1.3rem + 1vw, 2.25rem);
  --step-display: clamp(2.5rem, 1.3rem + 4vw, 5.25rem);

  --m: 24px;
  --gap: 24px;
  --bar: 60px;
  --ease: cubic-bezier(.22, .7, .3, 1);
  --ground: var(--bg);
  --font-display: Archivo, system-ui, sans-serif;
  --font-text: Archivo, system-ui, sans-serif;
}
@media (max-width: 720px) { :root { --m: 20px; --gap: 16px; --bar: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 Archivo, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* A button's ring sits on the ground around it, so it takes the ground's ink, not the button's own
   (white on stone was 1.5:1). A dark ground sets --focus-btn to the night ink. */
.btn:focus-visible { outline: 2px solid var(--focus-btn, var(--ink)); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, .display { font-size: var(--step-display); font-weight: 400; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }

/* The one button (docs/site-rules.md, rule 5): square and flat. Ink with paper words on a light ground;
   on a dark ground (.on-night, the bar over a dark ground, the film's band) it turns paper. Never a pill,
   an outline, or the product's accent #0A2540, which stays inside the interface fragments. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-size: var(--step-small); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 180ms ease;
}
.btn:hover { background: var(--ash); }
.btn:active { transform: scale(.97); }
.btn--big { min-height: 52px; padding: 0 26px; font-size: var(--step-body); }
.on-night { --focus-btn: var(--night-ink); }
.on-night .btn { background: var(--night-ink); color: var(--night); }
.on-night .btn:hover { background: #ffffff; }
/* The one standalone link, beside the button: 17px, underlined in coral. .text-link is the same link in
   older markup. On a dark ground its words turn paper and the underline stays coral. */
.b-link, .text-link { font-size: 17px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.b-link:hover, .text-link:hover { text-decoration-color: currentColor; }
.on-night .b-link, .on-night .text-link { color: var(--night-ink); }

/* The bar: wordmark, two links, one action. */
.bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--m);
  background: var(--bg); color: var(--ink);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.mark { width: 28px; height: 28px; flex: none; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: var(--step-small); }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 720px) { .bar nav a:not(.btn) { display: none; } }
/* Inner pages: the bar is the navy of the home's opening, always. */
.bar--night { background: var(--night); color: var(--night-ink); }
/* data-follow-ground: time.js gives the bar the colours of the ground under it (the hero's light, a held
   scene's chapter), and .is-dark when that ground is dark, so the action turns paper with it. */
.bar.is-dark { --focus-btn: var(--night-ink); }
.bar.is-dark .btn { background: var(--night-ink); color: var(--night); }
.bar.is-dark .btn:hover { background: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
  .bar[data-follow-ground] { transition: background-color 400ms ease, color 400ms ease; }
}

/* The footer: every page of the site, grouped, in the page's quiet type. */
.foot { padding: 140px var(--m) 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; font-size: var(--step-small); }
.foot-what { color: var(--muted); }
.foot-note { color: var(--muted); max-width: 75ch; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.foot-top .foot-what { grid-column: 1 / span 4; max-width: 30ch; }
.foot-cols { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); }
.foot-h { font-size: var(--step-small); font-weight: 600; line-height: 1.4; letter-spacing: 0; margin: 0 0 8px; }
.foot-cols ul { display: grid; gap: 2px; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; color: var(--muted); }
.foot-bottom .foot-note { max-width: 75ch; }
@media (max-width: 960px) {
  .foot-top .foot-what, .foot-cols { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .foot-cols a { min-height: 44px; } }

/* ── Interface fragments: the product's own edges and sizes ────── */
.ui { background: var(--paper); color: var(--ink); border-radius: 12px; font-size: var(--step-small); line-height: 1.5; }
.ui-head { padding: 14px 18px; font-weight: 600; background: #eae9e5; border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 8px; }
.ui-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-size: var(--step-small); font-weight: 600; }
.av--you { background: var(--coral); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.ui-who { display: flex; align-items: center; gap: 12px; }
.ui-who b { display: block; font-weight: 600; }
.ui-who span span, .ui-quiet { color: var(--muted); }
.ui-text { font-size: var(--step-body); line-height: 1.5; }
.ui-box { background: #fff; border-radius: 8px; padding: 12px 14px; }
.ui-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: var(--step-body); line-height: 1.45; }
.bubble--in { background: #fff; }
.bubble--out { background: var(--accent); color: var(--accent-ink); justify-self: end; }
.ui-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #e2e0db; } /* taste-skill-ignore: data-ui */
.ui-row:first-child { border-top: 0; }
.ui-row em { font-style: normal; font-weight: 600; white-space: nowrap; }
.ui-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 600; }
.chip--primary { background: var(--accent); color: var(--accent-ink); }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.week > div { background: #fff; border-radius: 8px; min-height: 168px; padding: 10px; display: grid; align-content: start; gap: 8px; }
.week p { color: var(--muted); }
.slot { background: var(--surface); border-radius: 6px; padding: 7px 8px; line-height: 1.35; }
.slot--booked { background: var(--accent); color: var(--accent-ink); }
.slot--new { background: var(--coral); color: var(--ink); font-weight: 600; }

/* ── Motion: entrances gated on script; nothing ships hidden ─────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ── Beats: a story told one moment at a time ─────────────────────
   Finished composition (no script, reduced motion, a failed CDN): every beat in order, as an
   ordinary section. Live: the stage holds, one beat shows at a time, and the ground and ink can
   change with the beat (--g0…--g9, --i0…--i9 on the section). */
.beats { display: grid; gap: 120px; padding: 120px var(--m); }
.beat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.beat-time { grid-column: 1 / span 4; font-size: var(--step-display); letter-spacing: -0.04em; line-height: 1; }
.beat-text { grid-column: 1 / span 4; grid-row: 2; display: grid; gap: 12px; margin-top: 20px; align-self: start; }
.beat-text p { max-width: 38ch; }
.beat-picture { grid-column: 6 / span 6; grid-row: 1 / span 2; }
html.js .scene.is-live > .scene-stage { background: var(--ground); transition: background-color 700ms ease, color 700ms ease; }
html.js .scene.is-live .beats { position: relative; height: 100%; padding: 0; gap: 0; }
html.js .scene.is-live .beat {
  position: absolute; inset: 0; padding: calc(var(--bar) + 4vh) var(--m) 6vh;
  opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s linear 500ms;
}
html.js .scene.is-live .beat.is-current { opacity: 1; visibility: visible; transition: opacity 600ms ease, visibility 0s; }
html.js .scene.is-live .beat .beat-picture { transition: transform 900ms var(--ease); transform: translateY(24px); }
html.js .scene.is-live .beat.is-current .beat-picture { transform: none; }
@media (max-width: 767px) {
  .beats { gap: 72px; padding: 72px var(--m); }
  .beat { display: block; }
  .beat-time { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .beat-text { margin: 12px 0 20px; }
  html.js .scene.is-live .beat { padding: calc(var(--bar) + 16px) var(--m) 16px; display: flex; flex-direction: column; }
  html.js .scene.is-live .beat-picture { flex: 1; min-height: 0; overflow: hidden; }
}

/* ── Site-wide pieces ── */
/* Skip link: out of sight until a keyboard reaches it. Main takes the focus without a frame round the page. */
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: var(--m); z-index: 50; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 0; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
#main:focus { outline: none; }
/* A button keeps its edge where the system sets the colours (Windows high contrast): the border is
   transparent until forced colours draw it. */
.btn { border: 1px solid transparent; }
/* A link standing on its own is a target at least 24px tall; a phone raises it to a finger's 44px. */
.text-link, .foot-links a, .foot-legal a { display: inline-flex; align-items: center; min-height: 24px; }
.nb { white-space: nowrap; }
/* A few words carry a passage: coral on navy; on stone, where coral text is too faint, an ink word with a
   coral underline. */
.hl { font-style: normal; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .08em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.on-night .hl { color: var(--coral); text-decoration: none; }
/* An interface fragment says on its face that it is an example. */
.ui-head .ui-tag, .ui-who .ui-tag { margin-left: auto; padding-left: 8px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.ui-who .ui-tag { align-self: flex-start; }
.found-card .ui-head, .worth-card .ui-head { justify-content: space-between; }
/* The people it found: who they are on the left, their score against what you sell on the right. One
   below the bar shows what the bar is for, and stays quiet. */
.ui-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ui-person b { display: block; font-weight: 600; }
.ui-person span span { color: var(--muted); }
.found-card .ui-row { align-items: center; padding: 7px 0; }
.found-card .ui-row em { font-size: var(--step-body); }
.found-card .ui-row.is-below { opacity: .55; }
/* The meeting, booked: a client's peach, at the size of a dot. */
.ui-booked { display: flex; align-items: center; gap: 12px; }
.ui-booked .dot { width: 12px; height: 12px; margin-inline: 10px; background: #F0997B; }
.ui-booked b { display: block; font-weight: 600; }
.ui-booked span span { color: var(--muted); }
