:root {
  --ink: #1c1610;
  --ink-soft: #3f382f;
  --paper: #f3ece1;
  --paper-deep: #e7ddd0;
  --cream: #fffaf2;
  --line: #d7cbb8;
  --muted: #6b6258;
  --high: #9a3412;
  --high-hover: #7c2d12;
  --hero: #16110c;
  --hero-text: #f3ece1;
  --hero-muted: #b7aa9a;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--hero);
}

body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.5 var(--sans);
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--high); }

:focus-visible {
  outline: 2px solid var(--high);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-head p { margin: 0 0 12px; color: var(--ink-soft); }

.section-head p:last-child { margin-bottom: 0; }

/* Header */

.site-header {
  background: var(--hero);
  color: var(--hero-text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(243, 236, 225, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--hero-text);
}

.brand:hover { color: var(--hero-text); }

.brand .mark { color: #2a221c; }

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.nav nav a {
  color: var(--hero-muted);
  text-decoration: none;
}

.nav nav a:hover { color: var(--hero-text); }

.nav-cta {
  color: var(--hero-text) !important;
  background: var(--high);
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--high-hover); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--high);
  color: #fffaf2;
}

.btn-primary:hover {
  background: var(--high-hover);
  color: #fffaf2;
}

.btn-ghost {
  color: var(--hero-text);
  border: 1px solid rgba(243, 236, 225, 0.28);
}

.btn-ghost:hover {
  border-color: var(--hero-text);
  color: var(--hero-text);
}

/* Hero */

.hero {
  background: var(--hero);
  color: var(--hero-text);
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.hero .eyebrow { color: var(--hero-muted); }

.lede {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: #e4d8c8;
}

.hero-body {
  margin: 0 0 28px;
  color: var(--hero-muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  font-size: 14.5px;
  color: #8d8276;
  max-width: 48ch;
}

.example .eyebrow { color: var(--hero-muted); }

.signal-card {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 5px solid var(--high);
  border-radius: 4px 12px 12px 4px;
  padding: 22px 22px 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.signal-kicker,
.meta,
.why-label,
.facts dt,
.work .when,
.anon {
  font-family: var(--sans);
}

.signal-kicker {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b433a;
}

.pri { color: var(--high); font-weight: 700; }

.signal-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.anon {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.why-label {
  margin: 16px 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.why { margin: 0; font-size: 16.5px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}

.facts dt {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--serif);
}

.note {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #5c5349;
}

.work {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work li {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-areas: "when cat" "when addr" "when comment";
  gap: 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.work .when { grid-area: when; color: var(--muted); }
.work .cat { grid-area: cat; font-weight: 600; }
.work .addr { grid-area: addr; }
.work .comment { grid-area: comment; color: var(--muted); font-size: 13px; }

/* Signals */

.signals,
.how,
.audience,
.brief,
.cta,
#example {
  scroll-margin-top: 80px;
}

.signals,
.how,
.audience {
  padding: 80px 0;
}

.signals { background: var(--paper); }

.signal-types,
.audience-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-types article,
.audience-grid article,
.steps li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
}

.type-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--high);
}

.signal-types p:last-child,
.audience-grid p,
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* How */

.how { background: var(--paper-deep); }

.steps { counter-reset: none; }

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--high);
  margin-bottom: 8px;
  line-height: 1;
}

/* Brief preview */

.brief {
  padding: 80px 0 88px;
  background: var(--ink);
  color: var(--hero-text);
}

.brief .eyebrow,
.brief .section-head p { color: var(--hero-muted); }

.brief .section-head strong { color: var(--hero-text); font-weight: 600; }

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.pulse-frame {
  margin: 0;
  background: #2a221c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(243, 236, 225, 0.08);
}

.pulse-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #211b16;
}

.pulse-chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6258;
}

.chrome-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--hero-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-page {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 26px 24px;
  font-family: "Iowan Old Style", Palatino, Georgia, var(--serif);
}

.pulse-eyebrow {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.pulse-sub { margin: 0 0 8px; font-size: 15px; color: var(--ink-soft); }

.pulse-fresh,
.pulse-market,
.pulse-more {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 62ch;
}

.pulse-kicker {
  margin: 16px 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.pulse-split {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
}

.pill.high { color: var(--high); font-weight: 700; }
.pill.med { color: #44403c; font-weight: 600; }
.pill.watch { color: #8a8175; font-weight: 600; }

.pulse-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--high);
  padding: 16px 16px 12px;
  margin: 0 0 12px;
}

.pulse-card h3 { margin: 0 0 2px; font-size: 18px; }

.pulse-card .meta {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b433a;
}

.pulse-card .why { font-size: 14.5px; }

.pulse-card.compact { padding: 12px 14px 10px; }

.facts.mini { margin: 12px 0 4px; }

.facts.mini dd { font-size: 15px; }

/* Audience */

.audience { background: var(--paper); }

/* CTA */

.cta {
  padding: 72px 0;
  background: var(--paper-deep);
  text-align: center;
}

.cta.missing {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-inner { max-width: 640px; }

.cta p { color: var(--ink-soft); }

.cta .btn { margin-top: 8px; }

.cta-address {
  margin: 16px 0 0;
  font-size: 15px;
}

.cta-address a { color: var(--high); font-weight: 600; }

/* Footer */

.site-footer {
  background: var(--hero);
  color: var(--hero-muted);
  padding: 48px 0 28px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(243, 236, 225, 0.1);
}

.brand-foot {
  margin: 0 0 8px;
  color: var(--hero-text);
  font-weight: 700;
  font-size: 16px;
}

.footer-label {
  margin: 0 0 8px;
  color: var(--hero-text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-grid p { margin: 0; }

.footer-end {
  padding-top: 18px;
}

.footer-end p { margin: 0; font-size: 13px; }

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .brief-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .signal-types,
  .audience-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  .hero { padding: 36px 0 48px; }

  .signals, .how, .audience, .brief, .cta { padding: 56px 0; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .work li {
    grid-template-columns: 1fr;
    grid-template-areas: "when" "cat" "addr" "comment";
  }

  .pulse-page { padding: 20px 16px; }

  h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
