@charset "utf-8";
/* ==========================================================================
   Gaborone Academy of Music
   Editorial, conservatoire-prospectus. Mobile first.
   No gradients, no glass, no glow, no rounded feature cards.
   ========================================================================== */

:root {
  --bg:        #F3EBDD;
  --surface:   #EDE3D1;
  --surface-2: #E6DAC4;
  --ink:       #111111;
  --muted:     #6B5B4B;
  --terracotta:#A8553A;
  --gold:      #B38B3F;
  --sky:       #2F5F8F;
  --line:      #D8CBB4;

  --font:      "Work Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap:      1240px;
  --gut:       clamp(1.25rem, 5vw, 4.5rem);
  --rhythm:    clamp(4rem, 11vw, 9rem);

  --band-h:    30px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 760px) { :root { --band-h: 40px; } }

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* a display rule must never beat the hidden attribute */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ---------- type scale ---------- */

.t-display { font-family: var(--font-head); font-size: clamp(2.4rem, 8vw, 4.9rem); line-height: 1.02; letter-spacing: -0.018em; }
.t-xl      { font-family: var(--font-head); font-size: clamp(1.95rem, 5.4vw, 3.2rem); line-height: 1.07; }
.t-lg      { font-family: var(--font-head); font-size: clamp(1.55rem, 3.6vw, 2.2rem); line-height: 1.14; }
.t-md      { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.32; }

.lede {
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
  line-height: 1.6;
  font-weight: 300;
  max-width: 34ch;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.eyebrow--gold { color: var(--gold); }

.tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .15em .6em;
  margin-top: .45rem;
}

.quiet { color: var(--muted); }
.measure { max-width: 62ch; }
.measure--tight { max-width: 46ch; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--rhythm); }
.section--flush { padding-block: 0; }

.band-surface { background: var(--surface); }
.band-ink { background: var(--ink); color: var(--bg); }
.band-ink a { color: var(--bg); }

/* an ivory section set inside the dark page, so forms stay legible */
.band-light { background: var(--bg); color: var(--ink); }
.band-light a { color: var(--ink); }
.band-light .split__label { color: var(--muted); }
.band-light .quiet { color: var(--muted); }
.band-light .field input,
.band-light .field textarea,
.band-light .field select { background: #fff8ec; }

/* The signature element: the weaving band from the founder's artwork,
   tiled as the divider between every section. The band is a clipping frame;
   the tiled layer inside it is what moves, so the slide is a transform and
   never a repaint. */
.weave {
  --tile: var(--band-h);
  position: relative; overflow: hidden;
  height: var(--band-h);
  border: 0; margin: 0;
}
.weave::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(100% + var(--tile) * 4);
  background: url("../img/weave-band.png") repeat-x left top / var(--tile) 100%;
}
.weave--tall { --tile: calc(var(--band-h) * 1.45); height: calc(var(--band-h) * 1.45); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule--gold { border-top-color: var(--gold); }
.rule--sky { border-top: 2px solid var(--sky); width: 84px; margin: 0 auto 1.6rem 0; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .masthead { background: var(--bg); }
}
.page--dark .masthead { background: var(--ink); border-bottom-color: #2a2a2a; }
.page--dark .masthead a { color: var(--bg); }

.masthead__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: .7rem var(--gut);
  display: flex; align-items: center; gap: 1rem;
}

.masthead__mark { flex: 0 0 auto; display: block; }
.masthead__mark img { width: 118px; height: auto; }

.masthead__nav { display: none; }

.masthead__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(.9rem, 1.7vw, 1.7rem);
}
.masthead__nav a {
  text-decoration: none;
  font-size: .745rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .45rem 0;
  display: block;
  position: relative;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem;
  height: 1px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after { transform: scaleX(1); }
.masthead__nav a[aria-current="page"] { color: var(--ink); }
.masthead__nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }
.page--dark .masthead__nav a { color: #9a9088; }
.page--dark .masthead__nav a:hover,
.page--dark .masthead__nav a[aria-current="page"] { color: var(--bg); }

.burger {
  display: inline-flex; align-items: center; gap: .55rem;
  background: none; border: 0; padding: .55rem 0; cursor: pointer;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700;
  color: var(--ink);
  min-height: 44px;
}
.page--dark .burger { color: var(--bg); }
.burger__bars { position: relative; width: 22px; height: 9px; display: block; }
.burger__bars::before, .burger__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.burger__bars::before { top: 0; }
.burger__bars::after { bottom: 0; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-3.75px) rotate(-45deg); }

