:root {
  --color-ink: #1a1a1a;
  --color-paper: #f8f9fa;
  --color-accent: #d90429;
  --color-blue: #457b9d;
  --color-subtle: #e9ecef;
  --color-body: #333333;
  --color-line: #d9dde2;
  --color-panel: #ffffff;
  --color-soft: #eef2f4;
  --shadow-paper: 0 18px 40px rgba(20, 23, 26, 0.08);
  --font-display: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-body);
  background:
    radial-gradient(circle at top, rgba(69, 123, 157, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f5f6 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.site-main {
  padding-bottom: 4rem;
}

.utility-bar {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.utility-bar__title {
  text-align: right;
}

.masthead {
  position: relative;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  background:
    linear-gradient(90deg, rgba(217, 221, 226, 0.25), rgba(255, 255, 255, 0)),
    var(--color-paper);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(217, 4, 41, 0.15), transparent);
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.6rem 0 1.4rem;
  text-align: center;
}

.masthead__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: 0.03em;
}

.masthead__tagline {
  color: rgba(26, 26, 26, 0.68);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-header .sticky {
  z-index: 100;
}

.nav-shell,
.site-header .title-bar {
  background: rgba(248, 249, 250, 0.96);
  border-bottom: 1px solid rgba(26, 26, 26, 0.09);
  backdrop-filter: blur(12px);
}

.site-header .top-bar {
  padding: 0.5rem 1rem;
}

.site-header .menu a {
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header .menu a:hover {
  color: var(--color-accent);
}

.site-header .submenu {
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.site-header .submenu a {
  padding: 0.75rem 1rem;
}

.nav-cta {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
}

.menu-icon::after {
  background: var(--color-ink);
  box-shadow: 0 7px 0 var(--color-ink), 0 14px 0 var(--color-ink);
}

.home-hero {
  padding: 3rem 0 1.5rem;
}

.paper-panel {
  position: relative;
  background: var(--color-panel);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: var(--shadow-paper);
}

.paper-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 6px;
  background: var(--color-accent);
}

.hero-panel,
.content-panel,
.article-panel,
.category-panel {
  padding: 2rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-panel h1,
.page-header h1,
.article-header h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.hero-summary {
  max-width: 36rem;
  color: rgba(51, 51, 51, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-button,
.button.alert {
  background: var(--color-accent) !important;
  border: 1px solid var(--color-accent) !important;
}

.button.secondary.hollow {
  border-color: var(--color-blue) !important;
  color: var(--color-blue) !important;
}

.hero-visual,
.feature-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(69, 123, 157, 0.12), rgba(217, 4, 41, 0.08));
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.hero-visual::before,
.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 26, 0.04));
  pointer-events: none;
}

.media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.85);
}

.media-primary {
  position: relative;
  z-index: 1;
}

.hero-visual img {
  object-fit: cover;
  min-height: 540px;
}

.feature-media {
  margin-bottom: 1.75rem;
}

.feature-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(217, 4, 41, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(69, 123, 157, 0.08), rgba(255, 255, 255, 0.96));
}

.feature-media--placeholder img {
  max-height: 320px;
  width: auto;
  margin: 0 auto;
}

.feature-media--narrow img {
  max-height: 220px;
  object-fit: contain;
  background: var(--color-soft);
}

.cover-ribbon-wrap {
  padding: 0 0 1.5rem;
}

.cover-ribbon {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.cover-ribbon__item {
  background: var(--color-panel);
  border: 1px solid rgba(26, 26, 26, 0.08);
  padding: 0.5rem;
  box-shadow: var(--shadow-paper);
}

.archive-section,
.page-shell {
  padding: 1.5rem 0 0;
}

.section-kicker {
  margin-bottom: 1.25rem;
  padding-top: 0.2rem;
  border-top: 3px solid var(--color-ink);
}

.section-kicker span {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.archive-card,
.listing-card {
  height: 100%;
  background: var(--color-panel);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: var(--shadow-paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archive-card:hover,
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(20, 23, 26, 0.12);
}

.archive-card__media img,
.listing-card__media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.archive-card__body,
.listing-card__body {
  padding: 1.25rem;
}

.archive-card__body h2,
.listing-card__body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.archive-card--text {
  display: flex;
  align-items: center;
  min-height: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(69, 123, 157, 0.06),
      rgba(69, 123, 157, 0.06) 12px,
      rgba(217, 4, 41, 0.04) 12px,
      rgba(217, 4, 41, 0.04) 24px
    ),
    var(--color-panel);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-link::after {
  content: "→";
}

.breadcrumbs-wrap {
  padding: 1rem 0 0;
}

.breadcrumbs {
  margin-bottom: 0;
  background: transparent;
}

.breadcrumbs a,
.breadcrumbs span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.content-heading {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.8rem;
}

.content-paragraph,
.article-body p,
.article-summary,
.info-strip,
.form-line,
.rubric-box {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.info-strip,
.form-line {
  padding: 1rem 1.1rem;
  background: linear-gradient(90deg, rgba(69, 123, 157, 0.08), rgba(69, 123, 157, 0.02));
  border-left: 4px solid var(--color-blue);
}

.info-strip--large {
  min-height: 100%;
  border-left-color: var(--color-accent);
}

.rubric-box {
  padding: 1.25rem;
  background: var(--color-soft);
  border: 1px dashed rgba(26, 26, 26, 0.18);
  columns: 2;
  column-gap: 2rem;
}

.content-list {
  margin: 0 0 1.25rem 1.4rem;
}

.content-list li {
  margin-bottom: 0.4rem;
}

.content-figure {
  margin: 0 0 1.5rem;
}

.content-figure img,
.gallery-grid img {
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.content-figure--hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid,
.media-grid {
  margin-bottom: 1.25rem;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card,
.toc-card {
  background: var(--color-panel);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: var(--shadow-paper);
  padding: 1.4rem;
}

.sidebar-card h3,
.toc-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.sidebar-card--muted {
  background: var(--color-soft);
}

.sidebar-card--blue {
  background: linear-gradient(135deg, rgba(69, 123, 157, 0.95), rgba(38, 89, 122, 0.95));
  color: #fff;
}

.sidebar-card--blue h3,
.sidebar-card--blue a,
.sidebar-card--blue p {
  color: #fff;
}

.sidebar-links li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.sidebar-links li:last-child {
  border-bottom: 0;
}

.article-shell {
  padding-top: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(51, 51, 51, 0.7);
  font-size: 0.92rem;
}

.article-main-image {
  margin: 1.5rem 0 0;
}

.article-main-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.toc-list {
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(217, 4, 41, 0.18);
}

.content-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(217, 4, 41, 0.05);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 0.75rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
}

.section-separator {
  margin: 2rem 0;
  border-bottom: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.listing-card--horizontal .grid-x,
.listing-card--horizontal img {
  height: 100%;
}

.listing-card--horizontal img {
  object-fit: cover;
}

.listing-card--minimal {
  background: linear-gradient(180deg, rgba(69, 123, 157, 0.06), rgba(255, 255, 255, 0.9));
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, #22272d 0%, #111417 100%);
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-note,
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media screen and (max-width: 63.9375em) {
  .utility-bar__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-visual img {
    min-height: 360px;
  }

  .hero-panel,
  .content-panel,
  .article-panel,
  .category-panel {
    padding: 1.5rem;
  }

  .rubric-box {
    columns: 1;
  }
}

@media screen and (max-width: 39.9375em) {
  body {
    font-size: 1rem;
  }

  .masthead__brand {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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