/* ==========================================================================
   The Classics Classroom — stylesheet
   You should not need to edit this file to change words or prices.
   Text lives in the .html pages; prices and resources live in
   assets/js/content.js. See EDITING-GUIDE.md.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Colour, drawn from the photographs: Aegean sky, marble in shade,
     sunlit Sicilian limestone. */
  --ink:       #16283C;
  --ink-soft:  #2A3D4F;
  --sea:       #2C5F80;
  --sea-deep:  #1F4356;
  --paper:     #FBFAFA;
  --shade:     #E4E7E6;
  --shade-lt:  #F1F3F2;
  --honey:     #C8882E;
  --honey-dk:  #9E6817;
  --olive:     #6F7F5E;

  --text:      #1E2E3E;
  --text-soft: #536374;
  --rule:      rgba(22, 40, 60, .16);
  --rule-soft: rgba(22, 40, 60, .09);

  /* Subject colours. These do real work: they tag resources and subjects
     consistently across the site. */
  --c-latin: var(--honey);
  --c-greek: var(--sea);
  --c-civ:   var(--olive);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* The name only. A light geometric face, set in wide capitals. */
  --name:  'Jost', 'Futura', 'Century Gothic', var(--sans);

  --measure: 34rem;          /* comfortable line length for serif prose */
  --wrap: 72rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --step: clamp(3.5rem, 8vw, 6.5rem);   /* vertical rhythm between sections */
  --r: 3px;                              /* restrained, architectural radius */
}

/* --------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.66;
  font-variant-numeric: oldstyle-numeric;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--honey-dk); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2.5px solid var(--honey);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: .6rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r);
  font-family: var(--sans); font-size: .9rem; transition: top .2s;
}
.skip:focus { top: .6rem; color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------ 3. LAYOUT HELPERS */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(50rem, 100% - var(--gutter) * 2); }

.section { padding-block: var(--step); }
.section--tight { padding-block: calc(var(--step) * .62); }
.section--shade { background: var(--shade-lt); }
.section--ink { background: var(--ink); color: #E8EEF3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #F3D9AC; }

.lede {
  font-size: clamp(1.13rem, 1rem + .6vw, 1.42rem);
  line-height: 1.52;
  color: var(--text-soft);
  max-width: 38rem;
}
.prose { max-width: var(--measure); }
.prose p + h3 { margin-top: 2em; }

.kicker {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--honey-dk);
  margin: 0 0 1.1rem;
  letter-spacing: 0;
}

/* The subject's name above its description, in that subject's own colour —
   the same coding used on the home page tiles and the resource cards. */
/* Each subject block is titled by the subject itself, in that subject's own
   colour, with the descriptive phrase as a smaller line beneath it. The body
   text below is unchanged. */
.subject-title {
  font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--subject-colour, var(--honey-dk));
  margin: 0 0 .12em;
}
.subject-strap {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + .85vw, 1.58rem);
  line-height: 1.28;
  letter-spacing: -.008em;
  color: var(--ink);
  margin: 0 0 1.15rem;
}

/* --------------------------------------- 4. THE FLUTING — the site's motif
   A band of fine vertical lines, borrowed from the flutes of a Doric column.
   Used as a divider and as a separator between facts. Nothing else decorates. */
.flute {
  height: 13px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg,
              var(--rule) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.flute--wide { height: 18px; background-size: auto; }
.section--ink .flute { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 8px); }

/* ------------------------------------------------------------- 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: .95rem; font-weight: 500; line-height: 1;
  padding: .82em 1.35em;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--honey); color: #26190A; border-color: var(--honey); }
.btn--primary:hover { background: var(--honey-dk); border-color: var(--honey-dk); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn--quiet { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--quiet:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { font-size: .875rem; padding: .7em 1.1em; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* -------------------------------------------------------------- 6. HEADER */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 5rem;
}
.brand {
  color: var(--ink); text-decoration: none;
  margin-right: auto;
  display: inline-flex; align-items: center; gap: .75rem;
}

