:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #59635f;
  --paper: #f7f8f5;
  --line: #d7dcd7;
  --accent: #28745b;
  --warm: #c9853d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  height: 680px;
  max-height: 78vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 19, 18, .68) 0%, rgba(14, 19, 18, .36) 42%, rgba(14, 19, 18, .08) 72%),
    url("/site-assets/workspace.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.wordmark,
.nav-link,
.text-link {
  text-decoration: none;
}

.wordmark { font-size: 15px; font-weight: 720; }
.nav-link { font-size: 14px; color: rgba(255, 255, 255, .82); }

.hero-copy {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding-bottom: 30px;
}

.kicker,
.section-label,
.note-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kicker { color: #bfe7d8; }

h1 {
  max-width: 700px;
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 104px);
  line-height: .95;
  font-weight: 500;
}

.lede {
  max-width: 590px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-link { font-size: 14px; font-weight: 700; }
.hero-link span { margin-left: 8px; color: #bfe7d8; }

main, footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  padding: 76px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.section-label { color: var(--accent); }

h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 500;
}

.intro-copy { margin: 0; color: var(--muted); font-size: 17px; }

.notes {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  border-bottom: 1px solid var(--line);
}

.note {
  padding: 42px 0 46px 40px;
  border-bottom: 1px solid var(--line);
}

.note-featured {
  grid-row: span 2;
  padding: 48px 54px 48px 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.note:last-child { border-bottom: 0; }

.note-meta {
  color: var(--muted);
  display: flex;
  gap: 18px;
}

.note-meta span { color: var(--accent); }

h3 {
  margin: 18px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 500;
}

.note-featured h3 { max-width: 650px; font-size: clamp(34px, 4vw, 48px); }
.note p { margin: 0; color: var(--muted); }

.code-sample {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--warm);
  background: #1d2421;
  color: #d7e5de;
  font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: grid;
}

.principles { padding: 70px 0 82px; }

.principle-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.principle-grid div {
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

.principle-grid strong,
.principle-grid span { display: block; }
.principle-grid strong { margin-bottom: 8px; font-size: 16px; }
.principle-grid span { color: var(--muted); font-size: 14px; }

footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
    height: 78vh;
    max-height: 760px;
    background-position: 61% center;
  }

  .nav, .hero-copy, main, footer { width: min(100% - 32px, 1180px); }
  .hero-copy { padding-bottom: 36px; }
  h1 { font-size: clamp(48px, 17vw, 76px); }

  .intro {
    padding: 54px 0 40px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .notes { grid-template-columns: 1fr; }
  .note, .note-featured {
    grid-row: auto;
    padding: 34px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .note:last-child { border-bottom: 0; }
  .principle-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { gap: 20px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
