/* Steadyfold v2: "blue-and-white porcelain". Plan: workspace-shared/design-plans/steadyfold-2026-10-16.md (Jarvis PASS). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-latin-var.9fee080f.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/newsreader-latin-var.01817351.woff2") format("woff2");
  font-weight: 400 600; font-display: swap;
}
/* Metric-matched fallbacks so the swap doesn't shift the layout. */
@font-face { font-family: "Bricolage fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 96%; ascent-override: 92%; }
@font-face { font-family: "Newsreader fallback"; src: local("Georgia"); size-adjust: 97%; ascent-override: 96%; }

:root {
  --porcelain: #F1F4F3;
  --cobalt: #233F8C;
  --slip: #1B2235;
  --celadon: #B9CFC4;
  --crackle: #D5DCDA;
  --kiln: #FFFFFF;
  --slip-quiet: #4A5266;
  --error: #9A2B2B;

  --display: "Bricolage Grotesque", "Bricolage fallback", "Arial Narrow", sans-serif;
  --text: "Newsreader", "Newsreader fallback", Georgia, serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--slip);
  font-family: var(--text);
  font-size: 1.125rem;            /* 18 */
  line-height: 1.6;
  font-variation-settings: "opsz" 16;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.skip-link { position: absolute; left: -10000px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--kiln); padding: 0.5rem 0.8rem; z-index: 10; }

.container { width: min(100% - 2.5rem, 68ch); margin-inline: auto; }
.container--wide { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.008em;
  line-height: 1.04;
  color: var(--cobalt);
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5rem); }        /* 44 → 80 */
h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.375rem); margin-bottom: 1.25rem; }   /* 32 → 54 */
h3 { font-size: 1.5rem; line-height: 1.1; }
p { margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header { padding: 1.25rem 0; }
.site-header .container--wide, .site-header .container { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.wordmark {
  font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.6rem;
  color: var(--cobalt); text-decoration: none; letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 1rem; }
.site-nav a { color: var(--slip); text-decoration: none; }
.site-nav a:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------- Buttons ---------- */
.cta {
  display: inline-block;
  font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: 1.0625rem; letter-spacing: 0;
  background: var(--cobalt); color: var(--kiln);
  border: 1px solid var(--cobalt); border-radius: 2px;
  padding: 0.85rem 1.4rem; text-decoration: none; cursor: pointer;
}
.cta:hover { background: var(--slip); border-color: var(--slip); text-decoration: none; }
.text-link { font-size: 1rem; }

/* ---------- Hero: the studio wall ---------- */
.hero { padding: 2.5rem 0 4.5rem; }
.hero__grid { display: grid; gap: 3rem; align-items: start; }
.hero__grid > * { min-width: 0; }   /* let the mobile pin strip scroll inside its column */
.table-scroll { max-width: 100%; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 4fr 8fr; gap: 3rem; } }
.hero__copy { max-width: 34rem; padding-top: 1rem; }
.hero__copy h1 { margin-bottom: 1.5rem; }
.hero__lede { font-size: 1.25rem; line-height: 1.55; color: var(--slip); margin-bottom: 2rem; max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.board {
  margin: 0;
  background: var(--celadon);
  border-radius: 6px;
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
}
.board__wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  grid-template-rows: auto auto;
  align-items: start;
}
.board__wall > .pin:nth-child(1) { grid-area: 1 / 1; }
.board__wall > .pin:nth-child(2) { grid-area: 1 / 2; margin-top: 2.25rem; }
.board__wall > .pin:nth-child(3) { grid-area: 1 / 3; }
.board__wall > .pin:nth-child(4) { grid-area: 2 / 1; }
.board__wall > .pin:nth-child(5) { grid-area: 2 / 2; margin-top: 2.25rem; }
.board__wall > .pin:nth-child(6) { grid-area: 2 / 3; }
.board__wall > .sheet { grid-area: 1 / 4 / 3 / 5; margin-top: 1.25rem; }
.board__caption { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--slip); text-align: right; }

