/* =========================================================================
   showcasereplicas.com
   Vocabulary: the modelling bench and the flight line, prefix spr-
   Derived from the "galerie-visuelle" skeleton, re-skinned in full.
   ========================================================================= */

:root {

  /* ---- 1. COLOUR ------------------------------------------------------- */
  --ground:       #c6b89b;   /* doped-linen sand, the wall itself           */
  --ground-deep:  #bcae93;   /* footer, recesses, image beds                */
  --ground-pale:  #dbd0ba;   /* raised panels, the floating card            */
  --ink:          #191712;   /* headings and running text                   */
  --ink-soft:     #4a4034;   /* captions, notes, secondary text             */
  --accent:       #1d3f6e;   /* roundel blue: links, focus, rules of appui  */
  --accent-hard:  #12294a;   /* hover state, always darker than --accent    */
  --signal:       #7d1f2a;   /* insignia red: stencils and section bars     */
  --rule:         #a2937a;   /* hairlines on the wall                       */
  --void:         #e6dfcd;   /* reserve panels behind long-form blocks      */

  /* ---- 2. TYPE (system stacks only, nothing loaded from anywhere) ------- */
  --type-plate: "Bookman Old Style", Bookman, "URW Bookman L", "Palatino Linotype", Palatino, Georgia, serif;
  --type-body:  "Segoe UI", "Noto Sans", "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --type-spec:  "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --plate-weight: 400;
  --plate-track:  -0.006em;
  --stencil-track: 0.16em;

  --body-size: clamp(0.99rem, 0.95rem + 0.2vw, 1.06rem);
  --body-lead: 1.56;

  /* ---- 3. RHYTHM ------------------------------------------------------- */
  --measure:      68ch;                            /* reading column        */
  --wall:         1320px;                          /* the wall, edge to edge*/
  --edge:         clamp(1rem, 3.6vw, 3.6rem);
  --gutter:       clamp(0.65rem, 1.6vw, 1.5rem);   /* dense salon hang      */
  --breath:       clamp(3rem, 6.5vw, 6rem);
  --offset:       clamp(1.2rem, 3vw, 3.4rem);

  /* ---- 4. DETAIL ------------------------------------------------------- */
  --radius:  0;
  --hair:    1px solid var(--rule);
  --stitch:  2px dashed var(--ink);
  --ease:    170ms ease;
}

/* =========================================================================
   BASE
   ========================================================================= */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--type-body);
  font-size: var(--body-size);
  line-height: var(--body-lead);
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--type-plate);
  font-weight: var(--plate-weight);
  letter-spacing: var(--plate-track);
  line-height: 1.14;
  margin: 0;
}

h1 { font-size: clamp(1.95rem, 1.25rem + 2.7vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); }
h4 { font-size: 1rem; }

p, ul, ol { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-hard); }

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

hr { border: 0; border-top: var(--hair); margin: var(--breath) 0; }

/* =========================================================================
   FRAME
   ========================================================================= */

/* Skip link. Do not remove. */
.spr-overfly {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground-pale);
  padding: 0.7rem 1.1rem;
  z-index: 50;
}
.spr-overfly:focus { left: 0.6rem; top: 0.6rem; }

/* Hull: the usable width of any content zone. */
.spr-hull {
  width: 100%;
  max-width: var(--wall);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.spr-deck { display: block; }

/* --- Cowling (header) ---------------------------------------------------- */
.spr-cowl {
  border-bottom: 3px solid var(--ink);
  padding-block: clamp(0.9rem, 2vw, 1.6rem);
}
.spr-cowl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem 1.6rem;
}
.spr-roundel {
  font-family: var(--type-plate);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  color: var(--ink);
  text-decoration: none;
}
.spr-roundel span {
  display: block;
  font-family: var(--type-spec);
  font-size: 0.64rem;
  letter-spacing: var(--stencil-track);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.spr-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.spr-strip a {
  font-family: var(--type-spec);
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.18rem;
  border-bottom: 2px solid transparent;
}
.spr-strip a:hover,
.spr-strip [aria-current="page"] {
  border-bottom-color: var(--signal);
  color: var(--accent-hard);
}

/* --- Taxiway (breadcrumb) ------------------------------------------------ */
.spr-taxi {
  font-family: var(--type-spec);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-block: 1.1rem;
}
.spr-taxi ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.spr-taxi li + li::before { content: "\203A"; margin-right: 0.5rem; color: var(--rule); }

/* =========================================================================
   BOX ART: the opening image of the home page
   ========================================================================= */

.spr-boxart {
  position: relative;
  margin-top: clamp(1rem, 2.4vw, 2rem);
}
.spr-boxart__view {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ground-deep);
}
.spr-boxart__card {
  background: var(--ground-pale);
  color: var(--ink);
  border-left: 6px solid var(--signal);
  padding: clamp(1.2rem, 2.6vw, 2.3rem);
  max-width: 44rem;
}
.spr-boxart__card p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 50ch;
}

