/*
 * styles.css
 * Shared styles for rouxbarb.com — landing, privacy, terms.
 *
 * Palette mirrors RouxbarbTheme.swift (Garden Theme) so web and iOS app
 * stay visually aligned. Edit the :root variables to retune the brand
 * across all pages at once.
 */

:root {
  --pink-petal: #fa7e97;     /* light bubblegum */
  --pink-bubblegum: #f54d6f; /* anchor */
  --pink-deep: #d62e58;      /* deep bubblegum */
  --rose-cherry: #9d2c42;    /* cherry rose — deepest gradient end */
  --green-garden: #9dc962;   /* garden light green */
  --cream: #f1ede4;          /* warm cream surface */
  --bone: #e1dbcb;           /* deeper cream / page bg */
  --ink: #1a1b1c;            /* deepest text */
  --ink-soft: #373b3e;       /* body text on cream */
  --ink-muted: #5a5b5c;      /* secondary text on cream */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Krub', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--cream);
  min-height: 100vh;
}

a { color: inherit; }

/* -----------------------------------------------------------------
 * Wordmark — same SVG inlined on each page; CSS controls size/color.
 * ----------------------------------------------------------------- */
.wordmark {
  display: inline-block;
  height: 32px;
  color: var(--cream);
  text-decoration: none;
}
.wordmark svg { height: 100%; width: auto; display: block; }
.wordmark path { fill: currentColor; }

/* -----------------------------------------------------------------
 * Footer — appears on all pages.
 * ----------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  opacity: 0.85;
}
.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.7;
  transition: opacity 120ms ease;
}
.site-footer a:hover { opacity: 1; }
.site-footer .sep { opacity: 0.5; }

/* -----------------------------------------------------------------
 * Legal page layout (privacy.html, terms.html).
 * Pink gradient header band, cream content area for readability.
 * ----------------------------------------------------------------- */
body.legal {
  background: var(--cream);
  color: var(--ink-soft);
}

.top-band {
  background:
    radial-gradient(
      ellipse 120% 100% at 15% 0%,
      var(--pink-petal) 0%,
      var(--pink-bubblegum) 35%,
      var(--pink-deep) 65%,
      var(--rose-cherry) 100%
    );
  color: var(--cream);
  padding: 48px clamp(20px, 5vw, 64px) 64px;
}
.top-band-inner {
  max-width: 760px;
  margin: 0 auto;
}
.top-band header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.top-band h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
}
.top-band .effective {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

.legal main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 64px) 96px;
}
.legal article {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal p { margin: 0 0 18px; }
.legal ul {
  margin: 0 0 18px;
  padding-left: 24px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--rose-cherry);
  text-decoration: none;
  border-bottom: 1px solid var(--pink-petal);
  padding-bottom: 1px;
}
.legal a:hover { border-color: var(--rose-cherry); }
.legal strong { color: var(--ink); font-weight: 700; }

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--rose-cherry);
  border-bottom: 1px solid var(--pink-petal);
  padding-bottom: 1px;
}
.back-link:hover { border-color: var(--rose-cherry); }

.legal .site-footer {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 32px clamp(20px, 5vw, 64px) 48px;
  border-top: 1px solid var(--bone);
  color: var(--ink-muted);
}

/* TODO note — for placeholder text the user needs to fill in */
.todo-note {
  display: inline-block;
  background: rgba(155, 201, 98, 0.18);
  border-left: 3px solid var(--green-garden);
  padding: 4px 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 3px;
}
