/* Teaser page: logo, countdown, password lock. Same fonts and colours as opening.css. */
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/dm-serif-display-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Pinyon Script'; src: url('../fonts/pinyon-script-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-variable-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gloock'; src: url('../fonts/gloock-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #000000;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .14);
  --accent: #FF5A2B;
  --ice: #DDE5FF;
  --gold: #E2B964;
  --navy: #070B18;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --on-accent: #0B0B0B;
  --err: #FF8A6B;
  --f-text: 'Switzer', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --f-logo: 'DM Serif Display', Georgia, serif;
  --f-display: 'Gloock', Georgia, serif;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --press-scale: .98;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; background: transparent; color: var(--text); font: 400 17px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gate { display: grid; align-content: center; justify-items: center; gap: clamp(14px, 2.6vh, 24px); padding: 64px var(--gutter); text-align: center; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('../images/stars.svg') center / cover no-repeat, radial-gradient(70vmax 70vmax at 0% 0%, rgba(48, 80, 200, .42), transparent 62%), radial-gradient(60vmax 60vmax at 100% 100%, rgba(226, 185, 100, .26), transparent 62%), var(--navy); }
.diag { position: absolute; width: 1px; height: 46vmin; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .85)); transform-origin: top left; }
.diag--tl { left: -1vmin; top: -14vmin; transform: rotate(35deg); transform-origin: bottom left; background: linear-gradient(to top, transparent, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .85)); }
.diag--br { right: 18vmin; bottom: -2vmin; transform: rotate(35deg); transform-origin: bottom right; }
.mark { display: block; width: clamp(56px, 9vmin, 84px); height: auto; color: var(--ice); }
.brand { position: relative; padding: 0 .2em; }
.gate__logo { margin: 0; color: var(--ice); font: 400 clamp(56px, 13vw, 132px)/1 var(--f-logo); letter-spacing: -.025em; text-shadow: 0 0 .35em rgba(120, 150, 255, .5); }
.spk { position: absolute; width: .26em; height: .26em; color: var(--gold); font-size: clamp(56px, 13vw, 132px); }
.spk--a { right: -.1em; top: -.06em; width: .34em; height: .34em; }
.spk--b { left: -.02em; bottom: -.02em; width: .24em; height: .24em; }
.gate__tag { margin: -6px 0 0; color: var(--gold); font: italic 500 clamp(24px, 3.8vw, 40px)/1.2 'EB Garamond', Georgia, serif; letter-spacing: .03em; }
.gate__line { margin: 4px 0 0; max-width: 34ch; color: var(--text-2); font-size: 15px; }
.gate__back { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }

.count { display: flex; gap: clamp(14px, 4vw, 36px); }
.count__cell { display: grid; justify-items: center; gap: 8px; min-width: clamp(56px, 14vw, 104px); }
.count__n { font: 400 clamp(40px, 11vw, 96px)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.count__l { color: var(--text-2); font: 500 12px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; }

.wl { display: grid; justify-items: center; gap: 12px; width: min(520px, calc(100vw - 2 * var(--gutter))); margin-top: 4px; }
.wl__row { position: relative; width: 100%; border: 1px solid rgba(255, 255, 255, .22); border-radius: 0; background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wl__row:focus-within { border-color: rgba(255, 255, 255, .7); outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 3px; }
.wl__input { --wl-max: 16px; --wl-min: 12px; display: block; width: 100%; min-height: 56px; padding: 18px 20px; resize: none; overflow: hidden; border: 0; background: transparent; color: var(--text); font: 400 var(--wl-max)/1.3 var(--f-text); letter-spacing: .04em; text-align: center; overflow-wrap: anywhere; word-break: break-all; }
.wl__input::placeholder { color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; }
.wl__input:focus-visible { outline: none; }
.wl__go { width: 100%; height: 52px; padding: 0 24px; border: 1px solid var(--ice); border-radius: 0; background: var(--ice); color: var(--navy); font: 600 12px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.wl__go:active:not(:disabled) { transform: scale(var(--press-scale)); }
.wl__go:disabled { background: transparent; border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .45); cursor: default; }
.wl__note { max-width: 46ch; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; text-align: center; }
.wl__note a { color: var(--text); }
.wl__status { margin: 0; max-width: 46ch; min-height: 1.4em; font-size: 15px; line-height: 1.4; text-align: center; }
.wl__status:empty { display: none; }
.wl__status[data-kind="error"] { color: var(--err); }
.wl.is-done .wl__status { color: var(--text); font-weight: 600; outline: none; }
.wl__ts:not(:empty) { margin-top: 4px; }
.wl__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { display: grid; justify-items: center; gap: 14px; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.foot__note { margin: 0; color: var(--text-2); font-size: 13px; }

.lock { display: grid; justify-items: center; gap: 10px; min-height: 140px; align-content: start; }
.lock__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 500 14px/1 var(--f-text); cursor: pointer; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.lock__btn:hover { color: var(--text); }
/* /owners: the question above a lock with no label */
.lock__ask { margin: 0; color: var(--text-2); font-size: 14px; }
.lock__btn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; border: 1px solid var(--line); }
/* /owners: the lock sits under the countdown, not in the footer */
.lock--owners { margin-top: clamp(8px, 2vh, 20px); min-height: 124px; } /* room for the password bar, so nothing jumps when it opens */
/* /owners: a smaller countdown than the teaser's, still easy to read */
.count--sm { gap: clamp(12px, 3vw, 24px); margin-top: 4px; }
.count--sm .count__cell { min-width: clamp(52px, 11vw, 72px); gap: 6px; }
.count--sm .count__n { font-size: clamp(30px, 6.5vw, 48px); }
.count--sm .count__l { font-size: 11px; }
.lock__btn:active { transform: scale(var(--press-scale)); }
.lock__form { display: flex; align-items: center; gap: 8px; width: min(320px, calc(100vw - 2 * var(--gutter))); }
.lock__input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: 400 17px/1 var(--f-text); }
.lock__input::placeholder { color: var(--text-2); }
.lock__go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); cursor: pointer; transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.lock__go:active { transform: scale(var(--press-scale)); }
.lock__go[disabled] { opacity: .5; cursor: default; }
.lock__msg { margin: 0; min-height: 22px; color: var(--text-2); font-size: 14px; text-align: center; }
.lock__msg.is-error { color: var(--err); }

@media (prefers-reduced-motion: no-preference) {
  .mark, .brand, .gate__tag, .gate__line, .count, .wl, .foot { animation: rise 700ms var(--ease-out) both; }
  .brand { animation-delay: 80ms; }
  .gate__tag { animation-delay: 160ms; }
  .gate__line { animation-delay: 220ms; }
  .count { animation-delay: 280ms; }
  .lock--owners { animation: rise 700ms var(--ease-out) 340ms both; }
  .foot { animation-delay: 380ms; }
  .lock__form:not([hidden]) { animation: rise 200ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .lock__btn:active, .lock__go:active, .wl__go:active { transform: none; }
}
@media (max-width: 380px) {
  .count { gap: 10px; }
}