/* Two letters are drawn rather than typed: the A loses its crossbar and the E
   its upright, as on the reference. They are cut to Jost's own metrics at this
   weight, so they sit in the line like any other capital. */
.gl { display: inline-block; vertical-align: baseline; fill: currentColor; }
.gl--a { width: .66em; height: .73em; }
.gl--e { width: .55em; height: .70em; }

/* The wordmark: geometric capitals, widely tracked, on two lines.
   The second line sits back a little, as on the reference. */
.brand__name {
  display: flex; flex-direction: column;
  font-family: var(--name);
  font-weight: 400;
  font-size: .96rem;
  line-height: 1.16;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__name > span:last-child { opacity: .62; }
/* The owl on the column, drawn into the page so that it takes the colour of
   the text beside it — ink in the header, white when the header sits over the
   hero. Drawn inline rather than loaded as a file, because a browser will not
   fetch it for a page opened straight off the disk. */
.brand__owl {
  width: 2.2rem; height: 3.1rem; flex: none;
  align-self: center;
  overflow: visible;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--sans); font-size: .95rem; font-weight: 400;
  color: var(--text); text-decoration: none;
  padding-block: .3rem;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--honey); }
.nav a[aria-current='page'] { border-bottom-color: var(--ink); color: var(--ink); }
.nav .btn { margin-left: .4rem; border-bottom: 0; }
.nav .btn:hover { border-bottom: 0; }

.nav-toggle { display: none; }

/* Transparent header sitting over the home hero */
.has-hero .site-head {
  position: absolute; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(10,22,34,.55), rgba(10,22,34,0));
  border-bottom-color: transparent;
}
.has-hero .brand,
.has-hero .nav a { color: #fff; }
.has-hero .nav a:hover { color: #fff; }
.has-hero .nav a[aria-current='page'] { border-bottom-color: rgba(255,255,255,.8); }

@media (max-width: 62rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--sans); font-size: .92rem;
    background: none; border: 1px solid var(--rule); border-radius: var(--r);
    color: inherit; padding: .55rem .8rem; cursor: pointer;
  }
  .has-hero .nav-toggle { border-color: rgba(255,255,255,.5); color: #fff; }
  .nav-toggle__bars { display: block; width: 16px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 40px -22px rgba(16,32,48,.45);
    padding: .5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); }
  .has-hero .nav a { color: var(--text); }
  .nav .btn { margin: .9rem 0 0; align-self: flex-start; }
}

/* ---------------------------------------------------------------- 7. HERO
   The one bold moment on the site: the pointer carries a warm light across
   the stone, the way the sun moves over a temple through the afternoon. */
.hero {
  position: relative;
  min-height: min(90svh, 46rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  --lx: 50%; --ly: 40%;
}
.hero__stage { position: absolute; inset: 0; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) brightness(.96) contrast(1.02);
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__img.is-active { opacity: 1; }

.hero__light, .hero__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.hero__light {
  background: radial-gradient(34rem 34rem at var(--lx) var(--ly),
              rgba(255,239,208,.62), rgba(255,228,184,.22) 40%, rgba(255,222,172,0) 70%);
  mix-blend-mode: soft-light;
}
.hero__glow {
  background: radial-gradient(18rem 18rem at var(--lx) var(--ly),
              rgba(255,246,226,.30), rgba(255,240,210,0) 65%);
  mix-blend-mode: screen;
}
.hero.is-lit .hero__light, .hero.is-lit .hero__glow { opacity: 1; }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,20,32,.82) 0%, rgba(8,20,32,.42) 32%, rgba(8,20,32,.06) 62%),
    linear-gradient(to right, rgba(8,20,32,.45), rgba(8,20,32,0) 62%);
}
.hero__in {
  position: relative;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(2.8rem, 7vw, 5rem);
  color: #fff;
}
.hero h1 {
  color: #fff;
  max-width: 17ch;
  margin-bottom: .35em;
  text-shadow: 0 2px 26px rgba(6,16,26,.35);
}

