/* ============================================================
 * paperweb.studio — stylesheet
 *
 * Visual direction: editorial-industrial blueprint. Cream paper,
 * confident orange-red accent, bold display headlines, mono
 * microcopy, strong structural lines, cell-grid technical layouts.
 *
 * Sections (in source order):
 *   1.  Local fonts
 *   2.  Design tokens (CSS variables)
 *   3.  Reset & base
 *   4.  Accessibility (focus, skip link)
 *   5.  Decorative chrome (paper grain, crop marks)
 *   6.  Navigation
 *   7.  Layout primitives (shell, section)
 *   8.  Hero
 *   9.  Section / subsection headers
 *  10.  Prose & shared inline patterns (links, drop-cap, code, em, mark)
 *  11.  Component: Principles (cell-grid table)
 *  12.  Component: Card base
 *  13.  Component: Payments
 *  14.  Component: Price tiers + addon
 *  15.  Component: Paying-for + cost breakdown
 *  16.  Component: Surgery + symptoms list
 *  17.  Component: Haggle
 *  18.  Component: Contact
 *  19.  Component: Colophon
 *  20.  Closing notes
 *  21.  Motion
 * ============================================================ */


/* ─────────────── 1. Local fonts ─────────────── */
@font-face {
  font-family: 'Departure Mono';
  src: url('./DepartureMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ─────────────── 2. Design tokens ─────────────── */
:root {
  /* Surfaces */
  --paper:      #F1E8D5;
  --paper-deep: #E5D6B0;

  /* Text */
  --ink:        #1C1814;
  --ink-soft:   #4A4239;

  /* Accent — brighter than before for more punch on cream */
  --red:        #C4441F;

  /* Rules */
  --rule:       rgba(28, 24, 20, 0.28);
  --rule-strong: rgba(28, 24, 20, 0.65);

  /* Typefaces */
  --serif-display: 'Fraunces', 'Times New Roman', serif;
  --serif-body:    'Newsreader', 'Georgia', serif;
  --mono:          'Departure Mono', 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Font-size scale */
  --fs-2xs:  0.7rem;
  --fs-xs:   0.78rem;
  --fs-sm:   0.86rem;
  --fs-md:   0.95rem;
  --fs-base: 1rem;
  --fs-lg:   1.1rem;
  --fs-xl:   1.35rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.5rem;
  --fs-display: clamp(2.5rem, 6vw, 5rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, var(--space-7));
  --max:    1180px;

  /* Motion */
  --ease:  cubic-bezier(.16, .84, .32, 1);

  /* Chrome */
  --nav-h: 56px;
}


/* ─────────────── 3. Reset & base ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-4));
}

body {
  background: #D9C896; /* darker "table" beneath the page-card */
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: clamp(1rem, 0.87rem + 0.36vw, 1.1rem);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

/* Page card — wraps everything in a bordered cream sheet on the
 * darker tabletop. References 1 & 2 lean on this device frame.
 * overflow:clip lets the orange panel bleed to card edges while
 * still allowing the sticky nav inside to function.
 * The dotted grid overlay gives the blueprint feel from Reference 2. */
.page-card {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(28, 24, 20, 0.13) 0.9px, transparent 1.1px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  max-width: 1280px;
  margin-inline: auto;
  position: relative;
  overflow: clip;
}

::selection { background: var(--red); color: var(--paper); }


/* ─────────────── 4. Accessibility ─────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  padding: 0.6rem var(--space-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }


/* ─────────────── 5. Decorative chrome ─────────────── */
/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.28;
}



/* ─────────────── 6. Navigation ─────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.wordmark:hover::before {
  transform: rotate(45deg) scale(1.15);
  background: var(--ink);
}

.nav {
  display: flex;
  gap: clamp(1rem, 2vw, var(--space-6));
  text-transform: uppercase;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--red); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--red);
}
.nav a.cta { color: var(--red); }
.nav a.cta::before { content: '→ '; }

@media (max-width: 640px) {
  .nav { gap: 0.85rem; font-size: var(--fs-2xs); }
  .nav a:not(.cta) { display: none; }
}


/* ─────────────── 7. Layout primitives ─────────────── */
.shell {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section {
  padding-block: clamp(3.5rem, 7vw, var(--space-8));
  position: relative;
}


/* ─────────────── 8. Hero (2-col: pitch left, art + Now aside right) ─────────────── */
.hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-5), 4vw, var(--space-6));
  align-items: stretch;
  position: relative;
}
.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: stretch;
}
.hero-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-frame {
    max-width: 240px;
    margin-top: var(--space-5);
  }
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 550;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: var(--space-6);
  max-width: 24ch;
  font-variation-settings: "opsz" 144, "SOFT" 25;
}
.hero-title em {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
/* Highlighter — solid block, tight padding. background-color is set
 * explicitly to override the browser's default yellow on <mark>. */
.hero-title mark {
  background-color: var(--red);
  color: var(--paper);
  padding: 0.02em 0.2em;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-tag {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--space-7);
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-actions a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  padding: 2px 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-actions a .arrow {
  color: var(--red);
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.hero-actions a:hover { color: var(--red); }
.hero-actions a:hover .arrow { transform: translateX(4px); }
.hero-actions a .underline {
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.hero-actions a:hover .underline { border-bottom-color: var(--red); }

/* Hero scroll indicator (Reference 2) */
.hero-scroll {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, var(--space-5));
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1.15rem;
  z-index: 2;
  background: var(--paper);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-scroll:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translateX(-50%) translateY(3px);
}
@media (max-width: 720px) {
  .hero-scroll { display: none; }
}

/* Hero "Now" marginalia (sits below illustration in right column) */
.hero-corner {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 26ch;
  padding-left: var(--space-3);
  border-left: 1.5px solid var(--red);
  align-self: end;
}
.hero-corner .small-cap {
  color: var(--red);
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .hero-corner { align-self: start; max-width: 32ch; margin-top: var(--space-5); }
}


/* ─────────────── 9. Section / subsection headers ─────────────── */
.section-mark {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(2rem, 4vw, var(--space-7));
  padding-bottom: var(--space-4);
  border-bottom: 1.5px solid var(--ink);
  line-height: 1;
}

.subsection-mark {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-5);
  margin-top: clamp(2.5rem, 5vw, var(--space-8));
}
.subsection-mark:first-of-type { margin-top: 0; }


/* ─────────────── 10. Prose & shared inline patterns ─────────────── */
.prose {
  max-width: 64ch;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.18vw, 1.2rem);
  line-height: 1.65;
}
.prose p + p { margin-top: 1.1em; }
.prose strong { font-weight: 400; color: var(--red); font-style: italic; }

/* About: prose + mono-specs sidebar split (asymmetric editorial layout) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: start;
  max-width: 64ch;
  margin-inline: auto;
}
.about-grid .prose {
  max-width: none;
  margin: 0;
}
.about-image {
  width: 100%;
}
.image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* If you swap the placeholder for an <img>, use this class on the img */
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    max-width: 64ch;
  }
  .about-image { max-width: 22rem; margin-top: var(--space-4); }
}
.prose mark { background: var(--paper-deep); color: var(--ink); padding: 0 0.15em; }

