:root {
  --ink: #111611;
  --muted: #69716b;
  --paper: #f1f3ee;
  --line: #d4dad1;
  --accent: #c7ff4a;
  --dark: #111611;
  --white: #fff;
  --max: 1400px;
  --acid-ink: #25320d;
}

html { scroll-padding-top: 28px; }
body {
  background:
    radial-gradient(ellipse at 90% 2%, rgb(199 255 74 / 8%), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-size: 15px;
}
.container { width: min(calc(100% - 72px), var(--max)); }
a:hover { color: #567a13; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #85b72b;
  outline-offset: 4px;
}

/* Brand and navigation */
.site-header {
  position: relative;
  z-index: 10;
  overflow: clip;
  background:
    radial-gradient(ellipse at 78% -80%, rgb(199 255 74 / 14%), transparent 55%),
    #101510;
  border-bottom: 1px solid #30382c;
}
.site-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
  opacity: .58;
}
.masthead { min-height: 88px; gap: 24px; }
.wordmark { font-size: 32px; letter-spacing: -.075em; }
.wordmark i { width: 7px; height: 25px; background: var(--accent); margin-left: 10px; }
.brand-caption { color: #aab3a7; border-color: #384134; }
.header-search { width: 260px; border-color: #5e685a; }
.header-search input { font-size: 13px; }
.header-search button:hover { color: var(--accent); }
.nav-shell { border-color: #30382c; }
.primary-nav { min-height: 50px; gap: 28px; }
.primary-nav a { color: #d7ddd2; font-size: 11px; letter-spacing: .015em; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: #fff; }
.primary-nav a[aria-current]::after { height: 2px; background: var(--accent); }
.primary-nav .nav-feed { color: var(--accent); }
.menu-toggle { color: var(--accent); }
.reading-list-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #46513f;
  background: transparent;
  color: #f1f4ee;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.reading-list-toggle:hover { border-color: var(--accent); color: var(--accent); }
.reading-list-count {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--acid-ink);
  font-size: 10px;
  font-weight: 800;
}

/* Homepage: large, image-led editorial entrance */
.page-intro { align-items: end; padding: 48px 0 27px; }
.page-intro .eyebrow { color: #64821d; }
.page-intro h1 { font-size: clamp(38px, 4vw, 58px); letter-spacing: -.07em; line-height: .98; }
.page-intro h1 span { color: #788076; font-weight: 500; }
.page-intro__note { color: #556056; font-size: 13px; }
.front-grid { grid-template-columns: minmax(0, 2.05fr) minmax(230px, .93fr) minmax(210px, .77fr); gap: 22px; }
.story__image { background: #dce1d6; }
.story__image img { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.story:hover .story__image img { transform: scale(1.035); }
.story--hero {
  min-height: 585px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 3px;
  box-shadow: 0 22px 55px rgb(17 22 17 / 15%);
}
.story--hero .story__image img { filter: saturate(.82) contrast(1.06); }
.story--hero .story__image::after {
  background: linear-gradient(180deg, rgb(7 11 7 / 2%) 20%, rgb(7 11 7 / 20%) 46%, rgb(7 11 7 / 92%) 100%), linear-gradient(90deg, rgb(7 11 7 / 17%), transparent 80%);
}
.story--hero .story__body { padding: 34px; }
.story--hero .eyebrow {
  background: var(--accent);
  color: var(--acid-ink);
  padding: 7px 10px;
  letter-spacing: .12em;
}
.story--hero h3 { max-width: 660px; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.065em; }
.story--hero .meta { color: #d4dccd; }
.story--support .story__image { aspect-ratio: 1.68; border-radius: 2px; }
.story--support h3 { font-size: 16px; line-height: 1.32; letter-spacing: -.04em; }
.story__body .eyebrow { color: #63801e; }
.news-wire { border-color: var(--line); padding-left: 22px; }
.news-wire li { border-color: #dce1d9; padding: 14px 0; }
.news-wire li time { color: #727b70; }
.news-wire li>a { font-size: 12px; line-height: 1.52; }
.live-dot { width: 7px; height: 7px; background: #7cae1d; box-shadow: 0 0 0 4px rgb(124 174 29 / 13%); }
.section { margin-top: 64px; padding-top: 24px; border-top: 1px solid #c8d0c5; }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.065em; }
.section-heading .text-link { color: #536349; }
.section-heading .text-link:hover { color: #63801e; }
.card-grid { gap: 24px 20px; }
.card-grid .story__image { aspect-ratio: 1.44; border-radius: 2px; }
.card-grid .story h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.04em; }
.story__body { padding-top: 13px; }
.story__body h3 { margin-block: 7px 9px; }
.meta { color: #71796f; }
.advice-section {
  position: relative;
  padding: 30px;
  overflow: hidden;
  background: #e5eadd;
  border: 0;
}
.advice-section::after {
  position: absolute;
  top: -150px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgb(78 103 37 / 15%);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgb(78 103 37 / 3%), 0 0 0 60px rgb(78 103 37 / 3%);
  content: "";
  pointer-events: none;
}
.advice-section > * { position: relative; z-index: 1; }
.advice-section .eyebrow { color: #5f7e17; }
.story--spotlight .story__image { border-radius: 2px; }
.story--spotlight h3 { font-size: 27px; letter-spacing: -.05em; }
.story--compact { border-color: #cbd3c4; }
.story--compact h3 { font-size: 15px; }
.section--racing { background: #161d16; color: #f2f5ed; border: 0; padding: 30px; }
.section--racing .section-heading .text-link { color: var(--accent); }
.section--racing .story__body .eyebrow { color: var(--accent); }
.section--racing .meta { color: #adb7a8; }
.section--racing .story h3 a:hover { color: var(--accent); }
.popular-number { color: #90b840; }
.popular-grid li { border-color: #d3d9d0; }
.popular-grid .eyebrow { color: #698523; }

/* Category, search and article reading */
.breadcrumbs { color: #7b8378; padding-block: 20px; }
.breadcrumbs a:hover { color: #587a1d; }
.listing-header { padding-block: 35px 32px; border-bottom: 1px solid var(--line); }
.listing-header h1 { font-size: clamp(42px, 5vw, 66px); letter-spacing: -.075em; }
.listing-header > p:last-child { max-width: 680px; color: #586157; }
.listing-bar { padding-block: 26px 19px; border-color: #c8d0c5; }
.listing-bar h2 { font-size: 18px; }
.category-grid { gap: 40px 22px; }
.category-grid .story__image { aspect-ratio: 1.55; border-radius: 2px; }
.category-grid .story h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.05em; }
.pagination a, .pagination > span { border-color: #c9d1c5; border-radius: 2px; }
.pagination .is-current { background: var(--dark); color: var(--accent); }
.search-form--large { border-color: #9aa58f; }
.search-form--large input { background: #fff; }
.search-form--large button, .button { background: var(--dark); color: var(--accent); }
.empty-state { border-color: var(--line); }
.article-heading { max-width: 1100px; padding-block: 24px 34px; }
.article-heading h1 { max-width: 1000px; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.075em; line-height: 1.01; }
.article-heading .eyebrow { color: #63801e; }
.article-meta { color: #697369; }
.article-cover { margin-bottom: 38px; }
.article-cover img { max-height: 680px; object-fit: cover; }
.reading-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; }
.article-text-wrap { max-width: 780px; margin-inline: auto; }
.article-content { font-size: 18px; line-height: 1.9; }
.article-content h2, .article-content h3 { letter-spacing: -.045em; }
.article-toc { background: #e5eadd; border-left: 3px solid #93bd37; }
.reading-sidebar { border-color: #d4dad1; }
.reading-sidebar h2 { letter-spacing: -.045em; }
.article-end { border-top: 1px solid var(--line); }
.article-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.save-story-button, .share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #aeb9a5;
  background: transparent;
  color: #26321f;
  font-size: 11px;
  font-weight: 750;
}
.save-story-button:hover, .save-story-button[aria-pressed="true"] { border-color: #9bc43e; background: #e5f2d0; color: #3c5e0b; }
.save-story-button > span { font-size: 17px; line-height: 1; }
.share-button:hover { border-color: #7b8b69; }
.reading-progress span { background: var(--accent); }

/* Personal reading list */
.reading-list-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(78vh, 760px);
  padding: 25px;
  border: 1px solid #d6ddd0;
  background: #f8faf5;
  color: var(--ink);
  box-shadow: 0 28px 90px rgb(0 0 0 / 30%);
}
.reading-list-dialog::backdrop { background: rgb(9 13 9 / 70%); backdrop-filter: blur(4px); }
.reading-list-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.reading-list-dialog__head .eyebrow { color: #64821d; }
.reading-list-dialog__head h2 { margin-top: 5px; font-size: 28px; letter-spacing: -.06em; }
.reading-list-close { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; font-size: 25px; line-height: 1; }
.reading-list-empty { padding: 20px 0 2px; color: #667064; font-size: 13px; line-height: 1.65; }
.reading-list-items { display: grid; gap: 0; max-height: 55vh; overflow: auto; margin: 0; padding: 0; list-style: none; }
.reading-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #dce2d8; }
.reading-list-item__link { display: flex; min-width: 0; align-items: center; gap: 13px; }
.reading-list-item__link img { width: 78px; height: 60px; flex: 0 0 78px; object-fit: cover; }
.reading-list-item__copy { display: grid; gap: 4px; min-width: 0; }
.reading-list-item__copy small { color: #688526; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.reading-list-item__copy strong { font-size: 13px; line-height: 1.4; }
.reading-list-remove { border: 0; background: transparent; color: #71796f; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.reading-list-remove:hover { color: #354c14; }

.site-footer { background: #111611; }
.site-footer .wordmark i { background: var(--accent); }
.footer-grid > nav a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-discover .text-link { color: var(--accent); }
.footer-bottom { border-color: #394336; }

@media (max-width: 1150px) {
  .container { width: calc(100% - 48px); }
  .front-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .news-wire { grid-column: 1 / -1; }
  .story--hero { min-height: 510px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .masthead { min-height: 72px; gap: 8px; }
  .wordmark { font-size: 27px; }
  .brand-caption, .header-search { display: none; }
  .reading-list-toggle { width: 40px; min-height: 40px; gap: 0; padding: 8px; border: 0; }
  .reading-list-label { display: none; }
  .reading-list-count { position: absolute; top: 0; right: -1px; min-width: 16px; height: 16px; font-size: 9px; }
  .page-intro { padding: 30px 0 22px; }
  .page-intro h1 { font-size: clamp(32px, 8vw, 46px); }
  .front-grid { display: flex; flex-direction: column; gap: 22px; }
  .story--hero { min-height: min(122vw, 540px); }
  .story--hero .story__body { padding: 23px; }
  .story--hero h3 { font-size: clamp(27px, 7vw, 36px); }
  .front-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .story--support h3 { font-size: 14px; }
  .news-wire { border-top: 1px solid var(--line); border-left: 0; padding: 20px 0 0; }
  .news-wire ol { display: grid; grid-template-columns: 1fr; }
  .section { margin-top: 43px; padding-top: 20px; }
  .section-heading h2 { font-size: 25px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 15px; }
  .card-grid .story h3, .category-grid .story h3 { font-size: 15px; line-height: 1.37; }
  .advice-section, .section--racing { margin-inline: -18px; padding: 23px 18px; }
  .story--spotlight h3 { font-size: 23px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 15px; }
  .listing-header { padding-block: 16px 24px; }
  .listing-header h1 { font-size: 42px; }
  .article-heading { padding-block: 8px 24px; }
  .article-heading h1 { font-size: clamp(33px, 8vw, 44px); }
  .article-cover { margin: 0 -18px 26px; }
  .reading-layout { display: block; }
  .reading-sidebar { display: none; }
  .article-content { font-size: 17px; line-height: 1.85; }
  .article-end { align-items: start; }
  .article-actions { width: 100%; }
  .reading-list-dialog { padding: 20px; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 28px); }
  .page-intro h1 { font-size: 30px; }
  .story--hero { min-height: 420px; }
  .story--hero .story__body { padding: 19px; }
  .story--hero h3 { font-size: 26px; }
  .front-support { gap: 11px; }
  .story--support h3, .card-grid .story h3, .category-grid .story h3 { font-size: 14px; }
  .section-heading { align-items: start; gap: 8px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .text-link { gap: 5px; font-size: 9px; }
  .reading-list-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .reading-list-remove { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