/* The name, set large, with the fluting and the strapline locked beneath it. */
.hero__brand {
  font-family: var(--name);
  font-size: clamp(2.5rem, 1rem + 6.9vw, 6.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .105em;
  text-transform: uppercase;
  max-width: none;
  margin: 0 0 .28em;
  display: flex; flex-direction: column;
  text-shadow: 0 2px 26px rgba(6,16,26,.5);
}
.hero__brand > span:last-child { opacity: .82; }
/* Bigger than the lines under it, smaller than the strapline above. */
.hero__subjects {
  font-size: clamp(1.25rem, 1rem + 1.05vw, 1.85rem);
  line-height: 1.3;
  color: #fff;
  margin: 0 0 .45rem;
  letter-spacing: -.008em;
  text-shadow: 0 1px 18px rgba(6,16,26,.45);
}

.hero__rule {
  width: clamp(5.5rem, 14vw, 9rem);
  height: 11px;
  border: 0;
  margin: 0 0 1rem;
  background: repeating-linear-gradient(90deg, var(--honey) 0 1.6px, transparent 1.6px 7px);
}
.hero__strap {
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 .85rem;
  letter-spacing: -.008em;
  text-shadow: 0 2px 20px rgba(6,16,26,.4);
}
.hero__sub {
  font-size: clamp(1.12rem, 1rem + .7vw, 1.5rem);
  line-height: 1.46;
  color: rgba(255,255,255,.92);
  /* Wide enough that the three written lines each hold on one line. On a
     phone the longest will still wrap — there is no room for it otherwise. */
  max-width: 43rem;
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 18px rgba(6,16,26,.45);
}
.hero .btn-row { gap: .55rem; }

/* Small dots letting the visitor move through the photographs themselves */
.hero__dots {
  position: absolute; right: var(--gutter); bottom: 1.6rem;
  display: flex; gap: .55rem; z-index: 3;
}
.hero__dot {
  width: 8px; height: 26px; padding: 0;
  border: 0; border-radius: 1px; cursor: pointer;
  background: rgba(255,255,255,.34);
  transition: background-color .3s ease;
}
.hero__dot[aria-current='true'] { background: rgba(255,255,255,.95); }
.hero__dot:hover { background: rgba(255,255,255,.7); }

@media (max-width: 40rem) {
  .hero { min-height: min(86svh, 40rem); }
  .hero__dots { display: none; }
}

/* ----------------------------------------- 8. CREDENTIALS BAND (home)
   Three facts, divided by the same fluting. No big numbers, no cards. */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--rule-soft);
}
.creds__item {
  padding: 2.5rem clamp(1rem, 3vw, 2.2rem);
  position: relative;
}
.creds__item + .creds__item::before {
  content: ''; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 13px;
  background: repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px 8px);
}
.creds__yrs { font-size: 1.32rem; line-height: 1.25; margin: 0 0 .55rem; color: var(--ink); }
.creds__what { font-family: var(--sans); font-size: .95rem; color: var(--text-soft); margin: 0; line-height: 1.6; }

@media (max-width: 48rem) {
  .creds { grid-template-columns: 1fr; }
  .creds__item { padding: 1.35rem 0; }
  .creds__item + .creds__item::before {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 13px;
    background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px);
  }
}

/* ------------------------------------------------------------- 9. SPLITS */
.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
/* Flipped, the picture moves to the right — and the column widths swap with
   it, so the text keeps the wider column either way. */
.split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
/* Text leads, the picture supports — for sections with a lot to say. */
.split--text-led { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
@media (max-width: 52rem) { .split--text-led { grid-template-columns: 1fr; } }


/* Equal columns, for short parallel pieces of text. */
.cols-3, .cols-2 { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 h3, .cols-2 h3 { font-size: 1.22rem; margin: 0 0 .5rem; }
@media (max-width: 52rem) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; gap: 1.8rem; }
}
.split__fig { margin: 0; }
.split__fig img { border-radius: var(--r); }
.split__cap {
  font-family: var(--sans); font-size: .82rem; color: var(--text-soft);
  margin-top: .7rem; line-height: 1.45;
}
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--flip > :first-child { order: 0; }
  .split__fig { max-width: 22rem; }
}

