/* Aulay Co components. Loaded after tokens.css.
   The chrome is neutral: warm paper, warm ink, hairlines. The colour on a page comes from exhibits and photos.
   Pen red has two jobs: the strike through Cut items (.ac-doc__cut) and Aulay's scanned handwriting on exhibits.
   Commit Mono (.figure, .ac-fig) is for the two price figures and the sticky bar price only.
   Every colour, space, radius and line weight is a token from tokens.json.
   Type sizes come from the type-style classes in tokens.css (.hero, .body, .quote ...), which the markup carries.
   The only literal sizes here are the 720px steps up to .hero-lg and .heading-lg; they mirror those
   two styles in tokens.json, so change both together.
   Breakpoints: 720px (wider hero, side-by-side prices, wide exhibits), 1040px (margin exhibits). */

/* ---------- Page and column ---------- */
.ac-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Resets use :where() so every component class below wins without a fight. */
:where(.ac-page) *, :where(.ac-page) *::before, :where(.ac-page) *::after { box-sizing: border-box; }
:where(.ac-page) :where(em, i) { font-style: italic; }            /* Source Serif 4 Italic, a word or two of emphasis */
:where(.ac-page) :where(p, h1, h2, h3, h4, blockquote, figure) { margin: 0; text-wrap: pretty; }
:where(.ac-page) :where(p + p) { margin-top: var(--space-4); }
:where(.ac-page) :where(img, video) { display: block; max-width: 100%; border-radius: var(--radius-0); }

.ac-wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
.ac-col { max-width: var(--measure); }
.ac-col--wide { max-width: var(--measure-wide); }
.ac-fig { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }   /* sticky bar price only */
.ac-nowrap { white-space: nowrap; }

@media (min-width: 720px) {
  .ac-wrap { padding-left: clamp(var(--space-10), 12vw, var(--page-inset)); padding-right: var(--space-10); }
}

/* ---------- Links and focus ---------- */
.ac-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: var(--stroke-underline);
  text-underline-offset: 3px;
}
.ac-link:hover { text-decoration-thickness: var(--stroke-focus); }
:where(.ac-page) a:focus-visible, :where(.ac-page) button:focus-visible {
  outline: var(--stroke-focus) solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Marked gap: a fact still to verify or write ---------- */
.ac-gap { color: var(--ink-soft); }

/* ---------- Wordmark: plain text, nothing else ---------- */
.ac-wordmark { color: var(--ink); text-decoration: none; white-space: nowrap; }
a.ac-wordmark:hover { text-decoration: underline; text-decoration-thickness: var(--stroke-underline); text-underline-offset: 3px; }

/* ---------- Button (there is one) ---------- */
.ac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-6);
  border: var(--stroke-hair) solid var(--ink);
  border-radius: var(--radius-1);
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ac-button:hover { text-decoration: underline; text-decoration-thickness: var(--stroke-underline); text-underline-offset: 4px; }
.ac-button:active { background: var(--paper); color: var(--ink); }
.ac-button--compact { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 15px; line-height: 22px; }
.ac-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }

/* ---------- Section rule ---------- */
.ac-rule {
  border: 0;
  border-top: var(--stroke-hair) solid var(--rule);
  height: 0;
  margin: var(--space-10) 0;
  max-width: var(--measure);
}
.ac-rule--ink { border-top-color: var(--rule-ink); }
.ac-rule--wide { max-width: var(--measure-wide); }
@media (min-width: 720px) { .ac-rule { margin: var(--space-16) 0; } }

/* ---------- Section ---------- */
.ac-section > h2 { margin-bottom: var(--space-6); }
@media (min-width: 720px) {
  .ac-section > h2.heading { font-size: 29px; line-height: 36px; }   /* = heading-lg */
}

