/* Rizzr — the same room the app is in.
   Colours are the app's oklch tokens converted to sRGB; type is the same
   pairing (Cormorant Garamond for the display voice, Jost for everything
   else) so the site and the product read as one thing. */

:root {
  --night: #0a0705;
  --card: #17130f;
  --ink: #f6f1e9;
  --muted: #b2a99d;
  --glow: #e5cda9;
  --amber: #d9ad8a;
  --line: rgba(246, 241, 233, 0.1);
  --measure: 34rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Jost, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  /* The warm ember behind everything, exactly as in the app. */
  background-image: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    #1a1310 0%,
    var(--night) 70%
  );
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- the light ---------- */

.orb {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff6e8 0%, var(--glow) 55%, var(--amber) 100%);
  box-shadow: 0 0 60px 10px rgba(229, 205, 169, 0.22);
  animation: breathe 5s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    box-shadow: 0 0 48px 6px rgba(229, 205, 169, 0.16);
  }
  to {
    box-shadow: 0 0 84px 16px rgba(229, 205, 169, 0.3);
  }
}

/* ---------- type ---------- */

.wordmark {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 2.5em;
}

h3 {
  font-size: 1.35rem;
  margin-top: 2em;
}

p {
  margin: 0 0 1.15em;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: var(--measure);
}

.dim {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

a {
  color: var(--glow);
  text-decoration-color: rgba(229, 205, 169, 0.4);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--glow);
}

/* ---------- layout ---------- */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.5rem;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  text-align: center;
  padding: 4rem 0 5rem;
}

.hero .lede {
  margin-inline: auto;
}

.hero h1 {
  margin-top: 2rem;
}

.surfaces {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 3rem 0;
}

.surface {
  background: rgba(23, 19, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.surface h3 {
  margin-top: 0;
}

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

.note {
  border-left: 2px solid rgba(229, 205, 169, 0.45);
  padding: 0.35rem 0 0.35rem 1.25rem;
  margin: 2rem 0;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  padding-bottom: 4rem;
}

.prose ul {
  padding-left: 1.15rem;
  margin: 0 0 1.15em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose h2 {
  margin-top: 2.25em;
  font-size: 1.65rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 500;
}

td {
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.25rem;
}

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

/* Skip link — visible only when focused. */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}
