/* Shared styles for dusktide.app — mirrors the app's "toy" design system
   (see src/constants/theme.ts: ToyPalette / ToyTheme in the main app). */

:root {
  --bg: #FDF3E0;
  --card: #FFFDF6;
  --border: #E8D5B5;
  --border-bot: #C4AA88;
  --ink: #2E1F0F;
  --ink-muted: #8C7055;

  --pink: #FF82B3;      --pink-dark: #CC5589;
  --blue: #5CC8F2;      --blue-dark: #2E9EC4;
  --yellow: #FFD84D;    --yellow-dark: #C4A01A;
  --mint: #5DD4A0;      --mint-dark: #2EA07A;
  --purple: #B88EF2;    --purple-dark: #8558C8;
  --coral: #FF8565;     --coral-dark: #CC5535;
  --sky: #84D4FF;       --sky-dark: #44A8D8;
  --peach: #FFA85C;     --peach-dark: #D4782A;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--purple-dark); }
a:hover { color: var(--pink-dark); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
}

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

/* --- Toy buttons (3D press effect, matches the app) --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 18px;
  border: 2px solid;
  border-bottom-width: 5px;
  cursor: pointer;
  transition: transform 0.08s ease, border-bottom-width 0.08s ease;
  color: var(--ink);
  background: var(--card);
  border-color: var(--border);
  border-bottom-color: var(--border-bot);
}

.btn:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  border-bottom-color: var(--pink-dark);
  color: #fff;
}

.btn-primary:hover { color: #fff; }

/* --- Footer --- */

.footer {
  border-top: 1.5px solid var(--border);
  margin-top: 80px;
  padding: 32px 24px 48px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
}

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

/* --- Legal pages (Privacy / Terms) --- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.legal .updated {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 2.5em;
}

.legal h2 {
  font-size: 22px;
  margin-top: 2em;
}

.legal ul {
  padding-left: 1.3em;
}

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

.back-link {
  display: inline-block;
  margin: 24px 24px 0;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.back-link:hover { color: var(--ink); }
