/* =========================================================================
   LIGHT TABLE  ·  claireschneider.com
   Class vocabulary: the picture desk and the light table. Prefix lt-.
   Everything re-skinnable lives in the custom properties below.
   No remote font, no CDN, no script.
   ========================================================================= */

:root {

  /* ---- 1. COLOUR --------------------------------------------------------
     Selenium and safelight: cool slate paper, blue-black ink, wine accent.  */
  --paper:        #aeb8b8;   /* the desk surface, mid tone on purpose       */
  --paper-deep:   #9fabab;   /* recessed bands and the footer               */
  --paper-pale:   #cbd3d3;   /* pale reserves, floating slug                */
  --ink:          #111719;   /* headings and body copy                      */
  --ink-soft:     #333f43;   /* captions, stamps, secondary copy            */
  --accent:       #611a25;   /* links, accent rules, focus (safelight wine) */
  --accent-deep:  #3f0f16;   /* hover: always darker than the accent        */
  --rule:         #8b9698;   /* hairlines on the desk                       */
  --void:         #dde3e2;   /* background of long-text reserves            */

  /* ---- 2. TYPE (system stacks only) ------------------------------------ */
  --face-display: Futura, "Futura PT", "Century Gothic", "URW Gothic L", "Twentieth Century", "Nimbus Sans", sans-serif;
  --face-read:    Baskerville, "Baskerville Old Face", "Libre Baskerville", "EB Garamond", Garamond, "Times New Roman", serif;

  --display-weight: 500;
  --display-track:  0.012em;
  --stamp-track:    0.26em;   /* letterspaced small caps of stamps          */

  --body-size: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --body-lead: 1.58;

  /* ---- 3. RHYTHM AND MEASURE ------------------------------------------- */
  --measure:   60ch;                          /* reading width              */
  --wall:      1180px;                        /* desk width, kept narrow    */
  --edge:      clamp(1rem, 3.6vw, 3.6rem);
  --gutter:    clamp(0.8rem, 1.9vw, 1.7rem);  /* between frames             */
  --breath:    clamp(3rem, 6.5vw, 6rem);      /* between runs               */
  --drop:      clamp(1.2rem, 3.2vw, 3.4rem);  /* vertical offset            */

  /* ---- 4. DETAIL -------------------------------------------------------- */
  --corner:    0;      /* square corners are identity; never round them     */
  --hair:      1px solid var(--rule);
  --ease:      170ms ease;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-read);
  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(--face-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.14;
  margin: 0;
}

h1 { font-size: clamp(1.95rem, 1.3rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); }
h4 { font-size: 1.02rem; }

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-deep); }

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

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

/* =========================================================================
   FRAMEWORK
   ========================================================================= */

/* Skip link (accessibility). Do not remove.
   Clipped to 1x1px rather than pushed to left:-9999px: an off-canvas
   absolute box still extends the page's scrollable area on some engines,
   which reads as horizontal overflow on narrow viewports. Clipping avoids
   that while staying invisible until focused. */
.lt-skip {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--ink);
  color: var(--paper-pale);
  z-index: 50;
}
.lt-skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  left: 0.6rem;
  top: 0.6rem;
  padding: 0.7rem 1.1rem;
}

