:root {
  --bg: #f4efe8;
  --bg-elev: rgba(255, 252, 248, 0.9);
  --band: #ebe3d8;
  --ink: #231c18;
  --muted: #6d615a;
  --line: rgba(35, 28, 24, 0.12);
  --accent: #8c3834;
  --accent-ink: #fffaf7;
  --gold: #8d6a3e;
  --figure: rgba(140, 56, 52, 0.09);
  --shadow: 0 24px 50px rgba(70, 42, 28, 0.08);
  --header: rgba(244, 239, 232, 0.9);
  --input: #fffdfb;
  --danger: #8c3834;
  color-scheme: light;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 2vw, 2rem);
  --page: min(1120px, calc(100% - 2.5rem));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #131210;
    --bg-elev: rgba(28, 25, 22, 0.92);
    --band: #1b1916;
    --ink: #f4eee7;
    --muted: #b7aa9f;
    --line: rgba(244, 238, 231, 0.14);
    --accent: #e2b17c;
    --accent-ink: #1b140e;
    --gold: #e2b17c;
    --figure: rgba(226, 177, 124, 0.12);
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
    --header: rgba(19, 18, 16, 0.9);
    --input: #221f1c;
    --danger: #f0b4a4;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131210;
  --bg-elev: rgba(28, 25, 22, 0.92);
  --band: #1b1916;
  --ink: #f4eee7;
  --muted: #b7aa9f;
  --line: rgba(244, 238, 231, 0.14);
  --accent: #e2b17c;
  --accent-ink: #1b140e;
  --gold: #e2b17c;
  --figure: rgba(226, 177, 124, 0.12);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
  --header: rgba(19, 18, 16, 0.9);
  --input: #221f1c;
  --danger: #f0b4a4;
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  padding: 0.7rem 0.9rem 0.7rem 1rem;
  background: var(--header);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 0.72rem;
  height: 0.72rem;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--figure);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.3rem 0.75rem 0.3rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icon-sun,
.icon-moon {
  display: none;
}

[data-theme="light"] .icon-moon,
:root:not([data-theme]) .icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-moon {
    display: none;
  }

  :root:not([data-theme]) .icon-sun {
    display: block;
  }
}

.hero,
.page-hero,
.discipline,
.exhibit,
.people,
.about-grid,
.contact,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 2.5rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 500;
}

.lede {
  max-width: 38rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.button-primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.hero-aside {
  padding-bottom: 0.4rem;
  border-top: 1px solid var(--line);
}

.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.stat strong {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.program-intro {
  width: var(--page);
  margin: 1rem auto 0;
  padding-top: 1.5rem;
}

.program-intro h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.discipline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.discipline:nth-of-type(even) .discipline-copy {
  order: 2;
}

.index-num {
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.discipline h2,
.exhibit h2,
.person h2,
.about-copy h2,
.contact h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.discipline p,
.exhibit p,
.person p,
.about-copy p {
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.discipline-figure,
.exhibit-figure,
.about-figure {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 58%, var(--figure), transparent 70%);
}

.discipline-figure img,
.exhibit-figure img,
.about-figure img {
  width: min(100%, 460px);
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(40, 24, 16, 0.16));
}

.page-hero {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 1rem;
}

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

.exhibit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.exhibit:nth-of-type(even) .exhibit-copy {
  order: 2;
}

.exhibit-meta {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.person {
  margin: 0;
  padding: 1.3rem 1.2rem 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.monogram {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--figure);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.person h2 {
  font-size: 2rem;
}

.role {
  margin-bottom: 0.7rem;
  color: var(--gold) !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: 1rem;
}

.principles {
  width: var(--page);
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle {
  padding: 1.2rem;
  border-top: 1px solid var(--line);
}

.principle h2 {
  margin-bottom: 0.45rem;
  font-size: 1.8rem;
}

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

.schedule {
  width: var(--page);
  margin: 0 auto 3rem;
}

.schedule h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.classes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.class-card {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.1rem;
  background: var(--band);
}

.class-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.7rem;
}

.class-card p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

.contact-card,
.form {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--bg-elev);
}

.contact-card a {
  font-weight: 700;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--input);
}

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

.form button {
  justify-self: start;
  cursor: pointer;
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  color: var(--gold);
  font-weight: 600;
}

.form-note.is-error {
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
}

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

@media (max-width: 900px) {
  .hero,
  .discipline,
  .exhibit,
  .about-grid,
  .contact,
  .principles,
  .classes,
  .people {
    grid-template-columns: 1fr;
  }

  .discipline:nth-of-type(even) .discipline-copy,
  .exhibit:nth-of-type(even) .exhibit-copy {
    order: 0;
  }

  .hero {
    align-items: start;
  }

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

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 1.4rem;
    width: min(1120px, calc(100% - 1.2rem));
  }

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

  .nav-panel {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.35rem 0.2rem 0.3rem;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

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

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .theme-toggle {
    padding-inline: 0.55rem;
  }

  .header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
}

@media (min-width: 761px) {
  .header-tools {
    display: contents;
  }
}

@media (max-width: 560px) {
  .people,
  .principles,
  .classes {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.6rem);
  }

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

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

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: none;
  }
}
