:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --white: #fffaf2;
  --ink: #12151a;
  --ink-2: #2c3138;
  --muted: #6a655c;
  --rule: #d6cfc2;
  --copper: #c45c26;
  --copper-dark: #9a4318;
  --navy: #151d27;
  --navy-2: #1e2a38;
  --ad: #e8e1d4;
  --danger: #9b2c2c;
  --max: 1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: var(--sans); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #d7d0c4;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}
.topbar a { color: #d7d0c4; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 1.1rem; }

/* Masthead */
.masthead {
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid #2c3a4a;
}
.masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.4rem 0 1.1rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  justify-self: center;
}
.brand__mark {
  width: 46px;
  height: 46px;
  border: 1px solid #c9a27a;
  background: #f4efe6;
  object-fit: cover;
  object-position: 55% 42%;
}
.brand__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__name span { color: var(--copper); font-style: italic; }
.brand__tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b7ae9f;
  margin-top: 0.28rem;
}
.masthead__date {
  font-family: var(--sans);
  font-size: 12px;
  color: #9aa3ad;
  letter-spacing: 0.04em;
}
.masthead__actions {
  justify-self: end;
  display: flex;
  gap: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.95rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.btn--ghost {
  border-color: #3a4a5c;
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper); }
.btn--copper {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}
.btn--copper:hover { background: var(--copper-dark); }
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #3a4a5c;
  background: transparent;
  color: var(--paper);
}

nav.nav {
  border-top: 1px solid #2c3a4a;
}
.nav ul {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: #c9c2b6;
}
.nav a:hover,
.nav a.is-active { color: #fff; }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--copper); }

.search-bar {
  background: var(--navy-2);
  display: none;
  padding: 0.8rem 0 1.1rem;
}
.search-bar.is-open { display: block; }
.search-bar form {
  display: flex;
  gap: 0.5rem;
}
.search-bar input {
  flex: 1;
  background: #0f1620;
  border: 1px solid #3a4a5c;
  color: var(--paper);
  padding: 0.7rem 0.9rem;
  font-size: 16px;
}
.search-bar input:focus { outline: 1px solid var(--copper); }

/* Ads */
.ad-slot {
  background: var(--ad);
  border: 1px dashed #c9bfae;
  color: var(--muted);
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.25rem 0;
}
.ad-slot__label {
  display: block;
  padding: 0.35rem 0 0;
}
.ad-slot__box {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: #8a8376;
}
.ad-slot--leaderboard .ad-slot__box { min-height: 90px; }
.ad-slot--rect .ad-slot__box { min-height: 250px; }
.ad-slot--skyscraper .ad-slot__box { min-height: 480px; }
.ad-slot--inarticle .ad-slot__box { min-height: 250px; }
.ad-slot--native {
  background: var(--white);
  border: 1px solid var(--rule);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  padding: 1rem;
}
.ad-slot--native .ad-slot__label { letter-spacing: 0.14em; text-transform: uppercase; }
.ad-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--navy);
  color: #c9c2b6;
  border-top: 1px solid #2c3a4a;
  padding: 0.4rem 0.8rem 0.55rem;
}
.ad-sticky .ad-slot { margin: 0; background: #1a2430; border-color: #3a4a5c; }
.ad-sticky__close {
  position: absolute;
  right: 8px;
  top: 4px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Home */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.lead {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0 0.4rem;
}
.lead__media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--navy);
}
.lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.lead h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.7rem;
  font-weight: 600;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { color: var(--copper-dark); }
.dek {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.meta a { color: var(--ink); text-decoration: none; font-weight: 600; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.stack-item img { width: 140px; height: 92px; object-fit: cover; }
.stack-item h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0.2rem 0 0.35rem;
}
.stack-item h3 a { text-decoration: none; }
.stack-item h3 a:hover { color: var(--copper-dark); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  margin: 2rem 0 1.1rem;
  padding-bottom: 0.4rem;
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.section-head a {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--copper);
  text-decoration: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0.55rem 0 0.4rem;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--copper-dark); }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.card img { width: 100%; height: 190px; object-fit: cover; }

.home-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin: 0.5rem 0 2.5rem;
}
.latest-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.latest-row img { width: 180px; height: 120px; object-fit: cover; }
.latest-row h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0.25rem 0 0.4rem;
}
.latest-row h3 a { text-decoration: none; }
.latest-row h3 a:hover { color: var(--copper-dark); }

