:root {
  color-scheme: light;
  --ink: #15211d;
  --muted: #5e6b66;
  --paper: #f5f3ec;
  --panel: #ffffff;
  --line: #d8ddd8;
  --brand: #0b684d;
  --brand-dark: #064332;
  --accent: #cbe64e;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 850; letter-spacing: .08em; text-decoration: none; }
.brand span { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .02em; font-weight: 650; }
nav { display: flex; gap: 24px; font-size: .94rem; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--brand); }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero, .page-intro { padding: clamp(64px, 10vw, 128px) 0 72px; max-width: 920px; }
.hero h1, .page-intro h1, .post h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.page-intro h1, .post h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); }
.lede { font-size: clamp(1.15rem, 2.1vw, 1.55rem); max-width: 780px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--brand); }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 750;
}
.button:hover { background: var(--brand-dark); }
.text-link { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.section-shell { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading > p { color: var(--muted); }
.product-card { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: clamp(28px, 6vw, 74px); align-items: center; padding: 40px 0; }
.product-image { background: #eef1ed; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card h2, .product-card h3 { font-size: clamp(1.65rem, 3.6vw, 3rem); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.035em; }
.product-card h2 a, .product-card h3 a { text-decoration: none; }
.product-card p { color: var(--muted); }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 64px 0; }
.topic-grid article { background: var(--paper); padding: 34px; }
.topic-grid span { color: var(--brand); font-weight: 800; }
.topic-grid h2 { margin-bottom: 4px; }
.topic-grid p { color: var(--muted); }
.archive .product-card { border-top: 1px solid var(--line); }

.post { max-width: 900px; padding: clamp(64px, 9vw, 110px) 0; margin: 0 auto; }
.byline { color: var(--muted); margin: 22px 0 42px; }
.post figure { margin: 0 0 58px; }
.post figure img { width: 100%; max-height: 680px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 24px; }
.post figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.post section { margin: 54px 0; }
.post h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.source-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.source-panel code { overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: .86rem; }

footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; border-top: 1px solid var(--line); padding: 28px 0 52px; color: var(--muted); font-size: .86rem; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 20px 0; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .section-heading, .product-card, .topic-grid, footer { grid-template-columns: 1fr; }
  .product-card { padding: 28px 0; }
}
