/* MeasureUp — warm, premium health-tool theme with themed photos */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  --bg: #fdf6f0;
  --surface: #ffffff;
  --ink: #2b2118;
  --muted: #7a6a5c;
  --brand: #e8643c;
  --brand-dark: #c24a24;
  --brand-soft: #fbe3d5;
  --accent: #f2a34c;
  --border: #f0e2d4;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(107, 68, 35, .05), 0 6px 20px rgba(107, 68, 35, .07);
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .2px;
}
.brand:hover { text-decoration: none; color: var(--brand-dark); }
.brand .logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(232,100,60,.35);
}
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }

/* Hero */
.hero {
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -.3px;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 26px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(232,100,60,.32);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,100,60,.4); color: #fff; text-decoration: none; }
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}

/* Section heading */
.section-head { padding: 30px 0 10px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding: 18px 0 52px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(107, 68, 35, .12);
  text-decoration: none;
}
.tool-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.tool-card .card-body { padding: 20px 22px 22px; }
.tool-card h2 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.tool-card p { color: var(--muted); font-size: 0.92rem; }

/* Calculator page */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 36px 0 60px;
}
@media (min-width: 780px) {
  .calc-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-card .calc-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border-bottom: 1px solid var(--border);
}
.calc-card .calc-hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.calc-card .calc-hero h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.calc-card .calc-hero .subtitle { color: var(--muted); font-size: 0.94rem; }
.calc-body { padding: 26px 30px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .unit { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232,100,60,.12);
}

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all .12s ease;
}
.radio-group input { width: auto; }
.radio-group label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.result {
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #fff7f0, #fff);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
}
.result .result-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brand-dark);
  line-height: 1.2;
}
.result .result-label { color: var(--muted); font-size: 0.9rem; }
.result .category {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.cat-underweight { background: #fef3c7; color: #92400e; }
.cat-normal { background: #d1fae5; color: #065f46; }
.cat-overweight { background: #ffedd5; color: #9a3412; }
.cat-obese { background: #fee2e2; color: #991b1b; }

/* Notes */
.notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.notes h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 9px; }
.notes p, .notes li { color: var(--muted); font-size: 0.92rem; }
.notes ul { padding-left: 22px; }
.notes a { font-weight: 600; }

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 88px;
}
.sidebar h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.sidebar a:hover { color: var(--brand); }

/* Disclaimer */
.disclaimer {
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff8eb;
  border: 1.5px solid #f6c76b;
  border-radius: 12px;
  font-size: 0.86rem;
  color: #8a5a13;
}

/* Prose page */
.prose { padding: 40px 0 60px; max-width: 760px; }
.prose .prose-hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.prose h1 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--ink); margin: 28px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 1.03rem; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 22px; }
  .hero h1 { font-size: 2.1rem; }
  .calc-card .calc-hero { grid-template-columns: 1fr; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 0.85rem; }
}
