:root {
  --mv-ink: #17130f;
  --mv-muted: #6f6256;
  --mv-paper: #efe6d4;
  --mv-panel: #fff7e8;
  --mv-line: #b99f78;
  --mv-iron: #1c2526;
  --mv-iron-2: #2d3533;
  --mv-copper: #a94725;
  --mv-fjord: #1e6670;
  --mv-gold: #c69a3c;
  --mv-blood: #7d241f;
  --mv-white: #ffffff;
  --mv-shadow: 0 18px 44px rgba(25, 21, 17, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mv-ink);
  background:
    linear-gradient(90deg, rgba(28, 37, 38, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(169, 71, 37, .035) 1px, transparent 1px),
    var(--mv-paper);
  background-size: 34px 34px, 34px 34px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--mv-gold);
  color: var(--mv-ink);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: rgba(255, 255, 255, .92);
  background:
    linear-gradient(135deg, rgba(198, 154, 60, .08), transparent 34%),
    var(--mv-iron);
  border-bottom: 2px solid var(--mv-gold);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px min(5vw, 64px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--mv-iron);
  background: var(--mv-gold);
  border: 2px solid var(--mv-iron);
  font-weight: 950;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}

.custom-logo {
  display: block;
  max-width: 190px;
  height: auto;
}

.primary-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a,
.footer-nav a {
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--mv-gold);
}