/* Body-area links: wavy red underline */
.prose a,
.haggle a,
.paying-for a {
  color: var(--ink);
  text-decoration: underline wavy var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.prose a:hover,
.haggle a:hover,
.paying-for a:hover { color: var(--red); }

/* Italic-red emphasis */
.paying-for em,
.haggle em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 24;
}

.drop-cap {
  font-family: var(--serif-display);
  font-weight: 500;
  float: left;
  font-size: 4.8em;
  line-height: 0.82;
  padding: 0.05em 0.14em 0 0;
  color: var(--red);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--red);
  font-weight: 400;
  font-style: normal;
}


/* ─────────────── 11. Principles (cell-grid table) ─────────────── */
.principles {
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.principle {
  display: grid;
  grid-template-columns: 4.5rem minmax(11rem, 16rem) 1fr;
  border-bottom: 1px solid var(--ink);
}
.principle:last-child { border-bottom: none; }
.principle > * {
  padding: clamp(1.2rem, 2.5vw, 1.8rem) clamp(1rem, 2vw, 1.5rem);
}
.principle-num {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--red);
  letter-spacing: 0.04em;
  border-right: 1px solid var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
}
.principle-name {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-right: 1px solid var(--ink);
}
.principle-desc {
  font-family: var(--serif-body);
}
.principle-desc p {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink);
  max-width: 64ch;
}
.principle-desc p + p { margin-top: 0.9em; }

