/* Coldsilver — Sophie's world, on the marketing site.
   Pinned by David 2026-09-03: the site takes the theme Sophie already has.
   Tokens mirror projects/sophie/app/app/globals.css so the two never drift apart. */

@font-face { font-display: swap; }

:root {
  --ground: #f7f7f4;
  --surface: #ffffff;
  --wash: #f0efe9;
  --ink: #14181c;
  --ink-2: #5b6470;
  --faint: #9aa3ae;
  --line: #e5e3dd;
  --line-2: #d8d5cc;
  --accent: #0f766e;
  --accent-ink: #0b5b55;
  --accent-soft: #e4efed;
  --warn: #9a6b12;
  --warn-soft: #fbf1dc;

  --measure: 68ch;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(20 24 28 / 0.04), 0 8px 24px -12px rgb(20 24 28 / 0.14);
  --shadow-lift: 0 2px 4px rgb(20 24 28 / 0.05), 0 18px 44px -20px rgb(20 24 28 / 0.22);

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);

  color-scheme: light;
  accent-color: var(--accent);
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

/* The surfaces we did not draw still belong to the design. */
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:where(input, textarea) { caret-color: var(--accent); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.032em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.3rem); letter-spacing: -0.022em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }

section { padding-block: clamp(56px, 8vw, 104px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------- chrome */
.head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 1.02rem; }
.brand .mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand .mark span { width: 7px; height: 7px; border-radius: 99px; background: var(--ground); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; padding: 8px 11px; border-radius: 9px; transition: color .16s, background-color .16s; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current] { color: var(--ink); background: var(--wash); }
.nav a.btn--primary { color: #fff; background: var(--accent); padding: 0 16px; }
.nav a.btn--primary:hover { color: #fff; background: var(--accent-ink); }

/* On a phone the header wraps to two rows rather than scrolling off the right edge. Every link
   stays reachable, which a hamburger would have cost for the sake of one saved row. */
@media (max-width: 620px) {
  .head .wrap { flex-wrap: wrap; gap: 0 12px; padding-block: 10px; min-height: 0; }
  .nav { width: 100%; margin-left: 0; justify-content: flex-start; gap: 2px; padding-top: 8px; }
  .nav a { padding: 7px 9px; font-size: 0.9rem; }
  .nav a.btn--primary { margin-left: auto !important; min-height: 36px; padding: 0 13px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 11px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 560; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--faint); }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.foot { border-top: 1px solid var(--line); padding-block: 44px 56px; }
.foot .cols { display: grid; gap: 28px 40px; grid-template-columns: 1.6fr 1fr 1fr; }
.foot h4 { font-family: var(--sans); font-size: 0.8rem; font-weight: 620; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; font-size: 0.94rem; }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.84rem; color: var(--faint); }
@media (max-width: 720px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- the thread
   The home page is one customer email walked end to end, so the mail thread is
   the page's structural element rather than a decorative card. */
.thread { max-width: 720px; margin-inline: auto; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.msg + .msg { margin-top: 14px; }
.msg--out { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.msg .from { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 0.86rem; color: var(--ink-2); }
.msg .from b { color: var(--ink); font-weight: 600; }
.msg .subject { margin-top: 10px; font-weight: 600; letter-spacing: -0.015em; }
.msg .body { margin-top: 8px; color: var(--ink-2); line-height: 1.62; white-space: pre-line; }
.msg--out .body { color: var(--ink); }

.step { position: relative; padding-left: 30px; }
.step::before { content: ""; position: absolute; left: 9px; top: 6px; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }
.step::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: -34px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-2); max-width: 62ch; }
.steps { display: grid; gap: 34px; }

.note { font-size: 0.9rem; color: var(--ink-2); background: var(--wash); border-radius: 12px; padding: 12px 15px; }
.note b { color: var(--ink); font-weight: 600; }

.pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--ink-2); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-left: 22px; margin-top: 11px; color: var(--ink-2); max-width: var(--measure); }
.list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); }
.list--yes li::before { background: var(--accent); }

.deck { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .deck { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-top: 18px; }
.field > span { display: block; font-size: 0.88rem; font-weight: 560; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 11px 13px; transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerr { display: none; margin-top: 14px; color: #9b2c2c; font-size: 0.92rem; line-height: 1.5; }
.done { display: none; }
.done.show { display: block; }

/* ---------------------------------------------------------------- prose */
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-2); max-width: var(--measure); }
.prose p { margin-top: 12px; }
.prose ul { list-style: none; padding: 0; margin: 12px 0 0; }
.prose li { position: relative; padding-left: 22px; margin-top: 8px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; }
.prose code { background: var(--wash); border-radius: 5px; padding: 1px 5px; font-size: 0.9em; }
.callout { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; background: var(--surface); }
.callout p:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- motion
   One authored moment: the reply arrives once, the way a reply does. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.js [data-rise]:not(.in) { opacity: 0; }
.js [data-rise].in { animation: rise .62s cubic-bezier(.16, 1, .3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise]:not(.in), .js [data-rise].in { opacity: 1; animation: none; }
  * { transition-duration: .01ms !important; }
}
