/* Two rooms. Dark is the darkroom under its safelight, where everything is one red. Light is the same
   room with the white lights on. The print is the only thing with colors of its own. */
:root {
  color-scheme: light dark;
  --room: light-dark(#f7f5f0, #0e0403);
  --room-2: light-dark(#ffffff, #1a0705);
  --room-3: light-dark(#ebe7df, #2a0b07);
  --ink: light-dark(#17100e, #ffeee6);
  --ink-2: light-dark(#5a4b46, #eab09f);
  --line: light-dark(#17100e26, #ff8a6a33);
  --signal: light-dark(#cc1b0e, #ff4d28);
  --on-signal: light-dark(#ffffff, #1a0402);
  --halo: light-dark(#0000, #ff3b12);
  --halo-2: light-dark(#0000, #ff3b1266);
  --film: #0b0807;
  --film-ink: #f4c79e;
  --dial: #b9ff8f;
  --paper: #fbfaf6;
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --text: "Libre Franklin", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --edge: "Doto", ui-monospace, Menlo, monospace;
  --gutter: 16px;
  --wide: 1240px;
  --read: 660px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (min-width: 760px) { :root { --gutter: 32px; } }


@font-face {
  font-family: "League Gothic";
  src: url("/fonts/league-gothic.woff2") format("woff2");
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("/fonts/doto.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--room); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 40; padding: 8px 12px; background: var(--signal); color: var(--on-signal); }
.skip:focus { top: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.96; letter-spacing: 0.006em; text-wrap: balance; }
::selection { background: var(--signal); color: var(--on-signal); }

/* The film's edge: small dotted lettering, the way a roll numbers its frames. */
.edge { margin: 0; font: 800 13px/1.2 var(--edge); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.edge a { text-decoration: none; }
.edge a:hover { color: var(--signal); }

.site-head { position: relative; z-index: 20; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 74px 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font: 400 25px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.logo { width: 24px; height: 24px; }
.site-nav { display: none; align-items: center; gap: 2px; }
.site-nav a { padding: 10px 11px; font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--signal); }
.go { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--signal); border-radius: 3px; font: 400 19px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.go:hover { background: var(--signal); color: var(--on-signal); }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; }
.icon-link svg { width: 21px; height: 21px; }
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: -60px; top: 46px; width: min(280px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); background: var(--room-2); box-shadow: 0 18px 50px #0006; }
.menu-panel a { display: block; padding: 11px 12px; font: 400 26px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.menu-panel a:hover { color: var(--signal); }

/* The pull cord. One button: Light, Dark, System. It hangs from the top of the room. */
.cord { position: absolute; top: 0; right: 12px; z-index: 30; width: 56px; height: 66px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.cord-line { position: absolute; left: 50%; top: 0; width: 1.5px; height: 30px; background: var(--ink-2); transform: translateX(-50%); transform-origin: top; }
.cord-bead { position: absolute; left: 50%; top: 28px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, #0000 45%), var(--signal); box-shadow: 0 0 10px var(--halo-2); }
.cord-tag { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); padding: 2px 4px 1px; background: var(--room-3); color: var(--ink); font: 800 11px/1.1 var(--edge); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.cord:active .cord-line, .cord.is-pulled .cord-line { height: 42px; }
.cord:active .cord-bead, .cord.is-pulled .cord-bead { transform: translateY(12px); }
.cord:active .cord-tag, .cord.is-pulled .cord-tag { transform: translate(-50%, 12px); }
.cord-line, .cord-bead, .cord-tag { transition: height 0.32s var(--ease), transform 0.32s cubic-bezier(0.3, 1.8, 0.5, 1); }

.site-foot { margin-top: 72px; padding: 40px var(--gutter) 36px; border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: 28px; max-width: var(--wide); margin: 0 auto; }
.foot-brand { margin: 0; font: 400 clamp(64px, 17vw, 150px)/0.9 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 34px var(--halo-2); }
.foot-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 24px; }
.foot-links a { display: block; padding: 7px 0; font-size: 16px; text-decoration: none; }
.foot-links a:hover { color: var(--signal); }
.fine { margin: 0; color: var(--ink-2); font-size: 14px; }
.frame-manual .site-foot { margin-top: 0; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu { display: none; }
  .brand { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