/* --------------------------------------------------- 10. SUBJECT TILES */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r);
  text-decoration: none; color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.tile img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1), filter .5s ease;
  filter: saturate(.9) brightness(.86);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); filter: saturate(1) brightness(.95); }
.tile__body {
  position: absolute; inset: auto 0 0 0;
  padding: 1.3rem 1.25rem 1.2rem;
  background: linear-gradient(to top, rgba(8,20,32,.88), rgba(8,20,32,.1));
}
.tile h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.45rem; }
.tile p { font-family: var(--sans); font-size: .87rem; color: rgba(255,255,255,.84); margin: 0; line-height: 1.5; }
.tile::after {
  content: ''; position: absolute; left: 1.25rem; top: 1.1rem;
  width: 22px; height: 4px;
  background: var(--tile-colour, var(--honey));
}
@media (max-width: 52rem) { .tiles { grid-template-columns: 1fr; } .tile img { aspect-ratio: 16 / 10; } }

/* --------------------------------------------------------- 11. PHOTO BAND */
.band { position: relative; overflow: hidden; background: var(--ink); }
.band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.68);
}
.band__in {
  position: relative;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(4rem, 11vw, 8rem);
  color: #fff;
}
.band__quote {
  font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.35rem);
  line-height: 1.32;
  max-width: 24ch;
  margin: 0;
  text-shadow: 0 2px 22px rgba(6,16,26,.4);
}
.band__by {
  font-family: var(--sans); font-size: .88rem;
  color: rgba(255,255,255,.88); margin-top: 1.2rem;
  text-shadow: 0 1px 10px rgba(6,16,26,.75);
}

/* ------------------------------------------------------ 12. PAGE HEADERS */
.page-head { padding-block: clamp(2.8rem, 7vw, 5rem) clamp(1.8rem, 4vw, 2.8rem); }
.page-head h1 { max-width: 20ch; }

/* A small portrait beside the page heading. The picture takes a fixed, modest
   column so the heading and opening line keep the size they have elsewhere. */
.page-head--withpic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(11rem, 22vw, 19rem);
  gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: center;
}
.page-head__fig { margin: 0; }
.page-head__fig img { width: 100%; border-radius: var(--r); }
.page-head__fig--tall { justify-self: end; max-width: 15rem; }
/* With a picture beside it the heading has its own column, so it can use the
   whole of that column rather than the narrower measure used on a full-width
   page heading. */
.page-head--withpic h1 { max-width: none; }
/* A much longer heading is set a little smaller, so it does not tower over
   the opening line and the picture beside it. */
.page-head--long h1 { font-size: clamp(1.95rem, 1.25rem + 2.8vw, 3.4rem); }
@media (max-width: 46rem) {
  /* Stacked, it reads as a byline picture above the heading, aligned with it. */
  .page-head--withpic { grid-template-columns: 1fr; gap: 0; }
  .page-head__fig { order: -1; justify-self: start; max-width: 16rem; margin-bottom: 1.5rem; }
  .page-head__fig--tall { max-width: 11rem; }
}

/* --------------------------------------------- 12b. EPIGRAPH
   A quotation set the way a facing-page edition prints it: the Latin on the
   left, the translation on the right, divided by the same column fluting. */
.epigraph { margin: 0; max-width: 64rem; margin-inline: auto; }
.epigraph__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  position: relative;
}
.epigraph__pair::before {
  content: ''; position: absolute; top: .4rem; bottom: .4rem; left: 50%;
  width: 13px; transform: translateX(-50%);
  background: repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px 8px);
}
.epigraph__latin {
  font-size: clamp(1.14rem, 1rem + .72vw, 1.6rem);
  font-style: italic;
  line-height: 1.58;
  color: var(--ink);
  margin: 0;
}
.epigraph__en {
  font-size: clamp(1.02rem, .97rem + .38vw, 1.2rem);
  line-height: 1.66;
  color: var(--text-soft);
  margin: 0;
}
.epigraph__by {
  font-family: var(--sans); font-size: .88rem; color: var(--text-soft);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}
