@font-face { font-family: Outfit; src: url('/fonts/outfit-400.woff2'); }
@font-face { font-family: Outfit; src: url('/fonts/outfit-700.woff2'); font-weight: 700; }
@font-face { font-family: Instrument; src: url('/fonts/instrument-serif-italic.ttf'); font-style: italic; }

:root {
  color-scheme: light;
  --ink: #0b1215;
  --paper: #fcfcfe;
  --soft: #f5f5f5;
  --muted: #545b5d;
  --line: #d8d9d9;
  --accent: #ffbc7d;
  --accent-strong: #ff9f55;
  --accent-text: #0b1215;
  --glass: rgba(252,252,254,.96);
  --dark-surface: #0b1215;
  --dark-text: #fcfcfe;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f1eb;
  --paper: #0b1215;
  --soft: #151d21;
  --muted: #b6bab9;
  --line: #344044;
  --accent: #ffb875;
  --accent-strong: #ffb875;
  --glass: rgba(11,18,21,.96);
  --dark-surface: #111a1e;
  --dark-text: #f4f1eb;
}

* { box-sizing: border-box; }
html { background: var(--dark-surface); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 Outfit, Arial, sans-serif; transition: background-color .25s, color .25s; }
a { color: inherit; text-decoration: none; }

.blog-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 20px max(24px,calc((100vw - 1440px)/2)); background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.blog-header img { width: 200px; height: auto; }
html[data-theme="dark"] .blog-header img { filter: invert(1); }
.blog-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.pill { padding: 14px 20px; border-radius: 99px; background: var(--accent); color: var(--accent-text); }
.theme-toggle { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-icon { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

.shell { width: min(1440px,calc(100% - 48px)); margin-inline: auto; }
.archive-hero { padding: 110px 0 70px; }
.kicker { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 13px; font-weight: 700; }
.archive-hero h1, .article-hero h1 { max-width: 1050px; margin: 60px 0 25px; font-size: clamp(3.7rem,8vw,8rem); line-height: .85; letter-spacing: -.07em; }
.archive-hero h1 em { font-family: Instrument; font-weight: 400; color: var(--accent-strong); }
.lead { max-width: 720px; font-size: 1.35rem; color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; padding-bottom: 100px; }
.blog-card { border-top: 1px solid var(--ink); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.blog-card-content { padding: 20px 0; }
.blog-meta { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.blog-card h2 { font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1; letter-spacing: -.04em; }
.blog-card p { color: var(--muted); }

.article-hero { padding: 70px 0; }
.back { display: inline-block; margin-top: 30px; font-weight: 700; }
.article-intro { max-width: 900px; font-size: 1.35rem; }
.byline { display: flex; justify-content: space-between; margin: 45px 0 20px; padding-top: 15px; border-top: 1px solid; }
.feature { width: 100%; max-height: 760px; object-fit: cover; }
.article-body { width: min(900px,calc(100% - 48px)); margin: 0 auto 110px; }
.article-body h2 { margin: 70px 0 20px; font-size: clamp(2rem,5vw,4rem); line-height: 1; letter-spacing: -.05em; }
.article-body p, .article-body li { font-size: 1.2rem; color: var(--muted); }
.article-body a { text-decoration: underline; }
.article-body th, .article-body td { border-color: var(--line); }
.next { display: block; padding: 70px 0; background: var(--accent); color: var(--accent-text); }
.next span { font-size: 13px; text-transform: uppercase; font-weight: 700; }
.next h2 { max-width: 900px; margin: 15px 0 0; font-size: clamp(2.5rem,6vw,6rem); line-height: .9; }

.blog-footer { padding: 70px max(24px,calc((100vw - 1440px)/2)); display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 30px; background: var(--dark-surface); color: var(--dark-text); }
.blog-footer img { width: 210px; }
.blog-footer span { grid-column: 1/-1; color: #9da2a4; font-size: 13px; }

@media (max-width:800px) {
  body { font-size: 16px; }
  .blog-header { padding: 14px; }
  .blog-header img { width: 140px; }
  .blog-header nav { gap: 10px; }
  .blog-header nav > a:not(.pill) { display: none; }
  .theme-toggle { width: 34px; height: 34px; }
  .pill { padding: 10px 13px; font-size: 11px; }
  .shell { width: calc(100% - 28px); }
  .archive-hero { padding: 70px 0 45px; }
  .kicker { display: grid; gap: 5px; }
  .blog-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
  .article-hero { padding: 45px 0; }
  .article-hero h1 { font-size: 3.5rem; }
  .byline { display: grid; gap: 8px; }
  .article-body { width: calc(100% - 28px); margin-bottom: 70px; }
  .article-body p, .article-body li { font-size: 1.08rem; }
  .blog-footer { grid-template-columns: 1fr; padding: 45px 20px; }
  .blog-footer span { grid-column: auto; }
}

@media (max-width:390px) {
  .blog-header img { width: 122px; }
  .pill { padding-inline: 10px; }
}
