/* The collection (routes/index.html, written by scripts/generate-route-pages.py): every
   iconic route as a poster hung on a paper wall, in the app's own materials: paper,
   warm inks, claret, Source Serif 4 for voice and Inter for instrument. */

@font-face { font-family: "Source Serif 4"; font-weight: 300 400; font-style: italic; font-display: swap; src: url(/vendor/fonts/SourceSerif4-Italic.woff2) format("woff2"); }

:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --ink: #221d18;
  --soft: #6f675c;
  --faint: #9a9184;
  --rule: rgba(34, 29, 24, 0.14);
  --claret: #990f3d;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* The app panel's paper grain, very faintly, over everything */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--claret); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(153, 15, 61, 0.18); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---- top ---- */
.top { display: flex; justify-content: space-between; align-items: baseline; padding-top: max(26px, env(safe-area-inset-top, 0px)); }
.mark { font: 400 22px/1 var(--serif); color: var(--claret); text-decoration: none; letter-spacing: -0.01em; }
.make { font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.make span { display: inline-block; transition: transform .3s var(--ease); }
.make:hover span { transform: translateX(3px); }

/* ---- intro ---- */
.intro { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.eyebrow { margin: 0; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--claret); }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
h1 { font-size: clamp(42px, 7vw, 96px); line-height: 0.98; margin-top: 18px; }
.lede { font: 300 clamp(18px, 1.7vw, 22px)/1.5 var(--serif); color: var(--soft); max-width: 46ch; margin: 26px 0 0; }

/* ---- the wall: posters in three columns, the middle one hung lower, as in a salon ---- */
.wall { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(56px, 7vw, 96px); padding-bottom: 40px; }
.piece:nth-child(3n + 2) { margin-top: 64px; }
.piece { opacity: 0; transform: translateY(24px); animation: hang .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes hang { to { opacity: 1; transform: none; } }
.piece a { display: block; color: inherit; text-decoration: none; }
.sheet { display: block; position: relative; aspect-ratio: 5 / 7; background: #e8e1d2;
  box-shadow: 0 1px 1px rgba(40, 30, 20, 0.12), 0 6px 12px -4px rgba(40, 30, 20, 0.16), 0 24px 40px -18px rgba(40, 30, 20, 0.34);
  transition: transform .5s var(--spring), box-shadow .45s var(--ease); }
.sheet img { width: 100%; height: 100%; object-fit: cover; }
/* A soft light from the upper left, as on the poster editor's wall */
.sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.05)); }
.piece a:hover .sheet, .piece a:focus-visible .sheet { transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 2px 2px rgba(40, 30, 20, 0.1), 0 14px 22px -8px rgba(40, 30, 20, 0.22), 0 44px 64px -26px rgba(40, 30, 20, 0.42); }
.piece a:focus-visible { outline: none; }
.piece a:focus-visible .sheet { outline: 2px solid var(--claret); outline-offset: 6px; }
.label { display: block; margin-top: 22px; }
.name { display: block; font: 400 clamp(19px, 1.9vw, 25px)/1.2 var(--serif); letter-spacing: -0.01em; }
.piece a:hover .name { color: var(--claret); }
.line { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.facts { display: block; margin-top: 8px; font: 500 11px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---- your own ---- */
.yours { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(72px, 10vw, 140px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.yours h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; }
.yours p { margin: 16px 0 0; max-width: 40ch; color: var(--soft); font: 300 18px/1.5 var(--serif); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; background: var(--claret); color: #fff; text-decoration: none;
  font: 600 15px/1.2 var(--sans); transition: transform .3s var(--spring), filter .2s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.is-quiet { background: transparent; color: var(--claret); box-shadow: inset 0 0 0 1.5px var(--claret); }

/* ---- foot ---- */
.foot { margin-top: clamp(64px, 8vw, 112px); padding-top: 22px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--faint); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--claret); }
.foot .credit { font-size: 12px; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece:nth-child(3n + 2) { margin-top: 0; }
  .piece:nth-child(2n) { margin-top: 48px; }
}
@media (max-width: 560px) {
  .wall { column-gap: 16px; row-gap: 36px; }
  .piece:nth-child(2n) { margin-top: 36px; }
  .label { margin-top: 14px; }
  .name { font-size: 17px; }
  .line { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .facts { font-size: 10px; letter-spacing: 0.06em; }
  .yours { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .piece { animation: none; opacity: 1; transform: none; }
  .sheet { transition: none; }
}
.foot #cookie-settings { margin-top: 2px; font-size: 12px; color: var(--soft); }
/* Straight into the poster editor on this route (poster.js, /poster?route=) */
.piece-make { display: inline-block; margin-top: 10px; font: 600 13px/1 var(--sans); color: var(--claret); text-decoration: none; }
.piece-make:hover { text-decoration: underline; text-underline-offset: 3px; }