.sidebar { position: sticky; top: 1rem; }
.popular ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pop;
}
.popular li {
  counter-increment: pop;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.3;
}
.popular li::before {
  content: counter(pop, decimal-leading-zero);
  font-family: var(--sans);
  color: var(--copper);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}
.popular a { text-decoration: none; }
.popular a:hover { color: var(--copper-dark); }

.newsletter {
  background: var(--navy);
  color: var(--paper);
  padding: 2.4rem 1.5rem;
  margin: 2rem 0;
}
.newsletter h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.3rem 0 0.6rem;
}
.newsletter p { color: #c9c2b6; max-width: 38rem; }
.newsletter form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin-top: 1rem;
}
.newsletter input {
  flex: 1;
  padding: 0.75rem 0.85rem;
  border: 1px solid #3a4a5c;
  background: #0f1620;
  color: var(--paper);
}
.newsletter .note {
  font-family: var(--sans);
  font-size: 12px;
  color: #9aa3ad;
}

/* Article */
.article-hero { padding: 1.6rem 0 0.4rem; max-width: 760px; }
.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.8rem;
}
.article-cover {
  margin: 1.2rem 0 1.6rem;
}
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-cover figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.45rem;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 3rem;
}
.prose p { margin: 0 0 1.15rem; }
.prose p.lead-graf {
  font-size: 1.2rem;
  color: var(--ink-2);
}
.prose p.lead-graf::first-letter {
  font-family: var(--display);
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding: 0.18rem 0.5rem 0 0;
  color: var(--copper);
  font-weight: 600;
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
}
.prose h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}
.prose blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 3px solid var(--copper);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.byline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.author-box {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-top: 1.2rem;
}
.author-box .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* Category + legal */
.page-head {
  padding: 1.8rem 0 0.4rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.4rem;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.2rem 0 0.5rem;
}
.cat-list .latest-row:first-child { padding-top: 0; }
.legal { max-width: 760px; padding-bottom: 3rem; }
.legal h2 { font-family: var(--display); margin-top: 2rem; }
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin: 1rem 0 1.5rem;
}
.rate-table th, .rate-table td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 0.7rem 0.4rem;
}
.form label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.9rem 0 0.35rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  max-width: 520px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font: inherit;
  font-size: 16px;
}
.form textarea { min-height: 140px; }

.search-results { min-height: 40vh; padding-bottom: 3rem; }
.search-hit {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.search-hit h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0.2rem 0 0.35rem;
}
.search-hit h2 a { text-decoration: none; }
.search-hit h2 a:hover { color: var(--copper-dark); }

/* Footer */
footer.site-foot {
  background: var(--navy);
  color: #c9c2b6;
  padding: 2.4rem 0 1.4rem;
  font-family: var(--sans);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #2c3a4a;
}
.site-foot a { color: #d7d0c4; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot h3 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0.35rem 0; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 12px;
  color: #8b939c;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.1rem;
  display: none;
  max-width: 640px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  font-family: var(--sans);
  font-size: 14px;
}
.cookie.is-open { display: block; }
.cookie p { margin: 0 0 0.8rem; color: #d7d0c4; }
.cookie a { color: #fff; }
.cookie__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 14px;
  display: none;
  z-index: 60;
}
.toast.is-open { display: block; }

@media (max-width: 960px) {
  .lead, .home-split, .article-layout, .grid-3, .related, .foot-grid {
    grid-template-columns: 1fr;
  }
  .masthead__row {
    grid-template-columns: auto 1fr auto;
  }
  .masthead__date { display: none; }
  .ad-slot--skyscraper { display: none; }
  .ad-sticky { display: block; }
  body { padding-bottom: 72px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 0.75rem 0; }
  .stack-item, .latest-row {
    grid-template-columns: 110px 1fr;
  }
  .stack-item img, .latest-row img {
    width: 110px;
    height: 80px;
  }
  .newsletter form { flex-direction: column; }
}

@media (max-width: 640px) {
  .topbar__links span.hide-sm { display: none; }
  .brand__tag { display: none; }
  .btn--ghost { display: none; }
}
