/* Posare website. Colours, type, spacing and radii come from docs/design/tokens.json. */

@font-face {
  font-family: "Fraunces Soft";
  src: url("Fraunces-Soft-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Tag */
  --ground: #f6f4f0;
  --surface: #fdfcfa;
  --tint: #ffe6da;
  --ink: #23224f;
  --ink-muted: #5d5c7a;
  --line: #e7e2dc;
  --border: #85818f;
  --accent-text: #b83d22;
  --glow: #f25a34;
  --on-bright: #131233;
  --focus: #6a4be8;
  --orb-sun: #ffd23f;
  --orb-tangerine: #ff9a3c;
  --orb-coral: #ff6b4a;
  --orb-pink: #ff5fa2;
  --orb-magenta: #d64bff;
  --orb-violet: #7b5cff;

  --display: "Fraunces Soft", Georgia, serif;
  --text: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Nacht */
    --ground: #1c1816;
    --surface: #27211e;
    --tint: #3a2e28;
    --ink: #f2ede6;
    --ink-muted: #b0aaa2;
    --line: #332c28;
    --border: #7a756e;
    --accent-text: #ffb199;
    --glow: #ff9a3c;
    --focus: #ffd23f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/24px var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}

.skip:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2 * var(--space-4), 1040px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--space-4), 680px);
  margin-inline: auto;
}

/* Header */

.site-header {
  padding-block: var(--space-6);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 900 24px/1 var(--display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Hero: the sun rests on the horizon. */

.hero {
  padding-block: var(--space-10) 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: end;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
  font: 500 13px/18px var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 7.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}

.lede {
  margin: var(--space-6) 0 0;
  max-width: 34ch;
  font-size: 20px;
  line-height: 29px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-10);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  background: var(--glow);
  color: var(--on-bright);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

.quiet {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 21px;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: var(--space-10);
}

.stage .icon {
  width: min(280px, 70vw);
  filter: drop-shadow(0 24px 40px rgb(35 34 79 / 0.12));
}

.stage .icon.night {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .stage .icon.day {
    display: none;
  }
  .stage .icon.night {
    display: block;
    filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.4));
  }
}

.horizon {
  height: 1px;
  background: var(--line);
}

/* The confirmation, as the app shows it. */

.confirmation {
  margin: var(--space-10) auto 0;
  width: fit-content;
  max-width: 100%;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  text-align: center;
}

.confirmation span {
  font: 900 20px/1 var(--display);
  margin-right: var(--space-2);
}

/* Sections */

section {
  padding-block: calc(var(--space-10) * 2);
}

.section-title {
  margin: 0 0 var(--space-6);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.05;
  font-variation-settings: "opsz" 96;
}

.section-lede {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-muted);
}

.steps {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.steps li {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: var(--space-4);
  font: 900 40px/1 var(--display);
  color: var(--accent-text);
  font-variation-settings: "opsz" 144;
}

.steps h3 {
  margin: 0 0 var(--space-2);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
}

/* After hours: the glass. */

.evening {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.evening .section-title {
  margin-bottom: var(--space-4);
}

.evening p {
  margin: 0 0 var(--space-4);
}

.evening p:last-child {
  margin-bottom: 0;
}

.glass {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.glass ul {
  list-style: none;
  margin: 0;
  padding: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.glass li {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--ground);
  font-size: 15px;
}

/* The glass: hold it and it thaws from the finger outward (assets/glass.js sets --clear, --x, --y). */

.glass {
  --clear: 0;
  --x: 50%;
  --y: 60%;
}

.glass .frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--x) var(--y),
      color-mix(in srgb, var(--orb-sun) calc(var(--clear) * 35%), transparent),
      color-mix(in srgb, var(--orb-coral) calc(var(--clear) * 18%), transparent) 35%,
      transparent 70%),
    color-mix(in srgb, var(--surface) calc((1 - var(--clear)) * 55%), transparent);
  backdrop-filter: blur(calc((1 - var(--clear)) * 10px));
  -webkit-backdrop-filter: blur(calc((1 - var(--clear)) * 10px));
}

.glass-hold {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-6);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  opacity: calc(1 - var(--clear) * 2.5);
}

.glass-hold:focus-visible {
  outline-offset: -6px;
  border-radius: var(--radius-lg);
}

.glass-note {
  font-weight: 600;
}

.glass-hint {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 21px;
}

/* Privacy */

.promises {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-10);
}

.promises li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.promises strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--display);
  font-size: 20px;
  line-height: 26px;
}

.promises span {
  color: var(--ink-muted);
}

/* Waitlist */

.waitlist {
  text-align: center;
}

.waitlist .section-lede {
  margin-inline: auto;
}

.waitlist .hero-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding-block: var(--space-10);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 21px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Legal pages */

.legal {
  padding-block: var(--space-10) calc(var(--space-10) * 2);
}

.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: var(--space-6);
}

.legal h2 {
  margin: var(--space-10) 0 var(--space-2);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.legal h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin: 0 0 var(--space-4);
}

.legal ul {
  padding-left: var(--space-6);
}

.legal li {
  margin-bottom: var(--space-2);
}

.legal .stand {
  color: var(--ink-muted);
  font-size: 15px;
}

.placeholder {
  background: var(--tint);
  border-radius: 6px;
  padding: 0 var(--space-1);
}

address {
  font-style: normal;
}

/* Small screens */

@media (max-width: 760px) {
  .hero .wrap,
  .evening {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    gap: var(--space-6);
  }
  .stage {
    order: -1;
    padding-bottom: var(--space-6);
  }
  .stage .icon {
    width: 180px;
  }
  .steps,
  .promises {
    grid-template-columns: 1fr;
  }
  .evening {
    padding: var(--space-6);
  }
  section {
    padding-block: var(--space-10) calc(var(--space-10) + var(--space-6));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: filter 160ms ease-out;
  }
}

/* Waitlist form */

.signup {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-10) auto 0;
  max-width: 440px;
  text-align: left;
}

.field {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  padding: 0;
  font-weight: 600;
}

.optional {
  color: var(--ink-muted);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field input[aria-invalid="true"] {
  border-color: var(--accent-text);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.field .choice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6) 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 400;
  cursor: pointer;
}

.field .choice:has(input:checked) {
  background: var(--tint);
  border-color: var(--ink);
}

.choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--glow);
}

.field-error {
  margin: 0;
  color: var(--accent-text);
  font-size: 15px;
  line-height: 21px;
}

.signup .button {
  justify-self: start;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.signup .button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status:empty {
  display: none;
}

.form-status,
.signup .quiet {
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