/* Sheet: the usable width of any content area. */
.lt-sheet {
  width: 100%;
  max-width: var(--wall);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* Desk: the vertical stack of the page. */
.lt-desk { display: block; }

/* --- Masthead ------------------------------------------------------------ */
.lt-mast {
  border-bottom: 3px double var(--rule);
  padding-block: clamp(0.9rem, 2vw, 1.6rem);
}
.lt-mast__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem 1.6rem;
}
.lt-logotype {
  font-family: var(--face-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.lt-logotype span {
  display: block;
  font-family: var(--face-read);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.lt-rail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lt-rail a {
  font-family: var(--face-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.lt-rail a:hover,
.lt-rail [aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* --- Trail (breadcrumb) -------------------------------------------------- */
.lt-trail {
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-block: 1.1rem;
}
.lt-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lt-trail li + li::before { content: "\203A"; margin-right: 0.5rem; color: var(--rule); }

/* =========================================================================
   RUN: one section of the page
   ========================================================================= */

.lt-run { margin-top: var(--breath); }

.lt-run__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.6rem);
}
.lt-run__title { max-width: 32ch; }
.lt-run__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

/* Stamp: the grease-pencil mark of the desk, the style marker here. */
.lt-mark {
  display: block;
  font-family: var(--face-display);
  font-size: 0.66rem;
  letter-spacing: var(--stamp-track);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* =========================================================================
   BENCH: the irregular mosaic, six columns
   ========================================================================= */

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

.lt-frame { grid-column: span 3; margin: 0; position: relative; }
.lt-frame--full { grid-column: span 6; }
.lt-frame--wide { grid-column: span 4; }
.lt-frame--half { grid-column: span 3; }
.lt-frame--slim { grid-column: span 2; }

/* Vertical offset: this is what breaks the regular grid. */
.lt-frame--drop  { margin-top: var(--drop); }
.lt-frame--drop2 { margin-top: calc(var(--drop) * 2); }

.lt-frame__window {
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--corner);
}
.lt-frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease), filter var(--ease);
}

/* Aspect ratios. This site leans on panorama, square and column. */
.lt-frame__window--horizontal { aspect-ratio: 4 / 3; }
.lt-frame__window--square     { aspect-ratio: 1 / 1; }
.lt-frame__window--panorama   { aspect-ratio: 21 / 9; }
.lt-frame__window--column     { aspect-ratio: 2 / 3; }

/* Slug: the quiet caption under the frame. Short, never a block of copy. */
.lt-frame__slug {
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: var(--hair);
}
.lt-frame--full .lt-frame__slug,
.lt-frame--wide .lt-frame__slug {
  border-top: 2px solid var(--accent);
}
.lt-frame__name {
  font-family: var(--face-display);
  font-size: clamp(1rem, 0.94rem + 0.42vw, 1.28rem);
  line-height: 1.16;
  margin: 0;
}
.lt-frame--full .lt-frame__name,
.lt-frame--wide .lt-frame__name { font-size: clamp(1.2rem, 0.98rem + 0.9vw, 1.75rem); }

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

.lt-frame:hover .lt-frame__image { transform: scale(1.015); }

.lt-frame__line {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 46ch;
}
.lt-frame__stamp {
  margin: 0.5rem 0 0;
  font-family: var(--face-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Tight variant: bench without long slugs. */
.lt-bench--tight { --gutter: clamp(0.6rem, 1.3vw, 1.1rem); }

/* =========================================================================
   ROSTER: sections as small square tiles
   ========================================================================= */

.lt-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--gutter);
  list-style: none;
  margin: 0;
  padding: 0;
}
.lt-roster__item { position: relative; }
.lt-roster__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-deep);
}
.lt-roster__name {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--face-display);
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
}
.lt-roster__name::after { content: ""; position: absolute; inset: 0; }
.lt-roster__item:hover .lt-roster__name { color: var(--accent); }
.lt-roster__count {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--face-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================================
   DEEP PAGE: the full-width plate leads, the copy follows
   ========================================================================= */

.lt-open {
  padding-block: clamp(1.2rem, 3.2vw, 2.8rem) clamp(1.2rem, 2.6vw, 2.2rem);
  max-width: 48rem;
}
.lt-open__deck {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.24rem);
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 56ch;
}
.lt-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  font-family: var(--face-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Spread: full-window image. Direct child of <article>, never inside a
   .lt-sheet, so full width is structural and never uses 100vw. */
.lt-spread { margin: 0; }
.lt-spread__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}
.lt-spread__image--tall { aspect-ratio: 16 / 9; }
.lt-spread__slug {
  max-width: var(--wall);
  margin-inline: auto;
  padding: 0.7rem var(--edge) 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

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

/* Copy: the reading column, centred on this site. */
.lt-copy {
  max-width: var(--measure);
  margin-top: var(--breath);
}
.lt-copy--centered { margin-inline: auto; }
.lt-copy h2 { margin-top: 2.3rem; }
.lt-copy h3 { margin-top: 1.8rem; }
.lt-copy h2:first-child,
.lt-copy h3:first-child { margin-top: 0; }
.lt-copy ul, .lt-copy ol { padding-left: 1.15rem; }
.lt-copy li { margin-bottom: 0.42em; }
.lt-copy dl { margin: 1.2rem 0; }
.lt-copy dt {
  font-family: var(--face-display);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  margin-top: 1rem;
}
.lt-copy dd { margin: 0.25rem 0 0; color: var(--ink-soft); }

/* Pull: a short quotation between two blocks of copy. */
.lt-pull {
  margin: 2.2rem 0;
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--accent);
  font-family: var(--face-display);
  font-size: clamp(1.12rem, 0.98rem + 0.75vw, 1.55rem);
  line-height: 1.28;
}
.lt-pull cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--face-read);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

/* Box: short reserve on a pale ground. */
.lt-box {
  background: var(--void);
  border-top: 4px solid var(--accent);
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  margin: 2.3rem 0;
}
.lt-box > :last-child { margin-bottom: 0; }

/* Scroll: the only container allowed to scroll sideways. */
.lt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.1rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: var(--hair);
}
.lt-scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.92rem;
}
.lt-scroll th, .lt-scroll td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.lt-scroll th {
  font-family: var(--face-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lt-scroll tr:last-child td { border-bottom: 0; }
.lt-scroll caption { text-align: left; padding-bottom: 0.6rem; }

/* =========================================================================
   SUPPORTS
   ========================================================================= */

.lt-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--face-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
}
.lt-more::after { content: "\203A"; font-size: 1.1em; line-height: 1; }
.lt-more:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* =========================================================================
   BASE (footer)
   ========================================================================= */

.lt-base {
  margin-top: var(--breath);
  background: var(--paper-deep);
  border-top: 3px double var(--rule);
  padding-block: clamp(2.2rem, 5.5vw, 4rem);
}
.lt-base__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 3.6vw, 3.2rem);
}
.lt-base h2 {
  font-size: 0.72rem;
  letter-spacing: var(--stamp-track);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.lt-base ul { list-style: none; margin: 0; padding: 0; }
.lt-base li { margin-bottom: 0.45rem; }
.lt-base a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.lt-base a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.lt-base p { color: var(--ink-soft); font-size: 0.9rem; }
.lt-base__foot {
  margin-top: clamp(1.8rem, 4.5vw, 3rem);
  padding-top: 1.1rem;
  border-top: var(--hair);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* =========================================================================
   RESPONSIVE: the grid folds, nothing ever overflows sideways
   ========================================================================= */

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

@media (max-width: 620px) {
  .lt-bench { grid-template-columns: minmax(0, 1fr); }
  .lt-frame,
  .lt-frame--slim,
  .lt-frame--half,
  .lt-frame--wide,
  .lt-frame--full { grid-column: span 1; }
  .lt-frame--drop,
  .lt-frame--drop2 { margin-top: 0; }
  .lt-pair { grid-template-columns: minmax(0, 1fr); }
  .lt-frame__window--column { aspect-ratio: 3 / 4; }
  .lt-frame__window--panorama { aspect-ratio: 16 / 9; }
  .lt-spread__image { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .lt-frame:hover .lt-frame__image { transform: none; }
}