.language-switcher select,
.language-switcher a {
  min-height: 38px;
  padding: 0 10px;
  color: var(--mv-white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(198, 154, 60, .45);
  font-weight: 800;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(198, 154, 60, .45);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--mv-gold);
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: 88px min(5vw, 64px) 46px;
  color: var(--mv-white);
  background:
    radial-gradient(circle at 12% 24%, rgba(198, 154, 60, .28), transparent 26%),
    linear-gradient(180deg, rgba(8, 11, 11, .2), rgba(8, 11, 11, .86)),
    var(--hero-image, linear-gradient(135deg, #263033, #23636d));
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  align-self: end;
  height: 10px;
  width: min(420px, 74vw);
  margin-top: 30px;
  background:
    linear-gradient(135deg, transparent 12px, var(--mv-gold) 0 18px, transparent 0) left/32px 10px repeat-x;
}

.hero__content {
  max-width: 1040px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--mv-copper);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--dark .eyebrow {
  color: var(--mv-gold);
  background: rgba(255, 255, 255, .12);
}

.hero h1 {
  max-width: 990px;
  margin: 18px 0 18px;
  font-size: clamp(52px, 9vw, 120px);
  line-height: .88;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .42);
}

.hero p {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.search-form button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #17130c;
  background: var(--mv-gold);
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 3px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
}

.button--ghost {
  color: var(--mv-white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .34);
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px min(5vw, 64px);
}

.section--dark {
  max-width: none;
  color: var(--mv-white);
  background: var(--mv-iron);
}

.section--dark .feature-copy {
  max-width: 920px;
  margin: 0 auto;
}

.section--dark h2,
.section--dark p {
  color: var(--mv-white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.archive-header h1,
.article-hero h1,
.section--dark h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.archive-header p,
.archive-description,
.section--dark p {
  max-width: 630px;
  margin: 0;
  color: var(--mv-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: inherit;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  border-top: 5px solid var(--mv-copper);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: var(--mv-shadow);
}

.category-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, border-color .18s ease;
  border-color: var(--mv-gold);
}

.category-card span,
.article-card__category {
  color: var(--mv-copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-card strong {
  font-size: 21px;
  line-height: 1.08;
}

.category-card em {
  color: var(--mv-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

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

.article-card {
  overflow: hidden;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  border-radius: 6px;
  box-shadow: var(--mv-shadow);
}

.article-card__media {
  display: block;
  text-decoration: none;
}

.article-card__media img,
.article-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  color: rgba(255, 255, 255, .75);
  background: linear-gradient(135deg, var(--mv-iron), var(--mv-fjord));
  font-size: 46px;
  font-weight: 950;
}

.article-card__media img {
  filter: saturate(1.06) contrast(1.04);
}

.article-card__body {
  padding: 18px;
}

.article-card h2 {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.15;
}

.article-card h2 a {
  text-decoration: none;
}

.article-card p {
  margin: 0;
  color: var(--mv-muted);
}

.article-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  color: var(--mv-muted);
  font-size: 13px;
  font-weight: 750;
}

.archive-header,
.article-hero {
  max-width: 1040px;
  margin: 0 auto 34px;
}

.archive-header > * + *,
.article-hero > * + * {
  margin-top: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mv-muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--mv-fjord);
}

.article-shell {
  padding: 54px min(5vw, 64px) 74px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  gap: 46px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.article-content {
  min-width: 0;
  color: #29231f;
  font-size: 19px;
  line-height: 1.75;
}

.article-content > p:first-of-type {
  padding: 16px 18px;
  background: #fff4dd;
  border-left: 5px solid var(--mv-copper);
}

.article-content figure.wp-block-image {
  margin: 28px 0;
  padding: 10px;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  box-shadow: var(--mv-shadow);
}

.article-content figure.wp-block-image img {
  width: 100%;
  display: block;
  max-height: 620px;
  object-fit: cover;
}

.article-content .wp-block-table {
  overflow-x: auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border: 1px solid var(--mv-line);
  vertical-align: top;
}

.article-content th {
  color: var(--mv-white);
  background: var(--mv-iron);
}

.article-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.7em;
  line-height: 1.1;
}

.article-content h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.article-content h3 {
  font-size: 25px;
}

.article-content a {
  color: var(--mv-fjord);
  font-weight: 750;
}

.article-featured-image {
  margin: 28px 0 0;
}

.article-featured-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 6px;
}

.article-featured-image figcaption,
.wp-caption-text,
figcaption {
  margin-top: 8px;
  color: var(--mv-muted);
  font-size: 13px;
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-panel {
  padding: 18px;
  margin-bottom: 18px;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  border-top: 4px solid var(--mv-fjord);
  border-radius: 6px;
}

.sidebar-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.related-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-list li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--mv-line);
}

.related-list a {
  color: var(--mv-fjord);
  font-weight: 800;
  text-decoration: none;
}

.ad-container {
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 0 min(5vw, 64px);
}

.ad-slot {
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--mv-muted);
  background: rgba(255, 255, 255, .65);
  border: 1px dashed var(--mv-line);
  border-radius: 6px;
  text-align: center;
}

.ad-label {
  display: block;
  margin-bottom: 8px;
  color: var(--mv-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 20px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--mv-white);
  border: 1px solid var(--mv-line);
  font: inherit;
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--mv-ink);
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  text-decoration: none;
}

.page-numbers.current {
  color: var(--mv-white);
  background: var(--mv-iron);
}

.site-footer {
  color: rgba(255, 255, 255, .74);
  background:
    linear-gradient(135deg, rgba(198, 154, 60, .08), transparent 40%),
    #171513;
  border-top: 3px solid var(--mv-gold);
}

.site-footer__inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px min(5vw, 64px);
}

.site-brand--footer {
  color: var(--mv-white);
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
}

.empty-state {
  padding: 20px;
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: min(5vw, 64px);
    right: min(5vw, 64px);
    top: 72px;
    padding: 16px;
    background: var(--mv-panel);
    border: 1px solid var(--mv-line);
    box-shadow: var(--mv-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 12px;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

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

  .site-header__inner {
    gap: 12px;
  }

  .language-switcher {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding-top: 74px;
  }

  .section,
  .article-shell {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .section-head,
  .site-footer__inner {
    display: block;
  }

  .section-head p,
  .footer-nav {
    margin-top: 14px;
  }

  .article-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    display: block;
  }

  .search-form button {
    width: 100%;
    margin-top: 10px;
  }
}