/* five links fit comfortably from 900px */
@media (min-width: 900px) {
  .masthead__nav { display: block; margin-left: auto; }
  .burger { display: none; }
  .masthead__mark img { width: 136px; }
  .masthead__inner { gap: clamp(1.25rem, 2.6vw, 2.5rem); }
}

/* a hairline across the foot of the masthead, showing how far down the page
   you are. Driven by scaleX, so it costs nothing to animate. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.progress span {
  display: block; height: 100%; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}
.page--dark .progress span { background: var(--gold); }

/* ---------- mobile menu ---------- */

.menu {
  /* below the masthead, so the close button stays visible and reachable */
  position: fixed; inset: 0; z-index: 85;
  background: var(--bg);
  overflow-y: auto;
  padding-top: 4.3rem;
}
.menu[hidden] { display: none; }
.menu__inner { padding: 2rem var(--gut) 3rem; max-width: var(--wrap); margin-inline: auto; }
.menu__list { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: block; padding: .85rem 0; text-decoration: none;
  font-family: var(--font-head); font-size: 1.5rem;
}
.menu__list a[aria-current="page"] { color: var(--terracotta); }
.menu__foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.menu__meta { width: 100%; margin: .75rem 0 0; font-size: .85rem; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: .7rem 1.5rem;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  background: none; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--bg); }
.btn--primary:hover { background: #90462f; border-color: #90462f; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.page--dark .btn--ghost { border-color: var(--bg); color: var(--bg); }
.page--dark .btn--ghost:hover { background: var(--bg); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: baseline; gap: .5rem;
  text-decoration: none;
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: .3rem;
  transition: border-color .25s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--terracotta); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- heroes: one treatment per page ---------- */

.hero { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 7vw, 5rem); }

/* Home: oversized seal offset right, headline left. The image slot sits
   behind the seal and takes over when photography exists. */
.hero--home { overflow: hidden; }
.hero--home .hero__seal {
  position: absolute; top: 50%; right: -18%;
  width: min(62vmin, 520px); transform: translateY(-50%);
  opacity: .13; pointer-events: none; z-index: 0;
}
.hero--home .wrap { position: relative; z-index: 1; }
.hero--home h1 { max-width: 15ch; }
.hero--home .lede { margin-top: 1.8rem; }

/* About: vertical gold rule, numbered principles. */
.hero--rule .wrap {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.1rem, 4vw, 2.5rem);
  padding-right: var(--gut);
  width: auto;                      /* .wrap is 100%; auto keeps the margins honest */
  margin-inline: var(--gut);
}
@media (min-width: 900px) { .hero--rule .wrap { margin-inline: auto; } }

/* Programmes: title left, hairline contents right. */
.hero--split .hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .hero--split .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: end; } }

/* Research: large italic statement on surface, weave running down the edge. */
.hero--statement { background: var(--surface); position: relative; }
.hero--statement::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--band-h);
  background: url("../img/weave-band.png") repeat-y center top / 100% auto;
}
.hero--statement .wrap { padding-left: calc(var(--gut) + var(--band-h)); }
.hero--statement .statement {
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1.22;
  max-width: 20ch; margin: 0;
}

