:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182c27;
  background: #f6f5ef;
  font-synthesis: none;
  line-height: 1.55;
  --green: #214f3e;
  --muted: #53655c;
  --border: #d2d8ce;
  --paper: #fffef9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #946515;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
h3 {
  line-height: 1.3;
}
p {
  max-width: 70ch;
}
.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 80px));
  margin: auto;
}
.site-header {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.brand {
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: -0.05em;
  font-weight: 750;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  margin-right: 6px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.nav-create {
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: 5px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 9;
  background: var(--paper);
  padding: 16px;
}
.skip:focus {
  top: 12px;
}
.hero {
  padding: 88px 0 72px;
  max-width: 820px;
}
.eyebrow,
.step {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--green);
}
.eyebrow {
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(3.3rem, 7.5vw, 6.5rem);
}
.hero-copy,
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 570px;
}
.hero-copy {
  margin-bottom: 32px;
}
.actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 13px 21px;
  background: var(--green);
  color: #fff;
  font-weight: 650;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  min-height: 46px;
}
.button:hover {
  background: #163e2f;
}
.button.secondary {
  background: transparent;
  color: var(--green);
}
.button.secondary:hover {
  background: #e5ecdf;
}
.button.small {
  padding: 10px 18px;
  min-height: 44px;
}
.text-link {
  font-weight: 650;
  font-size: 0.95rem;
}
.quiet,
.field-help {
  color: var(--muted);
  font-size: 0.87rem;
}
.login-note {
  margin-top: 24px;
  max-width: 550px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 55px;
}
.feature {
  padding: 35px 26px 26px 0;
}
.feature + .feature {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.feature h2 {
  margin-top: 30px;
}
.feature p {
  font-size: 0.96rem;
  color: var(--muted);
}
.note-panel {
  padding: 32px 36px;
  background: #e9ede2;
  border: 1px solid #d8dfd0;
  border-radius: 6px;
  margin-bottom: 48px;
}
.note-panel p:last-child {
  margin-bottom: 0;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 50px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 60px 0 32px;
}
.page-heading h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}
.page-heading p {
  margin-bottom: 0;
}
.page-heading .eyebrow {
  margin-bottom: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
  margin: 32px 0 44px;
}
.stats > div {
  padding: 25px 30px;
}
.stats > div + div {
  border-left: 1px solid var(--border);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  display: block;
  line-height: 1.2;
}
.stat-value small {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 9px;
}
.section {
  margin-bottom: 44px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 22px;
}
.section-title h2 {
  margin-bottom: 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.plan-card:hover {
  border-color: var(--green);
  background: #eff2e8;
}
.plan-card h3 {
  font-size: 1.45rem;
  margin: 24px 0 10px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.plan-card p {
  font-size: 0.88rem;
  color: var(--muted);
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.83rem;
  margin-top: 30px;
}
.empty {
  padding: 38px;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.empty p {
  color: var(--muted);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.activity-list li span {
  display: block;
}
.activity-metrics {
  text-align: right;
  white-space: nowrap;
}
.empty-small {
  padding: 22px 0;
  color: var(--muted);
}
.integration {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  background: var(--paper);
}
.integration .eyebrow {
  margin-bottom: 16px;
}
.integration-footnote {
  margin: 24px 0 0;
}
.status-pill {
  display: inline-block;
  border: 1px solid #7b9c75;
  background: #edf3e8;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 650;
}
.plan-form {
  max-width: 860px;
  margin-bottom: 60px;
}
.plan-form fieldset {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.plan-form legend {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0 16px 0 0;
  letter-spacing: -0.025em;
}
.plan-form .step {
  margin-right: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #a8b5a7;
  border-radius: 4px;
  background: var(--paper);
  color: #182c27;
  padding: 11px 12px;
  min-height: 46px;
  font-size: 1rem;
}
textarea {
  resize: vertical;
}
.field-help {
  margin-bottom: 20px;
}
label .field-help {
  font-weight: 400;
  margin-top: 0;
  font-size: 0.78rem;
}
.day-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.day-picker label {
  align-items: center;
  gap: 9px;
  padding: 13px 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  font-size: 0.78rem;
  cursor: pointer;
}
.day-picker input {
  height: 20px;
  width: 20px;
  min-height: 0;
  accent-color: var(--green);
}
.short-field {
  max-width: 330px;
}
.form-footer {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.form-footer p {
  max-width: 680px;
}
.alert,
.notice {
  padding: 20px 25px;
  border: 1px solid #ae8654;
  border-radius: 5px;
  background: #faf0d9;
  margin: 24px 0;
  color: #4d391e;
}
.notice {
  border-color: #c2d0b8;
  background: #edf2e5;
  color: #253a24;
}
.notice h2 {
  font-size: 1.1rem;
}
.notice ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.notice li + li {
  margin-top: 8px;
}
.back-link {
  display: inline-block;
  margin-top: 34px;
  font-size: 0.87rem;
}
.back-link + .page-heading {
  margin-top: 25px;
}
.export-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.83rem;
}
.week {
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.week-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  background: #e9ede2;
  align-items: center;
}
.week-heading h3 {
  margin: 0;
  font-size: 0.95rem;
}
.week-heading > :where(span) {
  font-size: 0.8rem;
  color: var(--muted);
}
.workout + .workout {
  border-top: 1px solid var(--border);
}
.workout summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 80px 1fr 85px 85px 18px;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  font-size: 0.9rem;
}
.workout summary::-webkit-details-marker {
  display: none;
}
.workout summary:hover {
  background: #f1f4eb;
}
.workout-title {
  font-weight: 600;
}
.workout-kind {
  display: block;
  text-transform: capitalize;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.workout-date {
  color: var(--muted);
  font-size: 0.82rem;
}
.workout-status {
  font-size: 0.72rem;
  text-transform: capitalize;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  text-align: center;
  padding: 3px 8px;
}
.completed .workout-status {
  background: #e6efde;
  color: #22461e;
  border-color: #a8c398;
}
.skipped .workout-status {
  background: #edeae2;
}
.workout-distance {
  text-align: right;
  font-weight: 600;
}
.expand-mark {
  font-size: 1.25rem;
  text-align: center;
}
.workout[open] .expand-mark {
  transform: rotate(45deg);
}
.workout-body {
  padding: 0 22px 25px 120px;
}
.workout-body > p {
  font-size: 0.92rem;
}
.compact {
  gap: 17px;
  margin: 22px 0;
}
.compact label {
  font-size: 0.8rem;
}
.ease-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.ease-panel .eyebrow {
  margin-bottom: 16px;
}
.ease-panel form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.ease-panel p {
  font-size: 0.9rem;
}
@media (max-width: 850px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 40px);
  }
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature + .feature {
    padding: 26px 0;
    border-left: 0;
  }
  .feature + .feature {
    border-top: 1px solid var(--border);
  }
  .feature h2 {
    margin-top: 18px;
  }
  .hero {
    padding-top: 60px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .day-picker {
    grid-template-columns: repeat(4, 1fr);
  }
  .ease-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .workout-body {
    padding-left: 22px;
  }
  .section-title {
    flex-direction: column;
    gap: 8px;
  }
  .stats > div {
    padding: 22px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .export-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-header nav {
    gap: 16px;
  }
  .nav-create {
    display: none;
  }
}
@media (max-width: 520px) {
  .site-header {
    height: 82px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
    margin-right: 2px;
  }
  .site-header nav {
    font-size: 0.8rem;
    gap: 12px;
  }
  .hero {
    padding: 48px 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .home-grid {
    margin-bottom: 30px;
  }
  .actions {
    gap: 16px;
  }
  .note-panel {
    padding: 24px;
  }
  .page-heading {
    margin-top: 40px;
  }
  .stats {
    margin: 24px 0 34px;
  }
  .stats > div {
    padding: 18px 10px;
  }
  .stat-value {
    font-size: 1.9rem;
  }
  .stat-value small {
    font-size: 0.85rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  .plan-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .plan-card {
    padding: 22px;
  }
  .day-picker {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
  .workout summary {
    grid-template-columns: 52px 1fr 62px 14px;
    gap: 10px;
    padding: 16px 13px;
  }
  .workout-status {
    grid-column: 2;
    justify-self: start;
    grid-row: 2;
  }
  .workout-date {
    font-size: 0.75rem;
  }
  .workout-title {
    font-size: 0.85rem;
  }
  .workout-distance {
    font-size: 0.8rem;
  }
  .expand-mark {
    grid-column: 4;
    grid-row: 1;
  }
  .week-heading {
    padding: 14px;
  }
  .workout-body {
    padding: 0 15px 22px;
  }
  .activity-list li {
    font-size: 0.9rem;
  }
  .empty {
    padding: 25px;
  }
  .export-links {
    font-size: 0.8rem;
  }
  .note-panel.ease-panel {
    padding: 24px;
  }
  .plan-form legend {
    font-size: 1.25rem;
  }
}
@media print {
  body {
    background: white;
  }
  .site-header nav,
  .site-footer,
  .actions,
  .export-links,
  .ease-panel,
  .workout-body form,
  .back-link {
    display: none;
  }
  main,
  .site-header {
    width: 100%;
  }
  .page-heading {
    margin-top: 25px;
  }
  h1 {
    font-size: 2.6rem;
  }
  .week {
    break-inside: avoid;
  }
  .stats {
    margin: 20px 0;
  }
  .workout summary {
    padding: 10px;
  }
  .hero {
    padding: 30px 0;
  }
}
