:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: rgba(11,18,32,0.70);
  --border: rgba(11,18,32,0.14);

  /* accents */
  --blue: #2563eb;
  --green: #0f766e;
  --green2: rgb(136, 160, 108);
  --brown: #8b5e34;
  --yellow: #bfa007;

  --max: 900px;
  --ring: 0 0 0 3px rgba(37,99,235,0.20);
  --line-height-text: 1.55;
  color-scheme: light;
}

.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*{ box-sizing: border-box; }
html{
  scroll-padding-top: var(--header-offset, 88px);
  scroll-behavior: smooth;
}
html, body{ min-height: 100%; }
body{
  margin: 0;
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height-text);
}

main :where(p, li){
  line-height: var(--line-height-text);
}

a{ color: var(--green2); }
a:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: 10px; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 12px;
  background: rgba(2,6,23,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  z-index: 1001;
  color: rgba(255,255,255,0.95);
}
.skip-link:focus{
  left: 10px;
  top: calc(var(--header-offset, 88px) + 10px);
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,1);
  border-bottom: 1px solid var(--border);
}
.site-header .container{
  padding: 14px 0;
}

.header-row{
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-brand{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-brand:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}
.site-logo{
  display: block;
  height: 5.5rem;
  width: auto;
  max-width: min(150px, 38vw);
  object-fit: contain;
}

main{
  padding-top: var(--header-offset, 88px);
}

.nav{
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars{
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before{
  top: -7px;
}
.nav-toggle-bars::after{
  top: 7px;
}
.nav.is-open .nav-toggle-bars{
  background: transparent;
}
.nav.is-open .nav-toggle-bars::before{
  top: 0;
  transform: rotate(45deg);
}
.nav.is-open .nav-toggle-bars::after{
  top: 0;
  transform: rotate(-45deg);
}
.nav-links{
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a{
  text-decoration: none;
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover{
  color: var(--green2);
  border-bottom-color: rgba(85,111,58,0.35);
}
.nav .button-strava{
  margin-left: auto;
}

@media (max-width: 852px){
  .header-row{
    gap: 10px;
    flex-wrap: nowrap;
  }
  .site-logo{
    height: 3.5rem;
    max-width: min(120px, 30vw);
  }
  .nav{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 12px;
    position: relative;
    flex: 1 1 auto;
  }
  .nav-toggle{
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }
  .nav .button-strava{
    margin-left: 0;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
    min-width: 0;
  }
  .nav-links{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 44px rgba(11, 18, 32, 0.14);
  }
  .nav.is-open .nav-links{
    display: flex;
  }
  .nav-links a{
    padding: 10px 4px;
    border-bottom-color: transparent;
  }
  .nav-links a:hover{
    border-bottom-color: rgba(37,99,235,0.35);
  }
}

h1{
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}
h2{
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
  font-size: clamp(22px, 2.6vw, 28px);
}
h3{
  margin: 0 0 8px 0;
  letter-spacing: -0.1px;
}
h4{
  font-weight: 600;
  margin: 0 0 6px 0;
  letter-spacing: -0.1px;
}
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.button:hover{
  border-color: rgba(37,99,235,0.35);
}
.button.button-strava:hover{
  color: #FC5200;
  border-color: #FC5200;
}
.button-strava-icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.icon-paragraph {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.inline-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2em;
}
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 18, 32, 0.12);
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-inner{
  position: relative;
  z-index: 1;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 8vw, 72px) 0 clamp(170px, 6vw, 52px);
  color: #ffffff;
  width: 100%;
  margin: 0 auto;
}
.hero-panel{
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.12);
}
.hero h1{
  margin: 0 20% 0 20%;
}
.hero-panel :where(p, .hero-lead){
  margin: 10px 20% 0 20%;
  font-weight: 600;
  font-size: larger;
  line-height: 1.1;
}
.hero-more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 18px 20% 0 20%;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero-more:hover{
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.hero-more:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}
.hero h1,
.hero p {
  text-shadow: 8px 8px 6px rgba(0,0,0,0.7);
}
.second-level-bullet{
  padding-inline-start: 20px;
}
.second-level-bullet :where(li){
  line-height: 1.8;
}
.section{
  padding: 28px 0;
}
.section.alt{
  background: rgba(15,118,110,0.03);
  border-top: 1px solid rgba(15,118,110,0.10);
  border-bottom: 1px solid rgba(15,118,110,0.10);
}
.muted{ color: var(--muted); }
.muted.small{
  margin-top: 1.75rem;
}
.small{ font-size: 13px; }

.site-footer{
  padding: 18px 0 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.stage-cards{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: 20px;
}
.stage-card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(55px, 0.4fr) minmax(80px, 0.4fr) minmax(155px, 1.4fr) minmax(110px, 0.8fr);
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 2px solid var(--text);
  border-radius: 24px;
  background: #fff;
}
.stage-status{
  position: absolute;
  top: 0;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.stage-status--ongoing{
  background: var(--blue);
}
.stage-status--soon{
  background: var(--yellow);
}
.stage-number{
  font-size: clamp(48px, 6vw, 48px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 500;
}
.stage-title{
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.stage-meta{
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.stage-meta p{
  margin: 0;
  line-height: inherit;
}
.stage-links{
  display: grid;
  justify-items: start;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 0.7;
}
.stage-links a,
.stage-links span{
  color: var(--green2);
  text-decoration: none;
}
.stage-links a:hover{
  color: var(--text);
  border-bottom-color: rgba(85,111,58,0.35);
}

.formula{
  max-width: 520px;
  margin-inline: auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}

.sheet-embed-placeholder{
  width: 100%;
  margin: 14px auto 0;
  min-height: 220px;
  max-width: 800px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.03);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.sheet-embed-tabs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  padding: 12px 18px 6px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow-x: visible;
}
.sheet-tab{
  appearance: none;
  flex: 0 1 auto;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sheet-tab:hover:not(:disabled),
.sheet-tab:active:not(:disabled),
.sheet-tab.is-active{
  color: var(--green2);
  border-bottom-color: rgba(85,111,58,0.35);
}
.sheet-tab:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}
.sheet-tab:disabled{
  cursor: not-allowed;
  opacity: 0.48;
}
.sheet-tab:disabled:hover{
  color: var(--muted);
  border-bottom-color: transparent;
}
.sheet-tab-title{
  display: block;
  margin: 0 0 6px 0;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.sheet-embed-panels,
.sheet-embed-panel{
  display: flex;
  justify-content: center;
  width: 100%;
}
.sheet-embed-panel[hidden]{
  display: none;
}
.sheet-embed{
  display: block;
  width: min(100%, 760px);
  max-width: 100%;
  margin-inline: auto;
  height: 500px;
  border: 0;
}
.sheet-embed-placeholder-text{
  margin: 0;
  max-width: 38ch;
  line-height: 1.5;
  padding: 28px 20px;
}


@media (max-width: 940px){
  .stage-cards{
    grid-template-columns: auto;
  }
  .stage-card{
    grid-template-columns: 35% 65%;
    gap: 14px 24px;
    padding: 22px 24px;
    border-width: 2px;
    border-radius: 26px;
    align-items: start;
  }
  .stage-number{
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(40px, 20vw, 48px);
  }
  .stage-title{
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(20px, 7vw, 28px);
  }
  .stage-meta{
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(20px, 6vw, 24px);
  }
  .stage-links{
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-self: start;
    justify-self: start;
    gap: 8px 18px;
    font-size: clamp(20px, 6vw, 20px);
    line-height: 1.1;
  }
}

@media (max-width: 640px){
  .container{ width: min(var(--max), calc(100% - 40px)); }
  .sheet-embed-tabs{
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    padding: 12px 16px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .sheet-tab{
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}
