/* Public gallery on the sites origin (review.py gallery_page / watch_page): Quire Studio's own look
   (tokens from ~/fieldwork web/src/styles/tokens.css), for showing the work to clients. */
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/_gallery/fonts/geist-latin-wght-normal.woff2) format('woff2');
  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: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/_gallery/fonts/geist-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/_gallery/fonts/instrument-serif-latin-400-normal.woff2) format('woff2');
  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: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/_gallery/fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400;
  src: url(/_gallery/fonts/instrument-serif-latin-400-italic.woff2) format('woff2');
  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: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400;
  src: url(/_gallery/fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #f3f1ec; --surface: #fbfaf7; --surface-2: #efece6;
  --ink: #161513; --ink-2: #55514a; --ink-3: #736e65;
  --rule: #dcd7cd; --rule-strong: #c4bfb3;
  --accent: #ff4f1f; --accent-ink: #ffffff; --accent-soft: rgba(255, 79, 31, .1); --accent-text: #d8380b;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0d; --surface: #161614; --surface-2: #1d1c1a;
    --ink: #eeebe5; --ink-2: #a8a399; --ink-3: #8a857d;
    --rule: #2a2926; --rule-strong: #3a3935;
    --accent: #ff5a2b; --accent-soft: rgba(255, 90, 43, .14); --accent-text: #ff7a52;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.q-wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 32px; }

/* top bar */
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 0; }
.q-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.q-brand svg { width: 22px; height: 22px; }
.q-brand span b { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.q-top-note { font-size: 14px; color: var(--ink-3); }

/* intro */
.q-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); max-width: 760px; }
.q-hero h1 { margin: 0 0 18px; font: 400 clamp(44px, 7.4vw, 92px)/.98 var(--serif); letter-spacing: -.02em; }
.q-hero h1 em { font-style: italic; color: var(--accent); }
.q-hero p { margin: 0; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 600px; }

/* filter */
.q-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.q-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); }
.q-seg a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.q-seg a:hover { color: var(--ink); }
.q-seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--rule); }
.q-seg a small { color: var(--ink-3); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.q-legend { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-3); }

/* cards */
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px 24px; padding-bottom: 72px; }
.q-card { position: relative; display: flex; flex-direction: column; }
.q-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--rule); }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.q-card:hover .q-thumb img { transform: scale(1.025); }
.q-play { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: #fff; background: rgba(14, 14, 13, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s var(--ease), transform .2s var(--ease); }
.q-play i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.q-play svg { width: 8px; height: 9px; margin-left: 1px; }
.q-play:hover, .q-play:focus-visible { background: rgba(14, 14, 13, .9); transform: translateY(-1px); }
.q-tag { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .01em; background: rgba(251, 250, 247, .92); color: #161513; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.q-tag.is-sold { background: var(--accent); color: var(--accent-ink); }
.q-body { padding: 14px 2px 0; }
.q-name { display: block; text-decoration: none; font: 400 26px/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 4px; }
.q-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card opens the site */
.q-line { margin: 0 0 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.q-desc { margin: 0; font-size: 14px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-empty { padding: 40px 0 80px; color: var(--ink-3); }

.q-foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--ink-3); }

/* watch page */
.q-watch { padding: 28px 0 72px; }
.q-watch-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 32px; font-size: 15px; }
.q-watch-nav a { text-decoration: none; color: var(--ink-2); } .q-watch-nav a:hover { color: var(--ink); }
.q-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink) !important; font-weight: 600; text-decoration: none; transition: background .2s var(--ease); }
.q-btn:hover { background: #ec4314; }
.q-watch h1 { margin: 0 0 6px; font: 400 clamp(36px, 5.4vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.q-watch .q-line { font-size: 16px; margin-bottom: 26px; }
.q-watch video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; border: 1px solid var(--rule); }

@media (max-width: 800px) {
  .q-wrap { padding: 0 16px; }
  .q-grid { grid-template-columns: 1fr; gap: 28px; }
  .q-top-note, .q-legend { display: none; }
  .q-watch-nav { margin: 20px 0 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
