@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/noto-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-standard-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-standard-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: "Noto Sans", system-ui, sans-serif;
  --heading-font: "Source Serif 4", Georgia, serif;
  --radius: 19.2px;
  --action-blue: #007aff;
  --paper: #fff;
  --ink: #131313;
  --muted: #363636;
  --line: #717171;
  --underline: #919191;
  --edge: 36px;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: var(--font); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  row-gap: 32px;
  padding: 36px var(--edge);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; padding: 0; background: none; border: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: 0; inset-inline-start: var(--edge); transform: translateY(-130%); background: var(--paper); }
.skip:focus-visible { transform: translateY(4px); }
header { align-self: start; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font: 600 20px/1 var(--heading-font);
  letter-spacing: -.045em;
  text-decoration: none;
}
.wordmark img { height: 27px; width: auto; }
.nav, footer { font-size: 13px; line-height: 1.4; letter-spacing: -.01em; }
.nav { display: flex; align-items: baseline; gap: 24px; }
.nav button, .nav a, .text-link {
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.nav button:hover, .nav a:hover, .text-link:hover { text-decoration-color: currentColor; }
main {
  width: 100%;
  max-width: 29rem;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.01em;
}
main h1, main p { margin: 0; font: inherit; letter-spacing: inherit; }
main h1 { font-family: var(--heading-font); font-size: 33.6px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; }
main p { text-wrap: pretty; }
.home-mascot { height: clamp(96px, 12vw, 148px); width: auto; }
.auth-mascot { height: clamp(70px, 8vw, 94px); width: auto; }
.home-intro > p { max-width: 27rem; font-size: 15px; line-height: 1.5; text-wrap: balance; }
@media (min-width: 700px) {
  .home-intro { max-width: 41rem; gap: clamp(20px, 2vw, 30px); }
  .home-intro h1 { font-size: clamp(36px, 3.2vw, 48px); }
  .home-intro > p { max-width: 37rem; font-size: clamp(16px, 1.4vw, 19px); }
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: min(132px, 100%);
  max-width: 100%;
  min-height: 44px;
  padding: 9px 22px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  color: var(--paper);
  background: var(--action-blue);
  text-decoration: none;
}
.home-intro .primary { margin-top: 4px; }
.auth-panel .primary { margin-top: 14px; }
.primary:hover { background: #0068d9; }
.primary:focus-visible { outline-color: var(--ink); }
.primary, .phone-box, #code {
  border-radius: var(--radius);
  corner-shape: squircle;
}
.chevron, .primary::after { display: inline-block; flex: none; width: .34em; height: .34em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.primary::after { content: ""; }
footer { align-self: end; text-align: center; color: var(--muted); }
.footer-legal { display: inline-block; margin-inline-start: .6em; }

.auth-main { max-width: 24rem; }
.auth-panel { width: 100%; }
.auth-panel h1 { font-size: 38px; font-weight: 500; line-height: 1.2; }
.auth-panel:has(#phone-form:not([hidden])) h1 { font-style: italic; }
#auth-intro { margin: 14px auto 26px; max-width: 31ch; line-height: 1.5; color: var(--muted); }
.auth-panel:has(#phone-form:not([hidden])) #auth-intro { max-width: none; }
.auth-panel form { text-align: start; }
.auth-panel .field-label { display: block; font-size: 14px; margin-bottom: 7px; }
.auth-panel .preview-note { margin-block: 8px 16px; font-size: 14px; color: var(--muted); }
.preview-note strong { color: var(--ink); }
.phone-box { display: flex; align-items: center; width: 100%; border: 1px solid var(--line); }
.phone-box, #code { background: var(--paper); }
#phone::placeholder, #code::placeholder { color: var(--line); }
.phone-box:focus-within { outline: 1px solid var(--ink); border-color: var(--ink); }
.calling-code { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-right: 1px solid var(--line); font-size: 15px; }
.calling-code .chevron { transform: rotate(135deg); margin-top: -2px; }
#country-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 17px; line-height: 1; }
.calling-code select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.calling-code:focus-within { text-decoration: underline; }
input { font-size: 16px; }
#phone { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; min-height: 47px; padding: 10px 12px; background: transparent; }
#code { width: 100%; min-height: 48px; border: 1px solid var(--line); padding: 10px 14px; letter-spacing: .16em; }
.auth-links { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-link { font-size: 13px; }
.auth-panel .form-error { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 8px; }
.auth-legal { margin-top: 16px; color: var(--muted); }
.legal-page { grid-template-rows: auto 1fr auto; }
.legal-main {
  max-width: 36rem;
  padding-block: clamp(12px, 4vw, 64px);
  align-items: stretch;
  text-align: start;
  gap: 16px;
}
.legal-main p { text-wrap: pretty; }
.legal-date { font-size: 13px; color: var(--muted); }
.legal-main section { margin-top: 8px; }
.legal-main h2 { margin: 0; font: 600 26px/1.25 var(--heading-font); letter-spacing: -.025em; }
.legal-main section p { margin-top: 12px; }
.invite-main { max-width: 25rem; }
.invite-intro { color: var(--muted); }
.invite-preview { margin: 0; font-size: 16px; line-height: 1.55; }
#invite-link { display: block; margin-top: 5px; text-underline-offset: .2em; }
.invite-actions { display: grid; justify-items: center; gap: 14px; }
#invite-status { font-size: 14px; color: var(--muted); }
#invite-status:empty { display: none; }
button:disabled { opacity: .5; cursor: default; }
@media (max-width: 1279px) {
  :root { --edge: 32px; }
}
@media (max-width: 540px) {
  :root { --edge: 24px; }
  body { padding-block: 24px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; row-gap: 6px; }
}
