:root {
  color-scheme: light;
  --paper: #fafbf9;
  --ink: #1f2927;
  --muted: #495a53;
  --accent: #31574b;
  --rule: #d3ded8;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 system-ui, sans-serif;
}

body > header, main, body > footer {
  box-sizing: border-box;
  max-width: 45rem;
  margin-inline: auto;
  padding: 1.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a:first-child { font-weight: 750; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: .25rem; }

.skip-link { position: absolute; left: 1rem; top: 1rem; background: var(--paper); }
.skip-link:not(:focus) { clip-path: inset(50%); }

h1, #es {
  margin-block: 0 1rem;
  font-size: clamp(2rem, 1.5rem + 2.7vw, 3.2rem);
  line-height: 1.1;
}

h2, h3 { margin-block-start: 1.75rem; line-height: 1.25; }
.intro { font-size: 1.2em; line-height: 1.45; }
.small, footer { color: var(--muted); font-size: 1rem; }

.button {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: white;
  font-weight: 650;
  text-decoration: none;
}

.routine {
  max-width: 32rem;
  box-sizing: border-box;
  padding: .25rem 1rem .25rem 2.75rem;
  border: 1px solid var(--rule);
  border-radius: .7rem;
}

.routine li { padding-block: .5rem; font-variant-numeric: tabular-nums; }
.routine li + li { border-top: 1px solid var(--rule); }
.routine span:last-child { color: var(--muted); display: inline-block; margin-inline-start: .75rem; }
article + article { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 2.5rem; }
summary { cursor: pointer; color: var(--accent); }
details img { display: block; width: min(100%, 20rem); height: auto; margin-block-start: 1rem; }
