/* LightWeight public site. All assets are served from this site. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg-0: #f6f7fb;
  --bg-1: #ffffff;
  --stroke: #d7dbe5;
  --text-0: #10131c;
  --text-1: #474e60;
  --accent: #c41f35;
  --accent-line: #ff4f5e;
  --code-bg: #eceef4;
  --font-display: "Barlow Condensed", "DIN Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-0: #07080d;
    --bg-1: #171b26;
    --stroke: #2a2f3f;
    --text-0: #f4f7ff;
    --text-1: #a9b0c2;
    --accent: #ff7984;
    --accent-line: #ff4f5e;
    --code-bg: #10131c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--bg-1);
  color: var(--text-0);
  border: 2px solid var(--text-0);
  border-radius: 0.5rem;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-1);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text-0);
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--accent-line);
  color: #07080d;
  font-size: 0.95rem;
}

nav.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.site li + li {
  margin-top: 0;
}

nav.site a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.5rem;
}

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

nav.site a.sign-in {
  color: var(--text-0);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

nav.site a.sign-in:hover {
  color: var(--accent);
}

nav.site a[aria-current="page"] {
  color: var(--text-0);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

main.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: condensed;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

p,
ul,
ol {
  margin: 0.75rem 0 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

.lead {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text-1);
}

.note {
  color: var(--text-1);
  font-size: 0.95rem;
}

strong {
  font-weight: 700;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible,
nav.site a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}

pre {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  background: var(--code-bg);
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
}

.toc {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--bg-1);
}

.toc p {
  margin: 0;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-1);
}

.toc ul {
  margin-top: 0.5rem;
}

footer.site {
  border-top: 1px solid var(--stroke);
  padding: 1.25rem 0 2rem;
  color: var(--text-1);
  font-size: 0.9rem;
}

footer.site p {
  margin: 0;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 3rem;
  }

  main.wrap {
    padding-top: 3rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-1: var(--text-0);
  }
}

.home,
.document {
  color-scheme: dark;
  --bg-0: #07080d;
  --bg-1: #10131c;
  --stroke: #2a2f3f;
  --text-0: #f4f7ff;
  --text-1: #a9b0c2;
  --accent: #ff7984;
  --code-bg: #10131c;
  --on-accent: #07080d;
}

.home .wrap,
.document header.site .wrap {
  width: min(100%, 82rem);
  max-width: none;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

.home header.site,
.document header.site {
  background: var(--bg-0);
}

.home header.site .wrap,
.document header.site .wrap {
  min-height: 4.5rem;
}

.home .brand,
.document .brand {
  gap: 0.625rem;
  font-size: 1.625rem;
}

.home nav.site a {
  padding-inline: 0.625rem;
}

.home .hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.hero-copy {
  min-width: 0;
}

.home h1 {
  font-size: clamp(3.625rem, 7.25vw, 6rem);
  line-height: 0.91;
  letter-spacing: -0.02em;
}

.hero .lead {
  max-width: 35ch;
  margin-top: 1.375rem;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
}

.site-button {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 48px;
  margin-top: 1.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent-line);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.site-button:hover {
  background: var(--accent);
}

.training-figure {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  min-height: clamp(24rem, 42vw, 36rem);
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--stroke);
  border-radius: 1.25rem;
  background: var(--bg-1);
  overflow: hidden;
}

.training-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.sample {
  width: min(100%, 19rem);
  padding: 1rem 1.125rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--bg-1);
  box-shadow: 0 12px 32px #07080d99;
}

.sample p {
  margin: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.sample h2,
.plans h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
}

.sample h2 {
  margin-top: 0.25rem;
  font-size: 1.875rem;
}

.sample table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
}

.sample th,
.sample td {
  padding-block: 0.25rem;
}

.sample thead,
.sample tbody th {
  color: var(--text-1);
}

.sample tbody tr {
  border-top: 1px solid var(--stroke);
}

.plans {
  display: grid;
  align-items: start;
  gap: 1.75rem;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--stroke);
}

.plans h2 {
  font-size: clamp(2.375rem, 4vw, 3.25rem);
}

.plans-intro p,
.plan-list dd {
  max-width: 58ch;
  color: var(--text-1);
}

.plan-list {
  margin: 0;
}

.plan-list > div {
  display: grid;
  gap: 0.375rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--stroke);
}

.plan-list > div:first-child {
  padding-top: 0;
}

.plan-list dt {
  font: 700 1.875rem/1.15 var(--font-display);
}

.plan-list dd {
  margin: 0;
  font-size: 0.975rem;
}

.plus {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

.footer-links p {
  margin-right: auto;
  color: var(--text-0);
  font-weight: 700;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 40rem) {
  .plan-list > div {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}

@media (min-width: 52rem) {
  .home .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .training-figure {
    padding: 1.5rem;
  }

  .plans {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .plans-intro p {
    max-width: 32ch;
  }
}

@media (max-width: 51.999rem) {
  .training-figure {
    min-height: 0;
    gap: 0;
    padding: 0 1rem 1rem;
  }

  .training-photo {
    position: relative;
    inset: auto;
    width: calc(100% + 2rem);
    height: auto;
    max-height: 21rem;
    aspect-ratio: 1.65;
    margin-inline: -1rem;
    object-position: center 66%;
  }

  .sample {
    margin-top: -1.25rem;
  }
}

@media (prefers-contrast: more) {
  .home,
  .document {
    --text-1: var(--text-0);
  }
}

.feature-carousel {
  min-width: 0;
}

.feature-carousel [hidden] {
  display: none;
}

/* Stack the panels at the same size so rotation does not shift the page. */
.feature-slides {
  display: grid;
}

.feature-slides > figure {
  grid-area: 1 / 1;
}

.feature-slides > figure[hidden] {
  display: grid;
  visibility: hidden;
}

.feature-steps,
.feature-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.feature-steps {
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.feature-steps button {
  min-height: 44px;
  padding: 0.375rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-1);
  font: 700 0.8125rem/1.3 var(--font-body);
  cursor: pointer;
}

.feature-steps button[aria-pressed="true"] {
  border-color: var(--stroke);
  background: var(--bg-1);
  color: var(--accent);
}

.feature-steps button:hover {
  color: var(--text-0);
}

.feature-steps button:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}

.coach-figure {
  align-items: center;
  min-height: clamp(24rem, 42vw, 36rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 100% 0, #272131, var(--bg-1) 65%);
}

.coach-example {
  width: 100%;
  max-width: 29rem;
  margin-inline: auto;
}

.coach-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.coach-example h2,
.coach-example h3 {
  border: 0;
  padding: 0;
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.coach-example h2 {
  font-size: 2.375rem;
}

.coach-question,
.coach-reply {
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.coach-question {
  margin: 1rem 0 0 auto;
  max-width: 32ch;
  background: #272131;
}

.coach-reply {
  margin-top: 0.75rem;
  border: 1px solid var(--stroke);
  background: var(--bg-0);
}

.coach-reply ul {
  list-style: none;
  padding: 0;
}

.coach-reply li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 0.625rem;
  color: var(--text-1);
}

.coach-reply li span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
