/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --paper:    #F7F3EA;
  --paper-2:  #FBF8F1;
  --ink:      #1B211D;
  --ink-soft: #404840;
  --green:    #1C5A4A;
  --green-2:  #154034;
  --brass:      #A97B36;  /* decorative only — hairlines, borders, icon strokes */
  --brass-deep: #7A551F;  /* 6.67:1 on white, 6.03:1 on paper — text and button fill */
  --brass-2:    #6B4A1B;  /* hover state for brass-deep buttons */
  --line:     #D8CFBE;
  --line-2:   #ECE5D6;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:  'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  --container: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(3.5rem, 8vw, 6rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain — faint SVG noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* All real content sits above the grain */
body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85em 1.6em;
  min-height: 44px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn-brass {
  background-color: var(--brass-deep);
  color: #fff;
  border-color: var(--brass-deep);
}

.btn-brass:hover {
  background-color: var(--brass-2);
  border-color: var(--brass-2);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink-soft);
  background-color: var(--line-2);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.6em 1.1em;
  min-height: 38px;
}

/* ============================================================
   SECTION RULE
   ============================================================ */
.section-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--paper);
  border-top: 2.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.masthead-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.masthead-dateline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero-inner {
  position: relative;
}

/* Corner tick marks — engineer's drawing aesthetic */
.hero-frame {
  position: absolute;
  inset: -1.5rem;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--line);
  border-style: solid;
}

.corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero-eyebrow {
  margin-bottom: 1.2rem;
}

.hero-headline {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 500;
  max-width: 820px;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

/* Broadsheet mock illustration */
.broadsheet-mock {
  max-width: 520px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 2rem 2.25rem;
  box-shadow: 3px 4px 0 0 var(--line);
  position: relative;
}

.broadsheet-label {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.broadsheet-header-rule {
  height: 1px;
  background-color: var(--ink);
  margin-bottom: 0.9rem;
}

.broadsheet-headline-sim {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.2rem;
}

.broadsheet-sub-sim {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 1.2rem;
}

.broadsheet-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.bline {
  display: block;
  height: 6px;
  background-color: var(--line);
  border-radius: 1px;
}

.bline-wide  { width: 100%; }
.bline-mid   { width: 75%; }
.bline-narrow { width: 45%; }

.broadsheet-footer-rule {
  height: 1px;
  background-color: var(--line);
  margin-bottom: 0.7rem;
}

.broadsheet-footer-sim {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-block: var(--section-gap);
}

.section-alt {
  background-color: var(--paper-2);
}

.section-eyebrow {
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.015em;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  margin-bottom: 0.8rem;
}

.step-icon {
  color: var(--green);
  margin-bottom: 1rem;
}

.step-heading {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Step connector lines on desktop */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(0.5rem + 18px + 0.8rem + 4px);
    right: -1rem;
    width: 2rem;
    height: 1px;
    background-color: var(--line);
  }
}

/* ============================================================
   ABOUT JOHN
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
  }
}

.about-serif-heading {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.1rem;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 36ch;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}

.credentials {
  min-width: 0;
}

.credential-chips {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 480px) and (max-width: 767px) {
  .credential-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background-color: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45em 0.9em;
  white-space: nowrap;
  border-radius: 1px;
}

.section-alt .chip {
  background-color: var(--paper-2);
}

/* ============================================================
   THE OFFER — PRICE CARD
   ============================================================ */
.offer-card {
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 600px;
  position: relative;
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  margin-bottom: 0.4rem;
}

.offer-price {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.offer-period {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.offer-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.offer-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.check-icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.15em;
}

.offer-cta {
  width: 100%;
}

@media (min-width: 480px) {
  .offer-cta {
    width: auto;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  max-width: 680px;
}

.contact-serif-lead {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.contact-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 500;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: color 180ms ease-out, border-color 180ms ease-out;
  letter-spacing: -0.01em;
}

.contact-link svg {
  color: var(--brass);
  flex-shrink: 0;
}

.contact-link-phone:hover {
  color: var(--brass-deep);
  border-color: var(--brass-deep);
}

.contact-link-email:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--paper);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.footer-rule {
  margin-bottom: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-main {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 70ch;
  line-height: 1.6;
}

.footer-privacy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ============================================================
   SCROLL-REVEAL — base state (JS-enhanced)
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 280ms ease-out, transform 280ms ease-out;
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HERO PAGE-LOAD ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .animate-hero {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-rise 320ms ease-out forwards;
    animation-delay: var(--delay, 0ms);
  }

  @keyframes hero-rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ============================================================
   PRINT BASELINE (ensure text is still useful if printed)
   ============================================================ */
@media print {
  .masthead {
    position: static;
  }

  .hero-frame,
  .broadsheet-mock {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
