:root {
  --bg: #f2ede4;
  --bg-deep: #e5dccd;
  --panel: rgba(255, 252, 247, 0.8);
  --panel-strong: rgba(16, 16, 15, 0.94);
  --text: #141311;
  --muted: #676050;
  --muted-strong: #494234;
  --line: rgba(20, 19, 17, 0.12);
  --line-strong: rgba(20, 19, 17, 0.22);
  --shadow: 0 26px 72px rgba(39, 29, 16, 0.08);
  --shadow-tight: 0 14px 34px rgba(39, 29, 16, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville,
    "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(176, 134, 93, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(83, 99, 111, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 44%, var(--bg-deep) 100%);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 19, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 19, 17, 0.025) 1px, transparent 1px);
  background-size: 84px 84px;
  content: "";
  opacity: 0.26;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 88%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 30px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 244, 237, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(20, 19, 17, 0.05);
}

.brand,
.topbar-links,
.footer-links,
.inline-links {
  display: flex;
  align-items: center;
}

.brand,
.inline-links a,
.topbar-link,
.footer-links a,
.button,
.menu-button {
  text-decoration: none;
}

.brand {
  gap: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 19, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-wordmark,
.topbar-link,
.eyebrow,
.section-label,
.panel-label,
.card-index,
.resource-label {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-links,
.footer-links,
.inline-links {
  flex-wrap: wrap;
  gap: 18px;
}

.topbar-link,
.inline-links a,
.footer-links a,
.menu-button {
  font-size: 0.8rem;
}

.topbar-link {
  padding: 6px 0;
}

.topbar-link-strong {
  color: var(--text);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(20, 19, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.menu-button-bars,
.menu-button-bars::before,
.menu-button-bars::after {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button-bars {
  position: relative;
}

.menu-button-bars::before,
.menu-button-bars::after {
  position: absolute;
  left: 0;
}

.menu-button-bars::before {
  top: -4px;
}

.menu-button-bars::after {
  top: 4px;
}

.menu-button[aria-expanded="true"] .menu-button-bars {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-button-bars::before {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

.hero,
.section-grid,
.cta-frame,
.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 28px;
}

.hero {
  align-items: center;
  padding: 18px 0 34px;
}

.hero-copy h1,
.section-intro h2,
.cta-frame h2,
.subpage-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-copy h1,
.subpage-copy h1 {
  max-width: 9.4ch;
  font-size: clamp(3.7rem, 7vw, 5.9rem);
}

.section-intro h2,
.cta-frame h2 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}

.narrow h2 {
  max-width: 12ch;
}

.hero-text,
.editorial-copy p,
.editorial-copy li,
.card p,
.cta-copy,
.cta-note,
.footer p,
.subpage-copy p,
.policy-block p,
.policy-block li,
.policy-summary li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.inline-links {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #f7f3ec;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #000;
}

.button-secondary {
  border-color: rgba(20, 19, 17, 0.12);
  background: rgba(255, 255, 255, 0.34);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(20, 19, 17, 0.24);
  background: rgba(255, 255, 255, 0.54);
}

.hero-stage {
  display: grid;
  gap: 16px;
}

.gallery-wall,
.hero-dossier,
.card,
.cta-frame,
.policy-block,
.policy-summary {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.gallery-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.86), rgba(238, 229, 213, 0.88)),
    radial-gradient(circle at top left, rgba(116, 72, 35, 0.14), transparent 36%);
}

.gallery-piece {
  position: relative;
  min-height: 156px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.16);
  border-radius: 7px;
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

.gallery-piece::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255, 246, 232, 0.26);
  border-radius: 2px;
  content: "";
}

.gallery-piece p {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 246, 233, 0.84);
}

.gallery-piece-tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 320px;
}

.gallery-piece-wide {
  grid-column: span 7;
}

