@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f7f5ea;
  --white: #fffdf6;
  --ink: #172c24;
  --muted: #495a50;
  --green: #25503e;
  --night: #122e25;
  --warm: #e8cd81;
  --rule: #d7dacb;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .97; }
h3 { font-size: clamp(2.05rem, 4vw, 3.35rem); line-height: 1; }
h2 em { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id], article[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 7.5rem, 75rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: 1rem; z-index: 3; padding: .7rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.header { background: var(--paper); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; font: 600 .88rem/1.2 var(--sans); }
.brand small { display: block; margin-top: .2rem; font: 600 .68rem/1.1 var(--sans); text-transform: uppercase; letter-spacing: .15em; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; background: white; padding: .19rem; border: 1px solid var(--rule); border-radius: .4rem; }
.header nav { display: flex; align-items: center; gap: clamp(.9rem, 3.1vw, 2.7rem); font-size: .86rem; font-weight: 600; }
.header nav a { text-decoration: none; white-space: nowrap; }
.header nav a:hover, .header .nav-auditions[aria-current] { text-decoration: underline; }
.header .nav-auditions { color: var(--green); }
.header .nav-contact { padding: .52rem 1.1rem; border: 1px solid var(--green); border-radius: 2rem; color: var(--green); }
.header .nav-contact:hover, .header .nav-contact[aria-current] { background: var(--green); color: white; text-decoration: none; }

.hero { position: relative; isolation: isolate; background: var(--night); color: var(--white); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: max(37rem, min(48vw, 54rem), calc(100svh - 84px));
  padding-block: clamp(3.5rem, 8vw, 8rem) clamp(5rem, 8vw, 8rem);
  pointer-events: none;
}
.hero-content { min-width: 0; max-width: 36rem; pointer-events: auto; }
.hero h1 { font-size: clamp(3.8rem, 7.4vw, 7.3rem); text-shadow: 0 2px 24px #07171060; }
.hero h1 em { display: block; white-space: nowrap; }
.carousel { position: absolute; inset: 0; }
.carousel-frame { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.carousel-frame::before, .carousel-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.carousel-frame::before {
  background: var(--slide-image, url("images/couronne.png")) center 36% / cover no-repeat;
  filter: blur(24px) saturate(.76);
  transform: scale(1.06);
}
.carousel-frame img {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(68%, 100rem);
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 23%);
}
.carousel-frame img[data-src] { object-position: center 79%; }
.carousel-frame::after {
  background: linear-gradient(90deg, #081a13fa 0%, #081a13e5 20%, #081a13a0 33%, #081a1330 47%, transparent 62%),
              linear-gradient(0deg, #081a13b8, transparent 27%);
}
.carousel-bar {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.carousel-controls { display: flex; gap: .4rem; flex: 0 0 auto; }
.carousel-controls button { width: 44px; height: 44px; display: grid; place-items: center; background: #122e2599; color: var(--warm); border: 1px solid var(--warm); border-radius: 50%; font: 500 1.1rem/1 var(--sans); cursor: pointer; }
.carousel-controls button:hover { background: var(--warm); color: var(--night); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .71rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-eyebrow { color: var(--warm); margin-bottom: 1.35rem; }
.hero-eyebrow span { height: 1px; width: 27px; background: currentColor; }
h1 { font-size: clamp(4rem, 8.1vw, 8rem); line-height: .88; text-wrap: balance; }
h1 em { color: var(--warm); }
.hero-copy { max-width: 32ch; margin-top: 1.55rem; color: #f5f0dc; font-size: clamp(1rem, 1.8vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem 1.55rem; margin-top: 1.75rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .9rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 2rem; font-size: .84rem; line-height: 1.15; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.button span, .text-link span { font-size: 1.1em; }
.button-light { color: var(--night); background: var(--white); }
.button-light:hover { background: var(--warm); }
.button-dark { color: #fff; background: var(--green); }
.button-dark:hover { background: #17392c; }
.button-outline { color: var(--green); border-color: var(--green); }
.button-outline:hover { color: white; background: var(--green); }
.text-link { display: inline-flex; align-items: baseline; gap: .45rem; font-size: .86rem; font-weight: 700; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.choir { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 9vw, 8.5rem); align-items: start; padding-block: clamp(4rem, 8vw, 7rem); }
.section-label { color: var(--green); margin-bottom: .9rem; }
.choir-copy { padding-top: 1.95rem; color: var(--muted); max-width: 48ch; }
.choir-copy p + p { margin-top: .9rem; }
.choir-copy .text-link { color: var(--green); margin-top: 1.2rem; }

.concerts { background: #edf0e4; padding-block: clamp(3.4rem, 7vw, 6.2rem); }
.concerts-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.65rem; }
.concerts-heading .text-link { color: var(--green); }
.event { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 4vw, 3.1rem); background: var(--white); border: 1px solid var(--rule); padding: clamp(1.2rem, 3vw, 2.15rem); }
.event-date { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: .8rem; border-right: 1px solid var(--rule); color: var(--green); }
.event-date strong { font: 400 4.3rem/.8 var(--serif); }
.event-date span { margin-top: .55rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.event-info p { color: var(--muted); margin-top: .5rem; }
.event-info .event-meta { color: var(--green); font-size: .83rem; font-weight: 700; }
.event-status { color: var(--muted); font-size: .85rem; font-weight: 600; }

.join { background: var(--paper); }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding-block: clamp(3.5rem, 7vw, 6.4rem); }
.join p { color: var(--muted); margin-top: .9rem; }

.footer { background: var(--night); color: var(--white); padding-top: 2.1rem; }
.footer-main, .footer-note { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .85rem; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { border-top: 1px solid #4c6256; margin-top: 1.75rem; padding-block: .85rem; color: #d9e4d7; font-size: .74rem; }

.contact-hero { background: radial-gradient(ellipse at 93% 0, #25503e, transparent 62%), var(--night); color: var(--white); padding-block: clamp(3.6rem, 8vw, 7.5rem); }
.contact-hero h1 { font-size: clamp(4rem, 9.5vw, 8rem); }
.contact-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; padding-block: clamp(3.5rem, 7vw, 6rem) 2.75rem; }
.contact-primary { padding: clamp(1.3rem, 4vw, 2.6rem); background: var(--white); border-top: 2px solid var(--green); }
.contact-primary h2 { font-size: clamp(2.8rem, 5vw, 4.55rem); }
.contact-primary p, .contact-topics p { color: var(--muted); margin-block: .85rem 1.15rem; }
.email-address { display: block; width: fit-content; overflow-wrap: anywhere; font-size: .86rem; margin-top: .95rem; }
.contact-primary .contact-phone { margin: .45rem 0 0; font-size: .86rem; }
.contact-phone a { color: var(--green); }
.contact-topics h3 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-topics article + article { border-top: 1px solid var(--rule); margin-top: 1.45rem; padding-top: 1.45rem; }
.contact-topics .text-link { color: var(--green); }
.contact-topics article:last-child .text-link { margin-top: .65rem; }

.audition-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); }
.audition-intro h2 { font-size: clamp(2.7rem, 5.5vw, 4.8rem); }
.audition-intro p { color: var(--muted); margin-top: 1rem; max-width: 46ch; overflow-wrap: anywhere; }
.audition-intro a { color: var(--green); }
.audition-form { border: 1px solid var(--rule); border-top: 2px solid var(--green); background: var(--white); padding: clamp(1.15rem, 3.5vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.audition-form label { display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem; color: var(--ink); font-size: .85rem; font-weight: 600; }
.audition-form input, .audition-form textarea { width: 100%; min-width: 0; border: 1px solid #87958a; border-radius: .3rem; background: #fff; color: var(--ink); font: 400 1rem/1.3 var(--sans); padding: .68rem .75rem; }
.audition-form input { min-height: 46px; }
.audition-form textarea { resize: vertical; }
.form-note { margin-block: 1.15rem .8rem; color: var(--muted); font-size: .85rem; }
.audition-form button { cursor: pointer; }
.draft { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.15rem; }
.draft-message { margin-bottom: .4rem; font-size: .88rem; }
.draft .text-link { color: var(--green); }
.draft details { margin-top: .65rem; }
.draft summary { cursor: pointer; color: var(--muted); font-size: .83rem; width: fit-content; }
.draft label { margin-block: .5rem .35rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 4.25rem); }
  .event { grid-template-columns: 7rem minmax(0, 1fr) auto; }
}
@media (max-width: 740px) {
  .hero-inner { align-items: flex-end; min-height: max(39.5rem, calc(100svh - 84px)); padding-block: clamp(17.5rem, 51vw, 25rem) 5.5rem; }
  .hero h1 { font-size: clamp(3.5rem, 10vw, 5.5rem); }
  .hero h1 em { display: inline; }
  .carousel-frame img {
    width: 100%;
    height: 72%;
    object-position: center 12%;
    mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  }
  .carousel-frame img[data-src] { object-position: center 83%; }
  .carousel-frame::after { background: linear-gradient(0deg, #081a13fa 0%, #081a13eb 25%, #081a13bb 50%, #081a1336 67%, transparent 84%); }
  .audition-body { grid-template-columns: 1fr; gap: 1.45rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2.4rem); }
  .hero-inner { min-height: max(39.5rem, calc(100svh - 110px)); }
  .header-inner { flex-wrap: wrap; padding-block: .65rem; gap: .5rem; min-height: 70px; }
  .header .brand { gap: .55rem; font-size: .82rem; }
  .header .brand small { font-size: .58rem; }
  .header .brand-mark { width: 40px; height: 40px; }
  .header nav { width: 100%; justify-content: space-between; gap: .4rem; font-size: .8rem; }
  .header .nav-contact { padding: .44rem .68rem; }
  .choir, .contact-body { grid-template-columns: 1fr; gap: 1.4rem; }
  .choir-copy { padding-top: 0; }
  .event { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .event-date strong { font-size: 3.5rem; }
  .event-date span { font-size: .61rem; }
  .event-link, .event-status { grid-column: 2; justify-self: start; }
  .join-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 450px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-hero h1 { font-size: clamp(3.3rem, 12vw, 4rem); }
}
@media (max-width: 365px) {
  .hero h1 { font-size: clamp(2.85rem, 14.6vw, 3.5rem); }
  .footer-main { flex-wrap: wrap; }
}
@media (max-width: 740px) and (orientation: portrait) {
  .hero { display: flex; flex-direction: column; }
  .carousel { position: relative; inset: auto; order: -1; }
  .carousel-frame { position: relative; inset: auto; height: min(100vw, 33rem); }
  .carousel-frame::before { content: none; }
  .carousel-frame::after {
    content: "";
    bottom: auto;
    height: clamp(5rem, 27vw, 7.25rem);
    background: linear-gradient(180deg, #081a13dc, #081a13b5 76%, transparent);
  }
  .carousel-frame img { inset: 0; width: 100%; height: 100%; object-position: center; mask-image: none; }
  .carousel-frame img[data-src] { object-position: center 79%; }
  .carousel-bar { position: relative; inset: auto; padding-top: .65rem; }

  .hero-inner { position: static; z-index: auto; display: block; min-height: 0; padding-block: .65rem 2.5rem; }
  .hero .hero-eyebrow { margin-bottom: .8rem; }
  .hero h1 {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    padding: .5rem .7rem 0;
    font-size: clamp(1.875rem, 11.5vw, 3.5rem);
    line-height: .87;
    letter-spacing: -.048em;
    text-align: center;
    text-shadow: 0 1px 4px #081a13, 0 2px 12px #081a13d9;
    pointer-events: none;
  }
  .hero-copy { margin-top: .95rem; }
  .hero-actions { gap: .8rem 1.15rem; margin-top: 1.2rem; }
}

@media (min-width: 520px) and (max-width: 740px) and (orientation: portrait) {
  .carousel-frame::after { height: 4.75rem; }
  .hero h1 { font-size: clamp(2.25rem, 7.2vw, 3.25rem); }
  .hero h1 br { display: none; }
}

@media (max-width: 740px) and (orientation: portrait) and (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: portrait-title-in .55s ease-out both; }

  @keyframes portrait-title-in {
    from { opacity: 0; transform: translateX(-1.15rem); }
    to { opacity: 1; transform: translateX(0); }
  }
}

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