:root {
  --bg: #e7e3da;
  --ink: #191816;
  --muted: #6d695f;
  --line: rgba(25, 24, 22, .16);
  --pad: clamp(22px, 4.5vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 300 16px/1.7 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

header, footer { position: fixed; left: var(--pad); right: var(--pad); z-index: 3; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
header { top: 30px; }
footer { bottom: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brand { font: 400 13px/1 "Tenor Sans", serif; letter-spacing: .34em; }
.hint { transition: opacity .5s; }
.link { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; transition: border-color .3s; }
.link:hover { border-color: var(--ink); }

.dots { position: fixed; z-index: 3; right: calc(var(--pad) - 9px); top: 50%; transform: translateY(-50%); display: grid; }
.dots a { width: 24px; height: 24px; display: grid; place-items: center; }
.dots a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ink); transition: background .3s, transform .3s; }
.dots a.on::after { background: var(--ink); transform: scale(1.4); }

section { position: relative; z-index: 2; height: 100vh; height: 100svh; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); }
h1, h2, h3 { font: 400 clamp(34px, 6.4vw, 92px)/1.14 "Tenor Sans", "Times New Roman", serif; letter-spacing: -.015em; }
section p { margin-top: 34px; max-width: 420px; color: var(--muted); font-weight: 300; }
section > * { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.1,1), filter 1.4s ease; }
section.on > * { opacity: 1; transform: none; filter: none; }
section.on > :nth-child(2) { transition-delay: .35s; }

.invite { margin-top: 52px; min-height: 56px; padding: 0 38px; background: transparent; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink); font: 300 11px/1 "Onest", sans-serif; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; transition: background-color .5s, color .5s, opacity 1.4s ease, transform 1.4s, filter 1.4s; }
.invite:hover { background: var(--ink); color: var(--bg); }

dialog { margin: auto; width: min(560px, calc(100% - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: clamp(36px, 6vw, 62px); text-align: center; box-shadow: 0 60px 120px -50px rgba(25, 24, 22, .5); }
dialog[open] { animation: appear .6s ease; }
dialog::backdrop { background: rgba(231, 227, 218, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
dialog h3 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; }
dialog p { margin-top: 22px; color: var(--muted); }
dialog .invite { margin-top: 36px; }
@keyframes appear { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 640px) {
  .dots { display: none; }
  .brand { letter-spacing: .24em; }
  header, footer { letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  section > * { opacity: 1; transform: none; filter: none; }
}
