/* Umagine brand tokens — inferred from logo */
:root {
  /* Petal colors from the logo */
  --petal-orange: #F28C28;
  --petal-teal: #2BA888;
  --petal-cyan: #3FB6D8;
  --petal-yellow: #F4B942;
  --petal-green: #5DB247;
  --petal-blue: #1E6FB5;
  --petal-indigo: #1D3F7A;

  /* Default: Forest palette (earthy, sustainability-coded) */
  --bg: #F5F1E8;          /* warm paper */
  --bg-card: #FBF8F1;
  --ink: #0F2A1E;          /* deep forest */
  --ink-soft: #3A5547;
  --ink-mute: #6B7F71;
  --line: #D9D2C0;
  --accent: #0F5132;       /* primary forest */
  --accent-2: #8FB339;     /* leaf */
  --sun: #E8A53C;          /* warm highlight */
  --clay: #B5502A;
}

[data-palette="ocean"] {
  --bg: #F0F4F5;
  --bg-card: #FFFFFF;
  --ink: #0A2540;
  --ink-soft: #2E4A66;
  --ink-mute: #6A7F93;
  --line: #CED8DE;
  --accent: #155e75;
  --accent-2: #3FB6D8;
  --sun: #F4B942;
  --clay: #1E6FB5;
}

[data-palette="terracotta"] {
  --bg: #FAF4EC;
  --bg-card: #FFFBF3;
  --ink: #2B1810;
  --ink-soft: #5A3A28;
  --ink-mute: #8B6F5A;
  --line: #E6D8C5;
  --accent: #9C3B1D;
  --accent-2: #E8A53C;
  --sun: #F4B942;
  --clay: #5DB247;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Fraunces', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

.sans { font-family: 'Inter', -apple-system, sans-serif; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Header chrome */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  max-width: 1360px; margin: 0 auto;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-lockup img { height: 56px; width: auto; }
.logo-lockup .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.nav {
  display: flex; gap: 4px; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 500;
}
.nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 10px 14px; border-radius: 999px;
  transition: all .18s ease;
}
.nav a:hover { background: var(--ink); color: var(--bg); }
.nav a.cta {
  background: var(--accent); color: var(--bg); padding: 10px 18px;
}
.nav a.cta:hover { background: var(--ink); }

/* Utilities */
.container { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.eyebrow {
  font-family: 'Inter', sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--accent);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  text-decoration: none; border: none; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* Serif display */
.display {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Site footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
  margin-top: 120px;
}
.site-footer .container { color: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
}
.footer-grid h4 {
  font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-2); margin: 0 0 20px;
}
.footer-grid a { display: block; color: color-mix(in oklab, var(--bg) 85%, transparent); text-decoration: none; padding: 6px 0; font-family: 'Inter', sans-serif; font-size: 14px; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-grid p { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--bg) 85%, transparent); max-width: 32ch; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}

/* Scrollbar sanity inside iframes */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--ink) 20%, transparent); border-radius: 10px; }
