:root {
  /* Warm editorial palette */
  --bg: #F7F5F0;
  --bg-2: #EFEBE0;
  --ink: #0E1116;
  --ink-2: #1C2128;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E3E0D8;
  --line-2: #D4CFC0;
  --card: #FFFFFF;
  --gold: #C9A24B;
  --gold-2: #A8842F;
  --gold-3: #8A6C24;
  --gold-soft: #F4ECD9;
  --warm: #E8DCC4;
  --pop: #A8842F;
  --pop-2: #8A6C24;
  /* Aliases mapped to the names used across this stylesheet */
  --surface: var(--bg-2);
  --text: var(--ink);
  --faint: var(--muted-2);
  --accent: var(--gold-2);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Accessibility */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 14px;
}
.skip:focus { left: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,0.85); backdrop-filter: saturate(180%) blur(12px);
}
.nav-links a { transition: color .15s; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  letter-spacing: -1.5px; color: var(--text); line-height: 1;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
header.hero { padding: 72px 0 56px; }
.hero-row { display: flex; align-items: center; gap: 40px; }
.hero-copy { flex: 1; min-width: 0; }
.hero-photo {
  flex-shrink: 0; width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); background: var(--surface);
}
.hero-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--faint); text-align: center; padding: 12px;
}
@media (max-width: 560px) {
  .hero-row { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .hero-photo { width: 110px; height: 110px; }
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--faint); margin-bottom: 16px;
}
h1 {
  font-size: clamp(30px, 6vw, 42px); font-weight: 500; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px; max-width: 16ch;
}
.lede { font-size: 17px; color: var(--muted); margin-bottom: 28px; max-width: 52ch; }

/* Newsletter signup */
.signup { margin-top: 10px; max-width: 440px; }
.signup-label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.signup-form { display: flex; gap: 8px; }
.signup-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; font-size: 15px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--text);
}
.signup-form input:focus { outline: none; border-color: var(--gold-2); }
.signup-form button {
  height: 44px; padding: 0 20px; font-size: 14px; white-space: nowrap;
  background: var(--text); color: var(--bg); border: none; border-radius: 8px; cursor: pointer;
}
.signup-form button { transition: opacity .15s, transform .1s; }
.signup-form button:hover { opacity: .85; }
.signup-form button:active { transform: scale(0.98); }
.signup-note { font-size: 12px; color: var(--faint); margin-top: 8px; }

/* Press strip */
.press { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.press-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 12px; }
.press-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.press-row span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,17,22,0.06); }
.card-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.card-title { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--gold-soft); border: 1px solid var(--line-2); border-radius: 16px; padding: 36px 32px; margin: 12px 0; text-align: center; }
.cta-band h2 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.cta-band p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.cta-band .signup { margin: 0 auto; }

/* Section heads + post list */
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 4px; }
.section-head h2 { font-size: 17px; font-weight: 500; }
.section-head a { font-size: 13px; color: var(--accent); }
.post {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--line-2); border-radius: 10px;
  padding: 18px 22px; margin-top: 12px;
  transition: border-color .15s, border-left-color .15s, transform .15s, box-shadow .15s;
}
.post:first-of-type { margin-top: 16px; }
.post:hover {
  border-color: var(--line); border-left-color: var(--gold-2);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,17,22,0.06);
}
.post-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.post-title { font-size: 17px; font-weight: 500; transition: color .15s; }
.post-title::after { content: " \2192"; color: var(--gold-2); opacity: 0; transition: opacity .15s; }
.post:hover .post-title { color: var(--gold-3); }
.post:hover .post-title::after { opacity: 1; }
.post-date { font-family: var(--mono); font-size: 13px; color: var(--faint); white-space: nowrap; }
.post-excerpt { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* About */
.about-text { font-size: 16px; color: var(--muted); margin: 18px 0 0; max-width: 56ch; }

/* Page + article */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(26px, 5vw, 34px); max-width: none; margin-bottom: 8px; }
.page-head p { font-size: 16px; color: var(--muted); }
article.post-body { padding: 48px 0 24px; max-width: 720px; }
.article-meta { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 14px; }
article.post-body h1 { font-size: clamp(28px, 5.5vw, 38px); max-width: 22ch; margin-bottom: 18px; }
article.post-body h2 { font-size: 22px; font-weight: 500; margin: 36px 0 12px; letter-spacing: -0.01em; }
article.post-body p { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; }
article.post-body blockquote { border-left: 3px solid var(--line); padding-left: 18px; margin: 24px 0; font-size: 18px; color: var(--muted); font-style: italic; }
article.post-body a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-block; font-size: 14px; color: var(--accent); margin-top: 12px; }

/* Article body: links, lists, images */
article.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
article.post-body ul, article.post-body ol { margin: 0 0 18px 22px; }
article.post-body li { font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }
article.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
article.post-body h3 { font-size: 18px; font-weight: 500; margin: 28px 0 10px; }
article.post-body code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 5px; }

/* Prev / next */
.post-nav { display: flex; gap: 14px; margin: 8px 0 0; max-width: 720px; }
.post-nav a {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s; min-width: 0;
}
.post-nav a:hover { border-color: var(--text); }
.post-nav .dir { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.post-nav .t { font-size: 15px; font-weight: 500; color: var(--text); display: block; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-nav .next { text-align: right; }

/* Footer */
footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.social { display: flex; gap: 18px; font-size: 15px; }
.social a { transition: color .15s; }
.social a:hover { color: var(--text); }

/* Small screens */
@media (max-width: 600px) {
  .nav-links { gap: 16px; font-size: 13px; }
  header.hero { padding: 48px 0 40px; }
  .cta-band { padding: 28px 20px; }
  .post-nav { flex-direction: column; }
  .post-nav .next { text-align: left; }
  footer { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav-links a:nth-child(1) { display: none; }
}
