/* Kauri — shared styles */

:root {
  --ink:        #1A2A22;            /* page background */
  --ink-deep:   #14201A;            /* footer */
  --paper:      #EFE9DC;            /* primary text */
  --paper-mid:  rgba(239, 233, 220, 0.74);
  --paper-low:  rgba(239, 233, 220, 0.50);
  --paper-faint:rgba(239, 233, 220, 0.32);
  --resin:      #C69248;
  --rule:       rgba(239, 233, 220, 0.10);
  --rule-soft:  rgba(239, 233, 220, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }

body {
  font-family: 'Söhne', 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif {
  font-family: 'Source Serif 4', 'Tiempos Text', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 300;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 56px;
}

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 56px;
}

.container-tight {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ─── Topbar ─────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 24px 0;
  background: rgba(26, 42, 34, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: baseline;
}

.nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-low);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

/* ─── Type primitives ─────────────────────────────────── */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-low);
  font-weight: 400;
  display: inline-block;
}

.eyebrow-resin { color: var(--resin); }

em {
  font-style: italic;
  color: var(--resin);
}

/* ─── Section frame ───────────────────────────────────── */

section, header.hero, .panel {
  border-bottom: 1px solid var(--rule);
  padding: 120px 0;
}

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

.panel-spacious { padding: 160px 0; }
.panel-quiet    { padding: 96px 0; }

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  padding: 140px 0 120px;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 64px;
}

.hero-mark::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--paper-low);
}

.hero-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 56px;
}

.hero-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--paper-mid);
  max-width: 56ch;
  margin-bottom: 24px;
}

.hero-coda {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper);
  max-width: 56ch;
  margin-top: 40px;
}

/* ─── CTAs ────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  color: var(--resin);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 146, 72, 0.35);
  padding-bottom: 4px;
  transition: border-color 180ms ease, color 180ms ease;
  font-weight: 400;
}

.cta:hover { color: #DAA565; border-color: #DAA565; }
.cta-arrow { font-style: normal; font-size: 15px; }

.cta-row {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  align-items: baseline;
  flex-wrap: wrap;
}

.cta-secondary {
  font-size: 14px;
  color: var(--paper-low);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}

.cta-secondary:hover { color: var(--paper); border-color: var(--paper-low); }

/* ─── Statements (single-thought sections) ────────────── */

.statement {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--paper);
  max-width: 38ch;
}

.statement + .statement { margin-top: 40px; }

/* ─── Section heading + lead ──────────────────────────── */

.section-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 24px 0 28px;
}

.section-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: var(--paper-mid);
  max-width: 56ch;
}

.section-lead + .section-lead { margin-top: 16px; }

/* ─── Service rows (label / body) ─────────────────────── */

.rows {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.row-tight { padding: 28px 0; }

.row-side {
  padding-top: 4px;
}

.row-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 8px;
}

.row-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.row-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper-mid);
  max-width: 56ch;
}

.row-body strong {
  color: var(--paper);
  font-weight: 400;
}

/* ─── Numbered list (what arrives) ────────────────────── */

.numbered {
  list-style: none;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  counter-reset: arrives;
}

.numbered li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  counter-increment: arrives;
}

.numbered li::before {
  content: counter(arrives, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-low);
  padding-top: 4px;
}

.numbered p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--paper);
  max-width: 60ch;
}

/* ─── Founder note ────────────────────────────────────── */

.note {
  padding: 140px 0;
  border-bottom: 1px solid var(--rule);
}

.note-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 56px;
}

.note-eyebrow {
  text-align: center;
  display: block;
  margin-bottom: 56px;
}

.note-body p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
  color: var(--paper-mid);
}

.note-body p + p { margin-top: 24px; }

.note-signature {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-mid);
}

.note-signature strong {
  display: block;
  font-weight: 400;
  color: var(--paper);
  margin-top: 6px;
}

.note-signature small {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-low);
  display: block;
  margin-top: 4px;
}

/* ─── Invitation ──────────────────────────────────────── */

.invitation {
  text-align: center;
  padding: 180px 0;
  border-bottom: 1px solid var(--rule);
}

.invitation-statement {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 28px auto 36px;
}

.invitation-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-mid);
  max-width: 48ch;
  margin: 0 auto 56px;
}

.invitation-meta {
  margin-top: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--paper-low);
  letter-spacing: 0.04em;
}

/* ─── Footer ──────────────────────────────────────────── */

footer {
  background: var(--ink-deep);
  padding: 80px 0 36px;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.footer-mark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-origin {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.footer-disclaimer {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.65;
  color: var(--paper-low);
  max-width: 70ch;
}

.footer-meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row-side { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .container, .container-tight, .container-wide, .note-inner { padding: 0 24px; }
  section, header.hero, .panel, .note, .invitation { padding: 80px 0; }
  .hero { padding: 96px 0 80px; }
  .nav { gap: 20px; }
  .nav a { font-size: 10px; }
  .statement { font-size: 21px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .numbered li { grid-template-columns: 1fr; gap: 4px; }
  .numbered li::before { display: block; }
}
