:root {
  --page: #f1f6f3;
  --card: #ffffff;
  --line: #dbe6df;
  --ink: #17261f;
  --muted: #52635a;
  --accent: #0f7a4c;
  --accent-wash: #dcf0e5;
  --work: #e5484d;
  --rest: #2fa35f;
  --focus: #2f6fdb;
  --prep: #7c8a83;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1411;
    --card: #1a201d;
    --line: #2a332e;
    --ink: #eef5f1;
    --muted: #a6b5ad;
    --accent: #5dd39a;
    --accent-wash: #16291f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site a { margin-left: 18px; font-weight: 600; text-decoration: none; color: var(--muted); }
nav.site a:first-child { margin-left: 0; }
nav.site a[aria-current="page"] { color: var(--ink); }

main { padding-bottom: 64px; }

h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 1.1rem; margin: 0 0 4px; }
p { margin: 0 0 14px; text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 14px 0;
}

/* A timer's intervals laid end to end, sized by length, used once on the home page */
.timeline { display: flex; gap: 4px; margin: 28px 0 8px; height: 56px; }
.timeline span { border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; min-width: 0; overflow: hidden; }
.timeline .prep { flex: 1; background: var(--prep); }
.timeline .work { flex: 3; background: var(--work); }
.timeline .rest { flex: 1.5; background: #1c7f46; }

.points { display: grid; gap: 4px; margin: 8px 0; }

.promise { background: var(--accent-wash); border-color: transparent; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; }

.email { font-size: 1.25rem; font-weight: 700; word-break: break-all; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  nav.site a { margin-left: 14px; }
  .timeline { height: 48px; }
  .timeline span { font-size: 0.75rem; }
}