/* ---------- Hero ---------- */
.ac-hero { padding-top: var(--space-4); }
.ac-hero .hero + .hero { margin-top: var(--space-6); }
@media (min-width: 720px) {
  .ac-hero { max-width: var(--measure-wide); padding-top: var(--space-10); }
  .ac-hero .hero { font-size: 40px; line-height: 48px; }              /* = hero-lg */
}
.ac-hero__line { margin-top: var(--space-10); max-width: var(--measure); }
.ac-hero__line + .ac-button-row { margin-top: var(--space-6); }

/* ---------- Price block ---------- */
.ac-price { max-width: var(--measure-wide); }
.ac-price__items { display: grid; grid-template-columns: 1fr; gap: var(--space-10); }
@media (min-width: 720px) {
  .ac-price__items { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.ac-price__item { border-top: var(--stroke-hair) solid var(--rule-ink); padding-top: var(--space-3); }
.ac-price__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.ac-price__fig { margin: 0; }
.ac-price__note { margin-top: var(--space-3); }
.ac-price__terms {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: var(--stroke-hair) solid var(--rule);
  max-width: var(--measure-wide);
}
.ac-price__terms span + span::before { content: " "; }

/* The Recommended label: words only, in ink. Never a pill, badge or mark. */
.ac-rec { white-space: nowrap; color: var(--ink); }

/* ---------- Document block: a sheet of paper ---------- */
.ac-doc {
  max-width: var(--measure-wide);
  background: var(--paper-warm);
  border: var(--stroke-hair) solid var(--rule);
  border-radius: var(--radius-0);
  padding: var(--space-6);
}
@media (min-width: 720px) { .ac-doc { padding: var(--space-10); } }
.ac-doc__head { padding-bottom: var(--space-3); border-bottom: var(--stroke-hair) solid var(--rule-ink); }
.ac-doc__meta { margin-top: var(--space-1); color: var(--ink-soft); }
.ac-doc__sec { display: grid; grid-template-columns: 1fr; padding-top: var(--space-6); }
.ac-doc__h { margin-bottom: var(--space-2); }
.ac-doc__list { list-style: none; margin: 0; padding: 0; }
.ac-doc__list li { padding: var(--space-3) 0; border-bottom: var(--stroke-hair) solid var(--rule); }
/* Pen job one: a strike through each item in the Cut section.
   The words stay ink and readable; the section name says what the strike means. */
.ac-doc__cut {
  text-decoration-line: line-through;
  text-decoration-color: var(--pen);
  text-decoration-thickness: var(--stroke-strike);
  text-decoration-skip-ink: none;
}
@media (min-width: 720px) {
  .ac-doc__sec { grid-template-columns: 9em 1fr; column-gap: var(--space-6); }
  .ac-doc__h { margin-bottom: 0; padding-top: var(--space-3); }
}
.ac-doc__foot { margin-top: var(--space-6); color: var(--ink-soft); }

/* ---------- Exhibit: a real artefact as a figure with a plain caption ----------
   No device frame, no browser chrome, no shadow, no rounded corners, never desaturated.
   Sizes: column (measure), wide (measure-wide), break (exhibit-break, edge to edge on phones),
   margin (exhibit-margin beside its claim from 1040px, inside .ac-claim). */
.ac-exhibit { position: relative; margin-top: var(--space-10); max-width: var(--measure); }
.ac-exhibit__img { display: block; width: 100%; height: auto; }
.ac-exhibit--edge .ac-exhibit__img { border: var(--stroke-hair) solid var(--rule); }
.ac-exhibit__cap { margin-top: var(--space-2); color: var(--ink-soft); max-width: var(--measure); }
.ac-exhibit__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--paper-warm);
  border: var(--stroke-hair) solid var(--rule);
  color: var(--ink-soft);
  text-align: center;
}
.ac-exhibit--wide { max-width: var(--measure-wide); }
.ac-exhibit--break { max-width: none; margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); }
.ac-exhibit--break .ac-exhibit__cap { padding: 0 var(--space-4); }
.ac-exhibit--margin { max-width: 320px; }
@media (min-width: 720px) {
  .ac-exhibit--break { max-width: var(--exhibit-break); margin-left: 0; margin-right: 0; }
  .ac-exhibit--break .ac-exhibit__cap { padding: 0; }
}
/* Pen job two: Aulay's own handwriting, scanned. In place of the caption, or in the right margin from 1040px. */
.ac-exhibit__hand { display: block; max-width: var(--hand-note); width: 100%; height: auto; margin-top: var(--space-2); }
@media (min-width: 1040px) {
  .ac-exhibit__hand--margin { position: absolute; top: 0; left: calc(100% + var(--space-6)); margin-top: 0; }
}

