/* In the Room landing page. Coral theme and type from the app (web/src/index.css). */
@font-face {
  font-family: "Oswald Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("/fonts/oswald-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Spline Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/spline-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #ff8067;
  --header-bg: #ffd350;
  --paper: #fdfbf7;
  --ink: #172d36;
  --ink-soft: #2f3d47;
  --swish: #ffd350;
  --card: #fdfbf7;
  --line: #172d36;
  --focus: #03648a;
  --good: #d9c6f5;
  --good-ink: #4c2578;
  --bad: #fecaca;
  --bad-ink: #8f1a26;
  --radius-panel: 20px 4px 18px 5px / 5px 18px 6px 20px;
  --radius-button: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --font-display: "Oswald Variable", Impact, sans-serif;
  --font-body: "Spline Sans Variable", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg) url("/music-paper.svg") 0 0 / 100% 100% fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: 36rem; margin: 0 auto; padding: 0 1rem; }

.top {
  background: var(--header-bg);
  border-bottom: 2px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; }

.wordmark {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: skewX(-7deg);
  color: var(--ink);
  text-decoration: none;
}
.wordmark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -0.06em -0.06em 38%;
  height: 0.2em;
  border-radius: 70% 14% 65% 20%;
  background: var(--bg);
  transform: rotate(-3deg);
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

.swish-under { position: relative; isolation: isolate; display: inline-block; }
.swish-under::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -0.1em 0.05em -0.1em;
  height: 0.32em;
  border-radius: 100% 1% 70% 1% / 12% 60% 10% 70%;
  background: var(--swish);
  opacity: 0.9;
  transform: rotate(-1deg);
}

.panel {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 4px 4px 0 var(--line);
}
.panel-thick { border-width: 3px; box-shadow: 6px 6px 0 -1px var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  background: var(--swish);
  border: 3px solid var(--line);
  border-radius: var(--radius-button);
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

main { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; }

.hero { display: flex; flex-direction: column; gap: 1.1rem; }
.kicker { font-size: 0.85rem; letter-spacing: 0.18em; color: var(--ink-soft); }
.hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); font-weight: 700; }
.lede { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }
.hero .btn { align-self: stretch; }

.steps h2, .note h2, .join h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.steps li { display: flex; gap: 1rem; padding: 1rem 1.1rem; align-items: flex-start; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--swish);
  border: 2px solid var(--line);
  border-radius: 50% 45% 52% 48%;
}

.note { padding: 1.2rem 1.2rem 1.3rem; }
.note p { margin: 0; color: var(--ink-soft); }

.join { padding: 1.4rem 1.2rem; scroll-margin-top: 1rem; }
.join > p { margin: 0 0 1rem; }
form { display: flex; flex-direction: column; gap: 0.75rem; }
input[type="email"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px 4px 10px 5px / 5px 10px 4px 12px;
}
.status { margin: 0.75rem 0 0; min-height: 1.5em; font-weight: 600; }
.status.ok { padding: 0.6rem 0.8rem; background: var(--good); color: var(--good-ink); border-radius: 10px; }
.status.err { padding: 0.6rem 0.8rem; background: var(--bad); color: var(--bad-ink); border-radius: 10px; }
.status:empty { padding: 0; }
.fine { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.foot { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); font-size: 0.9rem; color: var(--ink); }
.foot p { margin: 0; }

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (min-width: 640px) {
  .hero .btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
