:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #58645e;
  --paper: #f5f2e9;
  --surface: #fffdf7;
  --line: #d8d7cc;
  --accent: #176b51;
  --accent-soft: #dcebe4;
  --shadow: 0 18px 50px rgba(24, 42, 33, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -10%, rgba(23, 107, 81, 0.12), transparent 34rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--accent);
  font-family: Georgia, serif;
  font-size: 20px;
}

nav { display: flex; gap: 24px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

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

.intro {
  max-width: 850px;
  padding: 96px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
}

h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-grid article {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.note-grid article:nth-child(2) { transform: translateY(24px); }

.note-grid p,
.note-grid li,
.principles > p,
.prose p { color: var(--muted); }

.meta {
  margin: 0 0 14px;
  color: var(--accent) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

ul { padding-left: 20px; }

.principles {
  margin-top: 112px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  background: var(--accent-soft);
  border-radius: 24px;
}

.principles h2 { margin-bottom: 0; }

.article-page {
  max-width: 880px;
  padding: 96px 0 80px;
}

.article-page h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }

.prose {
  max-width: 720px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.prose h2 { margin-top: 42px; margin-bottom: 12px; }

.updated { margin-top: 40px; font-size: 0.9rem; }

footer {
  margin-top: 96px;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; padding: 22px 0; }
  nav { gap: 14px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-grid article:nth-child(2) { transform: none; }
  .principles { grid-template-columns: 1fr; gap: 14px; padding: 32px; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 14px; }
  .intro, .article-page { padding-top: 64px; }
  .note-grid article { padding: 24px; }
  footer { flex-direction: column; }
}

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