/* ── Helloforward blog: the marketing site's theme, verbatim ──────────────
   The blog is static HTML under /blog/, outside the React bundle, so it can't
   import src/index.css. Everything here is copied from that file's customer
   surface (`:root[data-surface='user']`): the same floor-and-card tokens, the
   same nav, buttons and footer, the same serif/sans pairing. No gradients, no
   grain, no atmosphere of its own: the blog is a page of the site, not a site.
   If index.css changes a token, change it here too. */

:root {
  /* light: page floor is a soft grey, cards are white */
  --floor: #f2f2f4;
  --bg: #ffffff;
  --surface: #fafafa;
  --line: #e5e5e7;
  --card-line: #e3e3e7;
  --row-line: #ececef;
  --ink: #101114;
  --ink-dim: #6c6d72;
  --accent: #e8630c;
  --accent-text: #b84c08;
  --accent-ink: #ffffff;
  --btn-bg: #1a1b1e;
  --btn-bg-hover: #000000;
  --btn-ink: #ffffff;
  --shadow-card: 0 1px 2px rgba(16, 17, 20, 0.04);
  --scheme: light;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Archivo', 'Helvetica Neue', sans-serif;
  --r-card: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --floor: #08090b;
    --bg: #14161b;
    --surface: #1b1e24;
    --line: #282c34;
    --card-line: #272b33;
    --row-line: #21242b;
    --ink: #f2f1ee;
    --ink-dim: #8e9099;
    --accent: #f07018;
    --accent-text: #f07018;
    --accent-ink: #101114;
    --btn-bg: #f2f1ee;
    --btn-bg-hover: #ffffff;
    --btn-ink: #1a1b1e;
    --shadow-card: none;
    --scheme: dark;
  }
}
:root[data-theme='dark'] {
  --floor: #08090b;
  --bg: #14161b;
  --surface: #1b1e24;
  --line: #282c34;
  --card-line: #272b33;
  --row-line: #21242b;
  --ink: #f2f1ee;
  --ink-dim: #8e9099;
  --accent: #f07018;
  --accent-text: #f07018;
  --accent-ink: #101114;
  --btn-bg: #f2f1ee;
  --btn-bg-hover: #ffffff;
  --btn-ink: #1a1b1e;
  --shadow-card: none;
  --scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: var(--scheme); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--floor);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent-text); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── buttons (index.css) ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; font-weight: 600; }
.btn-solid:hover { background: var(--btn-bg-hover); }
.btn-lg { padding: 13px 32px; font-size: 1rem; }

/* ── theme toggle ── */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--ink-dim); padding: 8px 10px; line-height: 0;
  transition: color 140ms ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .moon { display: none; }
}

/* ── nav (index.css) ── */
.nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0;
  background: var(--floor);
  border: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, border-radius 220ms ease,
    padding 220ms ease, box-shadow 220ms ease, top 220ms ease;
}
.nav.is-stuck {
  top: 10px;
  padding: 14px 22px;
  background: color-mix(in srgb, var(--floor) 64%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-mark { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em; }
.nav-name { font-family: var(--sans); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ink-dim); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 0.85rem; color: var(--ink-dim); text-decoration: none;
  letter-spacing: 0.02em; white-space: nowrap; transition: color 140ms ease;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; flex: none; }
@media (max-width: 1130px) { .nav-links { display: none; } }
@media (max-width: 640px) { .nav { gap: 8px; padding: 14px 0; } .nav-actions .btn-ghost { display: none; } }

/* ── section labels (index.css) ── */
.sec-label {
  font-size: 0.74rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--accent-text);
}

/* ── footer (index.css) ── */
.footer {
  margin-top: auto; padding: 28px 0 36px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-dim);
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-dot { color: var(--accent); }

/* ── waveform (index.css) ── */
.waveform { display: flex; align-items: center; gap: 4px; height: 72px; }
.waveform span {
  flex: 1; width: 4px; border-radius: 3px; background: var(--accent);
  height: calc(var(--h) * 100%); transform-origin: center; opacity: 0.85;
  animation: pulse 1.9s var(--delay) ease-in-out infinite alternate;
}
@keyframes pulse { from { transform: scaleY(0.35); opacity: 0.45; } to { transform: scaleY(1); opacity: 0.85; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .waveform span, [data-rise] { animation: none !important; } }
[data-rise] { animation: rise 700ms ease both; }
[data-rise='2'] { animation-delay: 90ms; }
[data-rise='3'] { animation-delay: 180ms; }
[data-rise='4'] { animation-delay: 270ms; }

/* ── the blog front ─────────────────────────────────────────────────────── */
.masthead { padding: clamp(56px, 10vh, 120px) 0 clamp(36px, 6vh, 64px); max-width: 760px; }
.masthead h1 {
  font-family: var(--serif); font-weight: 420; letter-spacing: -0.015em;
  font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: 1.04; margin-top: 26px;
  text-wrap: balance;
}
.masthead h1 em { font-style: italic; font-weight: 380; }
.mast-lede { color: var(--ink-dim); font-size: 1.05rem; margin-top: 28px; max-width: 520px; }
.mast-wave {
  width: min(420px, 84vw); height: 44px; margin-top: 40px;
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

/* the ledger: ruled rows, like the service index on the home page */
.ledger { margin-top: 24px; }
.ledger-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px;
}
.ledger-head .count { font-family: var(--serif); font-style: italic; color: var(--ink-dim); font-size: 0.95rem; }
.posts { list-style: none; }
.post { border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 232px 44px;
  column-gap: 24px; align-items: baseline;
  padding: 30px 0 34px; text-decoration: none; color: inherit;
}
/* the entry's tile: the 4:3 whole-scene version of its art (hero/m), shown
   square, subject centred, so it reads as a picture and not a sliver of one */
.post-thumb {
  align-self: center; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--card-line); background: var(--bg);
  box-shadow: var(--shadow-card);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 300ms ease; }
