/* gaviria.ca — built on the Alejandro /Alex/ Gaviria design system (tokens below) */
:root {
  --paper: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #14213D;
  --ink-muted: #4A5468;
  --brand: #1F3A5F;
  --brand-tint: #DCE4EE;
  --signal: #A3541A;
  --signal-strong: #8A4614;
  --signal-bright: #E0913F;
  --signal-tint: #F1DFCC;
  --hairline: #CFC7B8;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--paper); padding: 8px 16px; border-radius: var(--radius-md); z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section--brand { background: var(--brand); color: var(--paper); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.section--brand .label { color: var(--brand-tint); }
.h2 { font-size: 40px; line-height: 48px; }
.lede { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 760px; }
.muted { color: var(--ink-muted); }
.narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px 24px; line-height: 22px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn--decision { background: var(--signal); color: var(--paper); }
.btn--decision:hover { background: var(--signal-strong); color: var(--paper); }
.btn--primary { background: var(--brand); color: var(--paper); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark .wm span { font-weight: 400; color: var(--ink-muted); }
.mono { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--brand); color: var(--paper); border-radius: var(--radius-sm); font-family: var(--font-serif); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.mono--lg { width: 44px; height: 44px; font-size: 20px; }
.footer__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { text-decoration: none; padding: 10px 0; }
.langs { display: flex; gap: 2px; color: var(--ink-muted); }
.nav__links .langs a, .langs strong { padding: 10px 6px; text-decoration: none; }
.langs a { color: var(--ink-muted); }
.langs strong { color: var(--ink); font-weight: 600; }
.nav__links .btn { min-height: 44px; padding: 8px 18px; }
.nav__sections { display: contents; }
@media (max-width: 760px) {
  .nav__sections { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero__photo { width: 100%; max-width: 480px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.015em; }
.hero .stack { gap: 24px; }

/* Problem */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 64px; }
.split .h2 { font-size: 36px; line-height: 44px; }

/* Offer */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card__num { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.card h3 { font-size: 24px; line-height: 32px; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 24px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tools li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 2px solid var(--brand); font-weight: 500; }
.tools svg { flex-shrink: 0; }
.band { background: var(--signal-tint); border-radius: var(--radius-sm); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band__text { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 420px; }
.band__mark { width: 16px; height: 16px; margin-top: 9px; background: var(--signal); border-radius: var(--radius-sm); flex-shrink: 0; }
.band p { font-family: var(--font-serif); font-weight: 600; font-size: 26px; line-height: 34px; }

/* Method */
.method__head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.method__head .stack { flex: 1 1 420px; gap: 12px; }
.badge { width: 120px; height: 120px; flex-shrink: 0; }
.section--brand .lede { color: var(--brand-tint); }
.loop { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; list-style: none; margin: 0; padding: 0; }
.loop li { flex: 1 1 220px; background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.loop li:first-child { background: var(--signal-tint); }
.loop b { font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 32px; }
.loop span { font-size: 16px; line-height: 24px; }

/* Principles, manifesto lists */
.numbered { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; counter-reset: n; }
.numbered li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hairline); counter-increment: n; }
.numbered li::before { content: counter(n); font-family: var(--font-serif); font-weight: 600; color: var(--ink-muted); }
.manifesto { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 48px; }
.manifesto li { padding: 24px 0; }
.manifesto h3 { font-size: 22px; line-height: 30px; margin-bottom: 8px; }
.manifesto p { color: var(--ink-muted); }
.motto { padding-top: 24px; border-top: 1px solid var(--hairline); font-family: var(--font-serif); font-size: 28px; line-height: 40px; color: var(--ink-muted); }
.motto p { margin: 0; }
.motto b { font-weight: 600; color: var(--ink); }
.motto .act { color: var(--signal); }

/* Proof */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 0; }
.metrics div { display: flex; flex-direction: column; gap: 8px; }
.metrics dt { font-size: 48px; line-height: 52px; font-weight: 500; }
.metrics dd { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
figcaption { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.about__photo { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); justify-self: end; order: 1; }
.about h2 span { font-weight: 400; color: var(--ink-muted); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.contact__links { display: flex; flex-direction: column; gap: 12px; }
.contact__links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 24px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 18px; border: 1px solid var(--brand); color: var(--brand); }
.contact__links a:hover { background: var(--brand-tint); color: var(--ink); }
.contact__links a.btn--decision { border-color: var(--signal); color: var(--paper); }
.contact__links a.btn--decision:hover { background: var(--signal-strong); color: var(--paper); }
.contact__links a.quiet { border-color: var(--hairline); color: var(--ink); font-weight: 500; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .h2 { font-size: 32px; line-height: 40px; }
  .band p { font-size: 22px; line-height: 30px; }
  .about__photo { justify-self: start; }
  .motto { font-size: 22px; line-height: 34px; }
}