@media (min-width: 900px) {
  .spr-boxart__view { aspect-ratio: 21 / 9; }
  .spr-boxart__card {
    position: absolute;
    left: max(var(--edge), calc((100% - var(--wall)) / 2 + var(--edge)));
    bottom: 0;
    transform: translateY(22%);
    width: min(44rem, 60%);
  }
  .spr-boxart { margin-bottom: clamp(5rem, 10vw, 9rem); }
}

/* =========================================================================
   TRAY: one section of a page
   ========================================================================= */

.spr-tray { margin-top: var(--breath); }

.spr-tray__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  border-top: var(--stitch);
  padding-top: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.spr-tray__title { max-width: 40ch; }
.spr-tray__title h2::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--signal);
  margin-bottom: 0.7rem;
}
.spr-tray__note {
  font-size: 0.79rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

/* Stencil: the small uppercase marker of this site. */
.spr-stencil {
  display: block;
  font-family: var(--type-spec);
  font-size: 0.65rem;
  letter-spacing: var(--stencil-track);
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.5rem;
}

/* =========================================================================
   SHELF: the irregular wall of kits (6 columns)
   ========================================================================= */

.spr-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spr-kit { grid-column: span 3; margin: 0; position: relative; }
.spr-kit--full  { grid-column: span 6; }
.spr-kit--broad { grid-column: span 4; }
.spr-kit--half  { grid-column: span 3; }
.spr-kit--slim  { grid-column: span 2; }

.spr-kit--drop  { margin-top: var(--offset); }
.spr-kit--drop2 { margin-top: calc(var(--offset) * 1.85); }

.spr-kit__bay {
  overflow: hidden;
  background: var(--ground-deep);
  border-radius: var(--radius);
}
.spr-kit__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

/* Frame ratios. Squares, uprights and tall crops lead here. */
.spr-kit__bay--square  { aspect-ratio: 1 / 1; }
.spr-kit__bay--upright { aspect-ratio: 3 / 4; }
.spr-kit__bay--tall    { aspect-ratio: 2 / 3; }
.spr-kit__bay--wide    { aspect-ratio: 4 / 3; }
.spr-kit__bay--strip   { aspect-ratio: 21 / 9; }

.spr-kit__label {
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: var(--hair);
}
.spr-kit__name {
  font-family: var(--type-plate);
  font-size: clamp(1rem, 0.94rem + 0.42vw, 1.28rem);
  line-height: 1.16;
  margin: 0;
}
.spr-kit--full .spr-kit__name,
.spr-kit--broad .spr-kit__name { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem); }

.spr-kit__link { color: var(--ink); text-decoration: none; }
.spr-kit__link:hover { color: var(--accent); }
.spr-kit__link::after { content: ""; position: absolute; inset: 0; }

.spr-kit:hover .spr-kit__art { transform: scale(1.015); }

