:root {
  color-scheme: light;
  --ink: #172622;
  --subtle: #4b6058;
  --paper: #f4f6ef;
  --white: #fff;
  --forest: #162522;
  --lime: #e3f197;
  --mist: #edf1e5;
  --line: #d8e1d3;
  --focus: #426b44;
  --gold: #fbf1db;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
p { color: var(--subtle); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
section[id] { scroll-margin-top: 1rem; }

.wrap {
  width: min(100% - 2rem, 66rem);
  margin-inline: auto;
}

.visually-hidden, .week-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1rem;
  background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 3.7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: .5rem;
  color: var(--lime);
  background: var(--forest);
  font-size: 1.12rem;
  line-height: 1;
}
.brand-divider { margin-inline: .18rem; color: #748479; }
.brand-section { color: var(--subtle); }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
}
.header-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(1.55rem, 4vw, 3.5rem);
  padding: clamp(1.3rem, 5vw, 4.2rem);
  color: var(--white);
  background: radial-gradient(ellipse at 100% 0%, #375143 0%, transparent 57%), var(--forest);
  border-radius: clamp(1.15rem, 3vw, 2.2rem);
}
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 102% -24%, transparent 0 1.22rem, #e3f19716 1.25rem 1.30rem, transparent 1.34rem 2.6rem);
  mask-image: linear-gradient(95deg, transparent 19%, #000);
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 8vw, 5.6rem);
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: .99;
}
.hero p {
  max-width: 32ch;
  margin-top: .85rem;
  color: #dde7dd;
  font-size: clamp(.96rem, 2.2vw, 1.17rem);
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.9rem;
  margin-top: 1.1rem;
  border-radius: .65rem;
  padding: .65rem .9rem;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: .94rem;
}
.primary-link:hover { background: #eff8ba; }
.primary-link:focus-visible { outline-color: var(--lime); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.hero-facts div {
  border-top: 1px solid #b8d1bb70;
  padding-top: .58rem;
}
.hero-facts dt { color: #d5e4d7; font-size: .75rem; }
.hero-facts dd { font-size: clamp(.96rem, 3.9vw, 1.55rem); font-weight: 740; }

.schedule {
  display: grid;
  align-items: end;
  gap: 1.1rem;
  margin-top: clamp(1.65rem, 4vw, 3.4rem);
}
.schedule h2, .progression h2, .section-heading h2 {
  font-size: clamp(1.42rem, 4.3vw, 2.15rem);
}
.schedule-main p { margin-top: .42rem; max-width: 51ch; }

.week-picker { margin: 0; border: 0; padding: 0; min-width: 0; }
.week-picker legend { margin-bottom: .38rem; padding: 0; font-weight: 700; font-size: .84rem; }
.week-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem;
  padding: .2rem;
  background: #e5ebde;
  border: 1px solid #d6dfd1;
  border-radius: .74rem;
}
.week-options label {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border-radius: .53rem;
  padding-inline: .55rem;
  cursor: pointer;
  text-align: center;
  font-size: .94rem;
  font-weight: 700;
}
.week-options input:checked + label {
  color: var(--white);
  background: var(--forest);
}
.week-options input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.steps-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .37rem;
}
.steps-preview a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .26rem;
  padding: .65rem .5rem;
  min-height: 4.07rem;
  border-radius: .7rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.steps-preview a:hover { background: var(--mist); }
.preview-name { font-size: clamp(.75rem, 2.8vw, 1rem); font-weight: 730; }
.preview-time { color: var(--subtle); font-size: .81rem; }

.session { margin-top: 1.55rem; }
.session-step {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: .52rem;
  position: relative;
  padding-bottom: 1.57rem;
}
.session-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: .9rem;
  bottom: -.85rem;
  left: .91rem;
  width: 1px;
  background: #bfcdb8;
}
.step-number {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-size: .76rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.step-body { min-width: 0; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 1.9rem;
  margin-bottom: .46rem;
}
.time {
  flex-shrink: 0;
  padding: .22rem .54rem;
  border-radius: .5rem;
  color: var(--ink);
  background: #e4edd3;
  font-size: .8rem;
  font-weight: 730;
  white-space: nowrap;
}
.series strong { color: var(--ink); }
.safety {
  margin: .87rem 0 .9rem;
  padding: .78rem .82rem 0;
  background: var(--gold);
  border-radius: .78rem;
  color: #48351d;
}
.safety p { margin-top: .2rem; color: #54452f; }
.safety summary { color: #59411e; }
.safety .details-content { padding-bottom: .65rem; }

.exercises {
  display: grid;
  gap: .67rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.exercise {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .95rem;
  padding: .83rem .78rem 0;
}
.exercise-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .48rem;
}
.exercise-index {
  color: #385842;
  background: var(--mist);
  min-width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: .38rem;
  font-size: .79rem;
  font-weight: 760;
}
.exercise h3 { font-size: clamp(1.01rem, 3.8vw, 1.35rem); }
.equipment { color: var(--subtle); font-size: .78rem; }
.reps {
  padding: .22rem .39rem;
  background: var(--forest);
  border-radius: .43rem;
  color: var(--white);
  font-size: .82rem;
  font-weight: 740;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}
.reps span { color: #e1ebdf; display: block; font-size: .66rem; margin-top: .08rem; font-weight: 540; }
.exercise p { margin-top: .52rem; }
.video-link {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.75rem;
  margin-top: .74rem;
  padding: .4rem .56rem;
  border: 1px solid #d5dfd1;
  border-radius: .57rem;
  background: #f4f7ee;
  color: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 690;
}
.video-link:hover { background: #e8f0d9; }
.video-time { margin-left: auto; color: var(--subtle); font-variant-numeric: tabular-nums; font-size: .77rem; }
.play {
  width: 0;
  height: 0;
  margin-left: .08rem;
  border-top: .36rem solid transparent;
  border-bottom: .36rem solid transparent;
  border-left: .55rem solid #3e6550;
}
details { margin-top: .15rem; }
summary {
  display: flex;
  align-items: center;
  gap: .4rem;
  justify-content: space-between;
  min-height: 2.75rem;
  list-style: none;
  color: #375442;
  font-size: .85rem;
  font-weight: 710;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.06rem; font-weight: 580; }
details[open] summary::after { content: "−"; }
.details-content { padding: 0 0 .68rem; }
.details-content p { margin: 0; font-size: .92rem; }
.details-content p + p { margin-top: .55rem; }

.progression {
  padding: 1.16rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--mist);
  border-radius: .91rem;
}
.progression ul { margin: .65rem 0 0; padding-left: 1.15rem; color: var(--subtle); }
.progression li + li { margin-top: .38rem; }
.progression strong { color: var(--ink); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 .75rem;
  align-items: start;
  margin-top: .85rem;
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
.site-footer div { display: flex; flex-wrap: wrap; column-gap: .7rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.75rem;
  color: var(--subtle);
  font-size: .78rem;
  text-underline-offset: .2em;
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 1.25rem); }
  .hero { padding: 1.1rem; }
  .steps-preview a { padding-inline: .37rem; }
  .exercise-top { grid-template-columns: minmax(0, 1fr) auto; }
  .exercise-index { display: none; }
}

@media (min-width: 640px) {
  .wrap { width: min(100% - 3rem, 66rem); }
  .header-row { min-height: 4rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr); align-items: end; }
  .hero-facts { grid-template-columns: 1fr; gap: .72rem; max-width: 15rem; justify-self: end; width: 100%; }
  .hero-facts div { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
  .schedule { grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem); }
  .steps-preview { grid-column: 1 / -1; gap: .75rem; }
  .steps-preview a { padding: .7rem .9rem; }
  .session { margin-top: 2.2rem; }
  .session-step { grid-template-columns: 2.45rem minmax(0, 1fr); gap: .75rem; padding-bottom: 2rem; }
  .session-step:not(:last-child)::before { left: 1.22rem; }
  .step-number { width: 2.45rem; height: 2.45rem; font-size: .85rem; }
  .section-heading { min-height: 2.45rem; }
  .time { font-size: .9rem; }
  .exercises { gap: .8rem; }
  .exercise { padding-inline: 1rem; }
  .progression { margin-left: 3.2rem; padding: 1.4rem; }
}

@media (min-width: 870px) {
  .exercises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exercise { display: flex; flex-direction: column; }
  .exercise:last-child { grid-column: 1 / -1; }
  .exercise p { margin-bottom: .55rem; }
  .exercise .video-link { margin-top: auto; }
  .exercise .details-content p { margin-bottom: 0; }
}

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