/* ==========================================================================
   David Cvetkovic - site.css
   Design system source: Personal Brand HQ/Resources/design-system.md v1.1
   Token block copied verbatim below. Do not adjust hex values per project.
   ========================================================================== */

:root {
  /* color */
  --bg: #FAF6EF;
  --surface: #F1EAE0;
  --text: #1C1712;
  --muted: #6E645A;
  --accent: #B8451F;
  --accent-ink: #FDF3EC;
  --rule: #DED2C0;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* rhythm */
  --unit: 8px;
  --wrap: 1120px;

  /* section padding (desktop, stepped under 800px in the media query below) */
  --section-pad: 96px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Skip link (accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  z-index: 100;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--unit);
  top: var(--unit);
}

/* ==========================================================================
   Focus styles (honor the accent)
   ========================================================================== */

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

/* ==========================================================================
   Layout shell
   ========================================================================== */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: calc(var(--unit) * 3);
  padding-right: calc(var(--unit) * 3);
}

section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: none;
}

@media (max-width: 800px) {
  :root {
    --section-pad: 64px;
  }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  padding-top: calc(var(--unit) * 3);
  padding-bottom: calc(var(--unit) * 3);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--unit) * 2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: calc(var(--unit) * 3);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  padding: calc(var(--unit) * 0.5) 0;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 800px) {
  .site-nav {
    gap: calc(var(--unit) * 2);
  }

  .site-nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: var(--unit);
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Eyebrow label
   ========================================================================== */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: calc(var(--unit) * 2);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--section-pad) + var(--unit) * 2);
}

.hero__inner {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 20ch;
}

.hero h1 em {
  font-style: italic;
}

.hero__subline {
  margin-top: calc(var(--unit) * 3);
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--text);
}

.hero__qualifier {
  margin-top: calc(var(--unit) * 2);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero__cta-row {
  margin-top: calc(var(--unit) * 4);
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 3);
  flex-wrap: wrap;
}

/* ==========================================================================
   Leak line (signature element)
   One shared implementation. 1px rule, jogs down 6-8px at ~55-60% of span,
   then continues. Use at most once per page (typically under the hero).
   Jog segment renders in --accent (counts as the screen's one highlight).
   ========================================================================== */

.leak-line {
  width: 100%;
  height: 16px;
  margin: calc(var(--unit) * 5) 0;
  display: block;
}

.leak-line line,
.leak-line path {
  stroke: var(--rule);
  stroke-width: 1;
  fill: none;
}

.leak-line .leak-line__jog {
  stroke: var(--accent);
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 4px;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3.5);
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background-color: #9c3a1a;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  opacity: 0.8;
}

.text-link--secondary {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Proof stat row
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-cell {
  padding: calc(var(--unit) * 3) calc(var(--unit) * 3);
  border-left: 1px solid var(--rule);
}

.stat-cell:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-cell__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--text);
  white-space: nowrap;
}

.stat-cell__value--accent {
  color: var(--accent);
}

.stat-cell__label {
  margin-top: calc(var(--unit) * 1);
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-row__attribution {
  margin-top: calc(var(--unit) * 3);
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    min-width: 0;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .stat-cell:nth-child(2),
  .stat-cell:nth-child(4) {
    border-left: 1px solid var(--rule);
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-cell,
  .stat-cell:nth-child(2),
  .stat-cell:nth-child(4) {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: calc(var(--unit) * 2);
  }

  .stat-cell:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   Section headings / generic content blocks
   ========================================================================== */

.section-head {
  max-width: 640px;
  margin-bottom: calc(var(--unit) * 5);
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-head p + p {
  margin-top: calc(var(--unit) * 2);
}

.section-head p {
  margin-top: calc(var(--unit) * 2);
  color: var(--text);
  max-width: 52ch;
}

/* ==========================================================================
   Methodology (How I work) steps
   ========================================================================== */

.method-list {
  list-style: none;
  display: grid;
  gap: calc(var(--unit) * 4);
}

.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--unit) * 3);
  align-items: baseline;
}

.method-step__index {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.method-step h3 {
  margin-bottom: calc(var(--unit) * 1);
}

.method-step p {
  max-width: 60ch;
}

/* ==========================================================================
   Case study teaser
   ========================================================================== */

.teaser {
  max-width: 520px;
  background: var(--surface);
  padding: calc(var(--unit) * 4) calc(var(--unit) * 4) calc(var(--unit) * 4.5);
}

.teaser .hero__cta-row {
  margin-top: calc(var(--unit) * 4);
}

.teaser__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.teaser__mechanism {
  margin-top: calc(var(--unit) * 2);
  max-width: 56ch;
}

.teaser__link {
  margin-top: calc(var(--unit) * 3);
  display: inline-block;
}

/* ==========================================================================
   Founder module
   ========================================================================== */

.founder {
  max-width: 640px;
}

.founder__lines {
  margin-top: calc(var(--unit) * 3);
  display: grid;
  gap: calc(var(--unit) * 2);
  max-width: 56ch;
}

.founder__link {
  margin-top: calc(var(--unit) * 3);
  display: inline-block;
}

/* ==========================================================================
   Calculator module
   ========================================================================== */

.calc-module {
  max-width: 640px;
}

.calc-module p {
  max-width: 56ch;
}

.calc-module .text-link {
  margin-top: calc(var(--unit) * 2);
  display: inline-block;
}

/* ==========================================================================
   Good fit / not a fit
   ========================================================================== */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--unit) * 5);
}

