@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url('fonts/heebo-hebrew-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url('fonts/heebo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+2000-206F; }

/* The same night as the main ADAM page (nebula theme in app/public/style.css). */
:root {
  --bg: #01020a; --ink: #eef0ff; --muted: rgba(238, 240, 255, .58); --line: rgba(238, 240, 255, .16);
  --card: rgba(238, 240, 255, .05); --accent: #8ea2ff; --danger: #ff8a8a;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --logo-w: clamp(110px, 13vw, 170px);
  color-scheme: dark; scrollbar-color: rgba(238, 240, 255, .25) transparent;
  scrollbar-gutter: stable;   /* a scrollbar appearing never shifts the page sideways */
}
::selection { background: var(--accent); color: var(--bg); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: 'Heebo', Arial, sans-serif; font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---- the sky, the logo, the signature, the music button (same as the main page) ---- */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.no-field #field { display: none; }
.no-field body { background: radial-gradient(60% 50% at 60% 60%, #0d1a5c, transparent 70%), radial-gradient(40% 40% at 25% 30%, #1a1150, transparent 70%), var(--bg); }
.cursor-light { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.bg-logo { position: absolute; top: 10px; left: 14px; z-index: -1; width: var(--logo-w); pointer-events: none; perspective: 700px; opacity: .6; }
.bg-logo img { width: 100%; height: auto; display: block; will-change: transform; }
.sign { position: absolute; top: calc(10px + var(--logo-w) * .36); left: calc(14px + var(--logo-w) + 6px); z-index: 2; text-align: left; pointer-events: none; }
.sign p { margin: 0; }
.sign span { font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.sound-toggle { position: fixed; top: 18px; right: 18px; z-index: 6; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--muted); border: 1px solid var(--line); }
.sound-toggle[aria-pressed=false] { opacity: .5; }
.sound-toggle[aria-pressed=false]::after { content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
@media (max-width: 640px) { :root { --logo-w: 84px; } .sound-toggle { top: 12px; right: 12px; } }

/* ---- the page ---- */
main { max-width: 560px; margin: 0 auto; padding: clamp(150px, 22vh, 220px) 20px 80px; }
.kicker { margin: 0 0 18px; font-size: .74rem; font-weight: 500; letter-spacing: .22em; color: var(--muted); }
h1 { font-weight: 200; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.06; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
h1 b { font-weight: 300; color: var(--accent); }
.lead { color: var(--muted); margin: 0 0 40px; font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 200; }

/* the form: lines on the night, like the story line on the main page */
form { display: grid; gap: 26px; }
label { display: grid; gap: 2px; font-size: .86rem; color: var(--muted); }
input { font: inherit; font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 2px; transition: border-color .3s var(--ease); }
input:focus { outline: none; border-bottom-color: var(--ink); }
input::placeholder { color: rgba(238, 240, 255, .3); }
input[dir="ltr"] { text-align: right; }
/* the browser's autofill paints its own colour: keep the night */
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 99999s 0s; box-shadow: 0 0 0 100px var(--bg) inset; }

/* the code line opens softly in place of appearing */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .55s var(--ease); margin-top: -26px; }
.reveal > div { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.reveal.open > div { padding-bottom: 2px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; backdrop-filter: blur(6px); }
button, .btn { font: inherit; font-weight: 500; font-size: 1rem; border: 0; border-radius: 99px; padding: 14px 24px; background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; text-align: center; display: inline-block;
  transition: transform .2s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease); }
button:active, .btn:active { transform: scale(.97); }
button[disabled] { opacity: .55; cursor: default; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.wa { background: #25d366; color: #062b16; }
.err { color: var(--danger); min-height: 1.5em; margin: -10px 0 0; font-size: .92rem; }
.note { color: var(--muted); font-size: .85rem; margin: 0; }
.dev { color: var(--accent); font-size: .85rem; margin: 0; min-height: 1.4em; }
.big { font-size: 3.2rem; font-weight: 200; line-height: 1; margin: 0; }
.big small { font-size: 1rem; color: var(--muted); }
.link { direction: ltr; text-align: left; font-size: .85rem; color: var(--muted); word-break: break-all; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 10px 12px; margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- motion: everything arrives in a fade, one after the other; leaving is quicker ---- */
.step > * { animation: in 1.4s var(--ease) both; }
.step > :nth-child(2) { animation-delay: .25s; }
.step > :nth-child(n+3) { animation-delay: .6s; }
@keyframes in { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } }
.leaving > * { opacity: 0 !important; filter: blur(8px); transform: translateY(-8px); transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease); animation: none; }
@media (prefers-reduced-motion: reduce) { .step > *, .reveal { animation-duration: .01s; transition-duration: .01s; } }

/* admin */
.admin main { max-width: 980px; padding-top: clamp(130px, 18vh, 180px); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 400; }
td .row { gap: 6px; }
td button, td .btn { padding: 7px 14px; font-size: .85rem; }
.tag { display: inline-block; font-size: .75rem; border-radius: 99px; padding: 2px 10px; border: 1px solid var(--line); }
.tag.approved { color: #9ff0d0; border-color: #9ff0d0; }
.tag.waiting { color: var(--accent); border-color: var(--accent); }
.tag.declined { color: var(--danger); border-color: var(--danger); }
.tabs { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.tabs button { padding: 8px 16px; font-size: .9rem; }
.tabs button[aria-pressed="false"] { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 700px) { table, thead, tbody, tr, td { display: block; } thead { display: none; } tr { border-bottom: 1px solid var(--line); padding: 10px 0; } td { border: 0; padding: 3px 0; } }

/* the member's invite: a letter that writes itself while they type */
textarea { font: inherit; font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 2px; resize: none; overflow: hidden; min-height: 48px; transition: border-color .3s var(--ease), height .2s var(--ease); }
textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea::placeholder { color: rgba(238, 240, 255, .3); }
.letter { margin: 6px 0 0; padding: 22px 24px; border-radius: 20px; background: linear-gradient(160deg, rgba(142, 162, 255, .12), rgba(185, 140, 255, .06) 60%, rgba(238, 240, 255, .03));
  border: 1px solid rgba(142, 162, 255, .22); backdrop-filter: blur(6px); }
.letter p { margin: 0; white-space: pre-line; color: var(--ink); font-weight: 300; line-height: 1.75; }
.sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sent li { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.sent .out { color: var(--muted); font-size: .9rem; }
.sent .in { color: #9ff0d0; font-size: .9rem; }
#sentBox { margin-top: 48px; }
.step > .letter { margin: 0 0 28px; }

/* ---- preview of the studio's front door (enter.html) ---- */
.studio main { max-width: 760px; min-height: 100vh; display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
.studio .hero { flex: 1; display: flex; flex-direction: column; justify-content: safe center; padding: 120px 0 10vh; }
.studio .hero h1 { font-size: clamp(2.4rem, 7.4vw, 4.6rem); line-height: 1.02; margin: 0; }
.studio .sub { margin: 14px 0 0; font-weight: 200; font-size: clamp(1.3rem, 3.4vw, 2rem); color: var(--muted); }
.studio .hint { color: var(--muted); font-size: .95rem; margin: 12px 0 0; min-height: 1.5em; }
.line { display: flex; align-items: flex-end; gap: 10px; margin-top: clamp(36px, 7vh, 64px); border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.line:focus-within { border-bottom-color: var(--ink); }
.line textarea { flex: 1; border: 0; padding: 12px 4px; min-height: 0; }
.line .send { flex: none; width: 44px; height: 44px; padding: 0; margin-bottom: 6px; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.2rem; }
.line:has(textarea:not(:placeholder-shown)) .send { background: var(--ink); color: var(--bg); }
.chips { position: fixed; top: 18px; right: 66px; z-index: 6; display: flex; gap: 8px; flex-wrap: wrap; animation: in 1.4s var(--ease) .9s both; }
.chip { font-size: .82rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); transition: color .3s var(--ease), border-color .3s var(--ease); }
.chip b { color: var(--ink); font-weight: 500; }
a.chip:hover { color: var(--ink); border-color: var(--ink); }
.preview-note { position: fixed; bottom: 14px; left: 16px; z-index: 6; margin: 0; font-size: .75rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 4px 12px; }
@media (max-width: 640px) { .chips { top: 12px; right: 58px; } .chip { padding: 6px 11px; font-size: .76rem; } }
.enter { margin-top: 40px; }

/* the waitlist and the invite fit one screen: no scrolling (Doron, 10/11) */
main.fit { max-width: 700px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 70px 20px 44px; }
main.fit h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 10px; }
main.fit .lead { margin-bottom: 22px; }
main.fit form { gap: 12px; }
main.fit label { font-size: .8rem; }
main.fit input { padding: 5px 2px; }
main.fit .reveal { margin-top: -12px; }
main.fit .reveal.open { margin-top: 0; }
main.fit .err { margin-top: -6px; min-height: 1.2em; }
main.fit .step > .letter { margin-bottom: 18px; padding: 14px 18px; }
