/* VERNIS - landing page styles (legal pages keep css/styles.css) */

:root {
  --concrete: #d8d6d1;
  --concrete-deep: #c9c6bf;
  --paper: #e6e4e0;
  --ink: #1e2327;
  --ink-soft: #4a5055;
  --brass: #a9813f;
  --brass-deep: #6b4f22;
  --oak: #8e6239;
  --fjord: #3b5566;
  --line: rgba(30, 35, 39, 0.16);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 36rem;
  --radius: 3px;
  --radius-photo: 10px;
  /* Layered, low-opacity shadows: a tight contact shadow plus a wide soft one. */
  --shadow-photo:
    0 1px 1px rgba(30, 35, 39, 0.05),
    0 4px 10px -2px rgba(30, 35, 39, 0.08),
    0 18px 36px -12px rgba(30, 35, 39, 0.22),
    0 42px 80px -32px rgba(30, 35, 39, 0.28);
  --shadow-photo-dark:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 8px 20px -6px rgba(0, 0, 0, 0.35),
    0 36px 72px -24px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(2rem, 4.4vw, 3.25rem)/1.05 var(--serif); letter-spacing: -0.01em; max-width: 18ch; }
h3 { font: 600 1.0625rem/1.35 var(--sans); }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--fjord); }
.btn--small { padding: 0.6rem 1rem; font-size: 0.9375rem; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { color: var(--fjord); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  transition: background-color 0.2s, box-shadow 0.2s;
}
section[id] { scroll-margin-top: 72px; }
.nav:has(.is-open),
.nav.is-scrolled { background: rgba(216, 214, 209, 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav__logo { font: 400 1.75rem/1 var(--serif); text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 0.9375rem; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span[aria-hidden] { display: block; width: 22px; height: 2px; background: var(--ink); }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--concrete); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; font-size: 1.0625rem; }
}

/* Scene: a photo with art warped onto its screen */
.scene { position: relative; margin: 0; overflow: hidden; background: var(--concrete-deep); }
.scene__photo { width: 100%; height: auto; }
.scene__art { overflow: hidden; background: #000; }
.scene__art:empty { background: transparent; }
.scene__art:empty::after { display: none; }
/* One piece = whole work centred (never cropped) over a blurred snapshot of itself. */
.art-piece {
  position: absolute; inset: 0; overflow: hidden; background: #000;
  transition: opacity 0.6s ease;
}
.art__backdrop {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  object-fit: cover; filter: blur(28px) brightness(0.72) saturate(1.15);
}
.art__main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Glass: a faint sheen so the art reads as behind a screen, not pasted on */
.scene__art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 38%),
              linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 30%);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
}
.hero__text {
  align-self: end;
  padding: 120px var(--gutter) clamp(40px, 8vh, 96px);
}
.hero__title {
  font: 400 clamp(2.75rem, 5.4vw, 4.75rem)/0.98 var(--serif);
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}
.hero__lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 1.5rem; }
.hero__edition { font-size: 0.9375rem; color: var(--brass-deep); margin: 0; }
.hero__stage { height: 100svh; }
.hero__stage .scene__photo { height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__edition span { color: var(--ink-soft); }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 14px;
  padding: 6px 12px; font: 500 0.8125rem/1 var(--sans);
  color: #fff; background: rgba(30, 35, 39, 0.55); border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; cursor: pointer;
}
.hero__pause:focus-visible { outline-color: #fff; }
.hero__caption {
  position: absolute; left: var(--gutter); bottom: 20px;
  color: #fff; font-size: 0.875rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { order: -1; height: min(78svh, 720px); }
  .hero__stage .scene__photo { object-position: 50% 66%; }
  .hero__text { padding-top: 40px; }
}
@media (max-width: 640px) {
  .hero__stage { height: 56svh; }
  .hero__text { display: flex; flex-direction: column; padding-top: 28px; }
  .hero__title { font-size: 2.5rem; margin-bottom: 0; }
  .hero__actions { order: 1; margin: 1.25rem 0 1.25rem; }
  .hero__lede { order: 2; }
  .hero__edition { order: 3; }
}

/* Sections */
main > section { padding: clamp(72px, 12vw, 160px) var(--gutter); }
main > .hero { padding: 0; }
.section-head { margin-bottom: 3rem; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; }

/* Object */
.object {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem var(--gutter);
  align-items: start;
}
.object__copy { grid-column: 1 / span 5; position: sticky; top: 110px; }
.object__copy h2 { margin-bottom: 1.5rem; }
.object__photo { margin: 0; }
.object__photo > picture img,
.object__scene { border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); }
.object__photo > picture img { width: 100%; height: auto; }
.object__photo figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.6rem; }
.object__photo--a { grid-column: 7 / span 3; margin-top: 18vh; }
.object__photo--b { grid-column: 10 / span 3; }