.post a:hover .post-thumb img { transform: scale(1.03); }
.post-thumb-empty { background: var(--bg); }
.post-no { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--accent-text); }
.post-date { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-dim); margin-bottom: 10px; }
.post-date b { color: var(--accent-text); font-weight: 500; }
.post h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.25; margin-bottom: 10px;
  transition: color 140ms ease;
}
.post a:hover h2 { color: var(--accent-text); }
.post p { color: var(--ink-dim); font-size: 0.94rem; max-width: 62ch; }
.post-read { display: block; margin-top: 12px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-dim); }
.post-arrow {
  align-self: center; justify-self: end; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-dim);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.post-arrow svg { width: 15px; height: 15px; }
.post a:hover .post-arrow { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); transform: translateX(4px); }
@media (max-width: 900px) {
  .post a { grid-template-columns: 64px minmax(0, 1fr) 44px; }
  .post-thumb { display: none; }
}
@media (max-width: 640px) {
  .post a { grid-template-columns: 1fr; row-gap: 8px; }
  .post-arrow { display: none; }
  /* on a phone the picture goes on top, full width */
  .post-thumb { display: block; order: -1; aspect-ratio: 16 / 9; }
  .post-thumb-empty { display: none; }
}

/* ── the entry's billboard ──────────────────────────────────────────────────
   Same recipe as the home page hero (index.css .bhero): one of the trade
   illustrations, pre-extended on the left with its own dark column, covered
   full-bleed; a blurred copy masked to the left third melts the dark field
   for the copy; a scrim deepens the left and the foot. The type is a fixed
   light-on-dark palette whichever theme the page is in. */
.post-hero {
  position: relative;
  /* the article is a 720px column pinned to the page's left gutter (32px in
     from a 1200px box, centred), so back out exactly that to reach the
     viewport edge, then span it */
  width: 100vw; margin-left: calc(-32px - max(0px, (100vw - 1200px) / 2));
  min-height: clamp(440px, 64vh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background: #070605;
  --on-photo: #f6f4f0; --on-photo-dim: rgba(246, 244, 240, 0.74);
}
.post-hero-photo, .post-hero-scrim { position: absolute; inset: 0; z-index: -1; }
.post-hero-photo {
  background-image: var(--hero-img); background-size: cover; background-position: right center; background-repeat: no-repeat;
  background-color: #070605;
}
.post-hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-img); background-size: cover; background-position: right center; background-repeat: no-repeat;
  filter: blur(14px); transform: scale(1.06); transform-origin: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 46%);
  mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 46%);
}
.post-hero-scrim {
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.8) 24%, rgba(9, 9, 11, 0.4) 44%, rgba(9, 9, 11, 0) 62%),
    linear-gradient(0deg, rgba(9, 9, 11, 0.6) 0%, rgba(9, 9, 11, 0) 46%);
}
.post-hero-inner {
  width: 100%;
  /* the page is a 1200px box with 32px gutters: line the copy up with it */
  padding: clamp(56px, 9vh, 110px) 32px clamp(40px, 6vh, 64px) max(32px, calc(50vw - 600px + 32px));
}
.post-hero-copy { max-width: 640px; }
.post-hero .post-kicker { color: var(--on-photo-dim); margin-bottom: 22px; }
.post-hero .post-kicker a { color: var(--on-photo-dim); }
.post-hero .post-kicker a:hover { color: var(--on-photo); }
.post-hero .post-kicker .cat { color: #f7a26a; }
.post-hero .kdot { color: #f07018; }
.post-hero h1 {
  color: var(--on-photo);
  font-family: var(--serif); font-weight: 440; letter-spacing: -0.015em;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; margin: 0;
  text-wrap: balance;
}
.post-hero h1 em { font-style: italic; font-weight: 380; }
.article.has-hero .lede { margin-top: clamp(28px, 4vh, 44px); }
@media (prefers-reduced-motion: no-preference) {
  .post-hero-photo { animation: hero-in 1100ms ease both; }
  @keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
}
@media (max-width: 720px) {
  .post-hero { min-height: min(72vh, 620px); }
  /* the same picture, smaller: subject kept in frame on the right, and a
     heavier scrim so the headline reads over it */
  .post-hero-photo, .post-hero-photo::after { background-position: 92% center; }
  .post-hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 9, 11, 0.9) 0%, rgba(9, 9, 11, 0.7) 40%, rgba(9, 9, 11, 0.25) 75%, rgba(9, 9, 11, 0.1) 100%),
      linear-gradient(0deg, rgba(9, 9, 11, 0.9) 0%, rgba(9, 9, 11, 0.55) 34%, rgba(9, 9, 11, 0) 60%);
  }
  .post-hero-inner { padding: 60px 24px 36px; }
}

