/*
 *  GALLERY INDEX — Landing Page Explorations
 *
 *  THE IDEA
 *  A Swiss annual-report contents page. The versions inside all speak
 *  serif — Georgia, Palatino, Times, Cambria — so the index speaks
 *  Helvetica: the curatorial voice, not another exhibit. Tabular numerals,
 *  a hairline grid, copper squares as the only ornament. One device does
 *  the talking: each entry's name is set in the typeface of its own
 *  version, so the index doubles as a specimen sheet.
 *
 *  TYPE
 *  Helvetica Neue / Helvetica / Arial for everything structural — the only
 *  register none of the versions claims. Georgia, Palatino, Times New
 *  Roman, and Cambria appear only in the entry names, as specimens.
 *
 *  SCALE
 *  H1 clamp(2rem, 4.5vw, 3.25rem) bold, tight tracking. Entry numerals
 *  clamp(1.5rem, 3vw, 2.25rem) light, tabular. Entry names clamp(1.3rem,
 *  2.4vw, 1.75rem) in the version's own serif. Body 0.95–1rem / 1.6.
 *  Rules are all 1px hairlines; the only heavy mark is the copper square.
 *
 *  PALETTE (WCAG AA, verified)
 *  ink #181614 on paper #faf9f7 ......... 17.2 : 1
 *  muted #57534c on paper ...............  7.3 : 1
 *  copper #7f4329 on paper ..............  7.3 : 1
 *  faint #6b665e on paper ...............  5.4 : 1
 */

/* ─── TOKENS ─────────────────────────────────────────────────────── */

:root {
  --paper:  #faf9f7;
  --ink:    #181614;
  --muted:  #57534c;
  --faint:  #6b665e;
  --copper: #7f4329;
  --copper-deep: #63341f;
  --rule:   #ddd9d1;

  --sans:    'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif;
  --georgia: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
  --palatino:'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --times:   'Times New Roman', 'Times', 'Liberation Serif', 'Nimbus Roman', serif;
  --cambria: Cambria, Georgia, 'Times New Roman', serif;

  --shell: 68rem;
}

/* ─── RESET & 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(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-deep);
}

::selection {
  background: var(--copper);
  color: var(--paper);
}

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

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
}

/* ─── MASTHEAD ───────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.1rem;
}

.masthead-logo img {
  height: 22px;
  width: auto;
}

.masthead-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ─── LAYOUT ─────────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: minmax(15rem, 5fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.intro {
  position: sticky;
  top: 2rem;
}

/* ─── INTRO ──────────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sq {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--copper);
}

.intro-h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── FACT BLOCK ─────────────────────────────────────────────────── */

.facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.fact {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ─── ENTRIES ────────────────────────────────────────────────────── */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 3rem 13rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.entry:first-child {
  border-top: 1px solid var(--ink);
  padding-top: 0;
}

.entry-num {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--copper);
}

.entry-thumb {
  display: block;
  text-decoration: none;
}

.entry-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.entry-thumb:hover img {
  border-color: var(--copper);
}

.entry-shot-tag {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.entry-thumb:hover .entry-shot-tag {
  color: var(--copper);
}

.entry-name {
  margin: 0 0 0.2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.entry-name a {
  color: var(--ink);
  text-decoration: none;
}

.entry-name a::after {
  content: "\2192";
  margin-left: 0.4em;
  font-family: var(--sans);
  font-size: 0.8em;
  color: var(--copper);
}

.entry-name a:hover {
  color: var(--copper);
}

.entry-credit {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.entry-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* specimen faces — each entry name in its version's own typeface */
.name--georgia  { font-family: var(--georgia); }
.name--palatino { font-family: var(--palatino); }
.name--times    { font-family: var(--times); }
.name--cambria  { font-family: var(--cambria); }

/* pending slots — no face until the version exists */
.entry--pending {
  border-top-style: dashed;
}

.entry--pending .entry-num {
  color: var(--faint);
}

.entry--pending .entry-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.entry-status {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem 2.25rem;
}

.footer-logo {
  height: 18px;
  width: auto;
  opacity: 0.7;
}

.footer-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .intro {
    position: static;
  }

  .entry:first-child {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
  }
}

@media (max-width: 620px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .entry-thumb {
    max-width: 20rem;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}
