/*
 * Velo Prime — Ledger theme kit, "developer-tool" restyle.
 *
 * The :root block below is this business's palette and type. Per a
 * founder-requested color/texture correction: the ink role is a neutral
 * charcoal/near-black (no brown cast), the graph-paper grid texture that
 * used to live in the ink bands has been removed entirely (clean solid
 * dark fill), and the accent role is green — the single accent color
 * used for CTAs, the eyebrow marker, and emphasis rules.
 *
 * Contrast (WCAG AA 4.5:1 floor): ink-on-canvas, ink-on-surface,
 * ink-on-section-tint, accent-text-on-surface/canvas, and the CTA
 * pairing (canvas-on-ink / white-on-accent) all clear the floor with
 * this palette's intended role usage.
 *
 * "Techy / developer-tool" direction, achieved entirely within the
 * assigned palette and the two assigned typefaces (no new font family is
 * introduced anywhere below):
 *   - Sharp edges: --zb-radius is 0 everywhere (buttons, photo frames,
 *     cards, inputs) instead of a soft rounded corner.
 *   - Ink (the dominant-contrast role) fills the hero, the closing CTA,
 *     and the footer — a dark anchor at the top, middle-close, and
 *     bottom of the page — as a clean, untextured solid fill.
 *   - Headline type leans on its heaviest weights with tight, uppercase
 *     tracking for labels — reads structured/technical without
 *     substituting a monospace face the palette didn't provide.
 */
:root {
  --zb-color-ink: #1a1a1a;
  --zb-color-canvas: #fbfaf8;
  --zb-color-surface: #ffffff;
  --zb-color-accent: #1f7a4d;
  --zb-color-accent-text: #145c38;
  --zb-color-secondary: #26436b;
  --zb-color-section-tint: #f0ede8;
  --zb-color-border: #ddd7ce;
  --zb-cta-fill: #1f7a4d;
  --zb-cta-text: #ffffff;
  --zb-font-headline: 'Bricolage Grotesque', sans-serif;
  --zb-font-body: 'Public Sans', sans-serif;

  --zb-space-1: 0.5rem;
  --zb-space-2: 1rem;
  --zb-space-3: 2rem;
  --zb-space-4: 4rem;
  --zb-radius: 0; /* sharp edges, not soft/rounded shapes */
  --zb-maxw: 64rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zb-color-canvas);
  color: var(--zb-color-ink);
  font-family: var(--zb-font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--zb-font-headline);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 var(--zb-space-2);
}

h1 {
  font-weight: 800; /* ExtraBold — reserved for the single <h1> */
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
  font-weight: 700; /* Bold */
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-weight: 600; /* SemiBold */
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--zb-space-2);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--zb-color-accent-text);
}

/* Mobile-first layout primitives ----------------------------------- */

.container {
  width: 100%;
  max-width: var(--zb-maxw);
  margin: 0 auto;
  padding: 0 var(--zb-space-3);
}

.section {
  padding: var(--zb-space-4) 0;
}

/* A single centered reading column — the shape "the story", "what I
   do", "proof", and "contact" all share. Restrained width keeps line
   length calm and legible; this is the one-idea-per-section shape the
   Story-led layout calls for, not a card grid. */
.reading-column {
  max-width: 40rem;
  margin: 0 auto;
}

/* Eyebrow labels get a small square accent marker — a technical/label
   cue built from a shape, not a glyph, so it never touches the text
   content of the page. */
.eyebrow {
  font-family: var(--zb-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--zb-color-accent-text);
  margin: 0 0 var(--zb-space-1);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--zb-color-accent);
  flex: none;
}

/* Call to action — always the two CTA vars, never a literal color.
   Sharp corners + uppercase tracking read as a technical/terminal
   affordance rather than a soft marketing button. */
