/* The starter's styles. The colours, the type and the cloth are the main site's (src/proto.css at the top of the
   repository), copied here so this app needs nothing outside its folder. */
@font-face { font-family: "ND"; src: url("fonts/NewsreaderDisplay-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "SG"; src: url("fonts/SchibstedGrotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "MN"; src: url("fonts/MonaspaceNeon-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* The brand's tokens: three navies from dark to light, the lamp's gold, and the two text colours. */
:root { --bg0: #101c31; --bg1: #14233b; --bg2: #1a2d4b; --acc: #f0b429; --acc-hi: #ffd166; --ink: #f2f3ef; --mute: #a9b9d3; --dark: #111614; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg0); }
body { min-height: 100svh; display: flex; flex-direction: column; font-family: "SG", -apple-system, system-ui, sans-serif; color: var(--ink); background: var(--bg1); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* The lockup: the lamp first, then the two words. 41.1 px high is its smallest size, and 19 px is its clear space. */
.bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; padding: 7px 12px 7px 19px; padding-top: max(7px, env(safe-area-inset-top)); }
.brand { display: block; flex: none; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 41.1px; width: auto; aspect-ratio: 490.99 / 121.29; }

/* The one section. It takes the room the footer leaves, so a short page fills one screen. The cloth has a twill
   weave and a little grain, and is darkest at its top and bottom edges. */
.scene { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 20px 44px; overflow: hidden; text-align: center; background:
  linear-gradient(180deg, rgba(4,7,24,0.36), rgba(4,7,24,0) 30%, rgba(4,7,24,0) 70%, rgba(4,7,24,0.36)),
  radial-gradient(120% 64% at 50% 50%, rgba(104,146,230,0.075), rgba(104,146,230,0) 62%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.72 0 0 0 0 0.82 0 0 0 0 1 0 0 0 0.5 -0.17'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.012' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.85 0 0 0 0 1 0 0 0 0.42 -0.16'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='0.3'/%3E%3Crect width='220' height='220' filter='url(%23s)' opacity='0.17'/%3E%3C/svg%3E") 0 0 / 220px 220px,
  repeating-linear-gradient(128deg, rgba(196,216,255,0.024) 0 1px, rgba(196,216,255,0) 1px 3.5px),
  repeating-linear-gradient(38deg, rgba(0,3,18,0.055) 0 1px, rgba(0,3,18,0) 1px 4.5px),
  var(--bg1); }
/* The lamp's warm light behind the words, and three cool pools behind that. On the main site the warm light breathes
   between 0.62 and 1 of its strength. Here nothing moves, so it is held at 0.7. */
.scene::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 36%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; opacity: 0.7; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent); pointer-events: none; }
.scene::after { content: ""; position: absolute; z-index: -1; inset: -10% -8%; pointer-events: none; background-repeat: no-repeat; background-image:
  radial-gradient(40% 22% at 22% 58%, rgba(64,124,230,0.22), rgba(64,124,230,0) 70%),
  radial-gradient(34% 20% at 82% 40%, rgba(124,104,224,0.15), rgba(124,104,224,0) 70%),
  radial-gradient(30% 16% at 64% 64%, rgba(36,168,184,0.09), rgba(36,168,184,0) 70%); }

.kick { font-family: "MN", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.kick b { color: var(--acc); font-weight: 600; }
h1 { font-family: "ND", Georgia, serif; font-weight: 500; letter-spacing: -0.022em; line-height: 1; text-wrap: balance; font-size: clamp(44px, 12.4vw, 80px); max-width: 11em; margin-top: 14px; }
/* The gold line under the words that carry the headline. */
h1 em { font-style: normal; background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 92% / 100% 0.13em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.line { margin-top: 18px; max-width: 320px; font-size: 18px; line-height: 1.25; color: var(--mute); text-wrap: balance; }
.line b { color: var(--ink); font-weight: 600; }
.line a { color: var(--acc); text-underline-offset: 3px; }

/* The one action: a text to the line, with a draft. */
.go { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 16px 18px 16px 26px; border-radius: 999px; background: var(--acc); color: var(--dark); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; box-shadow: 0 18px 44px -10px color-mix(in srgb, var(--acc) 55%, transparent); transition: background 0.3s, transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
.go i { width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: var(--acc); display: grid; place-items: center; font-style: normal; }
.go:hover { background: var(--acc-hi); }
.go:active { transform: scale(0.96); }

.foot { background: var(--bg0); padding: 40px 20px 46px; display: grid; gap: 5px; justify-items: center; text-align: center; font-size: 12px; line-height: 1.3; color: var(--mute); }
.foot .brand { margin-bottom: 6px; }
.foot .brand img { height: 50.9px; }
.foot .tag { font-family: "ND", Georgia, serif; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.foot a { color: inherit; text-underline-offset: 3px; display: inline-block; padding: 12px 6px; margin: -12px 0; }

@media (max-width: 379px) { .bar { padding-left: 12px; } .brand img { height: 36px; } .go { font-size: 16px; padding-left: 20px; } }
/* On a wide screen the underlined words stay on one line, so the headline breaks before them. */
@media (min-width: 600px) { h1 em { white-space: nowrap; } }
@media (min-width: 900px) { .bar { padding-left: 28px; } .line { font-size: 21px; max-width: 520px; } .go { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .go { transition: none; } }
