/* Jacques Grobler Photography, pre-launch site. One stylesheet for every page. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-latin.woff2") format("woff2"); }

:root {
  --serif: "Newsreader", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --ink: #f2ede4;
  --ink-2: rgba(242, 237, 228, .72);
  --ink-3: rgba(242, 237, 228, .5);
  --veil: 10, 9, 8;
  --field: rgba(255, 255, 255, .08);
  --line: rgba(242, 237, 228, .42);
  --page: #14110e;
  --page-2: #1d1a16;
  --room-shadow: #0d0a07;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--page); padding: 8px 12px; font-family: var(--sans); }
.skip:focus { left: 8px; }

/* Header, the same on every page */
.site-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 26px var(--gutter) 0; }
.mark { display: block; text-decoration: none; }
.mark img { height: 46px; width: auto; display: block; }
.site-head nav a { font-family: var(--sans); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; margin-left: 30px; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }

/* Small labels */
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }

/* ---------- Home: the print in a room ---------- */
/* Room DW-005 with The Launch. room.js sizes and places it so the whole print stays in view;
   without the script the picture still covers the screen. */
.stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.stage .room { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 58% 30%; }
.stage .room.placed { inset: auto; object-fit: fill; }
.home { background: var(--room-shadow); }
.home main, .home .site-foot { position: relative; z-index: 1; }
.home .label { z-index: 1; }

.hero { min-height: calc(100svh - 86px); display: flex; align-items: center; padding: 24px var(--gutter) 80px; }
.words { position: relative; width: min(28rem, calc(var(--frame-left, 40vw) - 2 * var(--gutter))); }
/* A soft shade behind the words only: no panel, no blur, no band. */
.words::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -30% -40% -30% -60%;
  background: radial-gradient(closest-side, rgba(var(--veil), .6), rgba(var(--veil), .42) 50%, rgba(var(--veil), 0)); }
h1 { font-weight: 300; font-size: clamp(40px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 24px; }
h1 i { font-weight: 300; }
.lede { font-size: 19px; line-height: 1.55; opacity: .92; margin-bottom: 34px; }
.label { position: absolute; left: var(--frame-mid, 60vw); top: calc(var(--frame-bottom, 70vh) + 14px); transform: translateX(-50%); white-space: nowrap; font-style: italic; font-size: 15px; color: var(--ink-2); }

/* Sign-up form */
.signup .row { display: flex; border: 1px solid var(--line); background: var(--field); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.signup .row:focus-within { border-color: var(--ink); }
.signup input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px; font: inherit; font-size: 17px; color: var(--ink); border-radius: 0; }
.signup input[type=email]::placeholder { color: var(--ink-2); }
.signup input[type=email]:focus { outline: none; }
.signup button { border: 0; border-radius: 0; background: var(--ink); color: rgb(var(--veil)); padding: 0 22px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.signup button:hover { opacity: .9; }
.signup button[disabled] { opacity: .6; cursor: wait; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; margin-top: 2px; width: 18px; height: 18px; flex: none; border: 1px solid var(--line); background: var(--field); display: grid; place-content: center; cursor: pointer; border-radius: 0; }
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: solid rgb(var(--veil)); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin-top: 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.status.error { color: #f0b9a8; }
.done-note { font-size: 19px; }

/* ---------- Text pages: About, Privacy, 404 ---------- */
.page { background: var(--page); }
.page main { padding: clamp(48px, 8vw, 120px) var(--gutter) 96px; }
.prose { max-width: 38rem; }
.prose h1 { margin-bottom: 32px; }
.prose h2 { font-weight: 400; font-size: 26px; line-height: 1.2; margin: 44px 0 12px; }
.prose p, .prose li { color: rgba(242, 237, 228, .88); margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .meta { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.todo { background: rgba(240, 185, 168, .14); color: #f0b9a8; padding: 0 4px; font-family: var(--sans); font-size: .9em; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about figure img { display: block; width: 100%; height: auto; }
.about figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }

/* Footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 28px var(--gutter) 32px; border-top: 1px solid rgba(242, 237, 228, .12); font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.site-foot a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.site-foot > div:first-child { display: flex; flex-wrap: wrap; gap: 8px 22px; min-width: 0; }
.site-foot a:hover { color: var(--ink); }
.home .site-foot { border-top: 0; padding-top: 56px; background: linear-gradient(to top, rgba(var(--veil), .94) 55%, rgba(var(--veil), 0)); }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .site-head { padding-top: 18px; }
  .mark img { height: 34px; }
  .site-head nav a { margin-left: 18px; font-size: 12px; letter-spacing: .16em; }

  .home .stage { position: absolute; height: 100%; min-height: 100svh; }
  .stage .room {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 54%, transparent 74%);
            mask-image: linear-gradient(to bottom, #000 0, #000 54%, transparent 74%);
  }
  .hero { min-height: 0; padding-top: calc(57svh - 64px); padding-bottom: 56px; align-items: flex-start; }
  .words { width: 100%; }
  .words::before { display: none; }
  h1 { font-size: 40px; }
  .lede { font-size: 18px; }
  .signup button { padding: 0 16px; }

  .about { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.about-signup { margin-top: 28px; }
.about > * { min-width: 0; }
.details { margin-top: clamp(56px, 8vw, 96px); padding-top: 36px; border-top: 1px solid rgba(242, 237, 228, .12); }
.details h2 { margin-top: 0; }
.details ul { list-style: none; padding-left: 0; font-family: var(--sans); font-size: 15px; }
.details li { margin-bottom: 6px; }
.site-foot > div:last-child { max-width: 46rem; }
.about figure { max-width: 30rem; justify-self: end; width: 100%; }
@media (max-width: 860px) { .about figure { justify-self: stretch; max-width: none; } }
