:root {
  --background: #f6f1e8;
  --surface: #fbf8f1;
  --surface-deep: #ebe2d2;
  --text: #181715;
  --muted: #686157;
  --rule: #d8cebc;
  --accent: #9d792a;
  --accent-dark: #5f4517;
  --focus: #6f5219;
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 23, 21, 0.12);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-panel a {
  text-decoration: none;
}

.nav-cta {
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--text);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.menu-toggle__line {
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.menu-toggle__label {
  font-size: 0.86rem;
}

.hero {
  width: min(1480px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(2rem, 3.2vw, 3.4rem) 0;
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(420px, 0.9fr);
  grid-template-areas: "content image";
  gap: 0;
  align-items: center;
}

.hero__content {
  grid-area: content;
  max-width: 720px;
}

.section-label {
  margin: 0 0 1.15rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(4.6rem, 7.2vw, 7.7rem);
}

h2 {
  font-size: clamp(3.5rem, 6.6vw, 6.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.hero__artist {
  margin: 0.9rem 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
}

.hero__meta {
  margin: 0.3rem 0 0;
  color: var(--accent-dark);
  font-weight: 500;
}

.hero__venue {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero__venue a {
  color: var(--accent-dark);
  font-weight: 600;
}

.hero__statement {
  max-width: 22ch;
  margin: clamp(1.4rem, 2.3vw, 2rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: 1.04;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.3rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

.button--primary:hover {
  background: var(--accent-dark);
  color: var(--background);
  border-color: var(--accent-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button--text {
  border-color: transparent;
  color: var(--accent-dark);
  padding-inline: 0;
}

.button--outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button--outline:hover {
  background: rgba(239, 232, 220, 0.08);
  color: inherit;
}

.hero__support {
  max-width: 480px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__image {
  grid-area: image;
  margin: 0;
  height: min(78vh, 820px);
  min-height: 520px;
  width: calc(100% + clamp(1.5rem, 3vw, 3.5rem));
  transform: translateX(clamp(-3.5rem, -3vw, -1.5rem));
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.section {
  border-top: 1px solid var(--rule);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.anchor-target {
  display: block;
  height: 0;
  overflow: hidden;
  position: relative;
  top: -96px;
}

.section__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 860px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.prose {
  max-width: 760px;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  color: #2e2a25;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

.prose p {
  margin: 0 0 1.15rem;
}

.quiet-link {
  display: inline-flex;
  margin-top: 1.4rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.invitation .prose strong {
  color: inherit;
  font-weight: 600;
}

.visit {
  background: var(--surface);
  scroll-margin-top: 72px;
}

.visit__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.visit__venue {
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
  border-left: 1px solid var(--rule);
}

.visit__public {
  margin: 0 0 1.2rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit address {
  font-style: normal;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}

.hours {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--text);
}

.hours__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.hours__row span {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hours__row strong {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.hours__row small {
  display: block;
  margin-top: 0.25rem;
  color: var(--accent-dark);
  font-size: 0.7rem;
}

.visit__directions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.6fr);
  gap: clamp(2rem, 7vw, 6rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  color: var(--muted);
}

.visit__directions p {
  margin: 0;
}

.visit__directions span,
.visit__directions strong,
.visit__directions small {
  display: block;
}

.visit__directions span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visit__directions strong {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 1.05rem;
}

.visit__directions small {
  margin-top: 0.2rem;
}

.visit__map {
  height: clamp(320px, 42vw, 520px);
  border: 1px solid var(--rule);
  background: var(--surface-deep);
  overflow: hidden;
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.68) contrast(0.96);
}

.map-link {
  margin-top: 1rem;
}

.works {
  background: var(--surface);
}

.work {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 0.64fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rule);
}

.work:first-of-type {
  border-top: 0;
}

.work--large {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 0.58fr);
}

.work__image {
  margin: 0;
  background: var(--background);
}

.work__image img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
}

.work__text {
  max-width: 520px;
}

.work__number {
  margin: 0 0 2rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.work__detail {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work__text p:not(.work__number):not(.work__detail):not(.artist-note) {
  margin: 1.8rem 0 0;
}

.artist-note {
  margin: 1.8rem 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.12;
}

.works__closing {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.04;
}

.about {
  background: var(--background);
}

.acknowledgements {
  background: var(--surface);
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.thanks-grid div {
  min-height: 210px;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background: var(--surface);
}

.thanks-grid h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.thanks-grid p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.invitation {
  background: var(--text);
  color: var(--background);
}

.invitation h2,
.invitation .section-label {
  color: var(--background);
}

.invitation .section-label {
  opacity: 0.82;
}

.invitation .prose {
  color: #dfd5c5;
}

.invitation .prose a {
  color: var(--background);
  font-weight: 600;
}

.invitation__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.invitation-form {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(246, 241, 232, 0.28);
  background: rgba(246, 241, 232, 0.045);
  overflow: hidden;
}

.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.88rem;
  font-weight: 500;
}

.required-marker {
  color: #c7654d;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(246, 241, 232, 0.35);
  border-radius: 0;
  background: rgba(246, 241, 232, 0.08);
  color: var(--background);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

option {
  color: var(--text);
}

select {
  appearance: auto;
}

.field.has-error select {
  border-color: rgba(199, 101, 77, 0.86);
  background: rgba(199, 101, 77, 0.08);
}

.field-error {
  margin: -0.1rem 0 0;
  color: #e3aa99;
  font-size: 0.78rem;
  line-height: 1.35;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--surface-deep);
  outline-offset: 2px;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 1.4rem;
}

.consent-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.22rem;
}

.consent-field label {
  color: #dfd5c5;
  line-height: 1.45;
}

.form-status {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #dfd5c5;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 800ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-status.is-visible {
  max-height: 9rem;
  margin-top: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  color: var(--background);
}

.form-status.is-error {
  color: #f1d8c9;
}

.zoho-submit-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.direct-contact {
  margin: 1.2rem 0 0;
  color: #dfd5c5;
  font-size: 0.92rem;
}

.direct-contact a {
  color: var(--background);
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 4vw, 2rem);
  background: rgba(12, 11, 10, 0.72);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0ms linear 760ms;
}

.success-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0ms;
}

.success-modal__panel {
  width: min(100%, 560px);
  padding: clamp(1.6rem, 5vw, 2.8rem);
  border: 1px solid rgba(24, 23, 20, 0.18);
  background: var(--background);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(10px);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.success-modal.is-open .success-modal__panel {
  transform: translateY(0);
}

.success-modal h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.success-modal p:not(.section-label) {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.success-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-top: 1.8rem;
}

.success-modal .button--outline {
  color: var(--text);
}

.closing-cta {
  border-top: 1px solid var(--rule);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.closing-cta h2 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 6rem);
}

.closing-cta__details {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.privacy-page {
  min-height: calc(100vh - 160px);
}

.privacy-page h1 {
  font-size: clamp(4rem, 8vw, 7rem);
}

@media (max-width: 920px) {
  .site-nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 20px 1.4rem;
    border-bottom: 1px solid var(--rule);
    background: var(--background);
    font-size: 1rem;
  }

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

  .nav-panel a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-cta {
    border: 0;
  }

  .nav-panel--privacy {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.82rem;
  }

  .nav-panel--privacy a {
    border: 0;
    padding: 0;
  }

  .hero,
  .work,
  .work--large,
  .visit__intro,
  .visit__directions,
  .invitation__layout,
  .closing-cta__inner {
    grid-template-columns: 1fr;
  }

  .success-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .success-modal__actions .button {
    justify-content: center;
    width: 100%;
  }

  .hero {
    grid-template-areas:
      "image"
      "content";
    min-height: 0;
    padding-top: 3.5rem;
  }

  .hero__image {
    height: auto;
    min-height: 0;
    width: 100%;
    border-left: 0;
    padding-left: 0;
    transform: none;
  }

  .hero__image img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .work {
    align-items: start;
  }

  .visit__venue {
    padding-left: 0;
    border-left: 0;
  }

  .work__image img {
    max-height: 74vh;
  }

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

@media (max-width: 620px) {
  .site-nav,
  .section__inner,
  .hero,
  .site-footer__inner {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(4.2rem, 21vw, 6.3rem);
  }

  h2 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero__statement {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero__actions,
  .site-footer__inner,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button--text {
    width: auto;
  }

  .hours__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 1.1rem 0;
  }

  .hours__row strong {
    font-size: 1.1rem;
  }

  .visit__map {
    height: 300px;
  }

  .section {
    padding: 4rem 0;
  }

  .thanks-grid {
    grid-template-columns: 1fr;
  }

  .thanks-grid div {
    min-height: auto;
  }

  .nav-panel--privacy {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
