:root {
  --ink: #0c0b09;
  --paper: #f7f4ee;
  --white: #fff;
  --text: #3f3a34;
  --soft: #81796e;
  --line: rgba(12, 11, 9, .12);
  --amber: #e8a820;
  --amber-dark: #b87705;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,11,9,.94);
  backdrop-filter: blur(16px);
  color: #fff;
}
.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { color: var(--amber); font-size: 29px; line-height: 1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 20px var(--display); }
.brand-sub { margin-top: 7px; color: #9b9488; font-size: 7px; letter-spacing: 4px; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #b6afa4; font-size: 13px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.support-link {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink) !important;
  font-weight: 700;
}

.blog-hero {
  padding: 92px 0 76px;
  background: var(--ink);
  color: #fff;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.blog-hero h1 {
  max-width: 860px;
  margin: 0;
  font: 600 clamp(45px, 6vw, 76px)/1.05 var(--display);
}
.blog-hero h1 em { color: var(--amber); font-weight: 500; }
.blog-hero p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c9c2b7;
  font: 300 21px/1.55 var(--serif);
}

.articles-main { padding: 68px 0 110px; }
.articles-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 42px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-filter { padding: 12px 38px 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.article-card { min-width: 0; }
.article-card-link { display: block; text-decoration: none; }
.article-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #ded7ca;
}
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover img { transform: scale(1.025); }
.cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 26px;
  background: linear-gradient(145deg, #1f1b14, #493019);
  color: var(--amber);
  text-align: center;
  font: 500 30px/1.08 var(--display);
}
.article-card-meta { display: flex; gap: 9px; margin: 17px 0 8px; color: var(--amber-dark); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.article-card h2 { margin: 0; color: var(--ink); font: 600 27px/1.14 var(--display); }
.article-card p { margin: 12px 0 0; color: #6f675d; font-size: 14px; line-height: 1.65; }
.article-card-footer { margin-top: 15px; color: #9a9186; font-size: 11px; }
.empty-state { grid-column: 1 / -1; padding: 70px 24px; border-top: 1px solid var(--line); text-align: center; }
.empty-state h2 { margin: 0; color: var(--ink); font: 600 34px var(--display); }
.empty-state p { color: var(--soft); }

.article-page { background: #fff; }
.article-header { padding: 72px 0 52px; text-align: center; }
.article-kicker { color: var(--amber-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.article-header h1 { max-width: 900px; margin: 17px auto 20px; color: var(--ink); font: 600 clamp(42px, 6vw, 72px)/1.05 var(--display); }
.article-deck { max-width: 720px; margin: 0 auto; color: #6e665c; font: 300 22px/1.5 var(--serif); }
.article-byline { margin-top: 24px; color: #9a9186; font-size: 12px; }
.article-body { width: min(720px, calc(100% - 48px)); margin: 58px auto 90px; color: #312d28; font: 400 20px/1.82 var(--serif); }
.article-body h2, .article-body h3 { color: var(--ink); font-family: var(--display); line-height: 1.2; }
.article-body h2 { margin: 52px 0 18px; font-size: 34px; }
.article-body h3 { margin: 38px 0 14px; font-size: 26px; }
.article-body p { margin: 0 0 24px; }
.article-body blockquote { margin: 36px 0; padding: 8px 0 8px 24px; border-left: 2px solid var(--amber); color: #665d52; font-size: 23px; font-style: italic; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body a { color: var(--amber-dark); }
.article-body li { margin-bottom: 8px; }
.article-back { display: inline-flex; margin-bottom: 28px; color: var(--amber-dark); font-size: 13px; font-weight: 600; text-decoration: none; }

.blog-footer { padding: 54px 0; background: var(--ink); color: #8e877d; text-align: center; }
.blog-footer .brand { color: #fff; }
.blog-footer p { margin: 20px auto 0; font-size: 12px; }

.loading { padding: 80px 0; color: var(--soft); text-align: center; }
.hidden { display: none !important; }

@media (max-width: 850px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a:not(.support-link) { display: none; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 1180px); }
  .site-header-inner { min-height: 70px; }
  .brand-name { font-size: 18px; }
  .blog-hero { padding: 68px 0 58px; text-align: center; }
  .eyebrow { justify-content: center; }
  .blog-hero h1 { font-size: 43px; }
  .blog-hero p { font-size: 19px; }
  .articles-main { padding: 42px 0 76px; }
  .articles-toolbar { grid-template-columns: 1fr; }
  .search-box { max-width: none; }
  .category-filter { width: 100%; }
  .articles-grid { grid-template-columns: 1fr; gap: 38px; }
  .article-card h2 { font-size: 29px; }
  .article-header { padding: 52px 0 38px; }
  .article-header h1 { font-size: 42px; }
  .article-deck { font-size: 19px; }
  .article-body { width: calc(100% - 32px); }
  .article-body { margin-top: 42px; font-size: 19px; }
}
