:root {
  --ink: #101612;
  --ink-soft: #263029;
  --muted: #657067;
  --paper: #f8f7f2;
  --paper-warm: #efeee7;
  --card: #fcfbf7;
  --line: #d9ddd5;
  --accent: #c9f04b;
  --accent-ink: #526b08;
  --white: #fffef9;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #77990c; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(248, 247, 242, 0.96);
  border-bottom: 1px solid rgba(16, 22, 18, 0.12);
  backdrop-filter: blur(16px);
}
.header-inner { height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 244px; }
.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(45deg);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.brand-mark::before { width: 24px; height: 2px; }
.brand-mark::after { width: 2px; height: 24px; }
.brand-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
}
.brand-mark i:nth-child(1) { top: 5px; left: 5px; }
.brand-mark i:nth-child(2) { top: 5px; right: 5px; }
.brand-mark i:nth-child(3) { right: 5px; bottom: 5px; }
.brand-mark i:nth-child(4) { bottom: 5px; left: 5px; }
.brand-name strong { display: block; font-size: 17px; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.brand-name strong span, .footer-brand strong span { color: var(--accent-ink); }
.brand-name small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.desktop-nav a { position: relative; font-size: 13px; font-weight: 750; letter-spacing: 0.02em; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-search { display: flex; align-items: center; margin-left: auto; border-bottom: 1px solid #aeb5ad; }
.header-search input { width: 174px; padding: 9px 4px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.header-search button { position: relative; width: 32px; height: 36px; padding: 0; border: 0; background: transparent; }
.header-search button span::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.header-search button span::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 19px;
  width: 8px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary { display: grid; gap: 7px; width: 42px; height: 42px; padding: 12px 9px; border: 1px solid var(--ink); border-radius: 50%; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform 180ms var(--ease); }
.mobile-nav[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-nav[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav-panel { position: absolute; top: calc(100% + 14px); right: 0; width: min(380px, calc(100vw - 24px)); padding: 24px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 24px 60px rgba(16, 22, 18, 0.16); }
.mobile-nav-panel nav { display: grid; }
.mobile-nav-panel nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.mobile-nav-panel form { display: flex; margin-top: 20px; }
.mobile-nav-panel input { min-width: 0; flex: 1; padding: 12px; border: 1px solid var(--line); }
.mobile-nav-panel button { border: 0; color: var(--ink); background: var(--accent); padding-inline: 18px; font-weight: 800; }

/* Home hero */
.home-hero { color: var(--white); background: var(--ink); }
.home-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr); min-height: 610px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 72px 76px 0; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #dce1d8; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(201, 240, 75, 0.12); }
.hero-copy h1 { margin: 28px 0 24px; font-size: clamp(52px, 5.4vw, 86px); font-weight: 800; line-height: 0.98; letter-spacing: -0.065em; }
.hero-copy h1 em { color: var(--accent); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; }
.hero-copy > p { max-width: 610px; margin: 0; color: #bfc7bf; font-size: 18px; line-height: 1.65; }
.hero-search { display: flex; max-width: 570px; margin-top: 34px; border-bottom: 1px solid #5f6961; }
.hero-search input { min-width: 0; flex: 1; padding: 15px 3px; border: 0; outline: 0; color: inherit; background: transparent; }
.hero-search input::placeholder { color: #89938b; }
.hero-search button { padding: 0 22px; border: 0; color: var(--ink); background: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; transition: transform 220ms var(--ease), background 150ms ease; }
.hero-search button:hover { background: #dcff69; transform: translateY(-3px); }
.hero-feature { position: relative; min-height: 610px; overflow: hidden; }
.hero-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,22,18,0.02) 25%, rgba(16,22,18,0.88) 100%); }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.hero-feature:hover img { transform: scale(1.035); }
.hero-feature-copy { position: absolute; z-index: 1; right: 42px; bottom: 40px; left: 42px; }
.hero-feature-copy small { display: block; margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-feature-copy strong { display: block; max-width: 660px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.hero-feature-copy b { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-feature-copy b i { color: var(--accent); font-size: 18px; font-style: normal; }
.topic-strip { display: flex; min-height: 78px; align-items: center; gap: 0; overflow-x: auto; border-top: 1px solid #384039; scrollbar-width: none; }
.topic-strip::-webkit-scrollbar { display: none; }
.topic-strip > span { flex: 0 0 auto; margin-right: 30px; color: #7e897f; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.topic-strip a { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 12px 28px; border-left: 1px solid #384039; font-size: 13px; font-weight: 750; }
.topic-strip a:hover { color: var(--accent); }
.topic-strip small { color: #7e897f; font-size: 10px; }

/* Editorial sections */
.section { padding: 104px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-head > div { position: relative; }
.section-index { position: absolute; top: 2px; left: -42px; color: #929b93; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.eyebrow { color: var(--accent-ink); font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.section h2, .page-hero h1 { margin: 7px 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(38px, 4vw, 58px); font-weight: 500; line-height: 1.03; letter-spacing: -0.045em; }
.section-head > p { max-width: 430px; margin: 0; color: var(--muted); }

.popular-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 34px; }
.popular-story { grid-column: 8 / -1; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 23px 0; border-top: 1px solid var(--line); }
.popular-story:last-child { border-bottom: 1px solid var(--line); }
.popular-story-main { grid-column: 1 / span 7; grid-row: 1 / span 4; display: block; padding: 0 36px 0 0; border: 0; }
.popular-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-warm); }
.popular-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.popular-media:hover img { transform: scale(1.045); }
.popular-media > span { position: absolute; right: 0; bottom: 0; min-width: 42px; padding: 10px; color: var(--ink); background: var(--accent); font-size: 10px; font-weight: 850; text-align: center; }
.popular-story-main .popular-media { aspect-ratio: 16 / 10; }
.popular-story-main .popular-copy { padding-top: 24px; }
.popular-copy h3 { margin: 7px 0 9px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.popular-story-main h3 { max-width: 760px; font-size: clamp(32px, 3vw, 46px); line-height: 1.06; }
.popular-copy p { max-width: 690px; margin: 14px 0; color: var(--muted); }

.home-latest { background: var(--paper-warm); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 28px; }
.post-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { min-width: 0; }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e1e4dc; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.045); }
.media-placeholder { position: relative; display: block; width: 84px; height: 84px; margin: calc(50% - 42px) auto 0; border: 1px solid #98a097; border-radius: 50%; transform: translateY(-50%) rotate(45deg); }
.media-placeholder::before, .media-placeholder::after { content: ""; position: absolute; top: 50%; left: 50%; background: #98a097; transform: translate(-50%, -50%); }
.media-placeholder::before { width: 52px; height: 1px; }
.media-placeholder::after { width: 1px; height: 52px; }
.media-placeholder i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #98a097; }
.media-placeholder i:nth-child(1) { top: 9px; left: 9px; }
.media-placeholder i:nth-child(2) { top: 9px; right: 9px; }
.media-placeholder i:nth-child(3) { right: 9px; bottom: 9px; }
.media-placeholder i:nth-child(4) { bottom: 9px; left: 9px; }
.post-card-body { padding: 20px 0 0; }
.post-card h3 { margin: 8px 0 10px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.14; letter-spacing: -0.025em; }
.post-card h3 a, .popular-copy h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms var(--ease); }
.post-card:hover h3 a, .popular-story:hover h3 a { background-size: 100% 1px; }
.post-card p { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #7b857d; font-size: 11px; font-weight: 650; letter-spacing: 0.04em; }

.brand-directory { padding-bottom: 120px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.category-grid a { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); transition: color 150ms ease, transform 250ms var(--ease); }
.category-grid a:not(:nth-child(4n + 1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.category-grid a:hover { color: var(--accent-ink); transform: translateX(4px); }
.category-grid strong { font-size: 13px; }
.category-grid span { color: #949c95; font-size: 10px; font-weight: 800; }

/* Listing, search and article pages */
.page-hero { padding: 84px 0 54px; color: var(--white); background: var(--ink); }
.page-hero h1 { max-width: 920px; color: var(--white); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .hero-search { max-width: 680px; }
.article { padding-top: 42px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.article-head { max-width: 1040px; padding: 46px 0 32px; }
.article-head h1 { margin: 11px 0 22px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(44px, 6vw, 78px); font-weight: 500; line-height: 1.02; letter-spacing: -0.055em; }
.rating { color: var(--accent-ink); }
.article-cover { overflow: hidden; margin: 0 0 54px; background: var(--paper-warm); }
.article-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) 290px; gap: 90px; align-items: start; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.78; }
.article-body a { color: #496300; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body h2, .article-body h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; line-height: 1.15; letter-spacing: -0.025em; }
.article-body h2 { margin: 58px 0 20px; font-size: 38px; }
.article-body h3 { margin: 38px 0 18px; font-size: 27px; }
.article-body img { margin: 32px auto; }
.article-body iframe { width: 100%; max-width: 100%; border: 0; aspect-ratio: 16 / 9; }
.article-body video { display: block; width: 100%; height: auto; margin: 32px 0; background: var(--ink); }
.article-toc { margin: 32px 0; padding: 22px 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.article-toc strong { display: block; margin-bottom: 10px; font-family: "Avenir Next", Avenir, system-ui, sans-serif; }
.article-toc ol { margin: 0; padding-left: 22px; }
.article-toc li { margin: 7px 0; }
.article-toc .toc-h3 { margin-left: 16px; font-size: 0.94em; }
.aside-card { position: sticky; top: 116px; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.aside-card p { color: var(--muted); font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 22px; margin-top: 46px; font-size: 13px; font-weight: 700; }
.pagination a { text-decoration: underline; text-underline-offset: 4px; }

.static-page { max-width: 860px; padding-top: 86px; padding-bottom: 100px; }
.static-page h1 { max-width: 820px; margin: 10px 0 28px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(46px, 6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; }
.static-page h2 { margin-top: 48px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 32px; font-weight: 600; }
.static-page p { max-width: 70ch; }
.static-page .lead { color: var(--muted); font-size: 19px; }

/* Footer */
.site-footer { margin-top: 0; padding: 64px 0; color: var(--white); background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand strong { font-size: 20px; letter-spacing: -0.04em; text-transform: uppercase; }
.footer-inner p { max-width: 440px; color: #99a39a; font-size: 13px; }
.footer-inner div:last-child { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; font-size: 12px; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-search { display: none; }
  .mobile-nav { display: block; }
  .home-hero .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-right: 42px; }
  .popular-story { grid-template-columns: 150px minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 54px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 40px, 1320px); }
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-width: 0; min-height: 540px; padding: 64px 0; }
  .hero-feature { min-height: 520px; }
  .popular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 22px; }
  .popular-story, .popular-story-main { grid-column: auto; grid-row: auto; display: block; padding: 0; border: 0; }
  .popular-story-main { grid-column: 1 / -1; }
  .popular-story .popular-copy { padding-top: 18px; }
  .popular-story:not(.popular-story-main) .popular-media { aspect-ratio: 16 / 11; }
  .post-grid, .post-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid a:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .category-grid a:not(:nth-child(3n + 1)) { padding-left: 18px; border-left: 1px solid var(--line); }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { display: none; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1320px); }
  .header-inner { height: 72px; }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name strong { font-size: 14px; }
  .brand-name small { display: none; }
  .hero-copy { min-height: 500px; }
  .hero-copy h1 { margin-top: 24px; font-size: clamp(44px, 12.5vw, 54px); }
  .hero-copy > p { font-size: 16px; }
  .hero-search button { padding-inline: 16px; }
  .hero-feature { min-height: 430px; }
  .hero-feature-copy { right: 24px; bottom: 27px; left: 24px; }
  .hero-feature-copy strong { font-size: 31px; }
  .topic-strip { width: calc(100% - 14px); margin-left: 14px; }
  .topic-strip > span { margin-right: 18px; }
  .topic-strip a { padding-inline: 20px; }
  .section { padding: 76px 0; }
  .section-head { display: block; margin-bottom: 34px; }
  .section-index { display: none; }
  .section-head > p { margin-top: 16px; }
  .section h2, .page-hero h1 { font-size: 40px; }
  .popular-grid, .post-grid, .post-grid.compact { grid-template-columns: 1fr; }
  .popular-story-main { grid-column: auto; }
  .popular-story-main h3 { font-size: 34px; }
  .popular-story:not(.popular-story-main) { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
  .popular-story:not(.popular-story-main) .popular-copy { padding-top: 0; }
  .popular-story:not(.popular-story-main) h3 { font-size: 20px; }
  .popular-story:not(.popular-story-main) .card-meta { display: none; }
  .popular-story:not(.popular-story-main) .popular-media { aspect-ratio: 1; }
  .post-card h3 { font-size: 27px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid a:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .category-grid a:not(:nth-child(2n + 1)) { padding-left: 14px; border-left: 1px solid var(--line); }
  .category-grid strong { font-size: 12px; }
  .page-hero { padding: 64px 0 44px; }
  .article { padding-top: 28px; }
  .article-head { padding-top: 34px; }
  .article-head h1 { font-size: 44px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 32px; }
  .footer-inner { display: block; }
  .footer-inner div:last-child { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
