@font-face {
  font-family: Figtree;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Figtree;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: only light;
  --ink: #111d2e;
  --paper: #fff2d9;
  --paper-light: #fff9ec;
  --stone: #9fa6b3;
  --stone-light: #c3c8d1;
  --sun: #fdbf16;
  --ink-soft: #46536a;
  --rule: rgba(17, 29, 46, 0.18);
  --rule-on-ink: rgba(255, 242, 217, 0.22);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --page: 76rem;
  --gap: clamp(1.5rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48em) { body { font-size: 1.125rem; } }

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 40rem; }
.on-ink { background: var(--ink); color: var(--paper); }

.skip { position: absolute; left: -999rem; top: 0; background: var(--sun); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* an open fact: visible so nothing undecided goes live unnoticed */
.tbd { background: rgba(253, 191, 22, 0.3); outline: 1px dashed #b98700; outline-offset: 2px; cursor: help; }

/* ---------- header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { height: 2.1rem; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; font-size: 1rem; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 0.35rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--stone); }

/* ---------- title, straight into the levels ---------- */
.intro { padding-block: clamp(1rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); }
.intro h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- personal training: how it works, price and contact ---------- */
.training { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.panel { border-radius: 0.5rem; padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 62em) { .panel { grid-template-columns: 1.6fr 1fr; } }
.panel-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1rem; }
.panel-lead { font-size: 1.15rem; line-height: 1.45; max-width: 40rem; margin-bottom: 1.75rem; }
.panel-side { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.panel-side .reach-lines { margin: 0 0 1rem; }
.facts { display: grid; gap: 0 var(--gap); margin: 0; }
@media (min-width: 36em) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { border-top: 1px solid var(--rule-on-ink); padding-block: 1.1rem 1.4rem; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts dt { font-weight: 700; margin-bottom: 0.2rem; }
.facts dd { margin: 0; color: var(--stone-light); }
.price { background: var(--paper); color: var(--ink); border-radius: 0.4rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.price h3 { margin-bottom: 1rem; }
.price-rows { margin: 0 0 1.25rem; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--rule); padding-block: 0.7rem; }
.price-rows dt { color: var(--ink-soft); }
.price-rows dd { margin: 0; font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.guarantee { border-left: 4px solid var(--sun); padding-left: 1rem; }
.guarantee-terms { margin: 1.25rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.85rem; line-height: 1.45; color: var(--ink-soft); }

/* ---------- levels ---------- */
.levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem var(--gap); }
.level-art { display: block; width: 100%; height: auto; border-radius: 0.4rem; margin-bottom: 1.1rem; }
.level-name { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); line-height: 1; padding-top: 0.2rem; }
.level-what { font-weight: 500; color: var(--ink-soft); margin: 0.3rem 0 1rem; }
.level-goal { margin-bottom: 1.1rem; }
.level-after { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.15rem; }
.level-topics { list-style: none; padding: 0; margin: 0; font-size: 0.98rem; line-height: 1.4; }
.level-topics li { border-top: 1px solid var(--rule); padding-block: 0.6rem; }
.level-topics li:last-child { border-bottom: 1px solid var(--rule); }
.level-example { margin-top: 1.25rem; font-size: 0.95rem; line-height: 1.45; background: var(--paper-light); border-radius: 0.3rem; padding: 0.9rem 1rem; }
.level-example b { display: block; }
.level-toggle { display: none; justify-self: start; }
.js .level-toggle { display: inline-block; font: inherit; font-size: 0.95rem; font-weight: 700; color: inherit; background: none; border: 0; padding: 0.4rem 0; margin-bottom: 0.6rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
.js .level:not(.open) .level-more { display: none; }

@media (min-width: 40em) {
  .levels { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 68em) {
  .levels { grid-template-columns: repeat(4, 1fr); }
  .level { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}

/* ---------- about: the summit stands on the dark part below ---------- */
.about-top { position: relative; }
.about-in { min-height: min(35rem, 40vw); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.about-in > * { max-width: min(40rem, 52vw); }
.about-in h2 { margin-bottom: 1.5rem; }
.about-art { position: absolute; right: 0; bottom: 0; width: min(44vw, 40rem); height: auto; display: block; }
@media (max-width: 47.99em) {
  .about-in { min-height: 0; padding-bottom: 0; }
  .about-in > * { max-width: none; }
  .about-art { position: static; width: 74vw; margin: 1.5rem 0 0 auto; }
}
.who { display: grid; gap: 1.5rem 2rem; align-items: start; }
@media (min-width: 36em) { .who { grid-template-columns: 9.5rem 1fr; } }
.photo { aspect-ratio: 4 / 5; width: 9.5rem; background: var(--paper); border-radius: 0.3rem; display: grid; place-items: center; color: var(--ink-soft); font-size: 0.9rem; }
.about-base { padding-block: clamp(3rem, 6vw, 4.5rem); }
.about-base h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1.25rem; }
.about-base h3 ~ h3 { margin-top: clamp(3rem, 6vw, 4.5rem); }
.work-after, .work-before { max-width: 40rem; }
.work-after { margin-top: 1.75rem; }
.work-before { margin-bottom: 1.75rem; }
.work { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
@media (min-width: 52em) { .work { grid-template-columns: repeat(3, 1fr); } }
.work li { border-top: 2px solid var(--sun); padding-top: 1rem; }
.work h4 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.3rem; }
.work .meta { color: var(--stone-light); font-size: 0.95rem; margin-bottom: 0.7rem; }

/* ---------- contact lines and footer ---------- */
.reach-lines { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin: 1.5rem 0; }
.reach-lines a { text-decoration-thickness: 0.09em; }
.site-foot { border-top: 1px solid var(--rule-on-ink); margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.9rem; color: var(--stone-light); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-foot p { margin: 0; }
.foot-only { padding-block: 0 2.5rem; }
.foot-only .site-foot { margin-top: 0; border-top: 0; padding-top: 2.5rem; }
.foot-after { padding-bottom: 2.5rem; }
.foot-after .site-foot { margin-top: 0; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 2.25rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
