/* terenceklein.com design system. MODRN-adjacent editorial.
   Spec: docs/superpowers/specs/2026-08-27-terenceklein-com-design.md */

/* Self-hosted fonts (latin + latin-ext, woff2) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-ext-0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-ext-0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-ext-0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/leaguespartan-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0c0c0c;
  --paper: #fafaf7;
  --paper-dim: #efefe9;
  --blue: #1FA8E0;        /* MODRN Blue: links, year markers, active nav */
  --orange: #C44408;      /* CTA Orange: exactly two Calendly buttons */
  --rule: rgba(12, 12, 12, 0.16);
  --rule-dark: rgba(250, 250, 247, 0.2);
  --head: "League Spartan", "Arial Narrow", sans-serif;
  --body: "Montserrat", Verdana, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(3rem, 9vw, 6.5rem); text-transform: uppercase; }
h2 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.25rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-name {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  color: var(--ink); font-size: 1.05rem; letter-spacing: 0.02em;
}
.nav nav { display: flex; gap: 22px; }
.nav nav a {
  font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav nav a:hover { text-decoration: none; border-color: var(--rule); }
.nav nav a.active { color: var(--blue); border-color: var(--blue); }

/* ---- sections ---- */
section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.section-light { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark a { color: var(--blue); }
.section-dark .card { border-color: var(--rule-dark); }

.section-num {
  font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.35em; color: var(--blue); margin-bottom: 10px;
}
.section-lede { margin: 18px 0 44px; max-width: 560px; font-size: 1.05rem; }
.center .section-lede, .wrap.center .section-lede { margin-left: auto; margin-right: auto; }
.subhead {
  margin: 52px 0 20px; font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 600;
  border-top: 1px solid currentColor; padding-top: 14px; opacity: 0.85;
}

/* ---- hero ---- */
.hero { padding: 120px 0 100px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.kicker {
  font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.hero-line { font-size: 1.3rem; font-weight: 500; margin-top: 22px; max-width: 480px; }
.hero-sub { margin-top: 14px; max-width: 480px; }
.accent { color: var(--blue); }

.hero-ctas { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.center-ctas { justify-content: center; }
.btn-orange {
  display: inline-block; background: var(--orange); color: #fff;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.95rem;
  padding: 16px 30px; border: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-orange:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(12,12,12,0.9); }
.text-link { font-weight: 600; }

/* ---- placeholders ---- */
.ph-img {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper-dim), var(--paper-dim) 12px, #e2e2da 12px, #e2e2da 24px);
  border: 1px solid var(--rule);
  color: rgba(12,12,12,0.45);
  font-family: var(--head); font-weight: 700; letter-spacing: 0.2em;
}
.hero-portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.ph-proof { aspect-ratio: 16 / 9; margin-top: 18px; }
.section-dark .ph-img { filter: invert(0.92); }

/* ---- cards ---- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.section-dark .card-grid { background: var(--rule-dark); border-color: var(--rule-dark); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: inherit; padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper);
}
.section-dark .card { background: var(--ink); }
.card p { font-size: 0.95rem; flex-grow: 1; }
.card-link {
  font-family: var(--head); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.case-tag {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--blue); flex-grow: 0;
}

/* ---- timeline ---- */
.timeline { border-left: 1px solid var(--rule-dark); padding-left: 36px; max-width: 720px; }
.era { position: relative; padding: 8px 0 56px; }
.era::before {
  content: ""; position: absolute; left: -41px; top: 16px;
  width: 9px; height: 9px; background: var(--blue);
}
.era-year {
  font-family: var(--head); font-weight: 800; font-size: 1.6rem;
  color: var(--blue); margin-bottom: 6px;
}
.era-role { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 6px 0 12px; opacity: 0.8; }
.era-gave { margin-top: 12px; font-weight: 600; }
.era img.proof { display: block; width: 100%; height: auto; margin-top: 18px; border: 1px solid var(--rule-dark); }
.proof-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.proof-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-dark); align-self: start; }
@media (max-width: 520px) { .proof-pair { grid-template-columns: 1fr; } }

/* ---- signup ---- */
.signup-embed iframe { display: block; width: 100%; height: 460px; border: 0; }

/* ---- socials / footer ---- */
.socials { margin-top: 28px; }
.footer { padding: 28px 0; font-size: 0.85rem; }

/* ---- reveal motion ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-orange { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 380px; }
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 8px; }
  .nav nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  html { scroll-padding-top: 110px; }
}
