@font-face {
  font-family: Geist;
  src: url('fonts/Geist-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('fonts/Geist-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('fonts/Geist-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #1e1e2e;
  --surface: #181825;
  --deep: #11111b;
  --ink: #cdd6f4;
  --muted: #a6adc8;
  --accent: #cba6f7;
  --now: #fab387;
  --done: #a6e3a1;
  --black: #000;
  --gutter: 32px;
  --font: Geist, Arial, sans-serif;
  --body: 18px;
  --small: 14px;
  --section: clamp(38px, 5vw, 72px);
  --title: clamp(64px, 8.7vw, 132px);
  --gap: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.5;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--now); outline-offset: 6px; }
.close a:focus-visible, footer a:focus-visible { outline-color: var(--deep); }
a:hover { text-decoration: underline; }
a:active, button:active { transform: translateY(2px); }
button:disabled { cursor: default; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
h1, h2 { font-weight: 800; }
h2 { font-size: var(--section); }
h3 { font-size: clamp(28px, 3vw, 44px); }
small { font-size: var(--small); }
.frame { padding-inline: var(--gutter); }
[hidden] { display: none !important; }

.navigation { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); min-height: 104px; }
.brand { display: block; width: 202px; }
.navigation nav, .footer-links nav { display: flex; gap: 32px; }
.navigation a, .footer-links a { text-decoration: none; }
.navigation nav a { padding-block: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--deep);
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s;
}
.button:hover { transform: translateY(-3px); text-decoration: none; }
.button:disabled { background: var(--done); transform: none; }
.hero { padding-top: 58px; }
.hero h1 { font-size: var(--title); line-height: 1; max-width: 1376px; }
.hero h1 .inline-preview {
  display: inline-block;
  width: 1.9em;
  height: .76em;
  padding: 0;
  vertical-align: -.02em;
  object-fit: contain;
}
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-top: 40px; margin-bottom: 52px; }
.support { font-size: 24px; max-width: 560px; line-height: 1.4; }
.hero-action { max-width: 310px; }
.hero-action p { font-size: var(--small); margin-top: 16px; color: var(--muted); }
.hero-proof { background: var(--surface); padding: 30px 40px 24px; max-width: 100%; transform-origin: bottom; }
.proof-title { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; font-size: 24px; font-weight: 700; }
.proof-title small { display: block; font-weight: 400; color: var(--muted); }
.proof-detail { margin-left: auto; text-align: right; font-size: var(--small); font-weight: 400; color: var(--muted); }
.proof-exercise { display: grid; grid-template-columns: 1fr 1fr 120px; align-items: center; padding: 18px 0; gap: var(--gap); }
.proof-exercise strong { font-size: 24px; letter-spacing: -.025em; }
.proof-exercise > span { color: var(--muted); }
.proof-exercise b { text-align: right; font-size: 28px; font-variant-numeric: tabular-nums; }
.proof-exercise b small { color: var(--muted); font-weight: 400; }
.caption { font-size: var(--small); color: var(--muted); line-height: 1.5; }
.hero > .caption { margin-top: 16px; }

