/* Shared tokens, fonts and the "instant print" component used by both views. */

@font-face {
  font-family: 'Bricolage';
  src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  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;
}
@font-face {
  font-family: 'Bricolage';
  src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2-variations');
  font-weight: 400 700; font-display: swap;
  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;
}
@font-face {
  font-family: 'Caveat';
  src: url(/fonts/caveat-latin-ext-wght-normal.woff2) format('woff2-variations');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #21172e;
  --night-2: #2f2341;
  --night-3: #3f3156;
  --paper: #fbf7ee;
  --paper-shade: #ece5d6;
  --ink: #2a2233;
  --ink-soft: #6b5f78;
  --flash: #ffd23f;
  --flash-deep: #f2b705;
  --text: #f4eefb;
  --muted: #c5b8da;
  --danger: #ff8a8a;

  --ui: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;

  --radius-s: 6px;
  --radius-m: 12px;
  --print-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 10px 24px -8px rgb(0 0 0 / .55);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.1em;
  border: 1.5px solid var(--night-3); border-radius: 999px;
  background: var(--night-2); color: var(--text);
  font-weight: 600; font-stretch: 92%; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.flash { background: var(--flash); border-color: var(--flash); color: var(--ink); }
.btn.flash:hover:not([disabled]) { background: var(--flash-deep); border-color: var(--flash-deep); }
.btn.flash[disabled] { background: var(--night-2); border-color: var(--night-3); color: var(--muted); opacity: 1; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--text); border-color: var(--night-3); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- the instant print ---------- */
.print {
  --pad: 6%;
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  padding: var(--pad) var(--pad) 0;
  border-radius: 2px;
  box-shadow: var(--print-shadow);
}
.print .shot {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: #191220;
  overflow: hidden;
}
.print .shot img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption, .print .figcaption {
  display: block;
  min-height: 3.2em;
  padding: .5em .1em .7em;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.print .by {
  display: block;
  margin-top: .15em;
  font-size: .8em;
  color: var(--ink-soft);
}
.print .by:empty, .print .cap:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