.piece-grid {
  background:
    linear-gradient(145deg, rgba(18, 18, 18, 0.18), rgba(18, 18, 18, 0)),
    radial-gradient(circle at 28% 20%, rgba(238, 196, 125, 0.52), transparent 24%),
    linear-gradient(180deg, #2f333a 0%, #181b21 46%, #0c0f12 100%);
}

.piece-road {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(115deg, #75828e 0%, #252b33 42%, #0f1115 100%);
}

.piece-road::after {
  position: absolute;
  inset: auto 24px 26px 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e7c27b 18%,
    transparent 34%,
    #e7c27b 56%,
    transparent 72%
  );
  content: "";
}

.piece-stair {
  grid-column: span 5;
  background:
    linear-gradient(135deg, rgba(253, 248, 242, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #715e47 0%, #302720 100%);
}

.piece-stair::after {
  position: absolute;
  inset: 28px 28px 40px auto;
  width: 68px;
  background:
    linear-gradient(
      180deg,
      transparent 0 18%,
      rgba(245, 233, 215, 0.86) 18% 22%,
      transparent 22% 40%,
      rgba(245, 233, 215, 0.86) 40% 44%,
      transparent 44% 62%,
      rgba(245, 233, 215, 0.86) 62% 66%,
      transparent 66%
    );
  content: "";
  opacity: 0.76;
}

.piece-water {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 32% 18%, rgba(208, 232, 255, 0.44), transparent 24%),
    linear-gradient(180deg, #789293 0%, #3d5d62 42%, #16262a 100%);
}

.hero-dossier {
  padding: 22px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.96), rgba(28, 28, 25, 0.92)),
    radial-gradient(circle at top right, rgba(194, 151, 88, 0.18), transparent 34%);
  color: #f5efe4;
}

.hero-dossier-compact {
  align-self: start;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dossier-row span {
  color: rgba(239, 229, 214, 0.72);
}

.dossier-row strong {
  max-width: 18ch;
  text-align: right;
  font-size: 0.98rem;
  font-weight: 500;
}

.section {
  padding: 58px 0;
}

.section-grid {
  align-items: start;
}

.section-label,
.panel-label,
.eyebrow,
.card-index,
.resource-label {
  margin: 0 0 14px;
  font-size: 0.76rem;
}

.section-intro p,
.section-intro h2,
.subpage-copy p,
.subpage-copy h1,
.footer p,
.card h3,
.policy-block h2 {
  margin-top: 0;
}

.editorial-copy {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.manifesto-list,
.policy-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.manifesto-list li,
.policy-list li {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.card-grid,
.subpage-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subpage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.policy-block,
.policy-summary {
  min-height: 100%;
  padding: 24px;
  border-radius: 24px;
}

.card h3,
.policy-block h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
}

.cta-frame {
  align-items: center;
  padding: 30px 32px;
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255, 253, 249, 0.84), rgba(241, 232, 216, 0.94)),
    radial-gradient(circle at bottom right, rgba(140, 94, 53, 0.16), transparent 34%);
}

.cta-note {
  margin: 2px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

.subpage-hero {
  align-items: start;
  padding: 8px 0 14px;
}

.policy-summary {
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.96), rgba(28, 28, 25, 0.92)),
    radial-gradient(circle at top right, rgba(194, 151, 88, 0.18), transparent 34%);
  color: #f5efe4;
}

.policy-summary li,
.policy-summary a {
  color: #f5efe4;
}

.policy-summary .policy-list li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .card-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero,
  .section-grid,
  .cta-frame,
  .subpage-hero,
  .subpage-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 8px 0 26px;
  }

  .section {
    padding: 50px 0;
  }

  .footer {
    flex-direction: column;
  }
}

.piece-night {
  grid-column: span 7;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 228, 176, 0.58), transparent 16%),
    linear-gradient(160deg, #24313a 0%, #10161d 58%, #080b0f 100%);
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 10px;
    flex-wrap: wrap;
    margin: 12px 0 24px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .has-js .menu-button {
    display: inline-flex;
  }

  .has-js .topbar-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(248, 244, 237, 0.98);
    box-shadow: 0 22px 42px rgba(20, 19, 17, 0.12);
  }

  .has-js .topbar-links.is-open {
    display: flex;
  }

  .topbar-link {
    width: 100%;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .topbar-link:hover,
  .topbar-link:focus-visible {
    background: rgba(255, 255, 255, 0.58);
  }

  .gallery-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-piece,
  .gallery-piece-tall,
  .gallery-piece-wide,
  .piece-stair {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 180px;
  }

  .card-grid-four,
  .subpage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-wordmark {
    display: none;
  }

  .hero-copy h1,
  .subpage-copy h1 {
    max-width: 9.8ch;
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .section-intro h2,
  .cta-frame h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-text,
  .editorial-copy p,
  .editorial-copy li,
  .card p,
  .cta-copy,
  .cta-note,
  .footer p,
  .subpage-copy p,
  .policy-block p,
  .policy-block li,
  .policy-summary li {
    font-size: 0.98rem;
  }

  .gallery-wall,
  .hero-dossier,
  .card,
  .cta-frame,
  .policy-block,
  .policy-summary {
    padding: 20px;
    border-radius: 22px;
  }

  .button {
    width: 100%;
  }
}

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

  .fade-up,
  .fade-up.is-visible,
  .button,
  .menu-button {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
