/* =========================================================
   Reset-3-2-1 — landing page styles
   Palette, type and spacing mirror the original site.
   ========================================================= */

:root {
  --background: #f0faf0;
  --foreground: #0c2b19;
  --card: #f8fef8;
  --primary: #137738;
  --primary-hover: #0f6130;
  --primary-foreground: #f6fcf6;
  --secondary: #d4f1d4;
  --secondary-foreground: #003918;
  --muted: #e7f2e6;
  --muted-foreground: #4d6453;
  --accent: #d3f0b8;
  --accent-foreground: #224209;
  --border: #cadeca;
  --ring: #439458;
  --terracotta: #64a737;

  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --container: 1152px;
  --radius-card: 16px;
  --radius-panel: 24px;

  --shadow-card: 0 10px 30px rgba(12, 43, 25, 0.10);
  --ring-shadow: 0 0 0 3px rgba(67, 148, 88, 0.45);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(202, 222, 202, 0.6);
  background-color: rgba(240, 250, 240, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--foreground);
}

.brand__mark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary);
}

.brand__bar {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--terracotta);
}

.header__nav-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.day-nav {
  display: flex;
  gap: 4px;
}

.day-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.day-nav__link:hover {
  background-color: rgba(212, 241, 212, 0.7);
  color: var(--foreground);
}

.day-nav__dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  transition: background-color 0.2s ease;
}

.day-nav__link:hover .day-nav__dot {
  background-color: var(--primary);
}

.train-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.train-btn:hover {
  background-color: var(--primary-hover);
}

.train-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(240, 250, 240, 0.72),
    rgba(240, 250, 240, 0.30),
    var(--background)
  );
}

.hero__content {
  position: relative;
  padding-top: 80px;
  padding-bottom: 112px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(248, 254, 248, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted-foreground);
  font-size: 14px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  max-width: 672px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__copy {
  display: grid;
  gap: 16px;
  max-width: 672px;
  margin-top: 24px;
  color: rgba(12, 43, 25, 0.8);
  font-size: 18px;
  line-height: 1.56;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button--primary {
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 16px;
}

.button--primary:hover {
  background-color: var(--primary-hover);
}

.button--primary svg {
  width: 16px;
  height: 16px;
}

.button--ghost {
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(12, 43, 25, 0.8);
  font-size: 14px;
  text-underline-offset: 4px;
}

.button--ghost:hover {
  text-decoration: underline;
}

/* ---------- Program ---------- */

.program {
  padding-top: 96px;
}

.program__intro {
  max-width: 640px;
}

.program__intro h2 {
  font-size: 30px;
}

.program__intro p {
  margin-top: 12px;
  color: var(--muted-foreground);
}

.day-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.day-grid > li {
  display: flex;
  scroll-margin-top: 84px;
}

.day-grid > li:target .day-card {
  box-shadow: var(--ring-shadow);
}

.day-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--card);
  color: var(--foreground);
  transition: box-shadow 0.25s ease;
}

.day-card:hover {
  box-shadow: var(--shadow-card);
}

.day-card:focus-visible {
  outline: none;
  box-shadow: var(--ring-shadow);
}

.day-card__media {
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
}

.day-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.day-card:hover .day-card__media img {
  transform: scale(1.05);
}

.day-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.day-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.day-card__topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.day-card__topic svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

.day-card h3 {
  font-size: 24px;
  line-height: 1.33;
}

.day-card__subtitle {
  color: var(--muted-foreground);
}

.day-card__list {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
}

.day-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-card__bullet {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.day-card:hover .day-card__bullet {
  border-color: var(--ring);
  background-color: rgba(67, 148, 88, 0.12);
}

.day-card__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.day-card__open svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.day-card:hover .day-card__open svg {
  transform: translateX(2px);
}

/* ---------- Evidence panel ---------- */

.evidence {
  padding-top: 96px;
}

.evidence__panel {
  display: grid;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-panel);
  background-color: rgba(212, 241, 212, 0.6);
}

.evidence__panel h2 {
  font-size: 30px;
}

.evidence__list {
  display: grid;
  gap: 24px;
}

.evidence__list dt {
  font-weight: 600;
}

.evidence__list dd {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid rgba(202, 222, 202, 0.6);
}

.footer__grid {
  display: grid;
  gap: 24px;
  padding-block: 40px;
}

.footer__brand p {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.safety-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background-color: rgba(211, 240, 184, 0.4);
  color: var(--accent-foreground);
  font-size: 14px;
  line-height: 1.45;
}

.safety-note svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent-foreground);
}

.safety-note strong {
  font-weight: 700;
}

.safety-note a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .day-nav__prefix {
    display: none;
  }
}

@media (max-width: 479px) {
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 349px) {
  .day-nav {
    display: none;
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }

  .hero__badge {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .hero__content {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .program__intro h2,
  .evidence__panel h2 {
    font-size: 36px;
  }

  .day-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .evidence__panel {
    grid-template-columns: 1fr 2fr;
    padding: 48px;
  }

  .evidence__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .day-card:hover .day-card__media img,
  .day-card:hover .day-card__open svg {
    transform: none;
  }
}