.cta-button {
  display: inline-block;
  background: var(--zb-cta-fill);
  color: var(--zb-cta-text);
  font-family: var(--zb-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.9375rem 2rem;
  border-radius: var(--zb-radius);
  border: none;
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus {
  filter: brightness(0.92);
}

/* 1. Portrait hero — 55–65vh, two columns; ink field is this palette's
   dominant-contrast role, carrying a clean, untextured dark anchor at
   the top of the page. */
.hero {
  background-color: var(--zb-color-ink);
  color: var(--zb-color-canvas);
  display: flex;
  align-items: center;
  padding-top: var(--zb-space-4);
  padding-bottom: var(--zb-space-4);
  border-bottom: 1px solid var(--zb-color-accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--zb-space-4);
  align-items: center;
}

.hero-copy h1 {
  color: var(--zb-color-canvas);
  max-width: 18ch;
}

.hero-copy .sub {
  font-size: 1.125rem;
  max-width: 46ch;
  color: var(--zb-color-canvas);
  margin-bottom: var(--zb-space-3);
}

/* The eyebrow's default color (--zb-color-accent-text) is tuned for
   light surfaces and fails the contrast floor on the hero's dark ink
   field. Reuse the canvas-on-ink pairing the hero already guarantees
   clears it, instead of introducing a new color. */
.hero-copy .eyebrow {
  color: var(--zb-color-canvas);
}

/* Contain the grid image item: min-height: 0 plus overflow hidden so
   intrinsic image size can't override aspect-ratio/object-fit. Sharp
   frame (no radius) with a thin accent rule, portrait box per the
   Story-led hero spec. The founder photo is a wide product screenshot
   rather than a portrait crop, so the image is scaled to fit fully
   inside the box (object-fit: contain) instead of being cropped to
   cover it — this keeps the whole screenshot legible and on-frame
   instead of spilling out of, or being cut off by, its box. */
.hero-photo {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--zb-color-ink);
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
}

/* 2. The story — one column, long-form. Not a card grid, not
   multi-column, not bullets. */
.story {
  background: var(--zb-color-surface);
}

.story h2 {
  margin-top: var(--zb-space-3);
  padding-top: var(--zb-space-3);
  border-top: 1px solid var(--zb-color-border);
}

.story h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* 3. What I do — a prose list, not cards: full-width entries in the
   same reading column, separated by a hairline rather than a box. */
.offerings {
  background: var(--zb-color-surface);
}

.offering {
  padding-top: var(--zb-space-3);
  padding-bottom: var(--zb-space-3);
  border-top: 1px solid var(--zb-color-border);
}

.offering:first-of-type {
  border-top: none;
  padding-top: var(--zb-space-2);
}

.offering h3 {
  color: var(--zb-color-ink);
}

.offering p {
  margin-bottom: 0;
}

/* 3b. How your co-founder works — an ordered list of short steps, not
   a dense paragraph. Same reading-column shape and hairline rhythm as
   "What it does", each step numbered with the accent color already
   used for the eyebrow marker and CTA. */
.how-it-works {
  background: var(--zb-color-surface);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: var(--zb-space-2);
  padding-top: var(--zb-space-2);
  padding-bottom: var(--zb-space-2);
  border-top: 1px solid var(--zb-color-border);
}

.step:first-of-type {
  border-top: none;
  padding-top: var(--zb-space-1);
}

.step::before {
  content: counter(step);
  flex: none;
  font-family: var(--zb-font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: var(--zb-cta-text);
  background: var(--zb-color-accent);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p {
  margin: 0;
  font-weight: 600;
  color: var(--zb-color-ink);
}

/* 4. Proof — small and specific, on the section-tint wash. */
.proof {
  background: var(--zb-color-section-tint);
  text-align: center;
  border-top: 1px solid var(--zb-color-border);
  border-bottom: 1px solid var(--zb-color-border);
}

.proof-line {
  font-family: var(--zb-font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--zb-color-ink);
  margin-bottom: 0;
}

/* 5. Closing CTA — one band, one action. Ink is this palette's
   dominant-contrast role; the closing CTA is named as one of its two
   fills (alongside the footer), so it carries the same clean, solid
   dark treatment as the hero rather than a light surface. */
.contact {
  background-color: var(--zb-color-ink);
  color: var(--zb-color-canvas);
  text-align: center;
  border-top: 1px solid var(--zb-color-accent);
  border-bottom: 1px solid var(--zb-color-accent);
}

.contact .sub {
  max-width: 44ch;
  margin: 0 auto var(--zb-space-3);
  color: var(--zb-color-canvas);
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--zb-space-2);
  max-width: 32rem;
  margin: 0 auto;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  font-family: var(--zb-font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--zb-color-border);
  border-radius: var(--zb-radius);
  background: var(--zb-color-canvas);
  color: var(--zb-color-ink);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .cta-button {
  align-self: flex-start;
}

/* Light-surface variant of the contact form, for the routed /contact/
   page (which sits on a surface band, not the ink closing-CTA band). */
.contact-page .contact-form .field {
  color: var(--zb-color-ink);
}

/* 6. Footer — ink is this palette's dominant-contrast role, alongside
   the hero and closing CTA; a clean solid fill to match. */
#footer {
  background-color: var(--zb-color-ink);
  color: var(--zb-color-canvas);
  padding: var(--zb-space-3) 0;
  font-size: 0.875rem;
  text-align: center;
}

#footer a {
  color: var(--zb-color-canvas);
  text-decoration: underline;
}

.footer-contact {
  margin-bottom: var(--zb-space-2);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--zb-space-2) var(--zb-space-3);
  margin-bottom: var(--zb-space-2);
}

