:root {
  --parchment: #efe6d8;
  --parchment-deep: #e2d4c0;
  --paper: #f7f1e7;
  --ink: #1a1814;
  --ink-soft: #3a342c;
  --muted: #6a5f52;
  --terracotta: #c4785a;
  --terracotta-deep: #9a5740;
  --beige: #d4c4b0;
  --indigo: #5c6b8a;
  --indigo-deep: #3f4d68;
  --line: rgba(26, 24, 20, 0.14);
  --shadow: 0 16px 38px rgba(26, 24, 20, 0.1);
  --display: "Newsreader", "Palatino Linotype", "Book Antiqua", serif;
  --text: "Figtree", "Segoe UI", sans-serif;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-soft);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    linear-gradient(152deg, var(--paper) 0%, var(--parchment) 48%, var(--parchment-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 65% 45% at 18% 12%, rgba(92, 107, 138, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 38% at 86% 20%, rgba(196, 120, 90, 0.11), transparent 52%);
  animation: paper-breathe 24s ease-in-out infinite alternate;
}

@keyframes paper-breathe {
  from { opacity: 0.34; }
  to { opacity: 0.5; }
}

@keyframes fold-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-slide {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

main,
.site-header,
.site-footer,
.cookie {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--indigo-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--terracotta-deep);
}

h1,
h2,
h3,
.brand,
.brand-hero {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin: 0.15em 0 0.45em;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.meta,
.kicker {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.12rem;
  max-width: 36rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 231, 0.84);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
}

.brand {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--terracotta-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.78rem 1.35rem;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--paper);
  outline: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(0);
}

.btn--ghost {
  background: transparent;
  border-color: var(--beige);
}

.btn--ghost::before {
  background: var(--indigo-deep);
}

/* Full-bleed hero — mid-left paper panel (varies from bottom-aligned layouts) */
.hero-ridge {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
}

.hero-ridge__media {
  position: absolute;
  inset: 0;
}

.hero-ridge__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.92);
}

.hero-ridge__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 241, 231, 0.94) 0%, rgba(247, 241, 231, 0.78) 34%, rgba(26, 24, 20, 0.35) 62%, rgba(26, 24, 20, 0.55) 100%),
    radial-gradient(circle at 72% 28%, rgba(196, 120, 90, 0.28), transparent 40%);
}

.hero-ridge__panel {
  position: relative;
  z-index: 1;
  width: min(34rem, 92vw);
  margin: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 6vw, 4rem) clamp(1.2rem, 8vw, 5.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background:
    linear-gradient(160deg, rgba(247, 241, 231, 0.97), rgba(226, 212, 192, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: panel-slide 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-hero {
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  margin: 0 0 0.55rem;
  max-width: 11ch;
  color: var(--ink);
}

.hero-ridge h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  max-width: 26ch;
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-family: var(--text);
  letter-spacing: 0;
  line-height: 1.4;
}

.hero-ridge .lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--fold {
  background: rgba(247, 241, 231, 0.55);
  border-block: 1px solid var(--line);
}

.primary-band {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.primary-band img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: fold-in 0.8s ease both;
}

.offer-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.offer-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.offer-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.offer-list h3 {
  margin: 0;
  font-size: 1.2rem;
}

.offer-list h3 a {
  text-decoration: none;
  color: var(--ink);
}

.voice-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.voice-rail blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}

.voice-rail footer {
  margin-top: 0.85rem;
  font-family: var(--text);
  font-size: 0.88rem;
  color: var(--muted);
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
  animation: fold-in 0.7s ease both;
}

.page-hero h1 {
  max-width: 18ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.split img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prose p {
  max-width: 42rem;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.schedule-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-list .window {
  font-family: var(--display);
  color: var(--terracotta);
  font-size: 1.05rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.75rem;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
}

.media-tile h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.2rem;
}

.media-tile h3 a {
  text-decoration: none;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem;
  background: rgba(247, 241, 231, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--beige);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: 0.88rem;
}

.form-status {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.75rem;
  background: rgba(196, 120, 90, 0.12);
  border: 1px solid rgba(196, 120, 90, 0.35);
  color: var(--terracotta-deep);
}

.form-status.is-ok {
  background: rgba(92, 107, 138, 0.12);
  border-color: rgba(92, 107, 138, 0.35);
  color: var(--indigo-deep);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.75rem 0 1.5rem;
  background: var(--ink);
  color: rgba(247, 241, 231, 0.82);
}

.site-footer a {
  color: rgba(247, 241, 231, 0.9);
}

.site-footer .brand {
  color: var(--paper);
  margin: 0 0 0.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--beige);
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 241, 231, 0.12);
  font-size: 0.88rem;
  color: rgba(247, 241, 231, 0.65);
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(247, 241, 231, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 36px rgba(26, 24, 20, 0.12);
  padding: 1rem 0;
}

.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie__inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
}

.not-found {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

@media (max-width: 900px) {
  .primary-band,
  .split,
  .voice-rail,
  .post-grid,
  .site-footer__grid,
  .schedule-list li {
    grid-template-columns: 1fr;
  }

  .hero-ridge__panel {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.35rem 1.1rem;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.65rem;
  }

  .site-header {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
