:root {
  --gl-ink: #1f1c19;
  --gl-ink-soft: #3b352f;
  --gl-sage: #74846a;
  --gl-sage-dark: #53624d;
  --gl-terracotta: #d9784e;
  --gl-sunrise: #e8a957;
  --gl-mist: #f7f2ea;
  --gl-paper: #fffaf2;
  --gl-border: #e8ded1;
  --gl-white: #ffffff;
  --gl-shadow: 0 22px 70px rgba(31, 28, 25, 0.12);
  --gl-radius: 8px;
  --gl-serif: Georgia, "Source Serif Pro", serif;
  --gl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gl-paper);
  color: var(--gl-ink);
  font-family: var(--gl-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  border-radius: var(--gl-radius);
  background: var(--gl-ink);
  color: var(--gl-white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 222, 209, 0.9);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 96px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 320px;
  max-width: 36vw;
  min-width: 220px;
}

.primary-nav {
  flex: 1;
}

.primary-nav__list,
.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list {
  justify-content: center;
  gap: 1.25rem;
}

.primary-nav a,
.text-link {
  color: #4f4a44;
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a:hover,
.text-link:hover {
  color: var(--gl-terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--gl-radius);
  border: 1px solid transparent;
  padding: 0.72rem 1.05rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--gl-terracotta);
  color: var(--gl-white);
  box-shadow: 0 12px 30px rgba(217, 120, 78, 0.25);
}

.button--secondary {
  border-color: var(--gl-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--gl-ink);
}

.button--text {
  padding-left: 0;
  color: var(--gl-sage-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  background: var(--gl-white);
  padding: 0.65rem;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 0.26rem;
  background: var(--gl-ink);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.hero,
.section,
.archive-hero,
.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero--media {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gl-sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--gl-ink);
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--gl-serif);
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  max-width: 860px;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 4rem);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.hero__lead {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: #5d554e;
  font-size: 1.22rem;
}

.hero__actions,
.social-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--gl-border);
  border-radius: 18px;
  background: var(--gl-white);
  box-shadow: var(--gl-shadow);
  padding: 1rem;
}

.hero__panel div {
  border-radius: var(--gl-radius);
  background: #fbf5ec;
  padding: 1.2rem;
}

.hero__panel span {
  color: var(--gl-terracotta);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero__panel strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.08rem;
}

.hero__panel p {
  margin: 0.4rem 0 0;
  color: #635c54;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--gl-border);
  border-radius: 24px;
  background: var(--gl-white);
  box-shadow: var(--gl-shadow);
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.hero-slider__slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-slider__slide figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 16px;
  background: rgba(31, 28, 25, 0.82);
  color: var(--gl-white);
  padding: 1rem;
  backdrop-filter: blur(16px);
}

.hero-slider__slide strong {
  display: block;
  font-size: 1rem;
}

.hero-slider__slide span {
  display: block;
  margin-top: 0.25rem;
  color: #e8ded1;
  font-size: 0.94rem;
}

.hero-slider__dots {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.hero-slider__dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 28, 25, 0.28);
  cursor: pointer;
}

.hero-slider__dot.is-active {
  width: 1.8rem;
  background: var(--gl-terracotta);
}

.section__heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section__heading--inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.support-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.support-card,
.content-card {
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 1.35rem;
}

.support-card p,
.content-card p {
  margin: 0.75rem 0 0;
  color: #625a52;
}

.story-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: none;
  background: #f0e7da;
}

.story-band__media,
.story-band__content {
  max-width: 590px;
}

.story-band__media {
  justify-self: end;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: min(420px, 100%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(217, 120, 78, 0.2), rgba(116, 132, 106, 0.24)),
    #fff8ee;
  box-shadow: var(--gl-shadow);
}

.portrait-placeholder span {
  color: rgba(31, 28, 25, 0.22);
  font-family: var(--gl-serif);
  font-size: 7rem;
}

.story-band p,
.section--split p,
.social-band p,
.archive-hero p {
  color: #625a52;
}

.content-card__image {
  display: block;
  margin: -1.35rem -1.35rem 1rem;
  overflow: hidden;
  border-radius: var(--gl-radius) var(--gl-radius) 0 0;
}

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

.content-card__type {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--gl-sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.content-card__link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gl-terracotta);
  font-weight: 800;
}

.section--split,
.social-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 0.8rem;
}

.post-list article {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--gl-border);
  padding: 1rem 0;
}

.post-list a {
  color: var(--gl-ink);
  font-weight: 800;
}

.post-list time {
  flex: 0 0 auto;
  color: #766e65;
}

.social-band {
  margin-bottom: 4rem;
  border-radius: 22px;
  background: var(--gl-ink);
  color: var(--gl-white);
  padding: 3rem;
}

.social-band h2,
.social-band p,
.social-band .eyebrow {
  color: var(--gl-white);
}

.page-content {
  max-width: 880px;
}

.page-content header {
  margin-bottom: 2.5rem;
}

.page-content time {
  display: inline-flex;
  margin-top: 1rem;
  color: #756d65;
}

.rich-content {
  color: #3f3933;
  font-size: 1.08rem;
}

.rich-content a {
  color: var(--gl-terracotta);
  font-weight: 800;
}

.featured-image {
  margin: 0 0 2rem;
}

.featured-image img {
  width: 100%;
  border-radius: 18px;
}

.archive-hero {
  padding-bottom: 2rem;
}

.pagination {
  margin-top: 2rem;
}

.site-footer {
  background: var(--gl-ink);
  color: #ddd2c4;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footer-brand img {
  width: 390px;
  max-width: 100%;
}

.footer-brand p {
  max-width: 520px;
  color: #c6b9aa;
}

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

.footer-menu {
  flex-direction: column;
  gap: 0.55rem;
}

.footer-menu a {
  color: #c6b9aa;
}

.footer-menu a:hover {
  color: var(--gl-white);
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8aa9a;
}

.site-footer__bar p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .brand img {
    max-width: 58vw;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .header-actions {
    flex-basis: 100%;
    order: 4;
  }

  .hero,
  .story-band,
  .section--split,
  .social-band,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 4rem;
  }

  .hero--media {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-slider__slide img {
    min-height: 420px;
  }

  .story-band__media {
    justify-self: start;
  }

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

@media (max-width: 640px) {
  .brand img {
    width: 260px;
    max-width: 68vw;
    min-width: 0;
  }

  .hero,
  .section,
  .archive-hero,
  .page-content {
    padding: 3.5rem 1rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-slider,
  .hero-slider__slide img {
    min-height: 360px;
  }

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

  .section__heading--inline,
  .post-list article {
    display: block;
  }

  .social-band {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2rem 1rem;
  }
}
