:root {
  --bg: #f5f3ed;
  --paper: #fffdf8;
  --paper-soft: #ece8dd;
  --text: #0b0b0b;
  --muted: #4b4b46;
  --muted-strong: #2d2d29;
  --line: #d8d3c7;
  --line-strong: #111111;
  --accent: #fbd441;
  --accent-soft: #fff1a8;
  --footer: #10100d;
  --max-width: 1280px;
  --display: "Anton", Impact, sans-serif;
  --ui: "Open Sans Condensed", Arial Narrow, Arial, sans-serif;
  --body: "Lato", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--text);
  color: #ffffff;
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-frame {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  min-height: 78px;
  align-items: center;
}

.brand-logo {
  width: clamp(82px, 10vw, 122px);
  height: auto;
  flex: 0 0 auto;
  filter: invert(1);
}

.section-kicker,
.site-nav,
.meta-row,
.post-row-meta,
.taxonomy-count,
.tag,
.chip,
.related-label,
.button-link,
.read-more,
.filter-button,
.footer-links {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-kicker,
.meta-row,
.post-row-meta,
.taxonomy-count,
.tag,
.chip,
.related-label,
.site-nav {
  font-size: 0.78rem;
}

.section-kicker {
  margin: 0;
  color: var(--muted-strong);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  max-width: 760px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding: 8px 0 6px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-color: var(--line-strong);
}

.button-link,
.filter-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    opacity 180ms var(--ease);
}

.button-link {
  padding: 12px 16px 10px;
}

.button-link-primary,
.filter-button[aria-pressed="true"] {
  background: var(--text);
  color: #ffffff;
}

.button-link-light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--text);
}

.button-link-ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.button-link:hover,
.filter-button:hover {
  background: var(--accent);
  color: var(--text);
}

.read-more {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--text);
  color: #ffffff;
  padding: 11px 14px 9px;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.read-more:hover {
  background: var(--accent);
  color: var(--text);
}

.intro-band,
.section-block,
.featured-shell,
.post-row,
.single-hero,
.related-nav,
.rail-block,
.masthead-band,
.home-grid-section,
.home-explore,
.site-footer {
  border-top: 1px solid var(--line);
}

.masthead-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.74fr);
  gap: 32px;
  align-items: stretch;
  padding: 30px 0 28px;
}

.masthead-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 420px;
  padding: 32px 0;
}

.masthead-band h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 9vw, 8.2rem);
}

.masthead-note {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.masthead-actions,
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.masthead-actions {
  margin-top: 6px;
}

.masthead-image {
  min-height: 420px;
  overflow: hidden;
  background: var(--footer);
}

.masthead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.hero-banner {
  margin-top: 4px;
}

.intro-band {
  padding: 34px 0 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.intro-grid h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 7.6rem);
}

.archive-intro .intro-grid h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.intro-copy {
  padding-top: 10px;
}

.intro-copy p,
.rail-note p,
.single-body p,
.archive-post-card p,
.taxonomy-card p,
.featured-copy p,
.home-post-card p,
.post-row-excerpt {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid var(--text);
  font-weight: 700;
}

.featured-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  min-height: 420px;
  background: var(--footer);
  color: #ffffff;
}

.featured-media,
.post-row-visual,
.archive-post-media,
.single-visual {
  position: relative;
  overflow: hidden;
  background: #1b1b1b;
}

.featured-media {
  min-height: 420px;
}

.featured-media img,
.post-row-visual img,
.archive-post-media img,
.single-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 260ms var(--ease),
    filter 260ms var(--ease),
    opacity 220ms var(--ease);
}

.featured-media::after,
.post-row-visual::after,
.archive-post-media::after,
.single-visual::after,
.masthead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.featured-media::after,
.archive-post-media::after,
.post-row-visual::after,
.single-visual::after {
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.26));
}

.masthead-image {
  position: relative;
}