/* A pin: paper at Pinterest's 2:3, image with the studio's type band. */
.pin {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--kiln);
  border: 1px solid var(--crackle);
  border-radius: 4px;
  overflow: hidden;
}
.pin::before {               /* pin-head */
  content: ""; position: absolute; top: 7px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--cobalt); z-index: 2;
}
.pin img { width: 100%; height: 100%; object-fit: cover; }
.pin__band {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--kiln); padding: 0.55rem 0.65rem 0.6rem;
}
.pin__title {
  font-family: var(--display); font-stretch: 75%; font-weight: 640; font-variation-settings: "opsz" 48;
  font-size: clamp(0.8rem, 0.55rem + 0.55vw, 1.05rem); line-height: 1.08; color: var(--slip);
  margin: 0 0 0.2rem; letter-spacing: -0.01em;
}
.pin__shop { font-size: 0.75rem; line-height: 1.2; color: var(--slip-quiet); margin: 0; }

/* The email: a different material, so a different edge. */
.sheet {
  background: var(--kiln);
  border: 1px solid var(--crackle);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.875rem; line-height: 1.45;
}
.sheet__meta { margin: 0 0 0.75rem; display: grid; gap: 0.15rem; }
.sheet__meta div { display: flex; gap: 0.5rem; }
.sheet__meta dt { color: var(--slip-quiet); min-width: 3.5rem; }
.sheet__meta dd { margin: 0; color: var(--slip); }
.sheet img { border-radius: 4px; margin-bottom: 0.75rem; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; height: auto; }
.sheet__headline {
  font-family: var(--display); font-stretch: 80%; font-weight: 640; font-size: 1.15rem; line-height: 1.1;
  color: var(--slip); margin: 0 0 0.5rem;
}
.sheet p { margin: 0 0 0.5rem; }

/* One orchestrated moment: the pins settle onto the board. */
@keyframes settle { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
.board__wall > * { animation: settle 520ms cubic-bezier(.2,.7,.2,1) both; }
.board__wall > :nth-child(2) { animation-delay: 240ms; }
.board__wall > :nth-child(3) { animation-delay: 480ms; }
.board__wall > :nth-child(4) { animation-delay: 720ms; }
.board__wall > :nth-child(5) { animation-delay: 960ms; }
.board__wall > :nth-child(6) { animation-delay: 1200ms; }
.board__wall > :nth-child(7) { animation-delay: 1440ms; }
@media (prefers-reduced-motion: reduce) { .board__wall > * { animation: none; } }

/* Mobile: the wall becomes a strip you swipe; the caption stays visible. */
@media (max-width: 999px) {
  .board { padding: 1rem 0 1rem 1rem; }
  .board__wall {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem;
    padding: 0.25rem 1rem 0.5rem 0.25rem; overscroll-behavior-x: contain;
  }
  .board__wall > .pin, .board__wall > .sheet { flex: 0 0 auto; scroll-snap-align: start; margin-top: 0 !important; }
  .board__wall > .pin { width: min(62vw, 15rem); }
  .board__wall > .sheet { width: min(80vw, 20rem); }
  .board { display: flex; flex-direction: column; }
  .board__caption { order: -1; text-align: left; padding-right: 1rem; margin: 0 0 0.75rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--crackle); }
.lede { font-size: 1.1875rem; max-width: 60ch; }

/* Sample month */
.month { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 1rem; }
.month th, .month td { text-align: left; vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--crackle); }
.month thead th { font-family: var(--display); font-stretch: 80%; font-weight: 600; color: var(--slip-quiet); font-size: 1rem; }
.month tbody th { font-family: var(--display); font-stretch: 80%; font-weight: 640; color: var(--cobalt); white-space: nowrap; }
.month__thumbs { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 0.6rem; }
/* explicit height: the 640x960 attributes would otherwise win over aspect-ratio (Luis 20:09: "skinny images") */
.month__thumbs img { flex: 0 0 auto; width: 72px; height: 108px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--crackle); }
.table-scroll { overflow-x: auto; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 3.5rem; line-height: 1;
  color: var(--cobalt); margin-bottom: 0.75rem;
}
.steps h3 { color: var(--slip); margin-bottom: 0.5rem; }
.steps p { font-size: 1.0625rem; }
.how-note { margin-top: 2.5rem; max-width: 62ch; font-size: 1.0625rem; color: var(--slip-quiet); }

