/* ============================================================
   DAILYDOSE — standalone doc, satisfaction design system
   Tokens match satisfaction/style.css. If the shared system
   changes, update this file to stay consistent.
   ============================================================ */
:root {
  --color-bg: #f8f4ef;
  --color-bg-surface: #ffffff;
  --color-text: #1c1914;
  --color-text-secondary: #6a635d;
  --color-accent: #1e4c8a;
  --color-accent-warm: #8c3420;
  --color-border: #ddd7cf;
  --font-heading: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Lora', 'Georgia', 'Times New Roman', serif;
  --type-display: 3rem;
  --type-section: 1.625rem;
  --type-subsection: 1.25rem;
  --type-body: 1.125rem;
  --type-pullquote: 1.375rem;
  --type-small: 0.875rem;
  --lh-heading: 1.2;
  --lh-body: 1.75;
  --lh-pullquote: 1.6;
  --lh-tight: 1.4;
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;
  --content-width: 720px;
  --content-padding: var(--sp-md);
}

/* ============================================================
   RESET AND BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  padding-top: 48px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--color-text);
}

h1 {
  font-size: var(--type-display);
  margin-bottom: var(--sp-lg);
}

h2 {
  font-size: var(--type-section);
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-lg);
}

h2:first-child {
  margin-top: 0;
}

p {
  margin-bottom: var(--sp-md);
}

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

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   NAV
   ============================================================ */
.curriculum-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.curriculum-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 var(--sp-sm);
}

.curriculum-nav__home {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.curriculum-nav__home-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg-surface);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.curriculum-nav__doctitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--type-small);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.read-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}

.read-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s linear;
}

/* ============================================================
   HERO — text-only variant (no source photo for this doc)
   ============================================================ */
.panel--hero-doc {
  position: relative;
  height: 480px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(160deg, #16243d 0%, #1e4c8a 55%, #2c5fa3 100%);
  display: flex;
  align-items: flex-end;
}

.panel--hero-doc__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding) var(--sp-xl);
  width: 100%;
}

.panel--hero-doc__sequence {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-sm);
  display: block;
}

.panel--hero-doc__title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--type-display);
  line-height: var(--lh-heading);
  margin-bottom: var(--sp-sm);
}

.panel--hero-doc__role {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--type-body);
  line-height: var(--lh-tight);
  max-width: 560px;
}

/* ============================================================
   PANELS
   ============================================================ */
.panel {
  padding: var(--sp-xl) 0;
}

.panel__content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.panel + .panel { position: relative; }
.panel + .panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-width);
  padding: 0 var(--content-padding);
  border-top: 1px solid var(--color-border);
}

.pullquote {
  border-left: 3px solid var(--color-accent-warm);
  padding-left: var(--sp-md);
  margin: var(--sp-lg) 0;
}

.pullquote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--type-pullquote);
  line-height: var(--lh-pullquote);
  color: var(--color-text);
  margin: 0;
}

.closing-rule {
  width: 40px;
  height: 1px;
  background: var(--color-accent-warm);
  border: none;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  margin-left: 0;
}

.closing-line {
  font-family: var(--font-body);
  font-size: var(--type-pullquote);
  line-height: var(--lh-pullquote);
  color: var(--color-text);
  margin-bottom: 0;
}

.arrow-chain {
  font-family: var(--font-heading);
  font-size: var(--type-small);
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin: var(--sp-md) 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn--primary {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--type-body);
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
  line-height: var(--lh-tight);
}

.btn--primary:hover {
  background: #1a4278;
  text-decoration: none;
  color: #ffffff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.delivery-options {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--color-border);
}

.delivery-options__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.delivery-options__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-lg);
}

.contact-line p {
  font-family: var(--font-body);
  font-size: var(--type-body);
  color: var(--color-text);
  margin-bottom: var(--sp-sm);
}

.contact-line p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --type-display: 2rem;
    --type-section: 1.375rem;
    --type-subsection: 1.125rem;
    --type-body: 1rem;
    --type-pullquote: 1.25rem;
  }

  body {
    padding-top: 36px;
  }

  .curriculum-nav {
    height: 36px;
  }

  .curriculum-nav__inner {
    height: 34px;
  }

  .panel--hero-doc {
    height: 340px;
  }

  .panel {
    padding: var(--sp-lg) 0;
  }
}
