@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --ink: #1a1a18;
  --ink-2: #555550;
  --ink-3: #999993;
  --rule: #e4e3de;
  --bg: #f9f8f5;
  --surface: #ffffff;
  --accent: #1a5fa8;
  --run-bg: #eaf5f0;
  --run-text: #0f6e44;
  --strength-bg: #fef3e8;
  --strength-text: #9a4f0a;
  --rest-bg: #f2f1ee;
  --rest-text: #7a7972;
  --cross-bg: #eaf0f9;
  --cross-text: #1a5fa8;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  background: var(--surface);
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

main { padding: 2.5rem 0 4rem; }

/* index page */
.week-list { list-style: none; }
.week-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}
.week-card:hover { border-color: var(--accent); }
.week-card .week-title { font-size: 17px; font-weight: 600; }
.week-card .week-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* day blocks (week pages) */
.day-block {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.day-header:hover { background: var(--bg); }

.day-name { font-weight: 600; font-size: 15px; min-width: 130px; }
.day-summary { font-size: 13px; color: var(--ink-2); flex: 1; }

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.tag-run      { background: var(--run-bg);      color: var(--run-text); }
.tag-strength { background: var(--strength-bg); color: var(--strength-text); }
.tag-rest     { background: var(--rest-bg);     color: var(--rest-text); }
.tag-cross    { background: var(--cross-bg);    color: var(--cross-text); }

.chevron {
  color: var(--ink-3);
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.day-block.open .chevron { transform: rotate(180deg); }

.day-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--rule);
}
.day-block.open .day-body { display: block; }

.day-body p { margin: 0.75rem 0; font-size: 14px; }
.day-body h3 {
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 1rem 0 0.5rem;
}
.day-body .workout-type { font-size: 14px; margin-top: 0.75rem; }

table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 13px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); }
th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .day-name { min-width: 90px; }
}
