:root {
  --ink: #241d20;
  --muted: #6e6266;
  --paper: #f5f0e8;
  --paper-deep: #ebe3d7;
  --night: #171315;
  --night-soft: #241b1f;
  --wine: #8e2532;
  --wine-dark: #671b25;
  --gold: #d8aa5b;
  --line: rgba(50, 33, 39, 0.15);
  --shell: min(1180px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input { font: inherit; }
.shell { width: calc(100% - 40px); max-width: 1180px; margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: white; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; color: #fff; background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; color: var(--night); background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 10px; font-size: 11px; font-weight: 900; }
.brand strong, .footer-brand { display: block; font-family: Georgia, serif; font-size: 25px; letter-spacing: .02em; }
.brand small { display: block; color: #baaeb2; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--gold); }
.search-link { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 14px; }

.eyebrow { color: var(--wine); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.page-hero { padding: 72px 0 38px; }
.page-hero h1 { max-width: 900px; margin: 10px 0 14px; font-family: Georgia, serif; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.04em; }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 58px 0 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); line-height: 1; }

.category-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.category-list a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.35); text-decoration: none; font-size: 13px; font-weight: 700; }
.category-list a:hover { color: #fff; background: var(--wine); border-color: var(--wine); }

.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.article-card { min-width: 0; overflow: hidden; background: rgba(255,255,255,.47); border: 1px solid var(--line); border-radius: 4px; }
.article-card.featured { display: grid; grid-template-columns: 1.15fr 1fr; grid-column: 1 / -1; min-height: 430px; }
.card-media { min-height: 220px; display: block; overflow: hidden; background: var(--night-soft); text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .card-media img { transform: scale(1.025); }
.image-fallback { display: grid; place-items: center; min-height: inherit; height: 100%; color: var(--gold); font-family: Georgia, serif; font-size: 32px; background: radial-gradient(circle at 70% 20%, #4b2832, var(--night)); }
.card-body { padding: 22px; }
.featured .card-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 62px); }
.card-body time { color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-body h2 { margin: 10px 0 10px; font-family: Georgia, serif; font-size: 25px; line-height: 1.12; letter-spacing: -.02em; }
.card-body h2, .story-header h1 { overflow-wrap: anywhere; }
.featured .card-body h2 { font-size: clamp(32px, 4vw, 51px); }
.card-body h2 a { text-decoration: none; }
.card-body p { display: -webkit-box; overflow: hidden; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.read-more { margin-top: auto; color: var(--wine); font-size: 13px; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }

.archive-shell { padding-bottom: 80px; }
.archive-header { padding: 58px 0 30px; }
.archive-header h1 { margin: 8px 0 8px; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 66px); line-height: 1; }
.archive-header p { max-width: 720px; color: var(--muted); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 56px 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.pagination a { font-weight: 800; text-decoration: none; }
.pagination a:last-child { text-align: right; }
.pagination span { color: var(--muted); }

.ad-slot { min-height: 90px; margin: 36px 0; display: grid; place-items: center; color: #8a7d81; border-block: 1px solid var(--line); }
.ad-slot > span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.story { padding: 60px 0 40px; }
.story-header { max-width: 920px; text-align: center; }
.story-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--wine); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.story-categories a { text-decoration: none; }
.story-header h1 { margin: 20px auto; font-family: Georgia, serif; font-size: clamp(40px, 7vw, 76px); line-height: 1.01; letter-spacing: -.045em; text-wrap: balance; }
.story-deck { width: 100%; max-width: 760px; margin: 0 auto; overflow-wrap: anywhere; color: var(--muted); font-family: Georgia, serif; font-size: 21px; line-height: 1.45; }
.story-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.story-hero { max-width: 1100px; margin-top: 45px; }
.story-hero img { width: 100%; min-width: 0; max-height: 680px; object-fit: cover; overflow: hidden; }
.story-layout { max-width: 1050px; display: grid; grid-template-columns: minmax(0, 700px) 250px; justify-content: center; gap: 64px; margin-top: 48px; }
.story-content { min-width: 0; font-family: Georgia, serif; font-size: 19px; line-height: 1.82; }
.story-content > p:first-child::first-letter { float: left; margin: .12em .12em 0 0; color: var(--wine); font-size: 4.4em; font-weight: 700; line-height: .75; }
.story-content h2, .story-content h3 { margin-top: 1.6em; line-height: 1.15; }
.story-content h2 { font-size: 34px; }
.story-content h3 { font-size: 27px; }
.story-content a { color: var(--wine-dark); }
.story-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; color: #594b50; border-left: 4px solid var(--gold); font-size: 1.14em; }
.story-content figure { margin: 2.2em 0; }
.story-content img { margin-inline: auto; }
.story-content figcaption { margin-top: 8px; color: var(--muted); font-family: Inter, sans-serif; font-size: 12px; text-align: center; }
.story-content iframe, .story-content video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.story-aside { padding-top: 14px; }
.aside-box { position: sticky; top: 110px; padding: 22px; border-top: 3px solid var(--wine); background: var(--paper-deep); }
.aside-box p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.static-page .story-header { text-align: left; }
.static-page .story-header h1 { margin-left: 0; max-width: 760px; }
.static-page .story-layout { display: block; max-width: 780px; }
.contact-box { margin-top: 36px; padding: 26px; background: var(--paper-deep); border-left: 4px solid var(--wine); }
.contact-box .button { display: inline-block; margin-top: 6px; color: white; font-family: Inter, sans-serif; font-size: 14px; text-decoration: none; }
.related { padding-bottom: 60px; }

.search-page { min-height: 70vh; padding-bottom: 70px; }
.search-box input { width: 100%; padding: 19px 22px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 3px; font-size: 18px; outline: none; }
.search-box input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(142,37,50,.1); }
.search-status { color: var(--muted); font-size: 13px; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.search-results article { padding: 22px; background: rgba(255,255,255,.5); border: 1px solid var(--line); }
.search-results h2 { margin: 0 0 8px; font-family: Georgia, serif; line-height: 1.15; }
.search-results h2 a { text-decoration: none; }
.search-results p { color: var(--muted); }
.not-found { padding-top: 42px; }
.not-found-hero { position: relative; isolation: isolate; min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); overflow: hidden; color: #f8f1e8; background: radial-gradient(circle at 80% 20%, #4a2630 0, transparent 36%), linear-gradient(135deg, #21171b, #100d0f 70%); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(36,29,32,.18); }
.not-found-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .22; background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.035) 39px 40px); }
.not-found-copy { align-self: center; padding: clamp(38px, 7vw, 82px); }
.not-found-label { color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.not-found h1 { max-width: 740px; margin: 18px 0; font-family: Georgia, serif; font-size: clamp(43px, 6vw, 76px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.not-found-copy > p { max-width: 640px; margin: 0; color: #c3b5b9; font-size: 17px; }
.not-found-search { max-width: 610px; display: grid; grid-template-columns: 1fr auto; margin-top: 34px; padding: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.not-found-search input { min-width: 0; padding: 13px 15px; color: #fff; background: transparent; border: 0; outline: 0; }
.not-found-search input::placeholder { color: #9f9195; }
.not-found-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,170,91,.12); }
.not-found-search button { padding: 10px 21px; color: var(--night); background: var(--gold); border: 0; cursor: pointer; font-weight: 850; }
.not-found-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.not-found-actions .button { text-decoration: none; }
.not-found-link { color: #e2d7da; font-size: 13px; font-weight: 800; text-decoration: none; }
.not-found-link::after { content: ' →'; color: var(--gold); }
.not-found-visual { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.not-found-number { position: absolute; right: -14px; bottom: -66px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: clamp(190px, 25vw, 360px); font-weight: 700; line-height: 1; letter-spacing: -.1em; }
.mystery-ring { position: absolute; aspect-ratio: 1; border: 1px solid rgba(216,170,91,.3); border-radius: 50%; }
.mystery-ring-one { width: 270px; }
.mystery-ring-two { width: 180px; border-style: dashed; animation: mystery-spin 28s linear infinite; }
.mystery-mark { display: grid; place-items: center; width: 104px; aspect-ratio: 1; color: var(--night); background: var(--gold); border-radius: 50%; font-family: Georgia, serif; font-size: 68px; box-shadow: 0 0 70px rgba(216,170,91,.22); }
.not-found-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 0; color: var(--muted); font-size: 12px; }
.not-found-topics span { margin-right: 4px; font-weight: 800; }
.not-found-topics a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.not-found-topics a:hover { color: #fff; background: var(--wine); border-color: var(--wine); }
.not-found-suggestions { padding-bottom: 30px; }
@keyframes mystery-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-footer { margin-top: 70px; padding: 55px 0 20px; color: #d9ced1; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.footer-grid p { color: #9f9296; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid a, .link-button { color: inherit; text-align: left; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.footer-bottom { margin-top: 36px; padding-top: 18px; color: #786b6f; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.consent { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(440px, calc(100% - 40px)); padding: 20px; color: #fff; background: #2b2225; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.consent p { margin: 0 0 16px; font-size: 13px; }
.consent div { display: flex; gap: 8px; }
.button { padding: 9px 16px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font-weight: 800; }
.button-primary { color: #fff; background: var(--wine); }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.25); }

@media (max-width: 900px) {
  .main-nav a:not(.search-link) { display: none; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card.featured { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .story-layout { grid-template-columns: 1fr; }
  .story-aside { display: none; }
  .not-found-hero { grid-template-columns: 1fr; }
  .not-found-visual { position: absolute; right: -85px; bottom: -110px; width: 330px; opacity: .28; }
  .not-found-copy { position: relative; z-index: 1; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .page-hero { padding-top: 48px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card.featured { min-height: 0; }
  .featured .card-body { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .story { padding-top: 38px; }
  .story-header { text-align: left; }
  .story-header h1 { font-size: clamp(36px, 11vw, 54px); }
  .story-categories { justify-content: flex-start; }
  .story-meta { justify-content: flex-start; }
  .story-content { font-size: 18px; }
  .search-results { grid-template-columns: 1fr; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination > span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .not-found { padding-top: 12px; }
  .not-found-hero { min-height: 580px; }
  .not-found-copy { padding: 34px 24px; }
  .not-found h1 { font-size: clamp(40px, 13vw, 58px); }
  .not-found-search { grid-template-columns: 1fr; }
  .not-found-search button { width: 100%; }
  .not-found-topics span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mystery-ring-two { animation: none; }
}
.ad-slot { display: block; text-align: center; width: 100%; min-height: 120px; }
.ad-slot > span { display: block; padding: 6px; }
.ad-slot ins { min-height: 90px; }
.article-grid + .article-grid { margin-top: 26px; }
.comments-area { max-width: 900px; }
.comment-form textarea, .comment-form input:not([type=checkbox]):not([type=submit]) { max-width: 100%; }
.consent[hidden] { display: none; }
.story-content .ad-slot { font-family: Inter, sans-serif; }
