/* ==========================================================
   Scalable Thinking
   ========================================================== */

:root {
  --bg: #f5f0e6;
  --ink: #141c18;
  --muted: #5a6560;
  --light: #919c97;
  --faint: rgba(20, 28, 24, 0.06);
  --line: rgba(20, 28, 24, 0.10);
  --accent: #c0502e;
  --forest: #2a5848;
  --paper: #fffbf4;
}

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

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 52px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout --- */

.wide {
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  width: min(720px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* --- Nav --- */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--forest));
}

.brand-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* --- Hero --- */

.hero {
  padding: 14vh 0 12vh;
  text-align: center;
}

.hero-question {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.hero-question em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin-top: 32px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Divider --- */

.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* --- Scroll sections --- */

.scroll-section {
  padding: 80px 0;
}

.scroll-section + .scroll-section {
  border-top: 1px solid var(--line);
}

.callout {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.callout-body {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42rem;
}

/* Two-column scroll section */
.scroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.scroll-grid .callout {
  position: sticky;
  top: 72px;
}

/* --- Pillars row --- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.pillar-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.pillar-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}

.pillar-link:hover {
  border-bottom-color: var(--accent);
}

/* --- Page header (subpages) --- */

.page-header {
  padding: 10vh 0 6vh;
}

.page-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.page-header .lead {
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42rem;
}

/* --- Content sections (subpages) --- */

.content-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 18px;
}

.content-section p {
  font-size: 1.02rem;
  line-height: 1.74;
  color: var(--muted);
  max-width: 42rem;
}

.content-section p + p {
  margin-top: 14px;
}

.content-section ul {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 1.02rem;
  line-height: 1.74;
  color: var(--muted);
}

.content-section li + li {
  margin-top: 6px;
}

/* --- Inline callout (subpages) --- */

.inline-callout {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  max-width: 28ch;
}

/* --- Notify page --- */

.notify-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 80px 0;
}

.notify-hero {
  width: min(520px, calc(100% - 48px));
  text-align: center;
}

.notify-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.notify-hero > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.notify-hero > p:last-of-type {
  margin-bottom: 32px;
}

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.notify-form-hero {
  max-width: 100%;
}

.notify-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms;
}

.notify-input::placeholder {
  color: var(--light);
}

.notify-input:focus {
  border-color: var(--ink);
}

.notify-button {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms;
}

.notify-button:hover {
  opacity: 0.85;
}

.notify-fine {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--light);
}

/* --- Inline notify links --- */

.notify-inline-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}

.notify-inline-link:hover {
  border-bottom-color: var(--accent);
}

.page-notify-cta {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* --- Footer --- */

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--light);
}

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

/* --- Responsive --- */

@media (max-width: 800px) {
  .scroll-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scroll-grid .callout {
    position: static;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 10vh 0 8vh;
  }
}

@media (max-width: 500px) {
  .wide,
  .narrow {
    width: calc(100% - 28px);
  }
}
