/* Clipping Charlie: a cutting-room sheet. One accent (the tally light), a serif for words, a mono for timecode. */
:root {
  --ground: #100f0d;
  --panel: #191714;
  --ink: #efe8da;
  --soft: #a59d8d;
  --rule: #2e2a24;
  --tally: #ff3d2e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f3eee3;
    --panel: #ebe5d7;
    --ink: #1a1815;
    --soft: #6b6457;
    --rule: #d3cbb9;
    --tally: #d4281b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ground);
  /* Film perforations down the left edge: the only decoration on the site. */
  background-image: repeating-linear-gradient(to bottom, var(--rule) 0 10px, transparent 10px 26px);
  background-size: 6px 26px;
  background-repeat: repeat-y;
  background-position: 10px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration-color: var(--tally); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--tally); }
a:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--tally); color: var(--ground); }

.bar, main, .foot { width: 100%; max-width: 54rem; margin: 0 auto; padding-left: clamp(2.25rem, 7vw, 5rem); padding-right: clamp(1.25rem, 5vw, 3rem); }

/* Top bar: the name between an in point and an out point, with the tally light. */
.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.75rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
.mark { text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }
.mark::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.7em; border-radius: 50%; background: var(--tally); vertical-align: 0.05em; }
.mark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { text-decoration: none; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tally); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

main { flex: 1; padding-top: clamp(3rem, 9vh, 6rem); padding-bottom: 4rem; }

/* Home: one line, and the strip it was cut from. */
.home { display: flex; flex-direction: column; justify-content: center; }
.line { margin: 0; max-width: 17em; font-size: clamp(2.1rem, 6.4vw, 4.1rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.line em { font-style: italic; }
.strip { position: relative; height: 2.75rem; margin: clamp(2rem, 6vh, 3.5rem) 0 0.6rem; max-width: 40rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 2.5%); }
.strip .cut { position: absolute; top: -1px; bottom: -1px; left: 30%; width: 32.5%; background: var(--tally); opacity: 0.92; transform-origin: left center; animation: cut 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 250ms both; }
.strip .cut::before, .strip .cut::after { content: ""; position: absolute; top: -0.5rem; bottom: -0.5rem; width: 2px; background: var(--ink); }
.strip .cut::before { left: 0; }
.strip .cut::after { right: 0; }
.tc { display: flex; justify-content: space-between; max-width: 40rem; margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--soft); }
.tc span:nth-child(2) { color: var(--ink); }
.what { max-width: 36rem; margin: clamp(2rem, 6vh, 3.5rem) 0 0; color: var(--soft); }
.what a { color: var(--ink); }
@keyframes cut { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Terms and privacy: a shot list. Each section carries its number like a timecode in the margin. */
.doc { counter-reset: shot; }
.doc h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.stamp { margin: 0 0 2.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.lede { max-width: 38rem; margin: 0 0 3rem; padding: 1.1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--tally); font-size: 1.125rem; }
.doc section { counter-increment: shot; display: grid; grid-template-columns: 4.5rem minmax(0, 38rem); column-gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.doc section::before { content: "00:" counter(shot, decimal-leading-zero); padding-top: 0.42rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--tally); }
.doc section > * { grid-column: 2; }
.doc h2 { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 400; font-style: italic; line-height: 1.25; }
.doc p, .doc ul { margin: 0 0 0.85rem; }
.doc ul { padding-left: 1.1rem; }
.doc li { margin-bottom: 0.35rem; }
.doc li::marker { color: var(--tally); }
.doc section > :last-child { margin-bottom: 0; }
@media (max-width: 34rem) {
  .doc section { grid-template-columns: minmax(0, 1fr); }
  .doc section::before { padding: 0 0 0.35rem; }
  .doc section > * { grid-column: 1; }
}

.foot { padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; letter-spacing: 0.03em; color: var(--soft); }
.foot p { margin: 0 0 0.35rem; max-width: 46rem; }
.foot a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .strip .cut { animation: none; }
}
