/* AI Resynapse Motion: the closed door. Tokens from DESIGN.md, dark side. One word, one line, one field. */
:root {
  --plate: #0E0C0C; --bone: #F2EDE5; --bone-2: #C4BCB0; --bone-3: #A69D90; --line: #2E2A25; --line-2: #6B6358; --red: #E4121F; --fail: #F2A58E;
  --display: "Bodoni Moda", "Bodoni 72", "Didot", Georgia, serif;
  --ui: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: clamp(20px, 4.4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--plate); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; color: var(--bone); font: 400 15px/1.6 var(--ui);
  background: radial-gradient(90vw 60vh at 12% -10%, rgba(242,237,229,.055), transparent 62%), radial-gradient(70vw 50vh at 96% 108%, rgba(228,18,31,.07), transparent 66%), var(--plate); -webkit-font-smoothing: antialiased; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .05; background: url(../assets/entry/bg/stone.svg) center / 900px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wl-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: clamp(18px, 3vh, 30px) var(--pad); }
.wl-maker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.wl-login { position: relative; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--bone-2); padding: 11px 0; transition: color 160ms ease; }
.wl-login:hover { color: var(--bone); }

.wl-main { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: 8px var(--pad) clamp(28px, 6vh, 56px); }
.wl-copy { width: min(560px, 100%); }
.wl-kicker { margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.wl-h { margin: 0; font: 500 clamp(36px, 5.2vw, 64px)/1.04 var(--display); font-variation-settings: "opsz" 18; letter-spacing: -.02em; }
.wl-lead { margin: 18px 0 0; max-width: 46ch; font-size: clamp(15px, 1.25vw, 17px); color: var(--bone-2); }

.wl-form { margin-top: clamp(24px, 4vh, 36px); }
.wl-row { display: flex; gap: 10px; }
.wl-row input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(21,19,17,.72); color: var(--bone); font: inherit; font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.wl-row input::placeholder { color: var(--bone-3); opacity: 1; }
.wl-row input:hover { border-color: var(--bone-3); }
.wl-row input:focus { outline: none; border-color: var(--bone); box-shadow: 0 0 0 3px rgba(242,237,229,.14); }
.wl-row input[aria-invalid="true"] { border-color: var(--fail); }
.wl-btn { flex: none; height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--bone); color: #16130F; font: 600 15px var(--ui); white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 26px -14px rgba(242,237,229,.5); transition: background-color 160ms ease, transform 160ms var(--ease); }
.wl-btn:hover { background: #fff; }
.wl-btn:active { transform: scale(.97); }
.wl-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wl-consent { position: relative; display: flex; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--bone-3); cursor: pointer; }
.wl-consent input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 1px 0 0; }
.wl-box { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--line-2); border-radius: 5px; color: transparent; transition: background-color 120ms ease, border-color 120ms ease; }
.wl-consent input:checked + .wl-box { background: var(--bone); border-color: var(--bone); color: #16130F; }
.wl-consent input:focus-visible + .wl-box { outline: 2px solid var(--bone); outline-offset: 2px; }
.wl-consent a { color: var(--bone-2); text-underline-offset: 2px; }
.wl-msg { min-height: 22px; margin: 10px 0 0; font-size: 13.5px; color: var(--fail); }

.wl-done { margin-top: clamp(24px, 4vh, 36px); padding-top: 18px; border-top: 1px solid var(--line-2); outline: none; animation: rise 520ms var(--ease) both; }
.wl-done-h { margin: 0; font: 500 26px/1.15 var(--display); }
.wl-done-p { margin: 6px 0 0; color: var(--bone-2); }

/* The word sits under everything, cut by the bottom edge. It holds the page and says nothing. */
.wl-word { position: fixed; right: calc(var(--pad) * -.2); bottom: 0; left: 0; z-index: 1; height: 0; pointer-events: none; }
.wl-name { position: absolute; right: 0; bottom: -.27em; font: 400 clamp(150px, 31vw, 560px)/1 var(--display); font-variation-settings: "opsz" 34; letter-spacing: -.035em; color: rgba(242,237,229,.075); white-space: nowrap; animation: word 1400ms var(--ease) both; }
.wl-rule { position: absolute; right: 0; bottom: clamp(120px, 23vw, 420px); left: calc(var(--pad) + 600px); height: 1px; background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red)); transform-origin: right; animation: draw 1200ms 200ms var(--ease) both; }

.wl-foot { position: relative; z-index: 2; display: flex; gap: 20px; padding: 0 var(--pad) clamp(16px, 2.6vh, 24px); font-size: 12.5px; color: var(--bone-3); }
.wl-foot a { padding: 8px 0; text-underline-offset: 2px; }

@keyframes draw { from { transform: scaleX(0); } }
@keyframes word { from { opacity: 0; transform: translateY(5%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.wl-copy > * { animation: rise 640ms var(--ease) both; }
.wl-copy > :nth-child(2) { animation-delay: 70ms; } .wl-copy > :nth-child(3) { animation-delay: 140ms; } .wl-copy > :nth-child(4) { animation-delay: 210ms; }

@media (max-width: 1000px) { .wl-rule { display: none; } }
@media (max-width: 620px) {
  .wl-row { flex-direction: column; }
  .wl-row input { flex: none; width: 100%; }
  .wl-btn { width: 100%; }
  .wl-main { align-items: flex-start; padding-top: 4vh; }
  .wl-rule { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* ---------- Terms and Privacy ---------- */
.lg { position: relative; z-index: 2; width: min(720px, 100%); margin: 0 auto; padding: 8px var(--pad) 72px; }
.lg-draft { margin: 0 0 28px; padding: 12px 14px; border: 1px solid var(--red); border-radius: 10px; font-size: 14px; color: var(--bone); }
.lg h1 { margin: 0 0 6px; font: 500 clamp(32px, 5vw, 46px)/1.08 var(--display); font-variation-settings: "opsz" 18; }
.lg .lg-date { margin: 0 0 32px; color: var(--bone-3); font-size: 13.5px; }
.lg h2 { margin: 32px 0 6px; font: 600 16px/1.3 var(--ui); }
.lg p, .lg li { color: var(--bone-2); }
.lg p { margin: 0 0 10px; } .lg ul { margin: 0 0 10px; padding-left: 20px; }
