/* ============================================================
   HEME — Shared Design System
   Tokens, reset, base typography, nav, footer, shared components
   ============================================================ */

/* ---- Canela (Commercial Type) — Trial. License before production. ---- */
@font-face {
  font-family: "Canela Deck";
  src: url("../fonts/CanelaDeck-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela Deck";
  src: url("../fonts/CanelaDeck-RegularItalic-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Canela Deck";
  src: url("../fonts/CanelaDeck-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-RegularItalic-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela Text";
  src: url("../fonts/CanelaText-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela Text";
  src: url("../fonts/CanelaText-RegularItalic-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Canela Text";
  src: url("../fonts/CanelaText-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — deepened for editorial weight */
  --bone: #F4EEE4;
  --warm-cream: #FBF5ED;
  --bone-2: #ECE3D4;
  --bone-3: #E1D5C2;
  --card-warm: #FFF8F1;
  --espresso: #1A130F;        /* deeper for crisper text */
  --espresso-2: #2E2521;
  --oxblood: #4E1818;         /* deepened brand red */
  --oxblood-dark: #361010;
  --rust: #9A2E22;            /* wine-leaning accent */
  --rust-soft: rgba(154, 46, 34, 0.08);
  --clay: #C9866A;
  --clay-soft: #E0B59E;
  --taupe: #B8A99A;
  --taupe-soft: #D9CFC2;
  --iron-glow: #D8A15D;
  --iron-gold: #C8893D;       /* richer gold accent */
  --iron-soft: #ECCB9C;
  --line-warm: #E6D6CA;
  --line: rgba(26, 19, 15, 0.10);
  --line-soft: rgba(26, 19, 15, 0.06);
  --shadow-card: 0 1px 2px rgba(78,24,24,.05), 0 18px 38px rgba(78,24,24,.07);
  --shadow-card-lg: 0 2px 6px rgba(78,24,24,.06), 0 30px 60px rgba(78,24,24,.12);
  --shadow-warm-float: 0 1px 2px rgba(78,24,24,.06), 0 22px 50px rgba(78,24,24,.10);

  /* Type — three-tier Canela system */
  --font-display: "Canela Deck", "Canela", Georgia, "Times New Roman", serif; /* hero h1s, biggest display */
  --font-serif: "Canela", Georgia, "Times New Roman", serif;                  /* section h2s, dek, pull quotes — DEFAULT serif */
  --font-text: "Canela Text", "Canela", Georgia, "Times New Roman", serif;    /* h3s, small serif moments */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-button: 10px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--espresso);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* UTILITIES */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.eyebrow.muted { color: rgba(36,28,25,.5); font-weight: 500; }
.eyebrow.oxblood { color: var(--oxblood); }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.italic { font-style: italic; }
.text-muted { color: rgba(36, 28, 25, 0.6); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--oxblood);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px rgba(90,31,31,.18);
}
.btn-primary:hover { background: var(--oxblood-dark); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 28px rgba(90,31,31,.25); }
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid rgba(36,28,25,.20);
}
.btn-secondary:hover { border-color: var(--espresso); background: var(--bone-2); }
.btn-ghost {
  background: transparent;
  color: var(--oxblood);
  padding: 0;
  height: auto;
  font-weight: 500;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.arrow { width: 14px; height: 14px; }

/* LINK ARROW */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; color: var(--oxblood);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ICON BUTTON */
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--bone-2); border-color: rgba(36,28,25,.18); }
.icon-btn svg { width: 16px; height: 16px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--oxblood);
  line-height: 1;
}
.wordmark .dot { display: none; }
.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-size: 14.5px;
  color: var(--espresso);
  font-weight: 400;
  letter-spacing: 0.005em;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--rust); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-mobile-toggle { display: none; }

/* SECTION SCAFFOLD */
section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head .lead { font-size: 16px; color: var(--espresso-2); max-width: 420px; }

/* GENERIC TYPE */
h1.display, h2.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
h1.display em, h2.display em {
  font-style: italic;
  color: var(--rust);
  font-weight: 400;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--espresso-2);
}

/* BADGES + PILLS */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  border-radius: 999px;
  background: var(--bone-2);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--espresso);
}
.badge.oxblood { background: var(--oxblood); color: var(--bone); }
.badge.outline { background: transparent; border: 1px solid var(--line); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); }

/* DISCLAIMER ROW */
.disclaimer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(36,28,25,.55);
}
.disclaimer-row svg { flex-shrink: 0; margin-top: 2px; color: rgba(36,28,25,.5); }

/* GENERIC CARDS */
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(36,28,25,.16); }

/* SCORE BAR */
.score-row { display: flex; flex-direction: column; gap: 6px; }
.score-row .lbl-row { display: flex; justify-content: space-between; font-size: 13px; }
.score-row .lbl { color: var(--espresso); font-weight: 500; }
.score-row .val { color: var(--espresso-2); font-variant-numeric: tabular-nums; }
.score-track { height: 4px; background: var(--bone-3); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; background: var(--oxblood); border-radius: 999px; }
.score-fill.iron { background: var(--iron-glow); }
.score-fill.clay { background: var(--clay); }

/* FOOTER */
footer {
  background: var(--bone);
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr) 1.2fr;
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand .wordmark { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: rgba(36,28,25,.6); max-width: 220px; line-height: 1.5; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--espresso);
  margin-bottom: 16px;
  letter-spacing: 0.005em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(36,28,25,.65); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--oxblood); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: rgba(36,28,25,.5);
}
.footer-socials { display: flex; gap: 12px; align-items: center; }
.footer-socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(36,28,25,.6);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.footer-socials a:hover { color: var(--oxblood); background: var(--bone-2); }
.footer-socials svg { width: 15px; height: 15px; }

/* MOBILE — shared chrome */
@media (max-width: 980px) {
  .container, .container-narrow { padding: 0 22px; }
  .nav-links, .nav-right .icon-btn { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
  .nav-inner { height: 64px; }
  section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
