:root {
  --bg: #f6f7f4;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #171a16;
  --muted: #626b66;
  --border: #d9ded7;
  --accent: #0f766e;
  --accent-strong: #0a544e;
  --accent-soft: #e4f1ee;
  --rust: #9f4c2f;
  --gold: #b8872f;
  --shadow: 0 20px 60px rgba(18, 28, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--accent);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

.site-header,
.site-footer,
.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  color: var(--text);
  display: grid;
  gap: 2px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero {
  margin-top: 0;
  padding: 52px 0 34px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.hero-copy {
  max-width: 750px;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-size: 4.6rem;
  margin: 0 0 18px;
}

h2 {
  font-size: 2rem;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}

p {
  margin-top: 0;
}

.lede {
  color: #2d342f;
  font-size: 1.35rem;
  line-height: 1.5;
  max-width: 780px;
}

.supporting-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 8px;
  color: white;
  display: inline-block;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}

.portrait {
  margin: 0;
}

.portrait img {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
  width: 100%;
}

.portrait figcaption {
  border-left: 4px solid var(--gold);
  color: var(--muted);
  margin-top: 18px;
  padding-left: 14px;
}

.portrait figcaption strong,
.portrait figcaption span {
  display: block;
}

.portrait figcaption strong {
  color: var(--text);
}

section {
  margin-top: 56px;
}

.section-heading {
  max-width: 720px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.metric {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.metric strong {
  color: var(--accent-strong);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.split-section {
  align-items: start;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: grid;
  gap: 36px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 34px 0;
}

.split-section p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

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

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.card h2,
.card h3 {
  color: var(--text);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card a {
  display: inline-block;
  font-weight: 800;
  margin-top: 16px;
}

.work-list {
  border-top: 1px solid var(--border);
}

.work-item {
  display: grid;
  gap: 22px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.work-item span {
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 800;
}

.work-item h3 {
  font-size: 1.35rem;
}

.work-item p {
  color: var(--muted);
  margin-bottom: 12px;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.topic-strip span {
  background: var(--accent-soft);
  border: 1px solid #cfe2de;
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
  padding: 8px 10px;
}

.post-list,
.link-list,
.source-list,
.now-list {
  list-style: none;
  padding: 0;
}

.post-list li,
.link-list li,
.source-list li,
.now-list li {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-list a {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
}

.post-list a:hover {
  color: var(--accent-strong);
}

.post-list p {
  color: var(--muted);
  margin: 4px 0 0;
}

.post-list time {
  color: var(--muted);
  flex: 0 0 auto;
  white-space: nowrap;
}

.link-list a {
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
}

.link-list span {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.source-list li,
.now-list li {
  color: var(--muted);
  font-size: 1.05rem;
}

.now-list strong {
  color: var(--text);
}

.post {
  max-width: 760px;
}

.post .eyebrow {
  color: var(--muted);
}

.post h1 {
  font-size: 3.2rem;
}

.post .post-description {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.post p,
.post li {
  color: #303831;
  font-size: 1.08rem;
}

.post blockquote {
  border-left: 4px solid var(--gold);
  color: var(--muted);
  margin: 28px 0;
  padding-left: 18px;
}

.post table {
  border-collapse: collapse;
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 30px 0;
  overflow-x: auto;
  width: 100%;
}

.post th,
.post td {
  border-top: 1px solid var(--border);
  min-width: 210px;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.post th {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.post-figure {
  margin: 32px 0;
}

.post-figure-wide {
  margin-left: 50%;
  max-width: none;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 48px));
}

.post-figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.post-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 72px;
  padding-bottom: 42px;
}

.site-footer p {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

code {
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .work-item {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 320px;
  }

  .metric-grid,
  .focus-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero {
    padding-top: 28px;
  }

  .lede {
    font-size: 1.15rem;
  }

  .metric-grid,
  .focus-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .post-list li {
    flex-direction: column;
    gap: 6px;
  }
}
