:root {
  --canvas: #FBFAF6;
  --surface: #FFFFFF;
  --ink: #0E1620;
  --ink-soft: #2D3743;
  --ink-muted: #5A6471;
  --rule: #E8E3D6;
  --rule-soft: #F0EBDF;
  --brass: #A17A3F;
  --sage-bg: #E8F0E2;
  --sage-ink: #3A5530;
  --hero-from: #DCEBF3;
  --hero-to: #F7F0E3;

  --font-sans: 'Plus Jakarta Sans', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif-display: 'DM Serif Display', 'Georgia', 'Times New Roman', serif;
  --font-serif-body: ui-serif, 'Charter', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --shell-max: 1180px;
  --column-max: 680px;

  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-serif-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* paper-grain noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 200ms var(--ease-soft); }
a:hover { color: var(--brass); }

img { max-width: 100%; display: block; }

p { margin: 0 0 1.2em; }

strong { font-weight: 600; }

em { font-family: var(--font-serif-display); font-weight: 400; font-style: italic; }

/* layout */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 2;
}

.section { padding-block: clamp(64px, 10vw, 120px); }
.section + .section { border-top: 1px solid var(--rule); }

.column { max-width: var(--column-max); margin-inline: auto; }

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(251, 250, 246, 0.78);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .glyph { width: 22px; height: 22px; flex: none; color: var(--brass); }
.brand .wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.nav a:hover { color: var(--brass); }

@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
}

/* hero */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 70% 20%, var(--hero-from) 0%, transparent 65%),
              linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 70%, var(--canvas) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) clamp(20px, 5vw, 56px) clamp(48px, 8vw, 96px);
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 28px;
  max-width: 920px;
  color: var(--ink);
}
.hero h1 em {
  font-family: var(--font-serif-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
}
.hero .dek {
  font-family: var(--font-serif-body);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-figure {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
  aspect-ratio: 16/9;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* meta strip below hero figure */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.meta-strip .meta-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.meta-strip .meta-item .value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 200ms var(--ease-soft), background 200ms var(--ease-soft), color 200ms var(--ease-soft);
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { color: var(--canvas); background: #1a2330; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--canvas); }

/* section header */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 640px;
}
.section-head h2 em {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
}
.section-head .head-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-muted);
  white-space: nowrap;
}
.section-head .head-link:hover { color: var(--brass); }

/* article cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 18px 18px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 400ms var(--ease-soft), box-shadow 400ms var(--ease-soft), border-color 400ms var(--ease-soft);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(14, 22, 32, 0.18);
  border-color: var(--rule-soft);
  color: var(--ink);
}

.card .plate {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rule-soft);
  margin-bottom: 22px;
}
.card .plate img { width: 100%; height: 100%; object-fit: cover; }
.card .plate::before,
.card .plate::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--brass);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.card .plate::before {
  top: 10px; left: 10px;
  border-top-width: 1px; border-left-width: 1px;
}
.card .plate::after {
  bottom: 10px; right: 10px;
  border-bottom-width: 1px; border-right-width: 1px;
}

.card .chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-ink);
  background: var(--sage-bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
  color: var(--ink);
}
.card .dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 18px;
  flex: 1;
}
.card .more {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .more::after { content: "→"; font-family: var(--font-serif-body); }

/* homepage inline posts (full-body feed) */
.feed-post {
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 10vw, 120px);
}
.feed-post-head {
  max-width: var(--column-max);
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.feed-post-head .eyebrow { margin-bottom: 18px; }
.feed-post-head h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
  color: var(--ink);
}
.feed-post-head h2 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size 400ms var(--ease-soft), color 200ms var(--ease-soft);
}
.feed-post-head h2 a:hover {
  color: var(--brass);
  background-size: 100% 1px;
}
.feed-post-head h2 em { font-family: var(--font-serif-display); font-style: italic; font-weight: 400; }
.feed-post-head .dek {
  font-family: var(--font-serif-body);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 600px;
}

.feed-post-figure {
  position: relative;
  max-width: 920px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  aspect-ratio: 16/10;
}
.feed-post-figure::before,
.feed-post-figure::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--brass);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.feed-post-figure::before {
  top: 14px; left: 14px;
  border-top-width: 1px; border-left-width: 1px;
}
.feed-post-figure::after {
  bottom: 14px; right: 14px;
  border-bottom-width: 1px; border-right-width: 1px;
}
.feed-post-figure img { width: 100%; height: 100%; object-fit: cover; }

.feed-post-body { max-width: var(--column-max); margin: 0 auto; }
.feed-post-body p { margin: 0 0 1.3em; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.feed-post-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.4em 0 0.7em;
}
.feed-post-body a { color: var(--ink); text-decoration-color: var(--brass); }
.feed-post-body a:hover { color: var(--brass); }
.feed-post-continue {
  max-width: var(--column-max);
  margin: clamp(24px, 3vw, 36px) auto 0;
}
.feed-post-continue a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feed-post-continue a::after {
  content: "→";
  font-family: var(--font-serif-body);
  transition: transform 200ms var(--ease-soft);
  display: inline-block;
}
.feed-post-continue a:hover::after { transform: translateX(3px); }

/* article (single post) */
.article-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.article-head .eyebrow { margin-bottom: 18px; }
.article-head h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin: 0 0 24px;
  color: var(--ink);
}
.article-head h1 em { font-family: var(--font-serif-display); font-style: italic; font-weight: 400; }
.article-head .dek {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
}

.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.4em 0 0.7em;
}
.article-body p { margin: 0 0 1.3em; }
.article-body a { color: var(--ink); text-decoration-color: var(--brass); }
.article-body a:hover { color: var(--brass); }

.article-foot {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.article-foot .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* about page pull quote */
.pullquote {
  background: rgba(161, 122, 63, 0.08);
  border-left: 2px solid var(--brass);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 48px);
  margin: clamp(40px, 5vw, 64px) 0;
  border-radius: 4px;
}
.pullquote p {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}

/* footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 8vw, 96px) 0 48px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer a:hover { color: var(--brass); }
.footer .footer-brand { max-width: 320px; }
.footer .footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 12px 0 0;
}
.footer-base {
  max-width: var(--shell-max);
  margin: 56px auto 0;
  padding: 24px clamp(20px, 5vw, 56px) 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* 404 */
.error-shell {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-shell .num {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: clamp(96px, 18vw, 200px);
  line-height: 1;
  color: var(--brass);
  margin: 0 0 16px;
}
.error-shell h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.error-shell p { color: var(--ink-muted); max-width: 480px; margin: 0 auto 28px; }