.attribution {
  margin-top: var(--zb-space-2);
  opacity: 0.75;
  font-size: 0.8125rem;
}

/* Shared site header — the SAME markup ships on every page (homepage,
   blog/index.html, every post, contact/index.html, thanks/index.html)
   so the whole site reads as one website. Sharp, high-contrast ink bar
   with a single accent rule along the bottom edge. */
.site-nav {
  background: var(--zb-color-ink);
  color: var(--zb-color-surface);
  border-bottom: 2px solid var(--zb-color-accent);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zb-space-1) var(--zb-space-2);
  padding-top: var(--zb-space-2);
  padding-bottom: var(--zb-space-2);
}

.site-nav__brand {
  font-family: var(--zb-font-headline);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--zb-color-surface);
  text-decoration: none;
}

/* Mobile-first: the link group takes a full row of its own, UNDER the
   brand. */
.site-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: var(--zb-space-1) var(--zb-space-2);
}

@media (min-width: 900px) {
  .site-nav__links {
    flex-basis: auto;
    gap: var(--zb-space-3);
  }
}

.site-nav__link {
  font-family: var(--zb-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zb-color-canvas);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus {
  text-decoration: underline;
}

.site-nav__link--active {
  color: var(--zb-color-surface);
  text-decoration: underline;
}

/* Blog index — a light content page. The empty state holds the route
   until the founder loop publishes the first cornerstone articles. */
.blog-index {
  background: var(--zb-color-surface);
  min-height: 60vh;
}

.blog-empty {
  margin-top: var(--zb-space-3);
  padding: var(--zb-space-4) var(--zb-space-3);
  background: var(--zb-color-section-tint);
  border: 1px solid var(--zb-color-border);
  border-radius: var(--zb-radius);
  text-align: center;
}

.blog-empty h2 {
  color: var(--zb-color-ink);
  margin-bottom: var(--zb-space-1);
}

.blog-empty p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--zb-color-ink);
}

/* Blog card grid — one card per published post, on the blog index. */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--zb-space-3);
  margin-top: var(--zb-space-3);
}

@media (min-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--zb-color-section-tint);
  border: 1px solid var(--zb-color-border);
  border-top: 3px solid var(--zb-color-accent);
  border-radius: var(--zb-radius);
  padding: var(--zb-space-3);
  display: flex;
  flex-direction: column;
}

.blog-card h2 {
  font-size: 1.375rem;
  margin-bottom: var(--zb-space-1);
}

.blog-card h2 a {
  color: var(--zb-color-ink);
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus {
  text-decoration: underline;
}

.blog-card p {
  color: var(--zb-color-ink);
  margin-bottom: var(--zb-space-2);
}

.blog-card .blog-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--zb-color-accent-text);
}

/* Blog post — reading column with a full-width hero photo up top. */
.post {
  background: var(--zb-color-surface);
}

.post-hero {
  margin: 0 0 var(--zb-space-3);
  overflow: hidden;
  border: 1px solid var(--zb-color-border);
}

.post-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-body h2 {
  margin-top: var(--zb-space-3);
}

.post-body h2:first-of-type {
  margin-top: 0;
}

.post-footer-nav {
  margin-top: var(--zb-space-3);
  padding-top: var(--zb-space-2);
  border-top: 1px solid var(--zb-color-border);
}

/* Thanks page — same design system, single <h1>, short confirmation. */
.thanks {
  background: var(--zb-color-surface);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thanks .reading-column {
  text-align: center;
}

/* Contact page — same design system, single <h1>, the form as the
   page's one call to action. */
.contact-page {
  background: var(--zb-color-surface);
  min-height: 60vh;
}

.contact-page .mailto-line {
  margin-top: var(--zb-space-3);
  padding-top: var(--zb-space-3);
  border-top: 1px solid var(--zb-color-border);
}

/* Desktop — md (900px) boundary, matching the @fabric/ui breakpoint. */
@media (min-width: 900px) {
  .hero {
    min-height: 60vh;
  }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}