.sub-options {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.sub-option h4 {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.sub-option .badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: lowercase;
}
.sub-option .badge::before { content: '('; }
.sub-option .badge::after  { content: ')'; }
.sub-option p {
  font-family: var(--serif-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .principle {
    grid-template-columns: 4rem 1fr;
    grid-template-areas:
      "num name"
      "num desc";
  }
  .principle-num  { grid-area: num; border-right: 1px solid var(--ink); }
  .principle-name { grid-area: name; border-right: none; border-bottom: 1px dashed var(--rule); }
  .principle-desc { grid-area: desc; }
  .sub-options { grid-template-columns: 1fr; gap: 1.2rem; }
}


/* ─────────────── 12. Card base ─────────────── */
.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transition: background 0.25s var(--ease);
}
.card:hover { background: var(--paper-deep); }


/* ─────────────── 13. Payments (card grid, shared borders) ─────────────── */
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.payment {
  gap: var(--space-3);
}
.payment + .payment { margin-left: -1.5px; }
.payment h4 {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.payment p {
  font-family: var(--serif-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .payments { grid-template-columns: 1fr; }
  .payment + .payment { margin-left: 0; margin-top: -1.5px; }
}


/* ─────────────── 14. Price tiers + addon ─────────────── */
.price-meta {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.price-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.price-tier {
  position: relative;
  padding: var(--space-5);
}
.price-tier + .price-tier { margin-left: -1.5px; }
.price-tier .tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.price-tier .name {
  font-family: var(--mono);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.price-tier .turnaround {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.price-tier .turnaround strong {
  color: var(--red);
  font-weight: 400;
}
.price-tier .desc {
  font-family: var(--serif-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: var(--space-5);
}
.price-tier .cost {
  font-family: var(--mono);
  font-size: var(--fs-md);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.price-tier .cost .from {
  color: var(--ink-soft);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.3em;
}
.price-tier .cost .plus { color: var(--red); margin-inline: 0.15em; font-weight: 400; }
.price-tier .cost .per  { color: var(--ink-soft); }
.price-tier .cost .buyout {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--ink-soft);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-addon {
  margin-top: -1.5px;
  padding: var(--space-5);
  border: 1.5px solid var(--ink);
  border-style: solid solid solid solid;
  background: var(--red);
  color: var(--paper);
  display: grid;
  grid-template-columns: 16ch 1fr auto;
  gap: clamp(1rem, 3vw, var(--space-6));
  align-items: baseline;
}
.price-addon .name {
  font-family: var(--mono);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
}
.price-addon .desc {
  font-family: var(--serif-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--paper);
}
.price-addon .cost {
  font-family: var(--mono);
  font-size: var(--fs-md);
  text-align: right;
  white-space: nowrap;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.price-addon .cost .plus { color: var(--paper); margin-right: 0.1em; }
.price-addon .cost .per  { color: var(--paper); opacity: 0.75; }

@media (max-width: 860px) {
  .price-tiers { grid-template-columns: 1fr; }
  .price-tier + .price-tier { margin-left: 0; margin-top: -1.5px; }
  .price-addon { grid-template-columns: 1fr; gap: var(--space-2); }
  .price-addon .cost { text-align: left; }
}


/* ─────────────── 15. Paying-for + cost breakdown (side-by-side split) ─────────────── */
/* Breaks the centered-prose rhythm mid-page: prose left, ledger right.
 * Stacks back to one column on narrow viewports. */
.paying-for {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
}
.paying-for-prose p {
  font-family: var(--serif-body);
  font-size: var(--fs-lg);
  line-height: 1.65;
}
.paying-for-prose p + p { margin-top: 1em; }
.paying-for em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 24;
}
.paying-for .hl {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.05em 0.45em;
  letter-spacing: 0.02em;
}

.cost-breakdown {
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}

@media (max-width: 860px) {
  .paying-for {
    grid-template-columns: 1fr;
    max-width: 64ch;
  }
}
.cost-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: 0.7rem var(--space-5);
  border-bottom: 1px solid var(--rule);
}
.cost-line:last-child { border-bottom: none; }
.cost-line .cost-label { color: var(--ink); letter-spacing: 0.02em; }
.cost-line .cost-leader { display: none; }
.cost-line .cost-value {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.cost-line .cost-aside {
  color: var(--ink-soft);
  font-size: 0.84em;
  margin-left: 0.4em;
}
.cost-line.total {
  border-top: 1.5px solid var(--ink);
  background: var(--red);
}
.cost-line.total .cost-label,
.cost-line.total .cost-value {
  color: var(--paper);
  font-size: 1em;
}
.cost-line.total + .cost-line.total {
  border-top: 1px solid rgba(241, 232, 213, 0.25);
}


/* ─────────────── 17. Haggle (rounded callout with hatched bg) ─────────────── */
/* Hatched diagonal stripes give one section a distinct texture (Ref 3). */
.haggle {
  position: relative;
  max-width: 62ch;
  margin-inline: auto;
  padding: clamp(1.75rem, 3.5vw, var(--space-6)) clamp(1.5rem, 3vw, var(--space-6));
  border: 1px solid var(--ink);
  border-radius: 10px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 7px,
    rgba(28, 24, 20, 0.05) 7px,
    rgba(28, 24, 20, 0.05) 8px
  );
}
.haggle p {
  font-family: var(--serif-body);
  font-size: var(--fs-xl);
  line-height: 1.5;
}
.haggle p + p {
  margin-top: var(--space-5);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--ink-soft);
}

/* Small + crop marks at the four corners of bordered panels */
.panel-crop {
  position: absolute;
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--red);
  pointer-events: none;
  user-select: none;
}
.panel-crop.tl { top: -10px; left: -7px;  }
.panel-crop.tr { top: -10px; right: -7px; }
.panel-crop.bl { bottom: -10px; left: -7px;  }
.panel-crop.br { bottom: -10px; right: -7px; }


/* ─────────────── 17b. Closing statement (Ref 1 final declaration) ─────────────── */
.closing-statement {
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, var(--space-7));
}
.closing-statement p {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
  max-width: 30ch;
  margin-inline: auto;
}


/* ─────────────── 18. Contact ─────────────── */
#contact { text-align: center; }

.contact-prompt-intro {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.contact-prompt {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: var(--space-5);
  padding-block: var(--space-2);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
.contact-prompt .addr {
  border-bottom: 3px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-bottom-color 0.3s var(--ease);
}
.contact-prompt:hover .addr { color: var(--red); border-bottom-color: var(--ink); }

.contact-note {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-inline: auto;
  line-height: 1.7;
}


/* ─────────────── 19. Colophon ─────────────── */
.colophon {
  border-top: 1.5px solid var(--ink);
  padding-block: var(--space-6) var(--space-6);
  margin-top: var(--space-4);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.colophon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
  align-items: end;
  line-height: 1.55;
}
.colophon-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  font-size: 0.64rem;
  margin-bottom: 0.4rem;
}
.colophon-grid > div p:last-child { color: var(--ink); }
@media (max-width: 720px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}


/* ─────────────── 20. Closing notes ─────────────── */
.payment-note,
.price-footnote,
.math-note {
  margin-top: var(--space-5);
  margin-inline: auto;
  max-width: 60ch;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24;
  text-align: center;
}
.payment-note strong {
  color: var(--red);
  font-weight: 400;
  font-style: normal;
}
.price-footnote + .price-footnote { margin-top: var(--space-2); }


/* ─────────────── 21. Motion ─────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.hero-title   { animation: fade-up 0.7s var(--ease) 0.1s both; }
.hero-tag     { animation: fade-up 0.8s var(--ease) 0.3s both; }
.hero-actions { animation: fade-up 0.8s var(--ease) 0.5s both; }
.hero-corner  { animation: fade-up 0.8s var(--ease) 0.7s both; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
