:root {
  /* Dynamic Palette: Light Blush & Plum (No Blue) */
  --bg-canvas: #fbf1f0;
  --bg-surface: #f5e6e5;
  --text-primary: #1c1917;
  --text-muted: #44403c;
  --accent-primary: #6b2155;
  --accent-light: rgba(107, 33, 85, 0.08);
  --border-subtle: rgba(107, 33, 85, 0.2);
  
  /* Typography */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, Consolas, "Courier New", monospace;
  
  /* Interactions & Structure */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --reading-width: 72ch;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography (Dossier Style) */
h1, h2, h3, h4, h5, h6, .label, .mono-text {
  font-family: var(--font-mono);
  font-weight: normal;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--text-primary); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }

/* Links & Buttons */
a {
  color: var(--accent-primary);
  text-decoration: none;
}

.text-link {
  position: relative;
  font-weight: 500;
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-kinetic);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.btn-main {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  padding: 1rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-kinetic);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-main:hover {
  background-color: #4a153a;
  transform: translateY(-2px);
  color: var(--bg-canvas);
}

/* Layout Architecture: Vertical Flow */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.reading-container {
  max-width: var(--reading-width);
  margin: 0 auto;
}

/* Header (Static, Left Aligned Brand) */
header {
  position: static;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-primary);
  text-transform: lowercase;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  position: relative;
  background: radial-gradient(circle at top right, var(--accent-light), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 50ch;
  margin-bottom: 2rem;
}

/* Hero Overlapping Images */
.hero-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
}

.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 0; /* Square requirement */
}

.hero-img-1 { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: 1/2; }
.hero-img-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.hero-img-3 { grid-column: 2 / 3; grid-row: 2 / 3; margin-left: -20%; margin-top: -10%; position: relative; z-index: 2; border: 4px solid var(--bg-canvas); }

/* Dossier Vertical Flow & List Rows */
.dossier-timeline {
  position: relative;
  padding: 3rem 0;
  margin-left: 2rem;
}

.dossier-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--accent-primary);
}

.dossier-section {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 4rem;
}

.dossier-badge {
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  border-radius: 50%; /* Round badge requirement */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.9rem;
}

/* List Rows (No Cards) */
.list-row {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}

.list-row:last-child {
  border-bottom: none;
}

.list-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background-color: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 1.5rem;
}

.list-content {
  flex-grow: 1;
}

.list-content h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

/* Imagery formatting */
.content-image {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin: 2rem 0;
  border-radius: 0;
}

/* Symptom Checklist Tool */
.tool-container {
  background-color: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.checkbox-label input {
  accent-color: var(--accent-primary);
  width: 1.2rem;
  height: 1.2rem;
}

.tool-output {
  width: 100%;
  min-height: 150px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  resize: vertical;
  margin-bottom: 1rem;
}

.tool-actions {
  display: flex;
  gap: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  color: var(--accent-primary);
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.medical-disclaimer {
  padding: 1rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-align: justify;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-images { display: none; /* Simplify on mobile for pure dossier reading */ } 
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  header { position: relative; }
  .dossier-timeline { margin-left: 1rem; }
  .list-row { flex-direction: column; gap: 1rem; }
  .tool-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
