/*
 * baklot.ai. The product's own tokens (paper, carbon violet, grease-pencil red,
 * League Gothic over Courier Prime), laid out as the cutting room: dailies on
 * a light table, a shot report, a lab control strip, a stopped flatbed, a can
 * label, a call sheet. Both faces are under the SIL Open Font License 1.1,
 * see fonts/OFL.txt.
 */

@font-face { font-family: "League Gothic"; src: url("fonts/league-gothic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #EEEFEA;
  --sheet: #F8F8F4;
  --ink: #1A1A1C;
  --ink2: #4C4D52;
  --violet: #4A3D8F;
  --hair: #D0CFC7;
  --red: #B8232F;
  --canary: #F2E8A6;
  --pink: #F1D3D3;
  --film: #0E0E10;
  --film-ink: #E9E8E1;
  --film-dim: #A3A29B;
  --gothic: "League Gothic", "Arial Narrow", sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --gut: clamp(20px, 4.4vw, 64px);
  --gap: 28px;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--type); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, ol, dl, dd { margin: 0; }
h1, h2 { font-family: var(--gothic); font-weight: 400; letter-spacing: .004em; text-wrap: balance; }
h2 { font-size: clamp(44px, 5.4vw, 84px); line-height: .94; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
code, pre { font-family: var(--type); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the single call to action, a typed tab rather than a pill */
.cue { display: inline-block; padding: 15px 22px 14px; background: var(--ink); color: var(--sheet); font: 700 16px/1 var(--type); text-decoration: none; border: 1px solid var(--ink); }
.cue:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* grease pencil on typed words */
.ringed, .struck { position: relative; display: inline-block; padding: 3px 9px 2px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ringed svg, .struck svg { position: absolute; left: -9px; top: -7px; width: calc(100% + 18px); height: calc(100% + 14px); fill: none; stroke: var(--red); stroke-width: 2.1; stroke-linecap: round; overflow: visible; pointer-events: none; }
.struck svg { left: -2px; top: -3px; width: calc(100% + 4px); height: calc(100% + 6px); }

/* masthead, laid over the dailies */
.masthead { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px var(--gut); color: var(--film-ink); }
.wordmark { font: 400 38px/1 var(--gothic); letter-spacing: .012em; color: inherit; text-decoration: none; }
.masthead nav a { font: 700 15px/1 var(--type); color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* 1. dailies on the light table */
.dailies { position: relative; background: var(--film); color: var(--film-ink); }
.dailies-photo { position: relative; }
.dailies-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 66% 38%; }
.dailies-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 14 16 / .55) 0%, rgb(14 14 16 / 0) 26%, rgb(14 14 16 / 0) 62%, rgb(14 14 16 / 1) 100%); }
.dailies-copy { position: relative; padding: 4px var(--gut) 56px; }
.dailies h1 { font-size: clamp(56px, 8.6vw, 132px); line-height: .9; max-width: 11.5em; }
.lead { margin-top: 24px; max-width: 35em; font-size: 17.5px; }
.cue-block { margin-top: 30px; }
.dailies .cue { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dailies .cue:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cue-block p { margin-top: 14px; max-width: 31em; font-size: 14.5px; line-height: 1.55; color: var(--film-dim); }

/* 2. the shot report */
.desk { padding: 72px var(--gut) 84px; }
.desk-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 50%; }
.desk-copy { margin-top: 40px; }
.desk-copy > p { margin-top: 22px; max-width: 37em; }
.report { margin: 34px 0 30px; background: var(--sheet); border: 1px solid var(--hair); }
.report figcaption { padding: 13px 16px 11px; border-bottom: 2px solid var(--violet); font-size: 14px; line-height: 1.4; color: var(--violet); }
.report table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dept verdict" "look look"; align-items: center; padding: 14px 16px 15px; border-bottom: 1px solid var(--hair); }
.report tbody tr:last-child { border-bottom: 0; }
.report tbody th { grid-area: dept; text-align: left; font-weight: 700; }
.report tbody td:nth-child(2) { grid-area: look; margin-top: 6px; color: var(--ink2); }
.report tbody td:last-child { grid-area: verdict; padding-right: 8px; }

/* 3. control clips */
.controls { padding: 0 var(--gut) 88px; }
.controls-photo { margin-top: 30px; }
.controls-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.controls-copy { margin-top: 30px; max-width: 38em; }
.pair { width: 100%; margin: 26px 0 28px; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--hair); }
.pair caption { caption-side: top; padding: 0 0 9px; text-align: left; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.pair th { padding: 15px 16px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--hair); }
.pair td { padding: 15px 20px; text-align: right; border-bottom: 1px solid var(--hair); }
.pair tr:last-child th, .pair tr:last-child td { border-bottom: 0; }