/* Partners: sky rule, names set large as text. */
.partner-names { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.partner-names li {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.partner-names span { display: block; font-family: var(--font); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: .35rem; }

/* Festival: the one dark page. */
.page--dark { background: var(--ink); color: var(--bg); }
.page--dark .quiet { color: #a79c90; }
.page--dark .rule { border-top-color: #333; }
.page--dark .tag { border-color: #444; color: #a79c90; }
.hero--dark { padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero--dark .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--dark:has(.hero__img)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(17,17,17,.95) 0%, rgba(17,17,17,.88) 42%, rgba(17,17,17,.62) 72%, rgba(17,17,17,.45) 100%);
}
@media (max-width: 760px) {
  .hero--dark:has(.hero__img)::after {
    background: linear-gradient(180deg,
      rgba(17,17,17,.94) 0%, rgba(17,17,17,.86) 55%, rgba(17,17,17,.6) 100%);
  }
}
.hero--dark .wrap { position: relative; z-index: 3; }
.hero--dark h1 { max-width: 12ch; }

/* News: minimal index. */
.hero--index { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* People: large name typography. */
.hero--name h1 { max-width: 18ch; }

/* Admissions: form inside the hero. */
.hero--form .hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 940px) { .hero--form .hero__grid { grid-template-columns: 1fr 1fr; } }

/* Contact: form left, details right. */
.hero--contact .hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 940px) { .hero--contact .hero__grid { grid-template-columns: 1.15fr .85fr; } }

.hero--plain { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }


/* ---------- flat vector illustrations ---------- */

/* The SVGs' near-white ground was recoloured to the page's ivory at build
   time, so they sit on the page with no blend mode and no seam. */
.art { margin: clamp(1.6rem, 4vw, 2.6rem) 0; }
.art img { width: 100%; max-width: 560px; height: auto; display: block; }

/* in a hero the drawing is an accent beside the words, never the subject */
.hero .art { margin-top: clamp(1.6rem, 4vw, 2.4rem); opacity: .72; }
.hero .art img { max-width: 300px; }
.hero--dark .art img { max-width: 360px; }
@media (min-width: 900px) {
  .hero .art img { max-width: 360px; }
  .hero--dark .art img { max-width: 440px; }
}
.art--wide { margin-inline: calc(var(--gut) * -1); }
/* line drawings are not used on the dark page: inverted they read as a smudge */
.page--dark .hero .art { display: none; }


/* ---------- imagery ---------- */

/* a full-bleed band of photography between sections */
.plate { position: relative; margin: 0; overflow: hidden; background: var(--surface-2); }
.plate img {
  width: 100%;
  height: clamp(230px, 42vw, 460px);
  object-fit: cover;
  display: block;
}
/* the overlay that keeps anything over a photograph readable */
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,.62) 0%, rgba(17,17,17,.18) 46%, rgba(17,17,17,.05) 100%);
}
.plate__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(.9rem, 3vw, 1.6rem) var(--gut);
  color: var(--bg);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}

/* an image inside a section, not full bleed */
.figure { margin: clamp(1.8rem, 4vw, 2.8rem) 0; }
.figure img { width: 100%; height: auto; display: block; background: var(--surface-2); }
.figure figcaption {
  margin-top: .7rem;
  font-size: .78rem; color: var(--muted); line-height: 1.6;
  border-left: 2px solid var(--gold); padding-left: .8rem;
}

/* a quiet looping video, layered over the still it was made from. The still
   is always there, so the hero is complete before the video loads, on a
   phone, on a metered connection and under reduced motion. */
.hero__video { opacity: 0; transition: opacity 1.6s var(--ease-out); z-index: 1; }
.hero__video.playing { opacity: 1; }
.hero__still { z-index: 0; }
.hero--home:has(.hero__img)::after { z-index: 2; }

