/*
Theme Name: Przed Wyjazdem
Theme URI: https://przedwyjazdem.com
Author: Sebastian Gąsiewski
Author URI: https://przedwyjazdem.com
Description: Własny motyw marki Przed Wyjazdem. Strona główna z obracającą się Ziemią (Three.js, z płaskim kadrem awaryjnym), Blog zbudowany na prawdziwych wpisach i kategoriach WordPressa, strona „O mnie” z filmem „Dolina z pociągiem” i ilustracją doliny, sekcja wsparcia Patronite. Barlow, głęboka zieleń, perłowe tło i złote detale. Logo, nagłówek, stopka, globus i film konfigurowalne w Wygląd → Dostosuj. Nie wymaga wtyczek ani kreatorów.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: przedwyjazdem
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --forest: #12370F;
  --forest-deep: #050F04;
  --forest-light: #1F5F1A;
  --pearl: #FCFBF8;
  --gold: #C7AE6A;
  --gold-light: #D5C28F;
  --gold-dark: #B99A45;
  --white: #FFFFFF;
  --ink: #0D1F0B;
  --ink-soft: #2A3722;
  --muted: #4A5646;
  --line: #E6DFCC;
  --secondary: #F3EFE4;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --radius: 0.625rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 400 1.0625rem / 1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--forest-light);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

figure {
  margin: 0;
}

.wrap {
  width: min(80rem, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only,
.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 {
  position: absolute;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--forest);
  border-radius: 0.5rem;
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.arrow-nudge {
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:hover > .arrow-nudge,
a:focus-visible > .arrow-nudge {
  transform: translateX(4px);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin: 0;
}

.eyebrow--gold {
  color: var(--gold-light);
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

body.js-ready .reveal[data-visible='true'] {
  opacity: 1;
  transform: none;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  color: var(--pearl);
  background: rgba(5, 15, 4, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 174, 106, 0.2);
}

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

@media (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  position: relative;
}

.brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.brand img,
img.custom-logo {
  width: var(--pw-logo-w, 68px);
  height: auto;
}

@media (max-width: 47.99em) {
  .brand img,
  img.custom-logo {
    width: var(--pw-logo-w-mobile, var(--pw-logo-w, 68px));
  }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-primary a {
  color: rgba(252, 251, 248, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-primary a:hover,
.nav-primary a:focus-visible,
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a {
  color: var(--pearl);
}

.nav-primary a.btn-nav {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(199, 174, 106, 0.7);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  color: var(--gold-light);
}

.nav-primary a.btn-nav:hover,
.nav-primary a.btn-nav:focus-visible {
  background: rgba(199, 174, 106, 0.15);
  color: var(--pearl);
}

.menu-toggle {
  display: none;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(252, 251, 248, 0.25);
  border-radius: 999px;
  background: none;
  color: var(--pearl);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle .when-open {
  display: none;
}

.site-header.is-open .menu-toggle .when-open {
  display: block;
}

.site-header.is-open .menu-toggle .when-closed {
  display: none;
}

@media (max-width: 47.99em) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--forest-deep);
    border-top: 1px solid rgba(199, 174, 106, 0.2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.is-open .nav-primary {
    display: flex;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 0.25rem;
    font-size: 1.0625rem;
  }

  .nav-primary li a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-primary .btn-nav {
    margin: 0.5rem 1.25rem 1.25rem;
    justify-content: center;
  }
}

.hero-earth {
  position: relative;
  height: 140vh;
  height: 140svh;
  background: var(--forest-deep);
  color: var(--pearl);
}

@media (min-width: 48em) {
  .hero-earth {
    height: 165vh;
    height: 165svh;
  }
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.space-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 45% 0%, #12370F 0%, #0a2008 38%, #050F04 75%),
    linear-gradient(to top right, #050F04 10%, transparent 60%);
}

.poster-globe {
  --r: calc(66vw * var(--pw-globe-scale-mobile, 0.85));
  --cx: 80vw;
  --cy: 93svh;
  position: absolute;
  border-radius: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  left: calc(var(--cx) - var(--r));
  top: calc(var(--cy) - var(--r));
  background-image:
    radial-gradient(circle at 32% 34%, rgba(0, 0, 0, 0) 38%, rgba(2, 6, 3, 0.55) 66%, rgba(2, 6, 3, 0.96) 84%),
    url('../textures/earth_atmos_2048.jpg');
  background-size:
    100% 100%,
    calc(var(--r) * 4) calc(var(--r) * 2);
  background-position:
    0 0,
    calc(var(--r) * -1.17) 0;
  box-shadow: 0 0 calc(var(--r) * 0.06) rgba(110, 170, 255, 0.25);
  transition: opacity 700ms ease;
}

@media (min-width: 48em) {
  .poster-globe {
    --r: calc(min(62svh, 42vw) * var(--pw-globe-scale, 0.8));
    --cx: 73vw;
    --cy: 55svh;
  }
}

.stage.is-ready .poster-globe {
  opacity: 0;
}

.pw-globe-static .poster-globe {
  opacity: var(--globe-opacity, 1);
}

.pw-globe-static #pw-globe-toggle {
  display: none;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--globe-opacity, 1);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 7.5rem;
  opacity: calc(1 - var(--p, 0) * 2.6);
  transform: translateY(calc(var(--p, 0) * -12svh));
}

@media (min-width: 48em) {
  .hero-content {
    justify-content: center;
    padding-top: 4rem;
  }
}

.hero-inner {
  max-width: 36rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-portrait {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
}

.hero-initials {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--forest);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

@media (min-width: 48em) {
  .hero-portrait,
  .hero-initials {
    width: 5rem;
    height: 5rem;
  }
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 7vw, 5.25rem);
  color: var(--pearl);
}

.hero-lead {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(252, 251, 248, 0.85);
}

@media (min-width: 48em) {
  .hero-lead {
    font-size: 1.25rem;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--pearl);
  color: var(--forest);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
}

.btn-gold {
  background: var(--gold-light);
  color: var(--forest-deep);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--pearl);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 174, 106, 0.5);
  background: rgba(5, 15, 4, 0.7);
  color: var(--pearl);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(18, 55, 15, 0.8);
}

.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(252, 251, 248, 0.9);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 174, 106, 0.6);
  padding-bottom: 0.25rem;
}

.link-gold:hover,
.link-gold:focus-visible {
  color: var(--pearl);
  border-bottom-color: var(--gold);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 154, 69, 0.5);
  padding-bottom: 0.25rem;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  border-bottom-color: var(--gold-dark);
}

.hero-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--fog, 0);
  background: linear-gradient(to top, #FCFBF8 0%, rgba(252, 251, 248, 0.92) 35%, rgba(252, 251, 248, 0) 85%);
}

.hero-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 48em) {
  .hero-controls {
    bottom: 2rem;
    left: 2rem;
  }
}

.scroll-hint {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(252, 251, 248, 0.6);
  opacity: calc(1 - var(--p, 0) * 6);
}

.btn-ghost .t-play {
  display: none;
}

.btn-ghost[data-playing='false'] .t-play {
  display: inline-flex;
}

.btn-ghost[data-playing='false'] .t-pause {
  display: none;
}

.section-blog {
  background: var(--pearl);
  padding: 2rem 0 6rem;
}

@media (min-width: 48em) {
  .section-blog {
    padding: 4rem 0 8rem;
  }
}

.section-blog--page {
  padding-top: 6.5rem;
}

@media (min-width: 48em) {
  .section-blog--page {
    padding-top: 8rem;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(199, 174, 106, 0.6);
  padding-bottom: 2rem;
}

@media (min-width: 48em) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--forest);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(18, 55, 15, 0.2);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--gold);
  background: var(--white);
}

.chip--active,
.chip--active:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--pearl);
}

.front-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64em) {
  .front-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .front-grid .post-card--lead {
    grid-column: span 7;
    grid-row: span 2;
  }

  .front-grid .post-card--side {
    grid-column: span 5;
  }
}

.posts-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

.post-card {
  position: relative;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card__title a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.post-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--secondary);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 700ms ease;
}

.post-card--lead .post-card__media img {
  aspect-ratio: 4 / 3;
}

.post-card__media--empty {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #102A0F 0%, #12370F 55%, #284528 100%);
}

.post-card--lead .post-card__media--empty {
  aspect-ratio: 4 / 3;
}

.post-card__media--empty img {
  width: 45%;
  aspect-ratio: auto;
  opacity: 0.5;
}

.post-card:hover .post-card__media img,
.post-card:focus-within .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  margin-top: 1.25rem;
}

.post-card__title {
  margin-top: 0.5rem;
  color: var(--forest);
  font-size: 1.375rem;
  line-height: 1.15;
}

.post-card--lead .post-card__title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.post-card__excerpt {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-card__meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  font-weight: 500;
}

.post-card:hover .post-card__more .icon {
  transform: translateX(4px);
}

.post-card__more .icon {
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card__date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.post-card__body a {
  position: relative;
  z-index: 2;
}

.read-more-row {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
}

.empty-state {
  margin-top: 3rem;
  border: 1px dashed var(--gold);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

.pagination {
  margin-top: 3.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(18, 55, 15, 0.2);
  border-radius: 999px;
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9375rem;
}

.page-numbers:hover,
.page-numbers:focus-visible {
  border-color: var(--gold);
  background: var(--white);
}

.page-numbers.current {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--pearl);
}

.section-support {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--pearl);
  padding: 6rem 0;
}

@media (min-width: 48em) {
  .section-support {
    padding: 8rem 0;
  }
}

.section-support::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 15% 110%, #050F04 0%, transparent 60%);
}

.support-inner {
  position: relative;
  max-width: 48rem;
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
}

@media (min-width: 48em) {
  .support-inner {
    padding-left: 2.5rem;
  }
}

.support-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.support-lead {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(252, 251, 248, 0.85);
}

.support-inner .btn-gold {
  margin-top: 2rem;
}

.site-footer {
  background: var(--forest-deep);
  color: var(--pearl);
  padding: 5rem 0 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }
}

.footer-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.footer-contact {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-light);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 174, 106, 0.5);
  padding-bottom: 0.15rem;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--pearl);
  border-bottom-color: var(--gold);
}

.footer-nav {
  margin-top: 2.5rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-nav a {
  color: rgba(252, 251, 248, 0.75);
  text-decoration: none;
}

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

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid rgba(199, 174, 106, 0.25);
}

.social-list li + li {
  border-top: 1px solid rgba(199, 174, 106, 0.25);
}

.social-list li[hidden] {
  display: none;
}

.social-list li:not([hidden]) + li:not([hidden]) {
  border-top: 1px solid rgba(199, 174, 106, 0.25);
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(252, 251, 248, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

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

.social-list .handle {
  color: rgba(252, 251, 248, 0.5);
  font-weight: 400;
}

.social-list--light {
  border-color: var(--line);
}

.social-list--light li + li,
.social-list--light li:not([hidden]) + li:not([hidden]) {
  border-top: 1px solid var(--line);
}

.social-list--light a {
  color: var(--ink);
}

.social-list--light a:hover,
.social-list--light a:focus-visible {
  color: var(--forest-light);
}

.social-list--light .handle {
  color: var(--muted);
}

.footer-bottom {
  margin-top: 4rem;
  border-top: 1px solid rgba(199, 174, 106, 0.25);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(252, 251, 248, 0.6);
}

@media (min-width: 48em) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pearl);
}

.section-content {
  background: var(--pearl);
  padding: 6.5rem 0 6rem;
}

@media (min-width: 48em) {
  .section-content {
    padding: 8rem 0 8rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest-light);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--forest);
}

.page-title {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--forest);
}

.entry-cats {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-cats a {
  color: var(--forest-light);
  text-decoration: none;
}

.entry-cats a:hover,
.entry-cats a:focus-visible {
  text-decoration: underline;
}

.single-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.single-featured {
  margin: 2.5rem auto 0;
  width: min(56rem, 100% - 2.5rem);
}

.single-featured img {
  width: 100%;
  border-radius: 0.75rem;
  max-height: 70svh;
  object-fit: cover;
}

.single-content,
.page-content {
  margin: 3rem auto 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.single-content h2,
.page-content h2,
.prose h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.75rem;
  color: var(--forest);
}

.single-content h3,
.page-content h3,
.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.375rem;
  color: var(--forest);
}

.single-content h4,
.page-content h4,
.prose h4 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.125rem;
  color: var(--forest);
}

.single-content p,
.page-content p,
.prose p {
  margin: 0 0 1.1rem;
}

.single-content a,
.page-content a,
.prose a {
  color: var(--forest-light);
}

.single-content ul,
.single-content ol,
.page-content ul,
.page-content ol,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.single-content li + li,
.page-content li + li,
.prose li + li {
  margin-top: 0.4rem;
}

.single-content img,
.page-content img,
.prose img {
  border-radius: 0.5rem;
}

.single-content blockquote,
.page-content blockquote,
.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.single-content blockquote p,
.prose blockquote p {
  margin-bottom: 0.5rem;
}

.single-content code,
.page-content code,
.prose code {
  background: var(--secondary);
  border-radius: 0.375rem;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.single-content pre,
.prose pre {
  background: var(--forest-deep);
  color: var(--pearl);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow: auto;
}

.single-content pre code,
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.single-content table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.single-content th,
.single-content td,
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.single-content figcaption,
.page-content figcaption,
.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.alignwide {
  width: min(64rem, calc(100vw - 2.5rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  background: var(--forest);
  color: var(--pearl);
}

.wp-block-button__link:hover {
  background: var(--forest-light);
}

.post-tags {
  margin: 3rem auto 0;
  max-width: 42rem;
}

.post-tags a {
  display: inline-block;
  margin: 0 0.375rem 0.375rem 0;
  border: 1px solid rgba(18, 55, 15, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--forest);
  text-decoration: none;
}

.post-nav {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
}

.post-nav a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
}

.post-nav a:hover,
.post-nav a:focus-visible {
  color: var(--forest-light);
}

.post-pages {
  margin: 1.5rem 0;
}

.post-pages a {
  color: var(--forest);
}

.comments-area {
  margin: 3.5rem auto 0;
  max-width: 42rem;
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-display);
  color: var(--forest);
}

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

.comment-list .comment {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--white);
}

.comment-list .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.comment-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font: inherit;
  background: var(--white);
}

.comment-form .submit,
.comment-form .submit:hover {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  background: var(--forest);
  color: var(--pearl);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.hero-video {
  position: relative;
  background: var(--forest-deep);
  color: var(--pearl);
}

.hero-video-stage {
  position: relative;
  height: 92vh;
  height: 92svh;
  min-height: 30rem;
  overflow: hidden;
}

.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--forest) 0%, rgba(18, 55, 15, 0.2) 34%, rgba(5, 15, 4, 0.55) 100%);
}

.hero-video-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
}

.hero-video-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--pearl);
  margin-top: 0.5rem;
}

.hero-video-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 6;
}

.hero-video-caption {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 6;
  margin: 0;
  max-width: 18rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: right;
  color: rgba(252, 251, 248, 0.75);
}

.valley-figure {
  position: relative;
  background: var(--forest);
}

.valley-figure img {
  width: 100%;
  height: auto;
}

.valley-figure::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(to bottom, var(--forest), rgba(18, 55, 15, 0));
}

.valley-figure::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to top, var(--pearl), rgba(252, 251, 248, 0));
}

.section-about {
  background: var(--pearl);
  padding: 4.5rem 0 6rem;
}

@media (min-width: 48em) {
  .section-about {
    padding: 6rem 0 8rem;
  }
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .about-side {
    grid-column: span 4;
  }

  .about-main {
    grid-column: span 8;
  }
}

.about-portrait {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
}

.about-initials {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--forest);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2rem;
}

@media (min-width: 48em) {
  .about-portrait,
  .about-initials {
    width: 9rem;
    height: 9rem;
  }
}

.about-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--forest);
}

.about-side .eyebrow {
  margin-top: 1.5rem;
}

.about-main .single-content,
.about-main .page-content {
  margin-top: 2rem;
}

.support-mini {
  margin-top: 2.5rem;
  border: 1px solid rgba(199, 174, 106, 0.6);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.support-mini p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.section-contact {
  background: var(--pearl);
  padding: 6.5rem 0 6rem;
}

@media (min-width: 48em) {
  .section-contact {
    padding: 8rem 0 8rem;
  }
}

.section-404 {
  background: var(--pearl);
  padding: 8rem 0;
  text-align: center;
}

.title-404 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--forest);
}

.section-404 p {
  color: var(--muted);
  max-width: 34rem;
  margin: 1rem auto 2rem;
}

.actions-404 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.25rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

.search-form .search-field {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font: inherit;
  background: var(--white);
}

.search-form .search-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  background: var(--forest);
  color: var(--pearl);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.search-form .search-submit:hover {
  background: var(--forest-light);
}

.has-forest-color {
  color: #12370F;
}

.has-forest-deep-color {
  color: #050F04;
}

.has-forest-light-color {
  color: #1F5F1A;
}

.has-gold-color {
  color: #C7AE6A;
}

.has-gold-light-color {
  color: #D5C28F;
}

.has-gold-dark-color {
  color: #B99A45;
}

.has-pearl-color {
  color: #FCFBF8;
}

.has-night-color {
  color: #050F04;
}

.has-forest-background-color {
  background-color: #12370F;
}

.has-forest-deep-background-color {
  background-color: #050F04;
}

.has-pearl-background-color {
  background-color: #FCFBF8;
}

.has-gold-background-color {
  background-color: #C7AE6A;
}

.has-gold-light-background-color {
  background-color: #D5C28F;
}

.has-white-background-color {
  background-color: #FFFFFF;
}

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

  .hero-earth {
    height: 100svh;
  }

  .hero-controls,
  .scroll-hint {
    display: none;
  }

  .hero-content {
    opacity: 1;
    transform: none;
  }

  .reveal,
  body.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .post-card__media img,
  .icon,
  .arrow-nudge,
  .btn,
  .chip,
  .nav-primary a {
    transition: none;
  }
}
