/* ─────────────────────────────────────────────
   CRUNCH  ·  stylesheet
   Palette
     --sand      warm beige background
     --forest    primary dark green
     --mid       mid green (left face / accents)
     --lit       lighter green (top face)
     --deep      very dark green (back / bottom)
     --cream     light tone used on green surfaces
     --text       near-black body copy
     --muted      warm grey for secondary text
───────────────────────────────────────────── */

:root {
  --sand:    #f5f3ef;
  --forest:  #384E27;
  --mid:     #4A6330;
  --lit:     #5D7A3C;
  --deep:    #243318;
  --cream:   #F0EBE0;
  --text:    #181a18;
  --hero:    #007906;
  --muted:   #78705E;
  --border:  rgba(56, 78, 39, 0.15);

  --font:    'Ubuntu Mono', 'Courier New', monospace;
  --radius:  2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sand);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

code {
  font-family: var(--font);
  font-size: 0.88em;
  color: var(--forest);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.1em 0.35em;
}

/* ── Header ── */
.site-header {
  /* position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--sand); */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--hero);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--forest);
}

/* ── Main ── */
main {
  flex: 1;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 6rem 2rem 5rem;
  text-align: center;
}

/* ─ Hero typography ─ */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hero);
  line-height: 1;
}

.hero-sub {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ── Services ── */
.services {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  border-top: 1px solid var(--border);
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.services-list li {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.svc-mark {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.25rem;
  flex-shrink: 0;
  width: 2.2rem;
}

.services-list h2 {
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.services-list p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 80ch;
}

/* ── Contact ── */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 2rem 5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-label {
  font-size: 1.08rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.contact-link {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--hero);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  color: var(--text);
  border-color: var(--forest);
}

/* ── Timeline ── */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  border-top: 1px solid var(--border);
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tl-label {
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.tl-toggle {
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.tl-toggle:hover,
.tl-toggle:focus-visible {
  border-color: var(--forest);
  color: var(--text);
}

.tl-toggle:focus-visible {
  outline: 1px solid var(--forest);
  outline-offset: 0.2rem;
}

.timeline-list {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Vertical connector line */
.timeline-list::before {
  content: '';
  position: absolute;
  left: calc(9rem + 1.2rem + 3px);
  top: 0.65rem;
  bottom: 0.65rem;
  width: 1px;
  background: var(--border);
}

.tl-item {
  display: grid;
  grid-template-columns: 9rem 6px 1fr;
  align-items: center;
  column-gap: 1.2rem;
}

.tl-period {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.tl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  justify-self: center;
  position: relative;
  z-index: 1;
  opacity: 0.45;
}

.tl-active .tl-dot {
  background: var(--forest);
  opacity: 1;
  box-shadow: 0 0 0 3px var(--sand), 0 0 0 4px var(--forest);
}

.tl-name {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tl-active .tl-period {
  color: var(--text);
}

.tl-active .tl-name {
  color: var(--forest);
}

/* Details — hidden by default, revealed by the section button */
.tl-details {
  grid-column: 1 / -1;
  list-style: none;
  padding-left: calc(11.4rem + 6px);
  max-height: 0;
  overflow: hidden;
  align-self: start;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.timeline.tl-show-details .tl-details {
  opacity: 1;
}

.tl-details li {
  display: grid;
  grid-template-columns: 1.1em 1fr;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.8;
}

.tl-details li::before {
  content: '\2013';
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem 3.5rem;
    gap: 1.25rem;
  }

  .services {
    padding: 3rem 1.5rem;
  }

  .timeline {
    padding: 3rem 1.5rem;
  }

  .tl-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-list::before {
    left: 3px;
  }

  .tl-item {
    grid-template-columns: 6px minmax(0, 1fr);
    align-items: start;
    column-gap: 1rem;
    row-gap: 0.15rem;
  }

  .tl-period {
    grid-column: 2;
    text-align: left;
  }

  .tl-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.65rem;
  }

  .tl-name {
    grid-column: 2;
  }

  .tl-details {
    grid-column: 2;
    padding-left: 0;
    padding-top: 0.55rem;
  }

  .services-list li {
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
