:root {
  --ink: #1f271e;
  --muted: #596252;
  --paper: #fbf8ef;
  --field: #e6df8e;
  --field-strong: #d6ce68;
  --leaf: #2f5d44;
  --moss: #78915e;
  --clay: #89402b;
  --sky: #d6e5e4;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(31, 39, 30, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 248, 239, 0.78);
  border-bottom: 1px solid rgba(31, 39, 30, 0.1);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 239, 0.94);
  box-shadow: 0 8px 28px rgba(31, 39, 30, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 50%;
}

.brand picture {
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a,
.button,
.filter,
.text-button {
  min-height: 2.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 680;
  border: 1px solid transparent;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(47, 93, 68, 0.1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(31, 39, 30, 0.16);
  background: var(--white);
  border-radius: 50%;
  place-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 2px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  align-items: end;
  gap: clamp(1rem, 5vw, 4rem);
  padding: clamp(6rem, 12vw, 9rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(120deg, rgba(230, 223, 142, 0.92), rgba(214, 229, 228, 0.74)),
    radial-gradient(circle at 82% 18%, rgba(169, 83, 55, 0.2), transparent 30%),
    var(--field);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 5rem 1rem auto auto;
  width: min(48vw, 39rem);
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  align-items: center;
  opacity: 0.26;
  transform: rotate(-5deg);
}

.hero-media img:first-child {
  filter: saturate(0.88);
}

.hero-media img:last-child {
  transform: translate(-12%, 22%) rotate(10deg);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.author-card span,
.hero-card span,
.places span {
  margin: 0 0 0.8rem;
  color: var(--clay);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-size: 7.6rem;
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  font-size: 4.5rem;
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.08;
}

.hero-copy {
  max-width: 41rem;
  font-size: 1.35rem;
  color: #324031;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(31, 39, 30, 0.16);
}

.hero-card {
  align-self: center;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 39, 30, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.04;
}

.hero-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
}

.stats,
.program-grid,
.author-grid,
.tips-grid,
.places {
  display: grid;
  gap: 1rem;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
}

.stats article {
  min-height: 8rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(31, 39, 30, 0.1);
  border-radius: var(--radius);
}

.stats strong {
  display: block;
  font-size: 4.6rem;
  line-height: 0.9;
  color: var(--leaf);
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.day-card,
.author-card,
.places article,
.tips-grid article,
.partner-box {
  background: var(--white);
  border: 1px solid rgba(31, 39, 30, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgba(31, 39, 30, 0.08);
}

.day-card {
  min-height: 26rem;
  padding: 1.25rem;
}

.day-card.featured {
  background: var(--leaf);
  color: var(--white);
  transform: translateY(-1rem);
}

.day-card.featured .schedule span,
.day-card.featured time {
  color: rgba(255, 255, 255, 0.76);
}

.day-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(31, 39, 30, 0.12);
}

.featured .day-head {
  border-color: rgba(255, 255, 255, 0.2);
}

.day-head span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--field);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 820;
}

.day-head h3 {
  margin: 0;
}

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

.schedule li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
}

time {
  color: var(--leaf);
  font-weight: 820;
}

.schedule strong,
.schedule span {
  display: block;
}

.schedule span {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter {
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border-color: rgba(31, 39, 30, 0.14);
}

.filter.active {
  background: var(--ink);
  color: var(--white);
}

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

.author-card {
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.author-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--shadow);
}

.author-card.is-hidden {
  display: none;
}

.author-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--focal-x, 50%) var(--focal-y, 0%);
  background: var(--sky);
}

.author-card[data-author="mischkulnig"] {
  --focal-y: 48%;
}

.author-card[data-author="fian"] {
  --focal-y: 80%;
}

.author-card picture {
  display: block;
  cursor: pointer;
}

.author-card picture:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.author-card div {
  padding: 1rem;
}

.author-card h3 {
  margin-bottom: 0.65rem;
}

.author-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.text-button {
  margin-top: 1rem;
  padding: 0.58rem 0.85rem;
  border-color: rgba(31, 39, 30, 0.14);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}

.text-button:hover {
  background: var(--field);
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  background: var(--sky);
}

.places-map {
  display: grid;
  gap: 1rem;
}

.map-shell {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(31, 39, 30, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.venue-map {
  min-height: 29rem;
  width: 100%;
}

.map-note {
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(31, 39, 30, 0.1);
}

.map-marker {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  background: var(--clay);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(31, 39, 30, 0.28);
  font-weight: 850;
}

.maplibregl-popup-content {
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.places {
  grid-template-columns: repeat(3, 1fr);
}

.places article,
.tips-grid article {
  padding: 1.2rem;
}

.places p {
  color: var(--muted);
}

.places a,
.tips-grid a,
.site-footer a {
  color: var(--leaf);
  font-weight: 760;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.tips-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tips-grid article {
  min-height: 12rem;
}

.tips-grid a {
  display: block;
  margin-top: 0.55rem;
}

.tips-grid p {
  color: var(--muted);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.travel-grid article {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid rgba(31, 39, 30, 0.1);
  border-radius: var(--radius);
}

.travel-grid ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.travel-grid li + li {
  margin-top: 0.45rem;
}

.travel-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.partner {
  background: var(--field);
}

.partner-box {
  display: grid;
  grid-template-columns: minmax(11rem, 18rem) 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.partner-box img {
  max-height: 20rem;
  object-fit: contain;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--field);
}

.author-dialog {
  position: relative;
  width: min(65rem, calc(100vw - 2rem));
  max-height: min(82vh, 58rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(31, 39, 30, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-dialog::backdrop {
  background: rgba(31, 39, 30, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.dialog-layout picture {
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sky);
}

.dialog-layout img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: var(--focal-x, 50%) var(--focal-y, 0%);
}

.dialog-copy {
  min-width: 0;
  overflow: auto;
  max-height: 74vh;
  padding-right: 0.25rem;
}

.dialog-copy h2 {
  font-size: 3rem;
}

.dialog-copy p {
  color: var(--muted);
}

.dialog-copy strong {
  color: var(--ink);
}

.credit {
  margin-top: -0.4rem;
  font-size: 0.9rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(31, 39, 30, 0.14);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease var(--delay, 0ms), transform 700ms ease var(--delay, 0ms);
}

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

@media (max-width: 1100px) {
  h1 {
    font-size: 5.6rem;
  }

  h2 {
    font-size: 3.6rem;
  }

  .hero-copy {
    font-size: 1.22rem;
  }

  .program-grid,
  .tips-grid,
  .places,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .day-card.featured {
    transform: none;
  }

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

  .split,
  .intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(31, 39, 30, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    width: 86vw;
    inset: 6rem -10vw auto auto;
  }

  .hero-card {
    align-self: auto;
  }

  h1 {
    max-width: 9ch;
    font-size: 3.55rem;
    line-height: 0.92;
  }

  h2 {
    font-size: 2.35rem;
    line-height: 1;
  }

  h3 {
    font-size: 1.12rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .button,
  .filter {
    padding-inline: 0.82rem;
  }

  .stats strong {
    font-size: 3.4rem;
  }

  .stats,
  .author-grid,
  .partner-box,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .venue-map {
    min-height: 22rem;
  }

  .dialog-copy {
    max-height: none;
    overflow: visible;
  }

  .dialog-copy h2 {
    font-size: 2.2rem;
  }

  .schedule li {
    grid-template-columns: 3.35rem 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
