/* oodul.ai — shared stylesheet for the landing page and the privacy policy.
   No third-party requests: every font is served from this origin (see site/fonts/). */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-600.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-400.woff2") format("woff2");
}

/* ---------- Brand tokens ---------- */

:root {
  color-scheme: light dark;

  --mist: #edf1ec;
  --paper: #fbfcfa;
  --ink: #21261f;
  --slate: #5e6b63;
  --spruce: #1e7a6b;
  --spruce-soft: #d6e7e2;

  /* The orb glow. Used exactly once on the site — the landing page orb. */
  --ember: #f0a94e;
  --coral: #ea6f5c;
  --rose: #de6288;

  --bg: var(--mist);
  --surface: var(--paper);
  --text: var(--ink);
  --text-quiet: var(--slate);
  --accent: var(--spruce);
  --rule: var(--spruce-soft);

  --font-display: "Bricolage Grotesque", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-voice: "Newsreader", Georgia, serif;

  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --void: #141815;
    --surface-dark: #1e241f;
    --ink-dark: #ecf0ea;
    --slate-dark: #9daaa1;
    --spruce-bright: #35a390;

    --bg: var(--void);
    --surface: var(--surface-dark);
    --text: var(--ink-dark);
    --text-quiet: var(--slate-dark);
    --accent: var(--spruce-bright);
    --rule: #2c3a34;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px floor */
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.5rem; /* ~40px */
}

h2 {
  font-size: 1.75rem; /* ~28px */
}

h3 {
  font-size: 1.375rem; /* ~22px */
}

p,
ul,
ol {
  margin: 0 0 1.25rem;
}

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

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

/* Visible focus on every interactive element — never removed, only restyled. */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding: 2rem 0 0;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--text-quiet);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--text-quiet);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------- Landing page ---------- */

.landing {
  text-align: center;
  padding: 3.5rem 0 0;
}

/* The orb. Decorative, CSS-only, aria-hidden. This gradient appears
   nowhere else on the site — its scarcity is the point. */
.orb {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 34% 30%,
      var(--ember) 0%,
      var(--coral) 45%,
      var(--rose) 78%,
      #b96a86 100%
    );
  /* Cooled toward Spruce at rest. */
  box-shadow:
    0 0 3.5rem 0.75rem rgba(234, 111, 92, 0.28),
    0 1.25rem 3.5rem 0.5rem rgba(30, 122, 107, 0.22);
  animation: breathe 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.03);
  }
}

.wordmark {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.375rem;
  line-height: 1.35;
  margin-bottom: 1.75rem;
}

.lede {
  color: var(--text-quiet);
  text-align: left;
  margin-bottom: 2.75rem;
}

/* Example exchange card */
.example {
  background: var(--surface);
  border-radius: 1.125rem;
  padding: 1.75rem 1.5rem;
  text-align: left;
  margin-bottom: 2.75rem;
}

.example-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 1rem;
}

.example-q {
  color: var(--text-quiet);
  font-size: 1rem;
  margin-bottom: 0.875rem;
}

/* The serif is the assistant talking. Used for this line and nothing else. */
.example-a {
  font-family: var(--font-voice);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.example-note {
  color: var(--text-quiet);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.status {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact {
  color: var(--text-quiet);
  margin-bottom: 0;
}

/* ---------- Privacy page ---------- */

.policy {
  padding: 2.5rem 0 0;
}

.policy h1 {
  margin-bottom: 0.35em;
}

.policy h2 {
  margin-top: 2.5rem;
}

.policy h3 {
  margin-top: 1.75rem;
}

.updated {
  color: var(--text-quiet);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.policy li {
  margin-bottom: 0.5rem;
}

/* Tables hold three columns of prose. They scroll on their own axis —
   never the page. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.75rem;
  -webkit-overflow-scrolling: touch;
}

.policy table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.policy th,
.policy td {
  border: 1px solid var(--rule);
  padding: 0.75rem 0.875rem;
  text-align: left;
  vertical-align: top;
}

.policy th {
  font-weight: 600;
  background: var(--surface);
}

/* Reflow tables to stacked blocks on narrow screens. */
@media (max-width: 34rem) {
  .policy table,
  .policy thead,
  .policy tbody,
  .policy tr,
  .policy th,
  .policy td {
    display: block;
  }

  .policy table {
    min-width: 0;
  }

  .policy thead tr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .policy tbody tr {
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 0.5rem 0.25rem;
    margin-bottom: 1rem;
    background: var(--surface);
  }

  .policy td {
    border: 0;
    padding: 0.5rem 0.875rem;
  }

  .policy td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-quiet);
    margin-bottom: 0.2rem;
  }
}

/* ---------- Header wordmark link (privacy page) ---------- */

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
    transform: scale(1);
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Narrow viewports ---------- */

@media (max-width: 24rem) {
  .wrap {
    padding: 0 1rem;
  }

  h1,
  .wordmark {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .example-a {
    font-size: 1.375rem;
  }

  .orb {
    width: 7.5rem;
    height: 7.5rem;
  }
}