@media (max-width: 52rem) {
  /* Stacked, the divider belongs on the translation's top edge — a midpoint
     rule would not land on the join, because the two blocks differ in height. */
  .epigraph__pair { grid-template-columns: 1fr; gap: 0; }
  .epigraph__pair::before { display: none; }
  .epigraph__en { position: relative; margin-top: 1.6rem; padding-top: 1.6rem; }
  .epigraph__en::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 13px;
    background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px);
  }
}

/* A single point that belongs to a whole section rather than one column. */
.note-wide {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem);
  line-height: 1.6;
}

/* --------------------------------------------------------- 13. PRICE LIST */
.prices { border-top: 1px solid var(--rule); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.price-row__level { font-size: 1.28rem; margin: 0 0 .25rem; color: var(--ink); }
.price-row__detail { font-family: var(--sans); font-size: .93rem; color: var(--text-soft); margin: 0; max-width: 42ch; line-height: 1.55; }
.price-row__rate {
  font-size: 1.65rem; color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.price-row__rate span { font-family: var(--sans); font-size: .8rem; color: var(--text-soft); margin-left: .3rem; }
.price-notes { margin-top: 2rem; padding: 0; list-style: none; max-width: 42rem; }
.price-notes li {
  font-family: var(--sans); font-size: .93rem; color: var(--text-soft);
  line-height: 1.6; padding-left: 1.4rem; margin-bottom: .85rem; position: relative;
}
.price-notes li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--honey) 0 1.5px, transparent 1.5px 4px);
}

/* --------------------------------------------------------- 14. FACT LIST */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.facts li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .3rem 1.5rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.facts dt, .facts b {
  font-family: var(--sans); font-size: .84rem; font-weight: 500;
  color: var(--honey-dk); font-variant-numeric: lining-nums;
}
.facts span { color: var(--text); }
@media (max-width: 40rem) { .facts li { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 14b. STEPS
   Numbered because booking genuinely is a sequence: first this, then that. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .2rem 1.1rem;
  padding: 1.3rem 0; border-top: 1px solid var(--rule-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-soft); }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--sans); font-size: .85rem; font-variant-numeric: lining-nums;
  color: var(--honey-dk);
  width: 1.9rem; height: 1.9rem; margin-top: .1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 50%;
}
.steps h3 { font-size: 1.14rem; margin: 0 0 .3rem; }
.steps p { font-family: var(--sans); font-size: .93rem; color: var(--text-soft); line-height: 1.6; margin: 0; }

