/* ============================================
   Hack the Cure — Styles
   Minimalist, typographic, patient-first
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --text-muted: #5a5a56;
  --accent: #2d6a9f;
  --accent-hover: #1a4f7a;
  --warm: #c4842d;
  --border: #e8e6e1;
  --card-bg: #ffffff;
  --shadow: rgba(0,0,0,0.06);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--accent); }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
  border-top: none;
}

.hero-logo {
  width: 192px;
  height: 192px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  border: none;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  border-bottom-color: transparent;
}

.cta-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- Story --- */
.story p {
  font-size: 1.0625rem;
  color: var(--text);
}

.story p.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2rem;
}

/* --- Mission --- */
.principles {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.principles li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.principles li:last-child { border-bottom: none; }

.principles strong {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* --- CureMap --- */
.curemap-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.curemap-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.curemap-card .status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
  margin-bottom: 1.25rem;
  display: block;
}

.curemap-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.curemap-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.curemap-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

.curemap-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.curemap-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* --- Contact --- */
.contact-section {
  text-align: center;
  padding: 5rem 0;
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}

/* --- Footer --- */
footer {
  padding: 3rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .hero { min-height: 70vh; padding: 4rem 0; }
  .curemap-card { padding: 1.75rem; }
}

/* --- Print --- */
@media print {
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
  section + section { border-top: 1px solid #ccc; }
}
