/* Instrument Sans, latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans, latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader, latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader, latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The page is a light box: films (the scans) sit dark on a cool, lit panel. In dark mode it is the reading room. */
:root {
  --box: #eaf1f5;
  --ink: #142530;
  --muted: #4e6472;
  --base: #2f6690; /* the blue tint of X-ray film */
  --rule: #c9d7df;
  --film: #000;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --box: #0f161b; --ink: #dce7ed; --muted: #8fa3ae; --base: #7fb2d9; --rule: #24333c; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--box);
  color: var(--ink);
  font: 400 1.0625rem/1.55 'Instrument Sans', system-ui, sans-serif;
}
a { color: var(--base); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--base); outline-offset: 3px; border-radius: 2px; }

.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: grid;
  gap: 2rem;
  row-gap: 1.75rem;
  grid-template-areas: "mark" "series" "intro" "films" "foot"; /* on a phone the scan comes first */
}

.mark { grid-area: mark; display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .01em; }
.mark img { width: 2rem; height: 2rem; }

.intro { grid-area: intro; max-width: 34rem; }
h1 {
  margin: 0 0 1.25rem;
  font: 500 clamp(2.75rem, 7vw, 4.75rem)/1 'Newsreader', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
}
.spec { margin: 0 0 1.75rem; color: var(--muted); font-size: 1.125rem; line-height: 1.45; }
.serv { margin: 0 0 1.75rem; font-size: 1.25rem; line-height: 1.4; max-width: 26ch; }
.contact { margin: 0; }
.contact span { display: block; color: var(--muted); font-size: .9375rem; }
.contact a { font-size: 1.125rem; overflow-wrap: anywhere; }

figure { margin: 0; }
.series { grid-area: series; max-width: 32rem; }
.series img, .films img { display: block; width: 100%; height: auto; background: var(--film); border-radius: 3px; }
.series img { aspect-ratio: 1; cursor: pointer; }
.scan { position: relative; }
#play {
  position: absolute; right: .6rem; bottom: .6rem;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  background: rgb(0 0 0 / .55); color: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35);
}
#play svg { fill: currentColor; }
#play[data-state="playing"] .i-play, #play[data-state="paused"] .i-pause { display: none; }
.series figcaption { margin-top: .6rem; }
figcaption { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }

.films { grid-area: films; max-width: 32rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.films img { aspect-ratio: 4 / 5; object-fit: cover; } /* side by side: the same size */
.films figcaption { margin-top: .45rem; }

.foot { grid-area: foot; border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--muted); font-size: .9375rem; }
.foot p { margin: 0; }

@media (min-width: 56rem) {
  .page {
    min-height: 100vh;
    padding: 2.5rem 2rem;
    column-gap: 3rem;
    row-gap: 2.5rem;
    grid-template-columns: minmax(17rem, 1.15fr) minmax(0, 1.25fr) minmax(0, .6fr); /* the CT stays about twice the films */
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "mark mark mark" "intro series films" "foot foot foot";
    align-items: center;
  }
  .films { grid-template-columns: 1fr; gap: 1.5rem; }
  .films img { aspect-ratio: auto; }
}

/* A phone: the scan runs edge to edge, like a screen of its own. */
@media (max-width: 33.99rem) {
  .series { margin: 0 -1rem; max-width: none; }
  .series img { border-radius: 0; }
  .series figcaption { padding: 0 1rem; }
  .mark { margin-bottom: -.25rem; }
}