.showcase { padding-top: 160px; padding-bottom: 160px; display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: start; }
.showcase-intro { max-width: 520px; }
.showcase-intro p { margin-top: 32px; max-width: 33ch; }
.logging-preview { display: grid; grid-template-columns: 62fr 38fr; background: var(--surface); min-width: 0; }
.logging-workout { padding: 28px 24px; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--small); color: var(--muted); margin-bottom: 32px; }
.logging-workout h3 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 4px; text-align: right; font-weight: 400; }
th:first-child { text-align: left; }
thead { color: var(--muted); font-size: var(--small); }
.set-state { font-size: var(--small); }
tr.is-current { color: var(--now); }
tr.is-logged { color: var(--done); }
.next-exercise { margin-top: 36px; font-size: var(--small); color: var(--muted); }
.next-exercise strong { display: block; margin-top: 4px; color: var(--ink); font-size: 18px; }
.logging-controls { background: var(--deep); padding: 28px 24px; min-width: 0; }
.logging-controls > p:first-child { font-size: var(--small); color: var(--muted); }
.set-count { font-size: 28px; font-weight: 700; margin-top: 8px; }
.set-values { display: flex; gap: 24px; margin: 28px 0; color: var(--now); font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.set-values small { display: block; font-weight: 400; color: var(--muted); }
#preview-controls .button { width: 100%; padding-inline: 12px; }
.reset { display: block; color: var(--ink); background: none; border: 0; min-height: 48px; margin: 12px auto 0; text-decoration: underline; text-underline-offset: 5px; font-size: var(--small); }
#log-status { font-size: var(--small); color: var(--muted); margin-top: 20px; }
noscript p { font-size: var(--small); margin-top: 16px; }

.practice { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-bottom: 160px; }
.practice > h2 { max-width: 360px; position: sticky; top: 32px; align-self: start; }
.practice-rows { min-width: 0; }
.practice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 120px; }
.practice-row:last-child { margin-bottom: 0; }
.row-copy p { margin-top: 24px; max-width: 35ch; }
.row-copy .caption { margin-top: 16px; }
figure { margin: 0; min-width: 0; }
figcaption { font-size: var(--small); color: var(--muted); margin-top: 16px; line-height: 1.5; }
.fragment { background: var(--surface); padding: 24px; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.fragment-title { display: block; font-size: 24px; letter-spacing: -.03em; }
.plan-fragment .ui-top { margin-bottom: 20px; }
.plan-day { background: var(--bg); padding: 16px; display: flex; flex-direction: column; }
.plan-day > span, .plan-day small, .plan-next > span { font-size: var(--small); color: var(--muted); }
.plan-day > strong { font-size: 20px; }
.plan-day p { margin-top: 16px; line-height: 1.8; font-size: var(--small); }
.plan-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: var(--small); }
.today-fragment { width: 90%; justify-self: end; }
.today-heading { margin: 24px 0; display: flex; flex-direction: column; }
.today-heading > strong { font-size: 24px; letter-spacing: -.03em; }
.today-heading > span, .target > span { font-size: var(--small); color: var(--muted); }
.target { margin-bottom: 20px; display: flex; flex-direction: column; }
.ui-action { margin-top: 24px; padding: 12px 8px; text-align: center; background: var(--accent); color: var(--deep); font-weight: 700; }
.watch-fragment { width: 80%; justify-self: end; }
.watch { background: var(--black); text-align: center; padding: 28px 20px; }
.watch > p { font-size: var(--small); color: var(--muted); margin-top: 8px; }
.watch-values { display: flex; justify-content: center; gap: 28px; margin-block: 32px; font-size: 44px; font-weight: 700; line-height: 1.1; }
.watch-values > span:last-child { color: var(--now); }
.watch-values small { display: block; font-weight: 400; color: var(--muted); margin-top: 8px; }
.watch > .ui-action { color: var(--deep); margin-top: 24px; }
.history-fragment .fragment > p { font-size: var(--small); color: var(--muted); margin-top: 16px; margin-bottom: 24px; }
.history-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--small); padding-block: 12px; }
.history-row > span:last-child { color: var(--done); }

