/* getsalon.app — the gallery wall, in a browser.
   Dark ground, pictures edge to edge, very little else: the same bargain the
   app makes on a television. */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-raised: #141417;
  --ink: #f3efe7;
  --ink-2: rgba(243, 239, 231, 0.72);
  --ink-3: rgba(243, 239, 231, 0.5);
  --line: rgba(243, 239, 231, 0.12);
  --gold: #d6b36a;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-contrast: more) {
  :root { --ink-2: rgba(243, 239, 231, 0.9); --ink-3: rgba(243, 239, 231, 0.8); --line: rgba(243, 239, 231, 0.32); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(243, 239, 231, 0.35); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: 0.005em; margin: 0.15em 0 0.4em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-3); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.more { margin-top: 28px; color: var(--ink-2); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header--overlay { position: absolute; inset: 0 0 auto; z-index: 5; border-bottom: 0; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: 0.04em; text-decoration: none; }
.wordmark--small { font-size: 24px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { width: auto; height: 50px; }
.badge--small img { height: 36px; }
.nav a { white-space: nowrap; }
@media (max-width: 680px) {
  .site-header .badge { display: none; }
  .nav { gap: 18px; }
}
/* On a phone the four links no longer fit beside the wordmark, so they take a
   row of their own beneath it. */
@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; row-gap: 4px; padding-block: 16px 14px; }
  .nav { width: 100%; margin-left: 0; justify-content: space-between; }
}

/* Hero: four pictures dissolving into one another, like the frame itself.
   Earlier slides sit on top, so each fades out to reveal the next; the first
   fades back in over the last to close the loop. */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: hero-cycle 32s infinite; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide:nth-child(1), .hero-credit:nth-child(1) { opacity: 1; z-index: 4; animation-delay: 0s; }
.hero-slide:nth-child(2), .hero-credit:nth-child(2) { z-index: 3; animation-delay: 8s; }
.hero-slide:nth-child(3), .hero-credit:nth-child(3) { z-index: 2; animation-delay: 16s; }
.hero-slide:nth-child(4), .hero-credit:nth-child(4) { z-index: 1; animation-delay: 24s; }
@keyframes hero-cycle {
  0% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  96% { opacity: 0; }
  100% { opacity: 1; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.85) 0%, rgba(11, 11, 13, 0.5) 34%, rgba(11, 11, 13, 0) 62%),
    linear-gradient(0deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0) 42%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.6) 0%, rgba(11, 11, 13, 0) 20%);
}
/* The hero is a flex row, where a max-width box shrinks to its content and
   margin: auto then centres it. Full width keeps it on the page's left edge. */
.hero-copy { width: 100%; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 120px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(84px, 12vw, 164px); line-height: 0.88; letter-spacing: 0.03em; margin: 0; }
.hero .rule { width: 64px; height: 1px; background: var(--ink-3); margin: 28px 0 18px; }
.hero .lead { margin: 22px 0 32px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta small { color: var(--ink-3); font-size: 14px; letter-spacing: 0.02em; }
.hero-credits { position: absolute; right: var(--gutter); bottom: 28px; width: min(60vw, 720px); height: 1.5em; z-index: 1; font-size: 13px; color: var(--ink-3); }
.hero-credit { position: absolute; right: 0; bottom: 0; margin: 0; white-space: nowrap; opacity: 0; animation: hero-cycle 32s infinite; }
@media (max-width: 900px) { .hero-credits { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-credit { animation: none; }
  .hero-slide:not(:first-child), .hero-credit:not(:first-child) { display: none; }
}

/* Sections */
main > section { padding-block: clamp(54px, 7.7vw, 98px); }
main > .hero { padding-block: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.stat { background: var(--bg); padding: 28px 26px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.6vw, 60px); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.35; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-raised); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%); }
.tile span { position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 1; font-weight: 600; font-size: 16px; line-height: 1.2; }
.tile:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile span { font-size: 14px; left: 10px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }

/* Pictures on a television: the screen sits behind a transparent frame image,
   placed by the percentages build.mjs appends at the end of this file. */
.tv { position: relative; }
.tv-frame { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.tv-screen { position: absolute; z-index: 0; overflow: hidden; background: #000; }
.tv-screen > img, .tv-screen > video { width: 100%; height: 100%; object-fit: cover; }
.tv--video { margin-bottom: clamp(48px, 7vw, 88px); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 5vw, 56px) 36px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px 32px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 16px; }

.sources { list-style: none; padding: 0; margin: 8px 0 0; columns: 2 240px; column-gap: 36px; }
.sources li { break-inside: avoid; padding: 13px 0 14px; border-top: 1px solid var(--line); }
.sources a { text-decoration: none; font-weight: 500; }
.sources a:hover { text-decoration: underline; }
.sources small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }

.promise { border-block: 1px solid var(--line); text-align: center; background: var(--bg-raised); }
.promise h2 { margin-inline: auto; }
.promise .muted { max-width: 34em; margin-inline: auto; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 40px 19px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 26px; font-weight: 300; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: -4px 0 22px; max-width: 44em; }

.closing { text-align: center; }
.closing h2 { margin-bottom: 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 64px; font-size: 14px; color: var(--ink-3); }
.site-footer p { margin: 0; max-width: 60em; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-top nav a { text-decoration: none; color: var(--ink-2); }
.footer-top nav a:hover { color: var(--ink); }

/* Inner pages */
.page-head { padding-block: clamp(56px, 8vw, 100px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.5vw, 92px); line-height: 0.98; margin: 12px 0 18px; text-wrap: balance; }
/* The column keeps the page's left edge, so text lines up under the title
   rather than floating in the middle of a wide screen. */
.prose { padding-bottom: clamp(72px, 10vw, 128px); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(32px, 3.6vw, 44px); margin-top: 1.5em; }
.prose h3 { margin-top: 1.7em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .faq { margin-top: 12px; }
.page-shot { margin: 24px 0 8px; }
.page-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* For artists */
.prose .steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; }
.prose .steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 22px; }
.prose .steps li::before { content: counter(step); position: absolute; left: 0; top: -8px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink-3); }
.button-row { margin-top: 26px; }
.button { display: inline-block; padding: 12px 28px; border: 1px solid var(--ink-3); border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.gallery-list { display: grid; gap: clamp(56px, 8vw, 100px); padding-bottom: clamp(72px, 10vw, 128px); }
.gallery-item { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4.5vw, 64px); align-items: center; scroll-margin-top: 32px; }
.gallery-item figure { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.gallery-item:nth-child(even) figure { order: 2; }
.gallery-item h2 { font-size: clamp(36px, 4.2vw, 54px); margin-top: 6px; }
.gallery-item p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 820px) { .gallery-item { grid-template-columns: 1fr; } .gallery-item:nth-child(even) figure { order: 0; } }

/* Generated from HERO and the TV frame in scripts/build.mjs */
.hero-slide:nth-child(1) img { object-position: 42% 60%; }
.hero-slide:nth-child(2) img { object-position: 28% 50%; }
.hero-slide:nth-child(3) img { object-position: 50% 50%; }
.hero-slide:nth-child(4) img { object-position: 62% 55%; }
.tv--frame .tv-screen { left: 0.528%; top: 1.043%; width: 92.415%; height: 83.849%; }
.tv--bezel .tv-screen { left: 0.565%; top: 1.214%; width: 98.870%; height: 97.572%; }