.masthead-image::after {
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(251, 212, 65, 0.22), transparent 42%);
}

a:hover .post-row-visual img,
a:hover .archive-post-media img,
.featured-media:hover img {
  transform: scale(1.035);
  filter: saturate(0.86) contrast(1.08);
}

.featured-copy {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 420px;
  padding: 38px;
}

.featured-copy h2 {
  max-width: 13ch;
  margin-top: 12px;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
}

.featured-copy p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.84);
}

.featured-copy .section-kicker,
.featured-copy .meta-row {
  color: rgba(255, 255, 255, 0.78);
}

.featured-copy h2 a,
.home-post-card h3 a,
.archive-post-card h3 a,
.related-item h4,
.taxonomy-card h3,
.home-category-main strong {
  transition: opacity 180ms var(--ease), color 180ms var(--ease);
}

.featured-copy h2 a:hover,
.home-post-card h3 a:hover,
.archive-post-card h3 a:hover,
.related-item:hover h4,
.taxonomy-card:hover h3,
.home-category-item:hover strong {
  opacity: 0.72;
}

.meta-row,
.post-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
}

.meta-row a:hover,
.post-row-meta a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.home-grid-section {
  padding: 20px 0 30px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-top: 1px solid var(--line-strong);
  padding: 16px 0;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.home-post-card,
.archive-post-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  padding: 14px;
}

.home-post-card .post-row-visual,
.archive-post-media {
  aspect-ratio: 4 / 2.75;
}

.post-card-body {
  display: grid;
  gap: 10px;
}

.post-card-footer {
  display: grid;
  gap: 12px;
}

.home-post-card h3 {
  max-width: 16ch;
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.post-stream {
  display: grid;
}

.post-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
}

.post-row-visual {
  aspect-ratio: 4 / 3;
}

.post-row-content {
  display: grid;
  gap: 12px;
}

.post-row-content h3 {
  max-width: 14ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.post-row-tags,
.tag-cloud,
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 8px 10px 6px;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.tag:hover,
.chip:hover {
  background: var(--text);
  color: #ffffff;
}

.rail-column {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 0;
}

.rail-block {
  padding-top: 16px;
}

.tag-cloud {
  padding-top: 4px;
}

.home-explore {
  padding: 22px 0 34px;
}

.section-head-stack {
  display: grid;
  justify-content: stretch;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.explore-primary,
.explore-secondary {
  display: grid;
  gap: 14px;
}

.explore-eyebrow {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.explore-note {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.home-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}

.home-category-item {
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 170px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  padding: 18px;
}

.home-category-main {
  display: grid;
  gap: 6px;
}

.home-category-main strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

.home-category-main small {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  width: 100vw;
  margin-top: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--line-strong);
  background: var(--footer);
  color: #ffffff;
  padding: 42px max(22px, calc((100vw - var(--max-width)) / 2 + 16px));
}

main > section:last-of-type {
  margin-bottom: 72px;
}

.footer-note {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
}

.footer-logo {
  width: 92px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 0.8rem;
}

.section-block {
  padding: 24px 0 8px;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr);
  gap: 16px 20px;
  align-items: end;
  border-top: 1px solid var(--line-strong);
  padding: 22px 0 24px;
}

.search-label {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.search-input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  padding: 11px 13px;
  font-size: 1rem;
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.search-input:focus {
  background: #ffffff;
}

.search-input::placeholder {
  color: #707068;
}

.filter-list {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 12px 6px;
}

.empty-state {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
  line-height: 1.7;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.taxonomy-grid-tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.taxonomy-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
}

.taxonomy-group-title {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.taxonomy-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  padding: 16px;
}

.taxonomy-card-compact {
  gap: 10px;
}

.taxonomy-card h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.taxonomy-count {
  color: var(--muted);
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.archive-post-card h3 {
  max-width: 16ch;
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
}

.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  padding: 34px 0 56px;
}

#single-post {
  padding-bottom: 72px;
}

.single-main {
  display: grid;
  gap: 20px;
}

.single-main h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5.4vw, 5.15rem);
}