/* ── an entry ───────────────────────────────────────────────────────────── */
.article { max-width: 720px; }
.article .head { padding: clamp(48px, 8vh, 96px) 0 clamp(28px, 4vh, 40px); }
.post-kicker {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.26em;
  color: var(--ink-dim); margin-bottom: 26px;
}
.post-kicker a { color: var(--ink-dim); text-decoration: none; transition: color 140ms ease; }
.post-kicker a:hover { color: var(--ink); }
.post-kicker .cat { color: var(--accent-text); }
.kdot { color: var(--accent); }
.article h1 {
  font-family: var(--serif); font-weight: 420; letter-spacing: -0.015em;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.06; margin-bottom: 22px;
  text-wrap: balance;
}
.article h1 em { font-style: italic; font-weight: 380; }
.lede { color: var(--ink-dim); font-size: 1.1rem; }
.article h2 {
  font-family: var(--serif); font-weight: 440; letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; margin: 52px 0 14px;
}
.article h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 30px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 1.2em; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent-text); }
.article strong { font-weight: 600; }
.article code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  padding: 2px 8px; font-size: 0.92rem; letter-spacing: 0.03em; white-space: nowrap; color: var(--ink);
}
.muted { color: var(--ink-dim); font-size: 0.94rem; }

/* a card on the floor, same cut as the app's cards */
.card {
  background: var(--bg); border: 1px solid var(--card-line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 22px 24px; margin: 26px 0;
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }

/* what a caller says, and what the line does about it: the home page's said/did */
.said-did { list-style: none; margin: 0 0 8px; }
.said-did li { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.said-did li:last-child { border-bottom: 1px solid var(--line); }
.said { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.did { color: var(--ink-dim); font-size: 0.94rem; margin-top: 6px; }
.did svg { width: 12px; height: 12px; color: var(--accent-text); vertical-align: -1px; margin-right: 6px; }

/* the three steps, as on the home page */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 8px 0 12px; }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--accent-text); line-height: 1; }
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { color: var(--ink-dim); font-size: 0.94rem; margin: 0; }
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; gap: 18px; } }

/* the demo lines and the closing call to action */
.demo-lines { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: border-color 140ms ease;
}
.demo-pill:hover { border-color: var(--ink); }
.closing { margin: 64px 0 40px; padding: 40px 0 0; border-top: 1px solid var(--line); text-align: center; }
.closing h2 { margin: 18px 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.closing p { color: var(--ink-dim); margin-bottom: 26px; }
.closing .waveform { width: 150px; height: 30px; margin: 0 auto;
  mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent); }
.closing .fine { font-size: 0.82rem; margin-top: 14px; }

/* screenshots: the app, as the owner sees it. Phone shots stand in a soft
   device frame; desktop shots run as wide cards. Both are cards on the floor. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 8px; align-items: start; }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { margin: 28px 0 8px; }
.shots .shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone img {
  border-radius: 34px; border: 1px solid var(--card-line);
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06), 0 18px 44px rgba(16, 17, 20, 0.12);
  background: var(--bg);
}
.shot.desktop img {
  border-radius: 12px; border: 1px solid var(--card-line);
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06), 0 14px 36px rgba(16, 17, 20, 0.10);
  background: var(--bg);
}
/* the article is a 720px reading column pinned left in the 1200px page, so a
   wide figure just grows rightwards into the page's remaining width */
.shot.desktop { width: min(1136px, calc(100vw - 64px)); }
.shot figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-dim); line-height: 1.5; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.shot.phone { max-width: 340px; }
.shots .shot.phone { max-width: none; }
@media (max-width: 720px) {
  .shots, .shots.three { grid-template-columns: 1fr; }
  .shot.phone, .shots .shot.phone { max-width: 320px; margin-left: auto; margin-right: auto; }
  .shot.desktop { margin-left: 0; width: 100%; }
}

/* neighbours: the other entries */
.more { margin-top: 56px; }
.more-list { list-style: none; margin-top: 12px; }
.more-list li { border-top: 1px solid var(--line); }
.more-list li:last-child { border-bottom: 1px solid var(--line); }
.more-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.05rem;
}
.more-list a:hover { color: var(--accent-text); }
.more-list small { font-family: var(--sans); color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-dim); font-size: 0.9rem; margin-top: 28px; }
.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; }