@media (max-width: 960px) {
  .object { grid-template-columns: 1fr 1fr; }
  .object__copy { grid-column: 1 / -1; position: static; }
  .object__photo--a, .object__photo--b { grid-column: auto; margin-top: 0; }
}

/* Try your art */
.try { background: var(--ink); color: var(--paper); }
.try :focus-visible { outline-color: var(--brass); }
.try__intro { margin-bottom: 3rem; }
.try__intro p { color: rgba(230, 228, 224, 0.75); margin-top: 1rem; }
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem var(--gutter);
  align-items: start;
}
.viewer__stage {
  border-radius: var(--radius-photo); background: #2a3035;
  box-shadow: var(--shadow-photo-dark);
  width: min(100%, calc(78svh * 0.75)); justify-self: center;
}
.viewer__stage.is-wide { width: min(100%, calc(78svh * 1.333)); }
.viewer__controls { display: grid; gap: 2rem; }
.viewer__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.viewer__group legend { font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.viewer__scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.viewer__scenes button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden;
}
.viewer__scenes button { position: relative; }
.viewer__scenes button > img { width: 100%; height: 100%; object-fit: cover; }
.viewer__scenes button[aria-pressed='true'] { border-color: var(--brass); }
.viewer__library { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(230, 228, 224, 0.08);
  color: inherit; font: 500 0.875rem/1.2 var(--sans);
  border: 1px solid rgba(230, 228, 224, 0.2); border-radius: 999px; cursor: pointer;
}
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.chip:hover { border-color: rgba(230, 228, 224, 0.5); }
.chip[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.drop {
  position: relative; display: grid; justify-items: start; gap: 6px; padding: 24px;
  border: 1.5px dashed var(--brass); border-radius: var(--radius);
  background: rgba(169, 129, 63, 0.08);
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover, .drop.is-over { border-style: solid; background: rgba(169, 129, 63, 0.16); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--brass); outline-offset: 3px; }
.drop__icon { color: #e3c38a; }
.drop__title { font: 400 1.5rem/1.15 var(--serif); }
.drop__hint { font-size: 0.875rem; color: rgba(230, 228, 224, 0.7); }
.drop__button { margin-top: 10px; pointer-events: none; background: var(--paper); color: var(--ink); }
.drop:hover .drop__button, .drop.is-over .drop__button { background: #e3c38a; }
/* Phones can't drag files in, so don't offer it. */
@media (hover: none) { .drop__drag { display: none; } }
.viewer__status { font-size: 0.875rem; margin: 0.75rem 0 0; min-height: 1.4em; color: #e3c38a; }

@media (max-width: 960px) {
  .viewer { grid-template-columns: 1fr; }
}

/* Editions */
/* One model this wave: a single card, kept to a readable width. */
.editions__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); max-width: 52rem; }
.edition { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.75rem; align-items: stretch; }
.edition__photo { align-self: start; border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); }
/* Column layout so the buy button sits at the bottom of every card, level across the row. */
.edition__body { display: flex; flex-direction: column; }
.edition__cta { margin-top: auto; align-self: flex-start; }
.edition h3 { font: 400 2rem/1.1 var(--serif); }
.edition__price { font: 400 2.5rem/1 var(--serif); color: var(--brass-deep); margin: 0.5rem 0 1.25rem; }
.edition__list { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.edition__list li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.editions__note { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-soft); }
.editions__crypto { margin-top: 3rem; font-size: 0.9375rem; }
.edition__ship { display: block; margin-top: 0.4rem; font: 400 0.9375rem/1.4 var(--sans); color: var(--ink-soft); }

/* Shipping zone: a two-option switch above the cards */
.zone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin: 0 0 2.5rem; padding: 0; border: 0;
}
.zone__legend { float: left; padding: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.zone__option { position: relative; cursor: pointer; }
.zone__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zone__option span {
  display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9375rem; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.zone__option:hover span { border-color: var(--ink); }
.zone__option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.zone__option input:focus-visible + span { outline: 2px solid var(--fjord); outline-offset: 3px; }
@media (max-width: 480px) {
  .zone { gap: 0.5rem; }
  .zone__legend { width: 100%; }
}

/* Desktop: the words, closing time and shipping switch sit left of the card, so "Order now" lands
   with the photo, price and buy button all on screen. */
main > .editions { padding-top: clamp(48px, 6vw, 96px); }
@media (min-width: 1000px) {
  .editions {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    grid-template-rows: auto auto auto 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start;
  }
  .editions > .section-head { grid-column: 1; grid-row: 1; margin-bottom: 2rem; }
  .editions > .zone { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .editions > .editions__grid { grid-column: 2; grid-row: 1 / span 4; max-width: none; }
  .editions > .editions__crypto { grid-column: 1; grid-row: 3; margin-top: 2rem; }
  .editions > .editions__note { grid-column: 1; grid-row: 4; }
}
/* Phones: a smaller photo beside name, price and button, so all three show at once;
   the feature list runs full width underneath. */
@media (max-width: 560px) {
  .edition { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0.75rem 1rem; align-items: start; }
  .edition__body { display: contents; }
  .edition__photo { grid-column: 1; grid-row: 1 / span 3; }
  .edition h3 { grid-column: 2; grid-row: 1; font-size: 1.6rem; }
  .edition__price { grid-column: 2; grid-row: 2; font-size: 2rem; margin: 0; }
  .edition__cta { grid-column: 2; grid-row: 3; margin-top: 0; }
  .edition__list { grid-column: 1 / -1; grid-row: 4; margin: 0.5rem 0 0; }
}

/* Steps: a real sequence, so numbered */
.steps { background: var(--paper); }
.steps h2 { margin-bottom: 3rem; }
.steps__list {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter);
}
.steps__list li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps__list li::before {
  content: counter(step);
  display: block; font: 400 3rem/1 var(--serif); color: var(--brass-deep); margin-bottom: 1rem;
}
.steps__list h3 { margin-bottom: 0.5rem; }
.steps__list p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps__list { grid-template-columns: 1fr; } }

/* Ownership */
.ownership h2 { margin-bottom: 3rem; }
.ownership__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.ownership__grid h3 { margin-bottom: 0.5rem; }
.ownership__grid p { color: var(--ink-soft); }
@media (max-width: 760px) { .ownership__grid { grid-template-columns: 1fr; } }

/* DIY */
.diy { border-top: 1px solid var(--line); }
main > .diy { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.diy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }

/* FAQ */
.faq { background: var(--paper); }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font: 400 1.5rem/1 var(--sans); color: var(--brass-deep);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; }

