/* Shared styles for the holding page and its privacy and terms pages. */

@font-face {
  font-family: 'Geist';
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #17171a;
  --muted: #5c5c66;
  --line: #e2e2de;
  --ok: #1a7f4b;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

header .wrap,
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header {
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.mark {
  width: 1.875rem;
  height: 1.875rem;
}

@media (max-width: 420px) {
  .brand {
    gap: 0.5rem;
    font-size: 1.125rem;
  }

  .mark {
    width: 1.625rem;
    height: 1.625rem;
  }
}

main {
  flex: 1;
}

/* Home: the hero sits in the middle of the viewport. */
.home main {
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 8vh, 6rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
}

.status::before {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--ok);
}

.home h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.soon {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  font-weight: 500;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgb(23 23 26 / 0.04), 0 12px 32px -12px rgb(23 23 26 / 0.12);
}

.card-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.card-head span:last-child {
  color: var(--muted);
}

.card ul {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.card li {
  display: flex;
  gap: 0.75rem;
  line-height: 1.4;
}

.card li::before {
  content: '✓';
  color: var(--ok);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.brand {
  text-decoration: none;
}

footer {
  padding-block: 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Privacy and terms pages. */
.doc main {
  padding-block: clamp(2.5rem, 7vh, 4.5rem) 3rem;
}

.doc .prose {
  max-width: 38rem;
}

.doc .label {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
}

.doc h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.doc .intro {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin-top: 1rem;
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  padding-left: 1.1em;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose .updated {
  margin-top: 3rem;
  font-size: 0.875rem;
}

/* Cookie notice: informational only. The site sets no tracking
   cookies; the dismissal is remembered in localStorage. */
.notice {
  position: fixed;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 26rem;
  padding: 0.875rem 0.875rem 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  box-shadow: 0 1px 2px rgb(23 23 26 / 0.04), 0 16px 40px -16px rgb(23 23 26 / 0.2);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
  animation: rise 240ms ease-out;
}

.notice[hidden] {
  display: none;
}

.notice button {
  flex: none;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.notice button:hover {
  background: #2c2c31;
}

.notice button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Movement only, no fade: the notice is readable even if the
   animation never runs. */
@keyframes rise {
  from {
    transform: translateY(0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice {
    animation: none;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  main {
    align-items: flex-start;
  }

  .notice {
    left: var(--gutter);
    bottom: 1rem;
    max-width: none;
  }

  /* Keep the footer clear of the notice while it's showing. */
  body:has(.notice:not([hidden])) footer {
    padding-bottom: 6rem;
  }
}
    