/* the home hero with a photograph behind it */
.hero--home .hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  z-index: 0;
}
/* the hero scrim: ivory on the copy side, so the headline stays ink black */
.hero--home:has(.hero__img)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(243,235,221,.97) 0%, rgba(243,235,221,.93) 38%,
    rgba(243,235,221,.55) 62%, rgba(243,235,221,.25) 100%);
}
.hero--home:has(.hero__img) .hero__seal { display: none; }
.hero--home:has(.hero__img) .wrap { z-index: 2; }
@media (max-width: 760px) {
  /* on a phone the copy needs the whole width, so the image sits under a
     heavier wash rather than beside the text */
  .hero--home:has(.hero__img)::after {
    /* strong where the words are, opening up below so the photograph reads */
    background: linear-gradient(180deg,
      rgba(243,235,221,.94) 0%, rgba(243,235,221,.88) 52%,
      rgba(243,235,221,.62) 82%, rgba(243,235,221,.46) 100%);
  }
}

/* a dark page's plate needs no extra darkening at the foot */
.page--dark .plate::after {
  background: linear-gradient(to top, rgba(17,17,17,.75) 0%, rgba(17,17,17,.2) 55%, rgba(17,17,17,.35) 100%);
}

/* ---------- editorial pieces ---------- */

/* two-column prose: a short label column and a wide text column */
.split { display: grid; gap: clamp(1.1rem, 3vw, 2.5rem); }
@media (min-width: 880px) { .split { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); } }
.split__label { font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-top: .5rem; }
@media (min-width: 880px) { .split__label { position: sticky; top: 6rem; align-self: start; } }

/* an index of doorways: rows, not cards */
.doorways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doorways li { border-bottom: 1px solid var(--line); }
.doorways a {
  display: grid; gap: .35rem 2rem; align-items: baseline;
  padding: clamp(1.2rem, 3vw, 1.9rem) 0;
  text-decoration: none;
  transition: padding-left .35s var(--ease);
}
@media (min-width: 820px) { .doorways a { grid-template-columns: 4rem minmax(0, 17rem) minmax(0, 1fr); } }
.doorways a:hover { padding-left: .9rem; }
.doorways__n { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: var(--gold); }
.doorways__t { font-family: var(--font-head); font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.12; }
.doorways__d { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.doorways a:hover .doorways__t { color: var(--terracotta); }

/* the five principles, as a numbered editorial list */
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.principles li { counter-increment: p; display: grid; gap: .4rem 1.5rem; padding: clamp(1.4rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .principles li { grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr); align-items: baseline; } }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--gold);
}
.principles dt, .principles__name { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.7rem); }
.principles__gloss { display: block; font-family: var(--font); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: .3rem; }
.principles__body { color: var(--muted); }

