:root {
  --cream: #f7e4bd;
  --paper: #fff8e8;
  --red: #e7350d;
  --orange: #efa415;
  --green: #366d4d;
  --mint: #78c987;
  --blue: #79abd2;
  --deep-blue: #4e879f;
  --ink: #173f32;
  --black: #141412;
  --yellow: #ffe120;
  --burgundy: #641016;
  --border: rgba(23, 63, 50, .22);
  --max: 1240px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--black);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: .7rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--cream) 93%, transparent);
  backdrop-filter: blur(12px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  color: var(--red);
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark-mark {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav-links a, .header-date {
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red); }
.header-date { justify-self: end; color: var(--red); }

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}
.hero-art, .hero-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: center; }
.hero-wash {
  background: linear-gradient(90deg, rgba(247,228,189,.97) 0%, rgba(247,228,189,.91) 37%, rgba(247,228,189,.24) 67%, rgba(247,228,189,0) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(760px, 72vw);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6rem);
}
.eyebrow, .section-kicker {
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(3.2rem, 8.5vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .78;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero-details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .35rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.hero-details p { margin: 0; font-size: 1rem; font-weight: 700; }
.hero-date-stack { display: grid; gap: .22rem; }
.hero-details .hero-off-date {
  width: fit-content;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .78rem 1.2rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { border-color: var(--red); background: var(--red); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: var(--ink); border-color: var(--ink); }
.button-ghost { color: var(--ink); }
.button-ghost:hover, .button-ghost:focus-visible { background: var(--ink); color: var(--cream); }
.hero-note {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  width: min(350px, 27vw);
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--green);
  color: white;
  font-size: .95rem;
  font-weight: 700;
}

.section-pad { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.statement { max-width: 1500px; margin: 0 auto; }
.statement-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}
.statement h2, .section-heading h2, .place-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.statement-copy { max-width: 600px; font-size: 1.12rem; }
.statement-copy p:first-child { color: var(--red); font-size: 1.35rem; font-weight: 900; }
.verbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 6rem);
}
.verb { min-height: 300px; padding: clamp(1.4rem, 3vw, 2.3rem); border: 2px solid var(--ink); border-radius: var(--radius); }
.verb > span { font-size: .78rem; font-weight: 900; }
.verb h3 { margin: 3rem 0 .6rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: .9; letter-spacing: -.055em; }
.verb p { max-width: 35ch; margin-bottom: 0; }
.verb-live { background: var(--red); color: white; }
.verb-dwell { background: var(--blue); }
.verb-coop { background: var(--mint); }

.program { border-block: 2px solid var(--ink); background: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 420px);
  gap: 2rem;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}
