:root {
  --bg: #080705;
  --ink: #fff8e8;
  --muted: #c9bfa7;
  --panel: #14110d;
  --panel-strong: #1e180f;
  --line: rgba(227, 184, 82, 0.22);
  --gold: #e3b852;
  --green: #23684d;
  --teal: #3bb6a3;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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.7;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(29, 107, 82, 0.5);
  text-underline-offset: 0.18em;
}

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

.site-shell {
  min-height: 100vh;
  padding-bottom: 76px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 7, 5, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.hero-section,
.content-layout,
.archive-header,
.post-list {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.brand-wordmark {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--ink);
  line-height: 1.1;
  text-decoration: none;
}

.brand-wordmark span {
  font-weight: 900;
  white-space: nowrap;
}

.brand-wordmark small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
}

.hero-section {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 48px 0 44px;
  text-align: center;
}

.hero-section__content {
  padding: 28px 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  margin: 1.7rem 0 0.7rem;
  font-size: 1.18rem;
}

.hero-section__content p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-section__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #1f1a12;
  box-shadow: var(--shadow);
}

.hero-section__media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #151006;
  font-weight: 800;
  text-decoration: none;
}

.button-primary:hover,
.wp-block-button__link:hover {
  background: #f0c96d;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(59, 182, 163, 0.58);
  background: rgba(59, 182, 163, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 30px;
}

.quick-card {
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(23, 19, 13, 0.08);
}

.quick-card:hover {
  border-color: rgba(59, 182, 163, 0.5);
  background: #171711;
}

.quick-card span {
  font-weight: 900;
}

.quick-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.content-layout {
  padding: 24px 0 72px;
}

.content-layout > * {
  max-width: 860px;
}

.content-layout--home > * {
  max-width: none;
}

.wp-block-group,
.wp-block-columns,
.wp-block-table,
.wp-block-details,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 19, 13, 0.06);
}

.wp-block-group {
  padding: clamp(18px, 3vw, 30px);
  margin: 22px 0;
}

.wp-block-columns {
  padding: 22px;
  gap: 22px;
}

.wp-block-image img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

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

.wp-block-table td,
.wp-block-table th {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.wp-block-details {
  padding: 16px 18px;
  margin: 12px 0;
}

.wp-block-details summary {
  cursor: pointer;
  font-weight: 800;
}

.schema-faq-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.schema-faq-section:last-child {
  border-bottom: 0;
}

.schema-faq-question {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.page-hero,
.archive-header {
  padding: 46px 0 12px;
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.5fr);
  gap: 28px;
  padding: 36px 0;
}

.site-footer p {
  color: rgba(255, 248, 234, 0.76);
}

.footer-nav ul {
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-nav a {
  color: #fff8ea;
  font-weight: 700;
  text-decoration-color: rgba(255, 248, 234, 0.35);
}

.footer-small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.footer-contact,
.footer-age {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.sticky-action {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
}

.sticky-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  background: var(--gold);
  color: #151006;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

.post-list {
  display: grid;
  gap: 18px;
  padding-bottom: 60px;
}

.post-card {
  padding: 20px;
}

@media (max-width: 840px) {
  .site-shell {
    padding-bottom: 86px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 76px 16px auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

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

  .primary-nav ul,
  .footer-nav ul {
    display: grid;
    gap: 8px;
  }

  .primary-nav a {
    min-height: 44px;
    width: 100%;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-section__content {
    padding-bottom: 0;
  }

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

  .brand-wordmark span {
    font-size: 0.94rem;
  }

  .brand-wordmark small {
    font-size: 0.72rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .quick-access-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    gap: 12px;
  }

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

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

  .quick-access-grid {
    grid-template-columns: 1fr;
  }
}
