/* O World — temporary site. Concept: a grey-sky page and one green text bubble. */
/* O World — temporary site. Concept: a white page, the wordmark, one blue accent. Single light theme by design. */
:root {
  --sky: #ffffff;        /* page ground */
  --paper: #f5f7f9;      /* raised surfaces */
  --ink: #111111;        /* text, matches the wordmark */
  --muted: #5b6670;      /* secondary text */
  --rule: #dfe4e8;       /* hairlines, borders */
  --accent: #1a94f3;     /* brand blue */
  --accent-tint: #e6f3fe;/* message bubble */
  --accent-deep: #0e6fc0;/* blue text/links that must stay readable */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --font-phone: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font: 17px/1.6 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wrap { max-width: 640px; margin: 0 auto; padding-block: 28px 48px; }
header.site { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.masthead { display: block; max-width: 460px; }
.masthead img { display: block; width: 100%; height: auto; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.tag { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem); line-height: 1.05; margin: 48px 0 16px;
  text-wrap: balance;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 36px; }

/* The phone thread: one sample edition */
.thread { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: 18px 16px 20px; max-width: 420px; }
.thread-meta { font-family: var(--font-phone); font-size: 0.75rem; color: var(--muted); text-align: center; margin-bottom: 12px; }
.bubble {
  font-family: var(--font-phone); background: var(--accent-tint); color: var(--ink);
  border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 0.95rem; line-height: 1.45;
  max-width: 92%;
}
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .poem { font-style: italic; }
.bubble .small { font-size: 0.8rem; opacity: 0.85; }
.bubble a { color: var(--accent-deep); }
.thread-caption { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; max-width: 420px; }

section { margin-top: 56px; }
h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 1.6rem; margin: 0 0 16px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { border-top: 2px solid var(--accent); padding-top: 14px; }
.facts strong { display: block; font-weight: 700; }
.facts span { color: var(--muted); }

/* Waitlist form */
.join { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.join p { margin: 0 0 16px; }
form.waitlist { display: flex; flex-wrap: wrap; gap: 10px; }
form.waitlist label { flex-basis: 100%; font-weight: 700; font-size: 0.95rem; }
form.waitlist input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--sky); color: var(--ink);
}
form.waitlist button {
  font: inherit; font-size: 1.2rem; font-weight: 700; padding: 10px 22px; border-radius: 10px; border: 0;
  background: var(--accent); color: #ffffff; cursor: pointer;
}
form.waitlist button:hover { filter: brightness(0.92); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fineprint { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
form.waitlist + .fineprint { margin-top: 18px; }

footer.site { margin-top: 64px; border-top: 1px solid var(--rule); padding-top: 18px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

/* Privacy page */
.prose h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-top: 40px; }
.prose .masthead { max-width: 260px; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }
.prose p, .prose li { max-width: 36em; }
@media (prefers-reduced-motion: no-preference) { form.waitlist button { transition: filter .15s; } }