.fit-col h3 {
  font-size: 1.2rem;
  margin-bottom: calc(var(--unit) * 2);
}

.fit-col ul {
  list-style: none;
  display: grid;
  gap: calc(var(--unit) * 1.5);
}

.fit-col li {
  padding-left: calc(var(--unit) * 2.5);
  position: relative;
  max-width: 44ch;
}

.fit-col li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.fit-exit {
  margin-top: calc(var(--unit) * 4);
  padding-top: calc(var(--unit) * 3);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  max-width: 56ch;
}

@media (max-width: 800px) {
  .fit-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--unit) * 4);
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 0;
  max-width: 720px;
}

.faq-item {
  border-top: 1px solid var(--rule);
  padding: calc(var(--unit) * 3) 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(var(--unit) * 2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin-top: calc(var(--unit) * 2);
  max-width: 60ch;
}

/* ==========================================================================
   Contact / CTA section
   ========================================================================== */

.contact-block {
  max-width: 640px;
}

.contact-form {
  margin-top: calc(var(--unit) * 4);
  display: grid;
  gap: calc(var(--unit) * 3);
  max-width: 480px;
}

.form-field {
  display: grid;
  gap: calc(var(--unit) * 1);
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  min-height: 44px;
}

.contact-form .btn {
  margin-top: calc(var(--unit) * 1);
  width: fit-content;
}

/* ==========================================================================
   Case-study page: narrative sections + durability chart
   ========================================================================== */

.case-headline {
  max-width: 720px;
}

.case-headline__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  font-variant-numeric: tabular-nums;
  margin-top: calc(var(--unit) * 2);
}

.about-cta .btn {
  margin-top: calc(var(--unit) * 4);
}

.case-headline__sub {
  color: var(--muted);
  max-width: 52ch;
  margin-top: calc(var(--unit) * 3);
  font-size: 1.05rem;
  line-height: 1.55;
}

.narrative-block {
  max-width: 680px;
  margin-bottom: calc(var(--unit) * 5);
}

.narrative-block:last-child {
  margin-bottom: 0;
}

.narrative-block h3 {
  font-size: 1.3rem;
  margin-bottom: calc(var(--unit) * 2);
}

.narrative-block p {
  max-width: 62ch;
}

.durability-chart {
  margin-top: calc(var(--unit) * 6);
  max-width: 720px;
  overflow-x: auto;
}

.durability-chart__svg {
  width: 100%;
  height: auto;
  min-width: 600px;
}

.durability-chart .chart-floorline {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.durability-chart text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.durability-chart .chart-label {
  font-family: var(--font-body);
  font-size: 16px;
  fill: var(--muted);
}

.durability-chart .chart-baseline {
  stroke: var(--rule);
  stroke-width: 1;
}

.durability-chart .chart-floor {
  fill: var(--surface);
}

.durability-chart .chart-point {
  fill: var(--text);
}

.durability-chart .chart-point--accent {
  fill: var(--accent);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-progression {
  display: grid;
  gap: calc(var(--unit) * 5);
  max-width: 680px;
}

.about-progression h3 {
  font-size: 1.2rem;
  margin-bottom: calc(var(--unit) * 1.5);
}

.about-progression p {
  max-width: 62ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-top: calc(var(--unit) * 5);
  padding-bottom: calc(var(--unit) * 5);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 2);
}

.site-footer .wordmark {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: calc(var(--unit) * 3);
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 100%;
}

/* ==========================================================================
   Privacy page (utility)
   ========================================================================== */

.privacy-content {
  max-width: 680px;
}

.privacy-content h2 {
  font-size: 1.4rem;
  margin-top: calc(var(--unit) * 5);
  margin-bottom: calc(var(--unit) * 2);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: calc(var(--unit) * 2);
  max-width: 62ch;
}

.booking-fallback {
  font-size: 0.9rem;
  color: var(--muted);
}