.section-heading p { margin: 0; }
.section-heading .section-kicker { margin-bottom: .8rem; }
.day-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.day-tab {
  min-height: 88px;
  padding: .8rem;
  border: 0;
  border-right: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.day-tab:last-child { border-right: 0; }
.day-tab span, .day-tab strong { display: block; }
.day-tab span { font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.day-tab strong { font-size: 1.65rem; line-height: 1.1; }
.day-tab:hover, .day-tab:focus-visible { background: var(--blue); }
.day-tab.is-active { background: var(--red); color: white; }
.day-tab-off.is-active { background: var(--burgundy); }
.program-panels { max-width: var(--max); margin: 0 auto; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.day-panel { display: grid; grid-template-columns: minmax(260px, .62fr) 1.38fr; }
.day-panel[hidden] { display: none; }
.day-intro { padding: clamp(2rem, 4vw, 4rem); border-right: 2px solid var(--ink); }
.day-intro p, .day-intro h3, .day-intro > span { margin: 0; }
.day-intro p { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.day-intro h3 { margin-top: .6rem; font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: .82; letter-spacing: -.06em; }
.day-intro h3 .date-number, .day-intro h3 .date-month { display: block; margin: 0; }
.day-intro h3 .date-month { margin-top: .22rem; font-size: .52em; line-height: 1; letter-spacing: -.035em; }
.day-intro > span { display: block; margin-top: 1.5rem; font-weight: 800; }
.day-intro > small { display: inline-block; margin-top: 1rem; padding: .35rem .6rem; border: 1px solid currentColor; border-radius: 999px; font-size: .74rem; font-weight: 900; }
.day-intro-17 { background: var(--orange); }
.day-intro-18 { background: var(--blue); }
.day-intro-19 { background: var(--deep-blue); color: white; }
.day-intro-20 { background: var(--mint); }
.day-intro-off { background: var(--yellow); color: var(--burgundy); }
.event-list { background: #fffdf4; }
.event {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}
.event:last-child { border-bottom: 0; }
.event time { padding-top: .2rem; color: var(--red); font-size: 1rem; font-weight: 900; white-space: nowrap; }
.event h4 { margin: .6rem 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
.event p { max-width: 70ch; margin: 0 0 .5rem; }
.event small { color: #47675b; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.event-instagram {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  margin-top: .45rem;
  padding: .48rem .72rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--red);
  font-size: .875rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.event-instagram:hover, .event-instagram:focus-visible { border-color: var(--red); background: var(--red); color: white; }
.event-instagram span { font-size: 1.05em; }
.tag { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: var(--green); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tag-lab, .tag-lesson { background: var(--blue); color: var(--ink); }
.tag-show, .tag-music { background: var(--red); }
.tag-market, .tag-kids { background: var(--mint); color: var(--ink); }
.tag-walk, .tag-table { background: var(--orange); color: var(--ink); }
.tag-off { background: var(--burgundy); }
.panel-off .event time { color: var(--burgundy); }

.highlights { background: var(--green); color: white; }
.highlights-intro { display: grid; gap: 1rem; }
.instagram-link { width: fit-content; font-weight: 900; text-underline-offset: .28em; }
.instagram-link:hover, .instagram-link:focus-visible { color: var(--yellow); }
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}
.poster, .off-poster {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid currentColor;
  background: transparent;
  color: white;
  cursor: zoom-in;
}
.poster { border-radius: 18px; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; }
.poster img { width: 100%; height: auto; object-fit: contain; transition: transform .4s ease; }
.photo img { height: 100%; object-fit: cover; }
.photo:first-child img { object-position: center 56%; }
.poster:hover img, .poster:focus-visible img { transform: scale(1.025); }
.poster span, .off-poster span {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(20,20,18,.78);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.poster:hover span, .poster:focus-visible span, .off-poster:hover span, .off-poster:focus-visible span { opacity: 1; transform: translateY(0); }

.off-festival { background: var(--yellow); color: var(--burgundy); }
.off-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; max-width: var(--max); margin: 0 auto; }
.off-copy h2 { margin: 0; font-size: clamp(4.5rem, 10vw, 9rem); line-height: .73; letter-spacing: -.075em; text-transform: uppercase; }
.off-copy h2 span { color: var(--red); }
.off-lead { max-width: 46ch; margin: 2.5rem 0; font-size: 1.2rem; font-weight: 800; }
.off-events { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.off-events article { padding: 1.2rem; border: 2px solid var(--burgundy); border-radius: 14px; }
.off-events time { font-size: .8rem; font-weight: 900; }
.off-events h3 { margin: .5rem 0; font-size: 1.25rem; line-height: 1.1; }
.off-events p { margin: 0; }
.button-yellow { background: var(--burgundy); color: white; }
.button-yellow:hover, .button-yellow:focus-visible { background: var(--black); }
.off-visual { display: grid; justify-items: center; gap: 1.1rem; width: 100%; margin: 0; }
.off-visual figcaption { max-width: 44ch; font-size: .8rem; font-weight: 800; text-align: center; }
.off-poster {
  display: block;
  width: min(100%, 460px);
  aspect-ratio: 1200 / 1697;
  border-color: var(--burgundy);
  border-radius: 18px;
  box-shadow: 18px 18px 0 var(--burgundy);
}
.off-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }

.place { border-top: 2px solid var(--ink); background: var(--paper); }
.place-photo { position: relative; min-height: clamp(420px, 34vw, 520px); overflow: hidden; }
.place-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.place-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,18,.14), rgba(20,20,18,.02)); }
.place-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: min(520px, calc(100% - 2.5rem));
  margin-left: clamp(1.25rem, 7vw, 7rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  transform: translateY(-50%);
}
.place-card address { margin: 1.5rem 0; font-size: 1.25rem; font-style: normal; font-weight: 800; }
.place-card ul { margin: 0 0 2rem; padding: 0; list-style: none; }
.place-card li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.place-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.text-link { font-weight: 900; text-underline-offset: .25em; }
.map-embed { height: clamp(340px, 38vw, 500px); border-top: 2px solid var(--ink); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.about-nuoro7 { border-top: 2px solid var(--ink); background: var(--red); color: white; }
.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 8vw, 9rem); max-width: var(--max); margin: 0 auto; }
.about-heading { position: relative; min-height: 420px; }
.about-heading h2 { position: relative; z-index: 2; max-width: 9ch; margin: 0; font-size: clamp(3.5rem, 7.2vw, 7.5rem); line-height: .82; letter-spacing: -.07em; text-transform: uppercase; }
.about-mark { position: absolute; right: 0; bottom: 0; width: clamp(120px, 16vw, 220px); border-radius: 24px; transform: rotate(6deg); }
.about-copy { align-self: center; max-width: 650px; font-size: 1.06rem; }
.about-copy p { margin: 0 0 1.2rem; }
.about-copy .about-lead { color: var(--yellow); font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
.about-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0; }
.about-tags span { padding: .42rem .72rem; border: 2px solid white; border-radius: 999px; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.button-about { border-color: white; background: white; color: var(--red); }
.button-about:hover, .button-about:focus-visible { border-color: var(--yellow); background: var(--yellow); color: var(--burgundy); }

.footer {
  display: grid;
  grid-template-columns: .8fr .8fr 1.6fr auto;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--cream);
  font-size: .84rem;
}
.footer p { margin: 0; }
.footer-mark { display: block; width: 68px; height: 68px; margin-bottom: .75rem; border-radius: 8px; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; font-weight: 800; }

.poster-dialog {
  width: min(92vw, 860px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.poster-dialog::backdrop { background: rgba(8,12,10,.88); backdrop-filter: blur(5px); }
.poster-dialog img { max-height: 88vh; margin: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.dialog-close {
  position: absolute;
  z-index: 2;
  top: -1rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

:focus-visible { outline: 4px solid var(--orange); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { min-height: 720px; }
  .hero-copy { width: min(760px, 90vw); }
  .hero-note { width: min(350px, 42vw); }
  .statement-grid, .section-heading, .off-layout, .about-layout { grid-template-columns: 1fr; }
  .verbs { grid-template-columns: 1fr; }
  .verb { min-height: 230px; }
  .verb h3 { margin-top: 1.5rem; }
  .day-panel { grid-template-columns: 1fr; }
  .day-intro { border-right: 0; border-bottom: 2px solid var(--ink); }
  .off-copy h2 { max-width: 7ch; }
  .off-poster { max-width: 480px; }
  .about-heading { min-height: 360px; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .site-header { min-height: 62px; }
  .wordmark-mark { width: 36px; }
  .hero { min-height: calc(100svh - 62px); }
  .hero-art { object-position: 63% center; }
  .hero-wash { background: linear-gradient(180deg, rgba(247,228,189,.8), rgba(247,228,189,.96) 57%, rgba(247,228,189,.45)); }
  .hero-copy { align-self: start; width: 100%; padding-top: 4rem; }
  .hero h1 { font-size: clamp(3.25rem, 18vw, 5.6rem); line-height: .82; }
  .hero-details { display: block; margin-top: 2rem; }
  .hero-details p { margin: .2rem 0; }
  .hero-date-stack { margin-bottom: .7rem; }
  .hero-details .hero-off-date { margin-top: .35rem; }
  .hero-note { right: 1.25rem; bottom: 1.25rem; left: 1.25rem; width: auto; }
  .section-pad { padding-block: 4rem; }
  .statement-grid { gap: 1.2rem; }
  .statement h2, .section-heading h2, .place-card h2 { font-size: 2.7rem; }
  .statement-copy p:first-child { font-size: 1.18rem; }
  .day-tabs {
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    overflow-x: auto;
    border-radius: 14px 14px 0 0;
  }
  .day-tab { min-height: 74px; }
  .day-intro { padding: 2rem 1.3rem; }
  .day-intro h3 { font-size: 3rem; }
  .event { grid-template-columns: 1fr; gap: .5rem; padding: 1.4rem 1.2rem; }
  .event h4 { margin-top: .45rem; }
  .photo-gallery { grid-template-columns: 1fr; gap: .7rem; }
  .poster span, .off-poster span { display: none; }
  .off-copy h2 { font-size: clamp(3.9rem, 20vw, 6.7rem); }
  .off-events { grid-template-columns: 1fr; }
  .off-poster { box-shadow: 10px 10px 0 var(--burgundy); }
  .place-photo { display: grid; min-height: 0; padding-top: 230px; }
  .place-photo > img { height: 250px; object-position: center; }
  .place-photo::after { bottom: auto; height: 250px; }
  .place-card { position: relative; top: auto; margin: -1.5rem auto 2rem; transform: none; }
  .map-embed { height: 360px; }
  .about-heading { min-height: 330px; }
  .about-heading h2 { font-size: clamp(3.5rem, 17vw, 5.8rem); }
  .about-mark { width: 135px; }
  .footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .dialog-close { right: 0; }
}

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