:root {
  --bg: #070806;
  --bg-elevated: #11130f;
  --bg-soft: #181a14;
  --text: #f7f4e8;
  --muted: #c7c1ad;
  --line: rgba(244, 201, 104, 0.2);
  --gold: #f4c968;
  --gold-dark: #38270b;
  --green: #2bd17e;
  --danger: #efb36a;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

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

body.admin-bar .site-header {
  top: 32px;
}

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

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

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #0c0d0a;
  background: var(--gold);
}

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

.site-header__inner,
.site-footer__inner,
.hero,
.entry-content-wrap,
.page-main,
.listing-main {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

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

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(48vw, 220px);
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f120c;
}

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

.brand-logo .custom-logo-link,
.brand-logo .custom-logo {
  max-width: 46px;
  max-height: 46px;
}

.brand-logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 800;
}

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

.primary-navigation a,
.footer-navigation a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: 56px 0 34px;
}

.hero__content {
  text-align: center;
}

.hero__eyebrow,
.page-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

h1 {
  color: var(--gold);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  text-shadow: 0 0 18px rgba(244, 201, 104, 0.22);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

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

.hero__actions,
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button--primary,
.wp-block-button__link {
  color: #1b1304;
  background: var(--gold);
}

.button--secondary,
.is-style-outline > .wp-block-button__link {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-1px);
}

.hero__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  filter: brightness(1.18) saturate(1.12);
  object-fit: cover;
}

.entry-content-wrap,
.content-shell {
  padding: 24px 0 70px;
}

.entry-content {
  color: var(--muted);
  text-align: center;
}

.entry-content > * {
  max-width: 900px;
  margin-inline: auto;
}

.entry-content p,
.entry-content li,
.entry-content ul,
.entry-content ol,
.entry-content figcaption,
.entry-content blockquote,
.entry-content .wp-block-paragraph,
.entry-content .wp-block-heading,
.entry-content .wp-block-group,
.entry-content .wp-block-column,
.entry-content .wp-block-list,
.entry-content .wp-block-table,
.entry-content .wp-block-quote,
.content-section,
.wp-block-group.content-section,
.post-card__body,
.archive-description,
.site-header,
.site-header__inner,
.primary-navigation,
.primary-navigation a,
.site-footer,
.footer-brand,
.footer-brand p,
.footer-disclosure,
.footer-disclosure p {
  text-align: center;
}

.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide {
  max-width: var(--max);
}

.entry-content h2,
.entry-content h3 {
  color: var(--text);
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 0;
  list-style-position: inside;
}

.entry-content li {
  margin: 0 0 8px;
}

.content-section,
.wp-block-group.content-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.toc-list {
  color: var(--muted);
}

.toc-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  justify-items: center;
  padding-left: 0;
  list-style: none;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--text);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a:focus {
  color: var(--gold);
}

.section-media,
.wp-block-image.section-media,
.entry-content .wp-block-image {
  margin-top: 24px;
  margin-bottom: 24px;
}

.entry-content .wp-block-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10140f;
  filter: brightness(2.25) saturate(1.28) contrast(1.08);
  object-fit: cover;
}

.wp-block-columns {
  gap: 20px;
}

.wp-block-column,
.feature-card,
.wp-block-group.feature-card,
.wp-block-group.faq-item {
  padding: 20px;
  border: 1px solid rgba(244, 201, 104, 0.16);
  border-radius: 8px;
  background: var(--bg-soft);
  text-align: center;
}

.feature-card h3,
.faq-item h3 {
  margin-bottom: 8px;
}

.wp-block-table {
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
  width: 100%;
  min-width: 620px;
  margin-inline: auto;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 12px;
  border: 1px solid rgba(244, 201, 104, 0.18);
  color: var(--text);
  text-align: center;
  background: rgba(17, 19, 15, 0.96);
}

.wp-block-table th {
  color: var(--text);
  background: rgba(244, 201, 104, 0.12);
}

.wp-block-table tbody tr:nth-child(even) td {
  background: rgba(244, 201, 104, 0.055);
}

.wp-block-table a {
  color: var(--gold);
}

.wp-block-table.is-style-stripes {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background-color: #25231f;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even),
.wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
  background-color: #171612;
}

.wp-block-table.is-style-stripes th,
.wp-block-table.is-style-stripes td {
  color: #f1eee4;
  border-color: rgba(255, 255, 255, 0.14);
}

.wp-block-table.is-style-stripes th {
  background-color: #201d17;
  font-weight: 700;
}

.page-hero {
  padding: 50px 0 24px;
  text-align: center;
}

.page-hero h1 {
  max-width: 900px;
  margin-inline: auto;
}

.featured-media {
  max-width: 980px;
  margin: 0 auto 28px;
}

.featured-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

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

.post-card__body {
  padding: 18px;
  text-align: center;
}

.post-card h2 {
  font-size: 1.18rem;
}

.site-footer {
  padding: 48px 0 104px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #050704 0%, #030403 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: grid;
  width: min(100%, 760px);
  justify-items: center;
  gap: 12px;
}

.brand-link--footer {
  max-width: none;
  justify-content: center;
}

.footer-brand p,
.footer-disclosure p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.footer-navigation {
  width: min(100%, 760px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-navigation .menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 26px;
  justify-items: center;
}

.footer-navigation a {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}

.footer-disclosure {
  display: grid;
  width: min(100%, 800px);
  justify-items: center;
  gap: 8px;
}

.footer-disclosure p:last-child {
  color: var(--text);
  font-weight: 800;
}

.sticky-action {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: none;
  max-width: 620px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 6, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sticky-action span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.sticky-action .button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.floating-go-action {
  position: fixed;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.floating-go-action__button {
  min-width: min(320px, calc(100vw - 32px));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

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

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elevated);
  }

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

  .primary-navigation .menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .hero__media {
    order: -1;
  }

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

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .hero,
  .entry-content-wrap,
  .page-main,
  .listing-main {
    width: min(100% - 22px, var(--max));
  }

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

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

  .brand-logo {
    width: 42px;
    height: 42px;
  }

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

  .content-section,
  .wp-block-group.content-section,
  .wp-block-column,
  .feature-card,
  .wp-block-group.feature-card,
  .wp-block-group.faq-item {
    padding: 18px;
  }

  .toc-list ul {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .wp-block-buttons,
  .search-form {
    flex-direction: column;
  }

  .button,
  .wp-block-button__link,
  .search-form .button {
    width: 100%;
  }

  .sticky-action {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sticky-action span {
    grid-column: 1 / -1;
    text-align: center;
  }

  .floating-go-action {
    bottom: 12px;
    padding: 0 11px;
  }

  .floating-go-action__button {
    width: min(100%, 420px);
  }

  .site-footer {
    padding-bottom: 144px;
  }

  .footer-navigation {
    padding: 16px 0;
  }

  .footer-navigation .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
}