/* 4. the hold, on a stopped flatbed */
.hold { background: var(--film); color: var(--film-ink); }
.hold-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; }
.hold-copy { padding: 40px var(--gut) 76px; }
.hold-copy p { margin-top: 22px; max-width: 26em; font-size: 18px; }

/* 5. money and keys */
.ledger { padding: 76px var(--gut) 88px; }
.ledger-copy > p { margin-top: 22px; max-width: 37em; }
.slip { margin: 30px 0 4px; padding: 16px 18px 18px; background: var(--pink); border-top: 1px solid #D9AFAF; border-bottom: 1px solid #D9AFAF; }
.slip figcaption { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.slip pre { margin: 10px 0 0; font-size: 15px; line-height: 1.4; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-photo { margin-top: 40px; }
.ledger-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }

/* 6. the can */
.vault { padding: 0 var(--gut) 88px; }
.vault-copy > p { margin-top: 22px; max-width: 37em; }
.vault-stage { margin-top: 34px; }
.vault-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 38% 50%; }
.can-label { position: relative; margin: -36px 12px 0; padding: 18px 18px 20px; background: #F5F3EB; border: 1px solid #D8D5C9; transform: rotate(-.8deg); }
.can-label figcaption { padding-bottom: 12px; border-bottom: 2px solid var(--violet); font-size: 14px; line-height: 1.45; color: var(--violet); }
.can-label dl > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; padding: 9px 0 8px; border-bottom: 1px solid var(--hair); }
.can-label dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.can-label dt { font-size: 12.5px; line-height: 1.9; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.can-label dd { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.can-label code { font-weight: 700; }

/* 7. the call sheet */
.call { padding: 0 var(--gut) 96px; }
.call-sheet { padding: 30px 22px 30px; background: var(--canary); border: 1px solid #D8CD8C; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 13px 0 14px; border-top: 1px solid rgb(26 26 28 / .16); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 28px/1 var(--gothic); color: var(--violet); }
.steps b { display: block; }
/* Both the title and the note belong in the text column. A bare text node here
   becomes an anonymous grid item, which auto-places into the 2.6em number column
   and wraps one word per line. CSS cannot address an anonymous item, so the note
   is an element on purpose. */
.steps li > * { grid-column: 2; }
.call-cue { margin-top: 26px; }
.call-photo { margin-top: 28px; }
.call-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 50%; }

/* tail */
.tail { padding: 46px var(--gut) 40px; background: var(--film); color: var(--film-ink); }
.tail-mark { font: 400 58px/.9 var(--gothic); letter-spacing: .012em; }
.tail-line { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tail-note { margin-top: 16px; font-size: 13.5px; color: var(--film-dim); }

@media (min-width: 700px) {
  body { font-size: 17.5px; }
  .lead { font-size: 19px; }
  .report table { font-size: 15.5px; }
  .report thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .report thead tr { display: grid; grid-template-columns: 10.5em minmax(0, 1fr) 7.5em; padding: 10px 16px 8px; border-bottom: 1px solid var(--hair); }
  .report thead th { font: 700 11.5px/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); text-align: left; }
  .report thead th:last-child { text-align: center; }
  .report tbody tr { grid-template-columns: 10.5em minmax(0, 1fr) 7.5em; grid-template-areas: "dept look verdict"; align-items: start; }
  .report tbody td:nth-child(2) { margin-top: 0; padding-right: 18px; }
  .report tbody td:last-child { justify-self: center; align-self: center; padding-right: 0; }
  .can-label { margin: -64px 40px 0 auto; max-width: 30em; padding: 22px 26px 24px; }
  .call-sheet { padding: 40px 40px 42px; }
}

@media (min-width: 1100px) {
  .masthead { padding-top: 24px; }
  .wordmark { font-size: 42px; }

  .dailies { display: grid; min-height: min(100svh, 1040px); }
  .dailies-photo { position: absolute; inset: 0; }
  .dailies-photo img { height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
  .dailies-photo::after { background: linear-gradient(90deg, rgb(14 14 16 / .9) 0%, rgb(14 14 16 / .62) 33%, rgb(14 14 16 / 0) 56%), linear-gradient(0deg, rgb(14 14 16 / .5) 0%, rgb(14 14 16 / 0) 34%); }
  .dailies-copy { align-self: end; max-width: 820px; padding: 150px var(--gut) clamp(56px, 8vh, 96px); }

  .desk, .controls, .ledger, .vault, .call, .vault-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .hold-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }

  .desk { padding-top: 148px; padding-bottom: 150px; align-items: start; }
  .desk-photo { grid-column: 1 / span 5; position: sticky; top: 32px; }
  .desk-photo img { aspect-ratio: 4 / 5; object-position: 64% 50%; }
  .desk-copy { grid-column: 7 / span 6; margin-top: 0; }

  .controls { row-gap: 52px; padding-bottom: 150px; }
  .controls h2 { grid-column: 1 / span 9; }
  .controls-photo { grid-column: 1 / span 8; margin-top: 0; }
  .controls-copy { grid-column: 9 / span 4; margin-top: 0; font-size: 16px; }

  .hold-photo img { aspect-ratio: 21 / 9; object-position: 50% 30%; }
  .hold-copy { padding-top: 56px; padding-bottom: 128px; }
  .hold-copy h2 { grid-column: 1 / span 7; }
  .hold-copy p { grid-column: 9 / span 4; margin-top: 0; }

  .ledger { padding-top: 150px; padding-bottom: 150px; align-items: start; }
  .ledger-copy { grid-column: 1 / span 6; }
  .ledger-photo { grid-column: 8 / span 5; margin-top: 150px; }
  .ledger-photo img { aspect-ratio: 4 / 5; object-position: 36% 50%; }

  .vault { row-gap: 0; padding-bottom: 160px; }
  .vault-copy { grid-column: 1 / span 7; }
  .vault-stage { grid-column: 1 / -1; margin-top: 52px; align-items: center; }
  .vault-photo { grid-column: 1 / span 9; grid-row: 1; }
  .vault-photo img { aspect-ratio: 16 / 10; }
  .can-label { grid-column: 8 / span 5; grid-row: 1; margin: 0; max-width: none; }

  .call { align-items: stretch; padding-bottom: 170px; }
  .call-sheet { grid-column: 1 / span 7; padding: 52px 56px 56px; }
  .call-photo { grid-column: 8 / span 5; margin-top: 0; }
  .call-photo img { height: 100%; aspect-ratio: auto; min-height: 480px; }

  .tail { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .tail-mark { grid-row: span 2; font-size: 76px; }
  .tail-line { margin-top: 0; }
  .tail-note { margin-top: 0; }
}

/* Not found. Same masthead and tail as the front, a short column in between. */
body.gone { min-height: 100vh; display: flex; flex-direction: column; }
/* The masthead is --film-ink because on the front page it sits over the dark hero
   photograph. Here the ground is paper, so inheriting that gives 1.06:1 and the
   wordmark disappears. Measured, not guessed. */
body.gone .masthead { position: static; color: var(--ink); }
.gone-main { flex: 1; max-width: 620px; padding: 90px 26px 120px; }
.gone-main h1 { font: 400 clamp(54px, 9vw, 92px)/.92 var(--gothic); margin: 0 0 18px; }
.gone-cue { margin-top: 30px; }