/* hairline table of contents */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1rem 0; text-decoration: none; }
.toc__t { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.toc__m { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.toc a:hover .toc__t { color: var(--terracotta); }

/* a programme entry */
.programme { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.programme:first-of-type { border-top: 0; }
.programme__head { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
@media (min-width: 880px) { .programme__head { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: baseline; } }
.programme__n { font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.programme__body { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 880px) { .programme__body { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); } }

/* a plain feature list with hairlines, never boxes */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li, .facts__row { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; }
@media (min-width: 700px) { .facts li, .facts__row { grid-template-columns: 18rem minmax(0, 1fr); gap: 2rem; align-items: baseline; } }
.facts dt, .facts__k { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.facts dd, .facts__v { margin: 0; color: var(--muted); }

/* FAQ as a definition list */
.faq { margin: 0; }
.faq dt { font-family: var(--font-head); font-size: clamp(1.2rem, 2.8vw, 1.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.faq dd { margin: .6rem 0 1.5rem; color: var(--muted); max-width: 62ch; }

/* news rows */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a, .posts__row { display: grid; gap: .4rem 2.5rem; padding: clamp(1.3rem, 3vw, 2rem) 0; text-decoration: none; }
@media (min-width: 820px) { .posts a, .posts__row { grid-template-columns: 9rem minmax(0, 1fr); } }
.posts__date { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.posts__t { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.15; }
.posts__x { color: var(--muted); margin-top: .4rem; max-width: 60ch; }
.posts a:hover .posts__t { color: var(--terracotta); }

.empty {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--muted);
  max-width: 56ch;
}

/* person */
.person { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 880px) { .person { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); } }
.person__role { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.person__name { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin-bottom: 1.2rem; }

/* pull quote */
.pull {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.3;
  border-left: 2px solid var(--terracotta);
  padding-left: clamp(1rem, 3vw, 1.8rem);
  margin: clamp(2rem, 5vw, 3rem) 0;
  max-width: 28ch;
}

/* ---------- forms ---------- */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .72rem .85rem;
  min-height: 46px;
  transition: border-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.band-surface .field input, .band-surface .field select, .band-surface .field textarea { background: #fff8ec; }
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B5B4B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline-offset: 1px; }
.field__hint { font-size: .8rem; color: var(--muted); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--terracotta); }
.field__err { font-size: .8rem; color: var(--terracotta); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .83rem; color: var(--muted); max-width: 52ch; }
.form__note a { color: var(--muted); }

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--sky);
  padding: 1rem 1.1rem;
  font-size: .95rem;
}
.notice--good { border-left-color: var(--gold); }
.notice--bad { border-left-color: var(--terracotta); }
.notice[hidden] { display: none; }

/* ---------- sign in, create account, reset ---------- */

.authtabs { display: flex; border: 1px solid var(--line); margin-bottom: 1.6rem; }
.authtabs button {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer;
  padding: .7rem .4rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.authtabs button:last-child { border-right: 0; }
.authtabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.authtabs button:hover[aria-selected="false"] { background: var(--surface); color: var(--ink); }

/* ---------- booking ---------- */

.steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 2.5rem; padding: 0; }
.steps li { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.steps li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--muted); }
.steps li[aria-current="step"] { color: var(--ink); }
.steps li[aria-current="step"]::before { background: var(--terracotta); border-color: var(--terracotta); }
.steps li[data-done]::before { background: var(--gold); border-color: var(--gold); }

.choices { display: grid; gap: 0; border-top: 1px solid var(--ink); margin: 0 0 2rem; padding: 0; list-style: none; }
.choices li { border-bottom: 1px solid var(--line); }
.choices button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.15rem 0; display: grid; gap: .3rem 2rem;
  transition: padding-left .3s var(--ease);
}
@media (min-width: 700px) { .choices button { grid-template-columns: minmax(0, 1fr) 7rem; align-items: baseline; } }
.choices button:hover { padding-left: .8rem; }
.choices__t { font-family: var(--font-head); font-size: clamp(1.2rem, 2.8vw, 1.55rem); }
.choices__m { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.choices li[aria-selected="true"] .choices__t { color: var(--terracotta); }

.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; min-width: 72px; min-height: 68px;
  border: 1px solid var(--line); background: none; cursor: pointer;
  padding: .6rem .7rem; text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.day:hover { border-color: var(--muted); }
.day[aria-pressed="true"] { border-color: var(--terracotta); background: var(--surface); }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.day__dow { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.day__n { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; }
.day__mo { display: block; font-size: .68rem; color: var(--muted); }

.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.slot {
  width: 100%; min-height: 54px; cursor: pointer;
  border: 1px solid var(--line); background: none;
  padding: .55rem .7rem; text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.slot:hover { border-color: var(--muted); }
.slot[aria-pressed="true"] { border-color: var(--terracotta); background: var(--surface); }
.slot__main { display: block; font-weight: 700; font-size: .95rem; }
.slot__local { display: block; font-size: .74rem; color: var(--muted); }

.summary { border-top: 1px solid var(--ink); margin-top: 2rem; padding-top: 1.2rem; }

/* ---------- admin ---------- */

.page--app { background: var(--surface); }
.app { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
.app__bar {
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem var(--gut);
}
.app__bar img { width: 104px; }
.app__bar a { color: var(--bg); }
.app__who { margin-left: auto; font-size: .78rem; color: #a79c90; }
.app__body { display: grid; gap: 0; }
.app__body > * { min-width: 0; }   /* or the scrolling nav widens the whole page */
@media (min-width: 900px) { .app__body { grid-template-columns: 220px minmax(0, 1fr); } }
.app__side { background: var(--bg); border-right: 1px solid var(--line); padding: 1.2rem var(--gut); min-width: 0; }
@media (min-width: 900px) { .app__side { padding: 1.8rem 1.2rem; } }
.app__side ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; min-width: 0; }
@media (min-width: 900px) { .app__side ul { display: block; } }
.app__side button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: .6rem .7rem; white-space: nowrap;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); border-left: 2px solid transparent;
}
.app__side button[aria-current="true"] { color: var(--ink); border-left-color: var(--terracotta); background: var(--surface); }
.app__main { padding: clamp(1.5rem, 4vw, 2.5rem) var(--gut); }
@media (min-width: 900px) { .app__main { padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem); } }

.panel { background: var(--bg); border: 1px solid var(--line); padding: clamp(1.1rem, 3vw, 1.8rem); margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--bg); padding: 1.1rem; }
.stat__n { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.stat__l { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: .4rem; }

.rows { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rows th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--ink); }
.rows td { padding: .8rem .6rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.pill { display: inline-block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .2em .55em; border: 1px solid var(--line); }
.pill--new { border-color: var(--terracotta); color: var(--terracotta); }
.pill--pending { border-color: var(--gold); color: var(--gold); }
.pill--confirmed { border-color: var(--sky); color: var(--sky); }
.pill--declined, .pill--archived { color: var(--muted); }

.mini { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; background: none; border: 1px solid var(--line); padding: .45rem .7rem; cursor: pointer; min-height: 40px; margin-top: .3rem; }
.mini:hover { border-color: var(--ink); }
.mini + .mini { margin-left: .3rem; }

/* ---------- footer: one small row ---------- */

.footer { border-top: 1px solid var(--line); margin-top: var(--rhythm); }
.page--dark .footer { border-top-color: #2d2d2d; }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 1.6rem var(--gut) 2.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  align-items: baseline; justify-content: space-between;
}
.footer__c { margin: 0; font-size: .8rem; color: var(--muted); }
.footer__inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0; padding: 0; }
.footer__inner a { font-size: .8rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__inner a:hover { color: var(--ink); border-bottom-color: var(--line); }
.page--dark .footer__c, .page--dark .footer__inner a { color: #9a9088; }
.page--dark .footer__inner a:hover { color: var(--bg); }

/* ---------- the account control ---------- */

.acct { position: relative; margin-left: auto; }
@media (min-width: 900px) { .acct { margin-left: 0; } }

.acct__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-height: 40px;
  border: 1px solid var(--line); background: none; cursor: pointer;
  border-radius: 50%; color: var(--ink); text-decoration: none; padding: 0;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.acct__btn:hover { border-color: var(--ink); }
.acct__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.acct__btn--me { background: var(--terracotta); border-color: var(--terracotta); color: var(--bg);
  font-family: var(--font-head); font-size: 1.02rem; line-height: 1; }
.acct__btn--me:hover { background: #90462f; border-color: #90462f; }
.page--dark .acct__btn { border-color: #3a3a3a; color: var(--bg); }
.page--dark .acct__btn:hover { border-color: var(--bg); }
.page--dark .acct__btn--me { color: var(--bg); }

.acct__menu {
  position: absolute; right: 0; top: calc(100% + .55rem); z-index: 120;
  min-width: 200px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(17,17,17,.13);
  padding: .4rem 0;
}
.acct__menu a {
  display: block; padding: .62rem 1rem; text-decoration: none; color: var(--ink);
  font-size: .82rem; letter-spacing: .04em;
}
.acct__menu a:hover { background: var(--surface); }
.acct__name {
  margin: 0; padding: .55rem 1rem .6rem;
  border-bottom: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.menu__list--quiet { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.menu__list--quiet a { font-family: var(--font); font-size: .95rem; padding: .7rem 0; }

/* ---------- motion ----------
   Slow and calm. Only transform and opacity are animated, so every one of
   these runs on the compositor and stays smooth on a phone. Everything is
   visible at rest: if the script never runs, the page is complete.
   Reduced motion switches all of it off at the bottom of this file. */

:root { --ease-out: cubic-bezier(.16, .84, .44, 1); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

/* headings and lede lines rise a little further and a little later */
.js .reveal h1, .js .reveal h2, .js .reveal .lede { transition-delay: 60ms; }

/* children that stagger in, one after another */
.js .stagger > * { opacity: 0; transform: translateY(14px); }
.js .stagger.in > * {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* the five principles, arriving one by one */
.js .principles li { opacity: 0; transform: translateY(16px); }
.js .principles.in li {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 160ms);
}

/* a very slow drift on the hero photograph, and parallax on top of it */
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.2%, -1%, 0); }
}
.hero__img {
  animation: hero-drift 34s linear infinite alternate;
  will-change: transform;
}

/* full-bleed photographs drift the other way, gently */
@keyframes plate-drift {
  from { transform: scale(1.06) translate3d(0.8%, 0, 0); }
  to   { transform: scale(1.06) translate3d(-0.8%, 0, 0); }
}
.plate img { animation: plate-drift 40s ease-in-out infinite alternate; will-change: transform; }

/* parallax: main.js writes --py, a small number of pixels */
.plate img, .hero__img { translate: 0 var(--py, 0px); }

/* the weaving band, sliding very slowly: four tiles a minute, composited */
@keyframes weave-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--tile) * -4), 0, 0); }
}
.weave::before { animation: weave-slide 60s linear infinite; will-change: transform; }

/* the line drawings breathe, very slightly */
@keyframes art-float {
  from { transform: translate3d(0, -4px, 0); }
  to   { transform: translate3d(0, 4px, 0); }
}
.art img { animation: art-float 14s ease-in-out infinite alternate; will-change: transform; }

/* a decorative seal turns once every few minutes, almost too slow to notice */
@keyframes seal-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero__seal, .person img[aria-hidden="true"] {
  animation: seal-turn 240s linear infinite;
}

/* a photograph lifts very slightly under the pointer */
.plate img, .figure img { transition: transform 1.4s var(--ease-out); }
@media (hover: hover) {
  .plate:hover img, .figure:hover img { transform: scale(1.045); }
}

/* the masthead shrinks and gains a line once the page has moved */
.masthead {
  transition: padding .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .45s var(--ease-out);
}
.masthead__inner { transition: padding .45s var(--ease-out); }
.masthead__mark img { transition: width .45s var(--ease-out); }
body.scrolled .masthead__inner { padding-top: .35rem; padding-bottom: .35rem; }
body.scrolled .masthead__mark img { width: 104px; }
body.scrolled .masthead { box-shadow: 0 1px 0 var(--line); }
@media (min-width: 900px) {
  body.scrolled .masthead__mark img { width: 116px; }
}

/* arriving on a page, and leaving it */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js body { animation: page-in .5s var(--ease-out) both; }
.js body.leaving { opacity: 0; transition: opacity .28s var(--ease-out); }

/* ---------- print ---------- */

@media print {
  .masthead, .menu, .acct { display: none; }
  body { background: #fff; }
}

/* ---------- reduced motion: everything at rest, nothing moving ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in,
  .js .stagger > *, .js .stagger.in > *,
  .js .principles li, .js .principles.in li {
    opacity: 1; transform: none; transition: none; transition-delay: 0s;
  }
  .hero__img, .plate img, .weave::before, .js body,
  .art img, .hero__seal, .person img[aria-hidden="true"] {
    animation: none !important;
  }
  .hero__video { display: none !important; }
  .progress { display: none; }
  .plate img, .hero__img { translate: none; }
  .plate:hover img, .figure:hover img { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
