:root {
  --bg: #080a0c;
  --bg-soft: #10151a;
  --bg-card: #151b20;
  --ink: #f7f1dc;
  --muted: #b7c0bc;
  --line: rgba(246, 195, 82, 0.22);
  --gold: #f6c352;
  --gold-strong: #ffd76a;
  --teal: #32d0b4;
  --danger: #e05d5d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --content: 1120px;
  --reading: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--gold-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff2b8;
}

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

.screen-reader-text {
  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;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  background: var(--gold);
  color: #151008;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(8, 10, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--content));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.site-branding,
.brand-link,
.custom-logo-link {
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(48vw, 220px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.brand-logo-img,
.footer-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.brand-logo-img {
  max-width: 54px;
}

.footer-brand img {
  max-width: 150px;
  max-height: 48px;
}

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

.primary-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.footer-nav a:hover {
  color: var(--ink);
  background: rgba(246, 195, 82, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
}

.menu-toggle__bar::before {
  transform: translateY(-7px);
}

.menu-toggle__bar::after {
  transform: translateY(5px);
}

.brand-hero {
  padding: 64px 0 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 195, 82, 0.18), transparent 38%),
    linear-gradient(180deg, #0b0d0f 0%, #080a0c 100%);
  border-bottom: 1px solid var(--line);
}

.brand-hero__inner {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
  text-align: center;
}

.brand-hero__kicker,
.page-hero__kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  color: var(--ink);
  font-size: clamp(2.35rem, 8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.brand-hero__intro {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.13rem;
}

.brand-hero__cta,
.wp-block-button__link,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  color: #171004;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 34px rgba(246, 195, 82, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.brand-hero__cta:hover,
.wp-block-button__link:hover,
.search-submit:hover {
  color: #171004;
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(246, 195, 82, 0.3);
}

.brand-hero__note {
  max-width: 700px;
  margin: 18px auto 30px;
  color: #e9d9aa;
  font-size: 0.96rem;
}

.brand-hero__media {
  margin: 0 auto;
}

.brand-hero__media img,
.wp-block-image img,
.featured-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-hero__media img {
  max-height: 560px;
  object-fit: cover;
}

.front-content,
.page-main {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.content-shell {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 56px 0;
}

.content-shell > *:first-child {
  margin-top: 0;
}

.content-shell h2,
.content-shell h3,
.content-shell h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

.content-shell h2 {
  margin-top: 58px;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.content-shell h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.content-shell p,
.content-shell li {
  color: var(--muted);
}

.content-shell strong {
  color: var(--ink);
}

.content-shell .wp-block-group,
.content-shell .wp-block-details,
.content-shell .wp-block-table,
.content-shell .wp-block-quote {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.content-shell .wp-block-group.is-style-section-panel {
  padding: 28px;
}

.content-shell .wp-block-columns {
  gap: 24px;
}

.content-shell .wp-block-column {
  min-width: 0;
}

.content-shell .wp-block-image {
  margin: 34px 0;
}

.content-shell figcaption {
  color: #d2c499;
  font-size: 0.92rem;
  text-align: center;
}

.content-shell table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
}

.content-shell th,
.content-shell td {
  padding: 12px;
  vertical-align: top;
  border: 1px solid rgba(246, 195, 82, 0.16);
}

.content-shell th {
  color: var(--ink);
  background: rgba(246, 195, 82, 0.09);
}

.content-shell .wp-block-details summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.content-shell .wp-block-details p {
  margin-bottom: 0;
}

.page-hero {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 58px 0 18px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.25rem);
}

.entry-meta,
.archive-description {
  color: var(--muted);
  font-size: 0.94rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100% - 32px, var(--content));
  margin: 0 auto 48px;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.content-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.content-card__media {
  margin: 0;
}

.content-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-card__body {
  padding: 18px;
}

.content-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 24px auto 0;
}

.search-field {
  min-height: 48px;
  width: min(70vw, 420px);
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-card);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050607;
}

.site-footer__inner {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
  padding: 38px 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 22px;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 44px;
  padding: 11px 18px;
  color: #171004;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: var(--gold);
}

.footer-action--ghost {
  color: var(--gold);
  background: transparent;
}

.footer-nav ul {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer-notes {
  max-width: 820px;
  margin: 0 auto;
}

.footer-notes p,
.site-footer__copy {
  margin: 7px 0;
  color: #aeb8b3;
  font-size: 0.92rem;
}

.navigation.pagination {
  margin: 30px auto 60px;
  text-align: center;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #080a0c;
    box-shadow: var(--shadow);
  }

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

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

  .primary-nav a {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .site-branding,
  .brand-link,
  .custom-logo-link {
    max-width: min(58vw, 160px);
  }

  .custom-logo,
  .custom-logo-link img,
  .site-branding img,
  .brand-logo img,
  .brand-logo-img {
    max-width: 140px;
    max-height: 44px;
  }

  .brand-logo-img {
    max-width: 44px;
  }

  .site-header__inner {
    width: min(100% - 24px, var(--content));
    min-height: 64px;
  }

  .primary-nav {
    top: 64px;
  }

  .brand-hero {
    padding: 42px 0 30px;
  }

  .brand-hero__intro {
    font-size: 1rem;
  }

  .brand-hero__cta,
  .search-submit {
    width: 100%;
  }

  .content-shell {
    padding: 40px 0;
  }

  .content-shell .wp-block-group,
  .content-shell .wp-block-details,
  .content-shell .wp-block-table,
  .content-shell .wp-block-quote {
    padding: 18px;
  }

  .search-form {
    display: grid;
  }

  .search-field {
    width: 100%;
  }
}

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