:root {
  --bg: #071713;
  --bg-2: #0b241f;
  --surface: #10342d;
  --surface-2: #123f37;
  --text: #f6fff9;
  --muted: #bdd3c8;
  --soft: #dbe7df;
  --line: rgba(218, 246, 232, 0.16);
  --gold: #f7c948;
  --gold-2: #ffb84d;
  --teal: #29d3b2;
  --coral: #ef8668;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(41, 211, 178, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg), #05100e 46rem, #081712);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  color: #06120f;
  background: var(--gold);
  clip: auto;
}

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

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link img {
  width: min(150px, 36vw);
  max-height: 54px;
  object-fit: contain;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.2rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--gold);
}

.site-main {
  width: 100%;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.hero__content {
  min-width: 0;
}

.hero__kicker,
.entry-kicker,
.listing-header p {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  color: var(--text);
}

.hero__intro {
  margin: 1.1rem 0 0;
  max-width: 58rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.35rem 0 1.4rem;
}

.hero__meta span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0.72rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 52, 45, 0.72);
  color: var(--soft);
  font-weight: 750;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button--primary {
  color: #112018;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 16px 34px rgba(247, 201, 72, 0.24);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  color: #112018;
  box-shadow: 0 18px 40px rgba(247, 201, 72, 0.3);
}

.hero__risk {
  margin: 1rem 0 0;
  max-width: 54rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__media {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(41, 211, 178, 0.11), rgba(247, 201, 72, 0.08)),
    rgba(16, 52, 45, 0.48);
  box-shadow: var(--shadow);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.content-shell,
.listing-header {
  max-width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 36, 31, 0.82);
  box-shadow: var(--shadow);
}

.front-page .content-shell {
  margin-bottom: 3rem;
}

.entry-header {
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.page-main,
.listing-main {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.longform-content h2,
.page-content h2 {
  margin: 2.15rem 0 0.75rem;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.longform-content h3,
.page-content h3 {
  margin: 1.4rem 0 0.45rem;
  color: #e9fff6;
  font-size: 1.25rem;
}

.longform-content p,
.page-content p,
.longform-content li,
.page-content li {
  color: var(--soft);
}

.longform-content a:not(.button),
.page-content a:not(.button) {
  color: var(--teal);
}

.longform-content .wp-block-group,
.page-content .wp-block-group {
  margin: 1.4rem 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 63, 55, 0.72);
}

.wp-block-image {
  margin: 2rem 0;
}

.wp-block-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.l444-page-visual {
  margin: 1.35rem 0 2rem;
}

.l444-page-visual img {
  min-height: 280px;
  background: rgba(16, 52, 45, 0.72);
}

.l444-home-image-grid {
  margin: 1.5rem 0 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.l444-home-image-grid .wp-block-image {
  margin: 0;
}

.l444-home-image-grid img {
  aspect-ratio: 4 / 3;
  min-height: 190px;
}

.wp-element-caption,
.wp-block-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.l444-brand-lead {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 650;
}

.l444-brand-cta {
  margin: 0.3rem 0 1.2rem;
}

.l444-brand-section {
  margin: 2rem 0;
}

.l444-brand-section--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  gap: 1.25rem;
  align-items: center;
}

.l444-brand-section--reverse .l444-brand-section__media {
  order: -1;
}

.l444-brand-section__copy {
  min-width: 0;
}

.l444-brand-section__media {
  margin: 0;
}

.l444-brand-section__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 52, 45, 0.72);
}

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

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--soft);
}

.wp-block-table th,
.wp-block-table td {
  padding: 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.wp-block-table th {
  color: var(--gold);
  background: rgba(247, 201, 72, 0.08);
}

.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: rgba(239, 134, 104, 0.08);
  color: var(--soft);
}

.wp-block-yoast-faq-block,
.longform-content .schema-faq,
.page-content .schema-faq {
  margin-top: 1.5rem;
}

.schema-faq-section,
.wp-block-yoast-faq-block .schema-faq-section {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.schema-faq-question {
  display: block;
  color: var(--gold);
  font-weight: 850;
}

.schema-faq-answer {
  color: var(--soft);
}

.post-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 52, 45, 0.72);
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.search-field {
  min-height: 44px;
  min-width: min(320px, 100%);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(7, 23, 19, 0.78);
}

.search-form button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius);
  color: #112018;
  background: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

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

.site-footer__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 1rem;
}

.site-footer p {
  margin: 0.4rem 0;
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 750;
}

.footer-nav {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-menu {
  justify-content: flex-start;
}

@media (max-width: 840px) {
  .site-header__inner,
  .hero,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero__media {
    order: -1;
  }

  .hero__media img {
    aspect-ratio: 16 / 11;
  }

  .hero__meta,
  .l444-brand-section--with-image,
  .l444-home-image-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .l444-brand-section--reverse .l444-brand-section__media {
    order: 0;
  }

  .button {
    width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: 2.55rem;
  }
}

@media (max-width: 480px) {
  .content-shell,
  .listing-header {
    max-width: calc(100% - 1rem);
    padding: 1rem;
  }

  .site-header__inner {
    padding-inline: 0.75rem;
  }

  .menu {
    gap: 0.2rem 0.55rem;
  }

  .menu a {
    font-size: 0.88rem;
  }
}
