/* ABOUTME: Brand-aligned styles for the Ruminoo landing page.
   ABOUTME: Implements the Clay/Brick/Paper/Ink/Tint palette with a centered, mobile-first pre-launch layout. */

/* ── Reset & base ─────────────────────────────────────────── */

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

:root {
  --clay: #CA6B49;
  --brick: #8A3E26;
  --paper: #FAF5ED;
  --ink: #312620;
  --tint: #F8E5DA;
  --error: #C0392B;

  --font-ui: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --font-reading: 'Literata', Georgia, serif;
}

html {
  background: var(--paper);
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

/* ── Landing layout ───────────────────────────────────────── */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 28px;
}

.hero-mark {
  margin-bottom: 10px;
}

.hero-mark svg {
  width: clamp(44px, 7vw, 60px);
  height: clamp(44px, 7vw, 60px);
}

.wordmark {
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 38px;
}

.wordmark .o1 {
  color: var(--clay);
}

.wordmark .o2 {
  color: var(--brick);
}

.hero-title {
  font-family: var(--font-reading);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 660px;
  margin: 0 auto 32px;
}

.cta-badge {
  display: inline-block;
  background: var(--tint);
  color: var(--brick);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.65;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Waitlist form ────────────────────────────────────────── */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.waitlist-form[hidden] {
  display: none;
}

.waitlist-input {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  padding: 14px 18px;
  border: 1px solid rgba(202, 107, 73, 0.35);
  border-radius: 12px;
  width: 100%;
  transition: border-color 0.2s;
}

.waitlist-input::placeholder {
  color: var(--ink);
  opacity: 0.4;
}

.waitlist-input:focus-visible {
  outline: none;
  border-color: var(--clay);
}

.hero-cta {
  display: inline-block;
  background: var(--clay);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--brick);
  color: var(--paper);
  transform: translateY(-1px);
}

.form-message {
  font-size: 15px;
  line-height: 1.5;
  max-width: 440px;
  margin: 14px auto 0;
}

.form-message:empty {
  display: none;
}

.form-message--success {
  color: var(--brick);
  font-weight: 500;
}

.form-message--error {
  color: var(--error);
}

/* ── Footer ───────────────────────────────────────────────── */

.landing-footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.5;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (min-width: 560px) {
  .waitlist-form {
    flex-direction: row;
  }

  .waitlist-input {
    flex: 1;
  }
}

/* ── Accessibility ────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ── Honeypot (spam trap, hidden from people) ─────────────── */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Content pages (privacy, terms) ───────────────────────── */

body.doc {
  justify-content: flex-start;
}

.doc-main {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: left;
}

.doc-home {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.doc-main h1 {
  font-family: var(--font-reading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.doc-updated {
  font-size: 14px;
  opacity: 0.55;
  margin-bottom: 32px;
}

.doc-main h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 8px;
}

.doc-main p,
.doc-main li {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

.doc-main ul {
  padding-left: 20px;
  margin: 8px 0;
}

.doc-main li {
  margin-bottom: 6px;
}
