/* The placeholder landing page: a collage of three large images (two photos and the studio) laid over each other, not
   rotated, and the message with an e-mail sign-up in the space left of them.  Black, hairlines,
   one amber accent.  anyfi in Comfortaa Light (fonts/*-OFL.txt).  The short pages (thanks,
   confirmed, ...) use .note. */

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

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/comfortaa-300-latin.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #2a2a2a;
  --text: #ededed;
  --muted: #9a9a9a;
  --accent: #f2a33a;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body { min-height: 100%; background: var(--bg); }
body { color: var(--text); font: 16px/1.5 var(--font); }

/* The whole screen */
.stage { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 600px; overflow: hidden; }

/* The collage: the right two thirds of the screen */
.collage { position: absolute; inset: 0; }
.layer { position: absolute; overflow: hidden; background: #111; outline: 1px solid var(--line); }
.layer img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The overview photo: the desk from above, large, across the top of the collage */
.layer-overview { left: 34vw; top: 5vh; width: min(53vw, 94vh); aspect-ratio: 1800 / 945; z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.layer-overview img { filter: brightness(0.92) contrast(1.04); }

/* The studio: overlapping it from the right, lower down */
.layer-studio { right: 3vw; top: 38vh; width: min(38vw, 68vh); aspect-ratio: 1290 / 850; z-index: 3;
  box-shadow: -30px 30px 90px rgba(0, 0, 0, 0.6); }
.layer-studio img { object-position: 0 0; }

/* An amber hairline frame, offset down and left behind the studio */
.frame { position: absolute; right: calc(3vw + 26px); top: calc(38vh + 26px); width: min(38vw, 68vh); aspect-ratio: 1290 / 850;
  border: 1px solid var(--accent); z-index: 1; opacity: 0.85; }

/* The close-up: below the overview, cutting into the studio */
.layer-closeup { left: 38vw; bottom: 5vh; width: min(24vw, 42vh); aspect-ratio: 4 / 3; z-index: 4;
  box-shadow: 20px -20px 70px rgba(0, 0, 0, 0.6); }

/* The mark (brand/anyfi-mark.svg) beside the wordmark */
.logo-mark { flex: 0 0 auto; width: 1.15em; height: 1.15em; margin-right: 0.38em; }

/* The message, on the left */
.message { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); z-index: 6; width: min(26vw, 400px); }
.logo { display: flex; align-items: center; width: max-content; margin-bottom: 22px; font-family: 'Comfortaa', var(--font); font-weight: 300; font-size: clamp(26px, 2.2vw, 34px);
  color: #fff; letter-spacing: -0.01em; text-transform: lowercase; }
h1 { font-size: clamp(30px, 3.2vw, 50px); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; }
.lede { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; }

/* Where things stand (the e-mail sign-up comes back here once e-mail is set up) */
.status { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* Narrow and tall screens: the collage on top, the message below it, and the page scrolls */
@media (max-width: 900px), (max-aspect-ratio: 1 / 1) {
  .stage { height: auto; min-height: 0; overflow: visible; }
  .collage { position: relative; height: 106vw; max-height: 760px; overflow: hidden; }
  .layer-overview { left: 4vw; top: 4vw; width: 84vw; }
  .layer-studio { right: 4vw; top: 38vw; width: 66vw; }
  .frame { right: calc(4vw + 14px); top: calc(38vw + 14px); width: 66vw; }
  .layer-closeup { left: 8vw; top: 72vw; bottom: auto; width: 42vw; }
  .message { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 8px 24px 48px; }
}

/* The short pages after the form and the e-mail links */
.note { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.note-box { max-width: 420px; }
.note-box h1 { font-size: clamp(28px, 4vw, 40px); }
.note-box p { margin-top: 14px; color: var(--muted); }
.note-box a { display: inline-block; margin-top: 26px; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