.spr-kit__note {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  max-width: 46ch;
}
.spr-kit__mark {
  margin: 0.5rem 0 0;
  font-family: var(--type-spec);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spr-shelf--tight { --gutter: clamp(0.5rem, 1.1vw, 1rem); }

/* =========================================================================
   CABINET: the text directory of the main rooms (no thumbnails)
   ========================================================================= */

.spr-cabinet { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.spr-cabinet__entry {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.3rem 1.4rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: var(--hair);
}
.spr-cabinet__no {
  font-family: var(--type-spec);
  font-size: 0.74rem;
  color: var(--signal);
}
.spr-cabinet__name {
  font-family: var(--type-plate);
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
}
.spr-cabinet__name::after { content: ""; position: absolute; inset: 0; }
.spr-cabinet__entry:hover .spr-cabinet__name { color: var(--accent); }
.spr-cabinet__gloss { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 620px) {
  .spr-cabinet__entry { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .spr-cabinet__gloss { grid-column: 2; }
}

/* =========================================================================
   CONTENT PAGE
   ========================================================================= */

.spr-approach {
  padding-block: clamp(1.2rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem);
  max-width: 50rem;
}
.spr-approach__lede {
  font-size: clamp(1.02rem, 0.98rem + 0.45vw, 1.24rem);
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 56ch;
}
.spr-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  font-family: var(--type-spec);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Canopy: the full-width plate. Direct child of <article>, never inside
   .spr-hull. No 100vw anywhere, so no horizontal scrollbar. */
.spr-canopy { margin: 0; }
.spr-canopy__view {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ground-deep);
}
.spr-canopy__view--deep { aspect-ratio: 4 / 3; }
.spr-canopy__label {
  max-width: var(--wall);
  margin-inline: auto;
  padding: 0.7rem var(--edge) 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* Pair: two plates side by side. */
.spr-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin: var(--breath) 0 0;
}
.spr-pair figure { margin: 0; }
.spr-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ground-deep);
}
.spr-pair figcaption {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* Runway: the reading column. Narrow, aligned left against the wall. */
.spr-runway {
  max-width: var(--measure);
  margin-top: var(--breath);
}
.spr-runway h2 { margin-top: 2.5rem; }
.spr-runway h3 { margin-top: 1.8rem; margin-bottom: 0.4rem; }
.spr-runway h2:first-child,
.spr-runway h3:first-child { margin-top: 0; }
.spr-runway h2 + p { margin-top: 0.7rem; }
.spr-runway ul, .spr-runway ol { padding-left: 1.1rem; }
.spr-runway li { margin-bottom: 0.4em; }

/* Spec: the key and value strip. Not in the skeleton. */
.spr-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem 1.6rem;
  margin: var(--breath) 0 0;
  padding: 1.1rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.spr-spec div { margin: 0; }
.spr-spec dt {
  font-family: var(--type-spec);
  font-size: 0.64rem;
  letter-spacing: var(--stencil-track);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spr-spec dd {
  margin: 0.35rem 0 0;
  font-family: var(--type-plate);
  font-size: 1.02rem;
  line-height: 1.3;
}

/* Crib: a definitions block. Not in the skeleton. */
.spr-crib { margin: 2rem 0; padding: 0; }
.spr-crib dt {
  font-family: var(--type-plate);
  font-size: 1.05rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
  margin-top: 1.15rem;
}
.spr-crib dt:first-child { margin-top: 0; }
.spr-crib dd {
  margin: 0.35rem 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Chock: a short block that stops the reader. Double rule, no fill. */
.spr-chock {
  margin: 2.2rem 0;
  padding: 1.1rem 0;
  border-top: 3px solid var(--signal);
  border-bottom: 1px solid var(--signal);
}
.spr-chock > :last-child { margin-bottom: 0; }
.spr-chock h3 { margin-top: 0; }

/* Reserve: a panel on a lighter ground. */
.spr-reserve {
  background: var(--void);
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  margin: 2.2rem 0;
}
.spr-reserve > :last-child { margin-bottom: 0; }

/* Jig: the only container allowed to scroll sideways. */
.spr-jig {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.spr-jig table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.88rem;
}
.spr-jig th, .spr-jig td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spr-jig th {
  font-family: var(--type-spec);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spr-jig td:first-child { font-family: var(--type-spec); font-size: 0.82rem; }
.spr-jig tr:last-child td { border-bottom: 0; }

/* =========================================================================
   LINKS AND ONWARD ROUTES
   ========================================================================= */

.spr-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--type-spec);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}
.spr-more::after { content: "\203A"; font-size: 1.1em; line-height: 1; }
.spr-more:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* Hop: where to go next, as sentences rather than tiles. */
.spr-hop { list-style: none; margin: 0; padding: 0; border-top: var(--stitch); }
.spr-hop li {
  position: relative;
  padding: 0.9rem 0;
  border-bottom: var(--hair);
  max-width: 62ch;
}
.spr-hop a {
  font-family: var(--type-plate);
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
}
.spr-hop a::after { content: ""; position: absolute; inset: 0; }
.spr-hop li:hover a { color: var(--accent); }
.spr-hop p { margin: 0.25rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }

/* =========================================================================
   TARMAC (footer)
   ========================================================================= */

.spr-tarmac {
  margin-top: var(--breath);
  background: var(--ground-deep);
  border-top: 3px solid var(--ink);
  padding-block: clamp(2.2rem, 5vw, 4rem);
}
.spr-tarmac__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.4rem, 3.5vw, 3rem);
}
.spr-tarmac h2 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.spr-tarmac ul { list-style: none; margin: 0; padding: 0; }
.spr-tarmac li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.spr-tarmac a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.spr-tarmac a:hover { border-bottom-color: var(--signal); color: var(--accent-hard); }
.spr-tarmac p { color: var(--ink-soft); font-size: 0.88rem; }
.spr-tarmac__base {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: var(--hair);
  font-family: var(--type-spec);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* =========================================================================
   RESPONSIVE. The grid folds; nothing ever scrolls sideways.
   ========================================================================= */

@media (max-width: 960px) {
  .spr-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spr-kit,
  .spr-kit--half,
  .spr-kit--slim { grid-column: span 2; }
  .spr-kit--broad,
  .spr-kit--full { grid-column: span 4; }
  .spr-kit--drop  { margin-top: calc(var(--offset) / 2); }
  .spr-kit--drop2 { margin-top: calc(var(--offset) / 2); }
}

@media (max-width: 620px) {
  .spr-shelf { grid-template-columns: minmax(0, 1fr); }
  .spr-kit,
  .spr-kit--slim,
  .spr-kit--half,
  .spr-kit--broad,
  .spr-kit--full { grid-column: span 1; }
  .spr-kit--drop,
  .spr-kit--drop2 { margin-top: 0; }
  .spr-pair { grid-template-columns: minmax(0, 1fr); }
  .spr-kit__bay--tall { aspect-ratio: 3 / 4; }
  .spr-boxart__view { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .spr-kit:hover .spr-kit__art { transform: none; }
}