/* Plans */
.plans { width: 100%; border-collapse: collapse; margin-top: 1rem; table-layout: fixed; min-width: 34rem; }
.plans thead td { width: 24%; }
.plans th, .plans td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--crackle); }
.plans thead th { font-family: var(--display); font-stretch: 75%; font-weight: 640; font-size: 2rem; color: var(--cobalt); }
.plans tbody th { font-weight: 500; color: var(--slip-quiet); width: 22%; }
.plans .price td { font-family: var(--display); font-stretch: 80%; font-weight: 640; font-size: 1.5rem; color: var(--slip); font-variant-numeric: lining-nums tabular-nums; }
.plans .choose td { border-bottom: 0; padding-top: 1.5rem; }
.plans .choose th { border-bottom: 0; }
.choose-link { display: inline-block; margin-top: 0.75rem; font-size: 1rem; }
.plain-list { margin: 1.5rem 0 0; padding-left: 1.1rem; }
.plain-list li { margin-bottom: 0.35rem; }

/* Note from Luis */
.note { max-width: 58ch; }
.note p { font-size: 1.1875rem; }
.note__sign { font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: 1.25rem; color: var(--cobalt); margin-top: 1.25rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--crackle); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: 1.1875rem; color: var(--slip); }
.faq details p { margin: 0.6rem 0 0; }

/* ---------- Form (field markup unchanged from v1; form.js depends on it) ---------- */
.lead-form { display: grid; gap: 1.4rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; color: var(--slip); padding: 0; }
.field .opt { font-weight: 400; color: var(--slip-quiet); font-size: 0.9em; }
.help { font-size: 0.9375rem; color: var(--slip-quiet); margin: 0; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--slip);
  background: var(--kiln); border: 1px solid var(--crackle); border-radius: 2px;
  padding: 0.7rem 0.8rem; width: 100%;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.choices label, .check { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; color: var(--slip); cursor: pointer; }
.check { align-items: flex-start; }
.check input { margin-top: 0.4rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cobalt); width: 1.05rem; height: 1.05rem; }
.handles { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .handles { grid-template-columns: repeat(3, 1fr); } }
.handles label { font-size: 0.95rem; color: var(--slip); display: grid; gap: 0.3rem; }
.field-error { color: var(--error); font-size: 0.9rem; margin: 0; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot: must stay off-screen */
button[type="submit"] {
  font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: 1.0625rem;
  background: var(--cobalt); color: var(--kiln); border: 1px solid var(--cobalt); border-radius: 2px;
  padding: 0.85rem 1.4rem; cursor: pointer; justify-self: start;
}
button[type="submit"]:hover { background: var(--slip); border-color: var(--slip); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
.form-foot { font-size: 0.95rem; color: var(--slip-quiet); margin: 0.75rem 0 0; }
.form-status { margin: 0; color: var(--error); }
.form-status:empty { display: none; }
.thanks { background: var(--kiln); border: 1px solid var(--crackle); border-radius: 12px; padding: 1.5rem 1.4rem; margin-top: 2rem; }
.thanks h3 { margin: 0 0 0.5rem; }

/* ---------- Legal pages (content unchanged, chrome only) ---------- */
.legal { padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.75rem; margin: 2.25rem 0 0.75rem; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 3rem; border-top: 1px solid var(--crackle); font-size: 0.9375rem; color: var(--slip-quiet); }
.site-footer p { margin: 0 0 0.75rem; max-width: 70ch; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.footer-brand { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.25rem; color: var(--cobalt); margin-bottom: 0.75rem; }