/* --------------------------------------------------------- 15. RESOURCES */
.filters {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--rule-soft);
  align-items: center;
}
.filter-set { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-set__label {
  font-family: var(--sans); font-size: .82rem; color: var(--text-soft);
  margin-right: .3rem;
}
.chip {
  font-family: var(--sans); font-size: .88rem; line-height: 1;
  padding: .55em .9em;
  border: 1px solid var(--rule); border-radius: 100px;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[data-subject='Latin'][aria-pressed='true'] { background: var(--c-latin); border-color: var(--c-latin); color: #26190A; }
.chip[data-subject='Greek'][aria-pressed='true'] { background: var(--c-greek); border-color: var(--c-greek); color: #fff; }
.chip[data-subject='Classical Civilisation'][aria-pressed='true'] { background: var(--c-civ); border-color: var(--c-civ); color: #fff; }

.filter-count { font-family: var(--sans); font-size: .88rem; color: var(--text-soft); margin-left: auto; }

.res-licence {
  font-family: var(--sans); font-size: .9rem; color: var(--text-soft);
  margin: 1.4rem 0 0; max-width: 46rem; line-height: 1.55;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 2.6vw, 2.2rem);
  margin-top: 2.6rem;
  list-style: none; padding: 0;
}
.res {
  display: flex; flex-direction: column;
  border-top: 2px solid var(--res-colour, var(--rule));
  padding-top: 1rem;
}
.res__img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--shade); }
.res__tags {
  font-family: var(--sans); font-size: .78rem;
  color: var(--res-colour, var(--text-soft));
  margin: .95rem 0 .4rem;
}
.res__tags i { font-style: normal; color: var(--text-soft); }
.res h3 { font-size: 1.16rem; line-height: 1.28; margin: 0 0 .5rem; }
.res p { font-family: var(--sans); font-size: .9rem; line-height: 1.58; color: var(--text-soft); margin: 0 0 1.1rem; }
.res__includes {
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-family: var(--sans); font-size: .87rem; line-height: 1.55; color: var(--text-soft);
}
.res__includes li { position: relative; padding-left: 1.15rem; margin-bottom: .55rem; }
.res__includes li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 8px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--res-colour, var(--honey)) 0 1.4px, transparent 1.4px 4px);
}
.res__school {
  font-family: var(--sans); font-size: .8rem; color: var(--text-soft);
  margin: .55rem 0 0;
}
.res__status {
  font-family: var(--sans); font-size: .82rem; line-height: 1;
  padding: .7em 1.1em; border: 1px dashed var(--rule); border-radius: var(--r);
  color: var(--text-soft); white-space: nowrap;
}
.res__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .3rem;
}
.res__price { font-size: 1.32rem; color: var(--ink); font-variant-numeric: lining-nums; }
.res__price i { font-family: var(--sans); font-style: normal; font-size: .72rem; color: var(--text-soft); margin-left: .35rem; }
.res__licence {
  font-family: var(--sans); font-size: .78rem; line-height: 1.45;
  color: var(--text-soft); margin: .75rem 0 0;
}
.res__empty { font-family: var(--sans); color: var(--text-soft); padding: 3rem 0; }

/* ------------------------------------------------- 15b. REVIEWS (home)
   A strip of cards drifting slowly right to left, full width, fading out at
   both edges. Each card is headed by the same coloured rule as a resource
   card, in its subject's colour. The motion itself is in site.js. */
.reviews { overflow: hidden; }
.reviews__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.reviews__head h2 { margin: 0; }
.reviews__ctrl { display: flex; gap: .45rem; }
.reviews__btn {
  width: 2.6rem; height: 2.6rem; padding: 0;
  display: grid; place-items: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 50%;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.reviews__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.reviews__btn:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.reviews__btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reviews__btn .rv-play { display: none; fill: currentColor; stroke: none; }
.reviews__btn[aria-pressed='true'] .rv-pause { display: none; }
.reviews__btn[aria-pressed='true'] .rv-play { display: inline; }

.reviews__viewport {
  overflow: hidden;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews__track {
  list-style: none; margin: 0; padding: .2rem 0;
  display: flex; align-items: flex-start;
  gap: var(--rv-gap, clamp(1.1rem, 2.4vw, 1.8rem));
  width: max-content;
  will-change: transform;
}
.review {
  flex: 0 0 auto;
  width: clamp(16.5rem, 78vw, 23rem);
  margin: 0;
  padding: 1.35rem 1.45rem 1.4rem;
  background: var(--paper);
  border-top: 2px solid var(--rv-colour, var(--honey));
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 1px 0 var(--rule-soft);
  -webkit-user-select: none; user-select: none;
}
.review__mark {
  display: block; height: .55em; margin-bottom: .35rem;
  font-size: 3.4rem; line-height: 1; color: var(--rv-colour, var(--honey));
}
.review__quote { margin: 0 0 1.15rem; font-size: 1.08rem; line-height: 1.55; color: var(--text); }
.review__by { margin: 0; font-family: var(--sans); font-size: .86rem; line-height: 1.4; color: var(--ink); font-weight: 500; }
.review__role { display: block; font-weight: 400; color: var(--text-soft); font-size: .8rem; margin-top: .15rem; }
.review__sample {
  display: inline-block; margin-left: .5rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--honey-dk); border: 1px dashed currentColor; border-radius: var(--r); padding: .1em .45em;
  vertical-align: .1em;
}
/* Without motion — reduced-motion settings, or only one review — the strip
   becomes an ordinary row the visitor scrolls themselves. */
.reviews.is-static .reviews__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none;
  padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-width: thin;
}
.reviews.is-static .review { scroll-snap-align: start; }
.reviews.is-single .reviews__ctrl { display: none; }