.single-summary {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.single-body {
  display: grid;
  gap: 28px;
  max-width: 70ch;
  padding: 30px 0 18px;
}

.single-body p {
  color: #262622;
  font-size: 1.04rem;
  line-height: 1.86;
}

.single-visual {
  aspect-ratio: 16 / 9;
}

.single-visual img {
  filter: grayscale(0.15) contrast(1.02);
}

.article-section {
  display: grid;
  gap: 14px;
}

.article-section h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 3.3vw, 3.4rem);
}

.article-section + .article-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.single-rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.rail-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  padding: 16px;
}

.rail-card-strong {
  border-color: var(--line-strong);
}

.rail-card h3 {
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.rail-card p {
  color: var(--muted);
  line-height: 1.68;
}

.rail-card .section-kicker {
  margin-bottom: 8px;
  color: var(--text);
}

.post-metadata {
  display: grid;
  gap: 12px;
  margin: 0;
}

.post-metadata div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.post-metadata dt {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-metadata dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.post-metadata a {
  border-bottom: 1px solid var(--text);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 8px 10px 6px;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.share-links a:hover {
  background: var(--text);
  color: #ffffff;
}

.related-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 30px 0 0;
}

.related-item {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border-top: 2px solid var(--line-strong);
  padding-top: 14px;
}

.related-item h4 {
  font-size: 1.65rem;
}

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

@media (max-width: 1100px) {
  .masthead-band,
  .featured-shell,
  .intro-grid,
  .home-post-grid,
  .explore-layout,
  .taxonomy-split,
  .taxonomy-grid,
  .taxonomy-grid-tight,
  .archive-card-grid,
  .single-hero,
  .related-nav,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .masthead-copy {
    min-height: 0;
  }

  .masthead-image,
  .featured-media,
  .featured-copy {
    min-height: 340px;
  }

  .rail-column {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .page-frame {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
  }

  .brand {
    min-height: 58px;
  }

  .brand-logo {
    width: 78px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 2px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  .site-nav a {
    min-height: 44px;
  }

  .masthead-band {
    gap: 18px;
    padding: 22px 0;
  }

  .masthead-copy {
    padding: 20px 0;
  }

  .masthead-band h1 {
    max-width: 7.5ch;
    font-size: clamp(3.8rem, 18vw, 5.9rem);
  }

  .masthead-image {
    min-height: 260px;
  }

  .masthead-actions,
  .featured-actions {
    width: 100%;
  }

  .button-link,
  .read-more {
    width: 100%;
  }

  .featured-actions .button-link {
    width: auto;
  }

  .featured-copy {
    min-height: 0;
    padding: 26px 22px;
  }

  .featured-copy h2 {
    max-width: none;
    font-size: clamp(2.55rem, 13vw, 4.15rem);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .archive-tools {
    grid-template-columns: 1fr;
  }

  .home-category-list,
  .taxonomy-grid,
  .taxonomy-grid-tight {
    grid-template-columns: 1fr;
  }

  .home-category-item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .post-row {
    grid-template-columns: 1fr;
  }

  .post-row-visual,
  .home-post-card .post-row-visual,
  .archive-post-media {
    aspect-ratio: 16 / 10;
  }

  .intro-grid h1,
  .single-main h1 {
    max-width: none;
    font-size: clamp(2.75rem, 12vw, 4rem);
    line-height: 0.96;
  }

  .intro-grid h1 {
    max-width: 10ch;
  }

  .single-main h1 {
    font-size: clamp(2.65rem, 11vw, 3.65rem);
  }

  .single-summary {
    font-size: 1.02rem;
  }

  .article-section h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-footer {
    padding: 28px 22px;
  }

  main > section:last-of-type {
    margin-bottom: 48px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .post-metadata div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