.close { background: var(--ink); color: var(--deep); padding-top: 80px; padding-bottom: 72px; }
.close h2 { font-size: clamp(60px, 10vw, 152px); line-height: .97; }
.close-bottom { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 64px; }
.close-bottom p { max-width: 540px; font-size: 24px; }
.close .button { background: var(--deep); color: var(--ink); flex-shrink: 0; }
footer { background: var(--ink); color: var(--deep); overflow: hidden; padding-top: 64px; }
.footer-links { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.footer-wordmark { width: 100%; margin-top: 48px; margin-bottom: -4.5%; transform: translateY(10%); }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--deep); padding: 16px; z-index: 10; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1800px) {
  .frame { padding-inline: max(32px, calc((100vw - 1600px) / 2)); }
}
@media (max-width: 1100px) {
  :root { --gutter: 24px; --title: 9vw; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase-intro { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .showcase-intro p { margin-top: 0; }
  .logging-preview { max-width: 800px; width: 100%; justify-self: end; }
  .practice { grid-template-columns: 1fr; gap: 56px; }
  .practice > h2 { position: static; max-width: none; }
  .practice-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-bottom { gap: 32px; }
  .support { font-size: 22px; }
  .hero-action { max-width: 250px; }
  .practice-row .row-copy { max-width: 390px; }
  .practice-row figure { max-width: 390px; justify-self: end; }
  .close-bottom p { font-size: 22px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --title: clamp(36px, 12vw, 47px); --section: 38px; --body: 16px; }
  .navigation { min-height: 88px; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 12px; }
  .brand { width: 162px; }
  .navigation nav { gap: 18px; font-size: 14px; }
  .navigation nav a { padding-block: 10px; }
  .navigation nav a:last-child { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: var(--title); line-height: 1.03; letter-spacing: -.05em; }
  .hero-bottom { flex-direction: column; margin-top: 32px; margin-bottom: 32px; gap: 24px; }
  .support { font-size: 20px; max-width: 29ch; }
  .hero-action { max-width: none; width: 100%; }
  .hero-action .button { width: 100%; }
  .hero-action p { margin-top: 12px; }
  .hero-proof { padding: 20px; }
  .proof-title { gap: 12px; font-size: 20px; margin-bottom: 16px; }
  .proof-title > img { width: 40px; }
  .proof-detail { display: none; }
  .proof-exercise { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; }
  .proof-exercise strong { font-size: 16px; }
  .proof-exercise > span { font-size: 14px; grid-row: 2; }
  .proof-exercise > b { font-size: 24px; grid-column: 2; grid-row: 1 / 3; }
  .caption { font-size: 13px; }
  .showcase { padding-top: 96px; padding-bottom: 96px; gap: 32px; }
  .showcase-intro { display: block; }
  .showcase-intro p { margin-top: 24px; }
  .logging-preview { grid-template-columns: 1fr; }
  .logging-workout, .logging-controls { padding: 24px; }
  .logging-workout { padding-bottom: 28px; }
  .ui-top { margin-bottom: 24px; font-size: 13px; }
  .next-exercise { margin-top: 24px; }
  .logging-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .logging-controls > p:first-child { align-self: center; }
  .set-count { font-size: 24px; text-align: right; margin-top: 0; }
  .set-values { grid-column: 1 / -1; margin: 20px 0; font-size: 36px; gap: 48px; }
  #preview-controls, #log-status, noscript { grid-column: 1 / -1; }
  #preview-controls { display: flex; align-items: center; gap: 16px; }
  #preview-controls .button { width: auto; flex: 1; }
  .reset { margin: 0; flex: 1; }
  #log-status { margin-top: 16px; }
  .practice { padding-bottom: 96px; gap: 48px; }
  .practice-row { display: block; margin-bottom: 64px; }
  .practice-row h3 { font-size: 28px; }
  .row-copy p { margin-top: 20px; }
  .practice-row figure { margin-top: 28px; max-width: none; }
  .plan-fragment, .history-fragment { width: 100%; }
  .today-fragment { width: 90%; margin-left: auto; }
  .watch-fragment { width: 78%; margin-left: auto; }
  .fragment { padding: 24px; }
  .close { padding-top: 48px; padding-bottom: 48px; }
  .close h2 { font-size: 58px; }
  .close-bottom { display: block; margin-top: 32px; }
  .close-bottom p { font-size: 20px; }
  .close .button { width: 100%; margin-top: 32px; }
  footer { padding-top: 32px; }
  .footer-links { display: block; font-size: 14px; }
  .footer-links nav { gap: 24px; margin-top: 24px; }
  .footer-links nav a { padding-block: 12px; }
  .footer-wordmark { margin-top: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-proof { animation: settle 1.1s cubic-bezier(.2, .65, .3, 1) both; }
  .inline-preview { animation: picture-drift 4s ease-in-out both; }
  .reveal.is-seen { animation: arrive .7s cubic-bezier(.2, .65, .3, 1) both; animation-delay: var(--delay, 0ms); }
  @keyframes settle {
    from { clip-path: inset(100% 0 0); transform: scale(1.04); }
    to { clip-path: inset(0); transform: scale(1); }
  }
  @keyframes arrive {
    from { opacity: 1; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes picture-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-.015em); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