/* ------------------------------------------------------------- 16. FORMS */
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field > label { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink); }
.field .hint { font-family: var(--sans); font-size: .82rem; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem;
  color: var(--text); background: #fff;
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: .78rem .85rem;
  width: 100%;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); }
.buy {
  margin: 0; padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--rule); border-top: 2px solid var(--honey); border-radius: 0 0 var(--r) var(--r);
  display: grid; gap: 1rem; min-width: 0;
}
.buy legend { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink); padding: 0 .4rem; margin-left: -.4rem; }
.buy .hint { font-family: var(--sans); font-size: .82rem; color: var(--text-soft); margin: 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--honey-dk); }
.form__note { font-family: var(--sans); font-size: .85rem; color: var(--text-soft); max-width: 34rem; }
.form__status {
  font-family: var(--sans); font-size: .93rem;
  padding: .85rem 1rem; border-radius: var(--r);
  border: 1px solid var(--rule);
  background: var(--shade-lt);
}
.form__status[data-state='ok'] { border-color: var(--olive); background: #F0F4EC; color: #33422A; }
.form__status[data-state='error'] { border-color: #B4472E; background: #FBEFEC; color: #7C2E1C; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------ 17. CONTACT */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(2.4rem, 6vw, 4.5rem);
  align-items: start;
}
.contact-aside { font-family: var(--sans); font-size: .95rem; }
.contact-aside h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .5rem; }
.contact-aside p { color: var(--text-soft); line-height: 1.6; }
.contact-aside .flute { margin: 1.6rem 0; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- 18. FOOTER */
.site-foot { background: var(--ink); color: #C3D0DA; }
.site-foot a { color: #E6EDF2; text-decoration: none; }
.site-foot a:hover { color: #F3D9AC; text-decoration: underline; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2.8rem, 6vw, 4rem) 2.2rem;
}
.foot-grid h4 {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: #90A3B2; margin: 0 0 .9rem;
}
.foot-brand {
  color: #fff; margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.foot-brand .brand__name { font-size: .92rem; }
.foot-owl { width: 1.5rem; height: 2.1rem; flex: none; overflow: visible; }
.foot-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .93rem; }
.foot-list li { margin-bottom: .55rem; }
.foot-blurb { font-family: var(--sans); font-size: .93rem; line-height: 1.65; max-width: 28ch; color: #A8B9C6; }
.foot-social { display: flex; gap: .8rem; margin-top: 1.1rem; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r);
}
.foot-social a:hover { border-color: #F3D9AC; }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center;
  padding-block: 1.3rem 2rem;
  border-top: 1px solid rgba(255,255,255,.13);
  font-family: var(--sans); font-size: .84rem; color: #8FA2B1;
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-left: auto; }
@media (max-width: 52rem) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot-bottom nav { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------- 19. LEGAL PAGES */
.legal { max-width: var(--measure); }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal__date { font-family: var(--sans); font-size: .88rem; color: var(--text-soft); }

/* ---------------------------------------------------------- 20. GALLERY */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.gallery img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* -------------------------------------------------- 21. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__light, .hero__glow { display: none; }
}

/* ------------------------------------------------------------ 22. PRINT */
@media print {
  .site-head, .site-foot, .hero__dots, .filters, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band img, .hero__img { filter: none; }
}