/* A claim and the exhibit that proves it. From 1040px a margin exhibit sits beside the claim. */
.ac-claim > p, .ac-claim__text { max-width: var(--measure); }
.ac-claim + .ac-claim, .ac-claim + .ac-col { margin-top: var(--space-10); }
.ac-claim--side > .ac-exhibit--margin { margin-top: var(--space-6); }
@media (min-width: 1040px) {
  .ac-claim--side { display: grid; grid-template-columns: minmax(0, var(--measure)) var(--exhibit-margin); column-gap: var(--space-10); align-items: start; }
  .ac-claim--side > .ac-exhibit--margin { margin-top: var(--space-1); max-width: var(--exhibit-margin); }
}

/* ---------- Capacity line ---------- */
.ac-capacity__status { margin-top: var(--space-3); }
.ac-capacity__date { color: var(--ink-soft); white-space: nowrap; }

/* ---------- Thin sticky bar ---------- */
.ac-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  min-height: var(--bar-height);
  background: var(--paper);
  border-top: var(--stroke-hair) solid var(--rule-ink);
  visibility: hidden;
}
.ac-bar.is-shown { visibility: visible; }
.ac-bar--static { position: static; visibility: visible; }
.ac-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--bar-height);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  max-width: calc(var(--measure-wide) + var(--page-inset) + var(--space-10));
}
.ac-bar__text { margin: 0; }

/* ---------- Footer ---------- */
.ac-footer {
  border-top: var(--stroke-hair) solid var(--rule-ink);
  padding-top: var(--space-6);
  padding-bottom: var(--space-10);
  max-width: var(--measure);
}
.ac-footer__legal { color: var(--ink-soft); }
.ac-footer__legal + .ac-footer__legal { margin-top: var(--space-1); }

/* ---------- Page header (template) ---------- */
.ac-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); max-width: var(--measure-wide); }
.ac-header__nav { display: flex; gap: var(--space-6); }
.ac-header__email { display: none; }
@media (min-width: 600px) { .ac-header__email { display: inline; } }

/* ---------- Photos: candid, full colour, square corners ---------- */
.ac-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; background: var(--paper-warm); }
.ac-photo-caption { margin-top: var(--space-2); color: var(--ink-soft); }
.ac-photo--square { width: var(--photo-small); height: var(--photo-small); aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; }

/* About block: the wall photo runs large (photo-large), then the claims with their exhibits. */
.ac-about__photo { max-width: var(--photo-large); margin-bottom: var(--space-10); }
.ac-about__photo .ac-photo { aspect-ratio: 4 / 5; object-position: 50% 30%; }
@media (min-width: 720px) {
  .ac-about__photo .ac-photo { aspect-ratio: 5 / 4; object-position: 50% 32%; }
}
.ac-quote { margin: var(--space-10) 0 0; padding: 0; max-width: var(--measure); }
.ac-quote__by { margin-top: var(--space-2); color: var(--ink-soft); }

/* Contact block */
.ac-contact { display: grid; grid-template-columns: var(--photo-small) 1fr; gap: var(--space-4); align-items: start; max-width: var(--measure); }
.ac-contact__body > * + * { margin-top: var(--space-4); }
