/* Coming soon page for commonplace.house. Tokens copied from app/styles/tokens.css
   (calm and warm), values on the landing-page-design skill's scales. */
@font-face {
  font-family: "Manrope";
  src: url("manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #EDEAE2;
  --surface: #FFFDF9;
  --ink: #24251F;
  --muted: #605E56;
  --accent: #4E7859;
  --accent-hover: #44694E;
  --accent-ink: #FFFFFF;
  --accent-soft: #DDE8DA;
  --accent-text: #365C41;
  --hero-from: #24251F;
  --hero-to: #605E56;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171612;
    --surface: #211F1B;
    --ink: #E8E4DA;
    --muted: #A29E92;
    --accent: #8DB597;
    --accent-hover: #9DC2A6;
    --accent-ink: #171612;
    --accent-soft: #29332B;
    --accent-text: #A9CCB1;
    --hero-from: #E8E4DA;
    --hero-to: #A29E92;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Text styles (skill B1) */
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.skip {
  position: absolute; left: 16px; top: 16px;
  padding: 8px 12px; border-radius: 9999px;
  background: var(--surface); color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 48px;
  animation: rise 700ms var(--ease) both;
}

.logo { width: 64px; height: 64px; margin-bottom: 32px; }

.badge {
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hero {
  max-width: 680px;
  margin: 0;
  text-wrap: balance;
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nb { white-space: nowrap; }

.sub {
  max-width: 520px;
  margin: 24px 0 32px;
  color: var(--muted);
  text-wrap: pretty;
}

.button {
  display: inline-block;
  padding: 8px 12px;
  min-width: 128px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.note { margin: 16px 0 0; color: var(--muted); text-wrap: pretty; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px 16px 32px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .heading-2 { font-size: 36px; line-height: 40px; }
  .hero br { display: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: fade 400ms var(--ease) both; }
  .button { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