/* Closing */
.closing { text-align: left; }
.closing h2 { margin-bottom: 2rem; max-width: 16ch; }

/* Footer */
.footer {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem var(--gutter);
  padding: 48px var(--gutter); background: var(--ink); color: rgba(230, 228, 224, 0.8);
  font-size: 0.875rem;
}
.footer__logo { font: 400 1.75rem/1 var(--serif); color: var(--paper); margin-bottom: 0.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--paper); text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .footer { grid-template-columns: 1fr; } }

/* Sales window status */
.sale-status { color: var(--brass-deep); font-weight: 500; }
.sale-status:empty { display: none; }

/* Waitlist */
.waitlist { background: var(--paper); border-top: 1px solid var(--line); }
.waitlist h2 { margin-bottom: 1rem; }
.waitlist > p { color: var(--ink-soft); }
.waitlist__form { margin-top: 2rem; max-width: 34rem; }
.waitlist__form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.waitlist__row { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist__row input {
  flex: 1 1 16rem; min-width: 0; padding: 0.85rem 1rem;
  font: 400 1rem/1.2 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.waitlist__fine { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.75rem; }
.waitlist__status { font-weight: 500; color: var(--fjord); min-height: 1.5em; margin: 0.5rem 0 0; }

/* Thank-you page (Stripe redirect) */
.thanks { padding: 140px var(--gutter) 96px; max-width: 46rem; }
.thanks h1 { font: 400 clamp(2.4rem, 5vw, 3.75rem)/1.02 var(--serif); margin-bottom: 1.5rem; }
.thanks p { color: var(--ink-soft); }

/* Buy bar: pinned to the bottom while a wave is open (js/buybar.js) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(216, 214, 209, 0.96); backdrop-filter: blur(8px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px -12px rgba(30, 35, 39, 0.25);
}
.buybar[hidden] { display: none; }
.buybar__text { margin: 0; font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; }
.buybar__text strong { font-weight: 600; }
.buybar__text span { color: var(--ink-soft); }
.buybar__cta { flex: none; }
body.has-buybar { padding-bottom: 72px; }
