:root {
  --paper: #f8f5ee;
  --ink: #232b26;
  --muted: #47574f;
  --green: #194a3d;
  --line: #bdc5b9;
  --ochre: #c49335;
  --red: #863a2d;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.58 system-ui, sans-serif; }
a { color: var(--green); text-underline-offset: .19em; }
:focus-visible { outline: 3px solid #926017; outline-offset: 4px; }
h1, h2, h3 { margin: 0 0 .55em; font-family: var(--serif); line-height: 1.13; text-wrap: balance; }
h1 { margin-bottom: .23em; font-size: clamp(2.6rem, 7vw, 5.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); letter-spacing: -.023em; }
h3 { font-size: 1.42rem; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.wrap { width: min(64rem, 100% - 2.5rem); margin: 0 auto; }
.mast { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem; border-bottom: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-size: .87rem; }
.mast .site-search-link { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font: 700 1.35rem var(--serif); color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: clamp(1.1rem, 5vw, 4rem); padding: 2.65rem 0 1.65rem; }
.lede { max-width: 34rem; font-size: 1.22rem; }
.byline, .status { color: var(--muted); font-size: .91rem; }
figure { margin: 0; border: 1px solid #bd9f64; background: #f3e3ba; padding: .6rem; }
figure img { display: block; width: 100%; height: auto; margin: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--green); border-radius: 2px; background: transparent; color: var(--green); font: inherit; font-size: .94rem; font-weight: 650; cursor: pointer; text-decoration: none; }
.primary { background: var(--green); color: white; }
.status { margin-top: .5rem; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.2rem; padding: .22rem 0; border-block: 1px solid var(--line); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
section { padding: 1.65rem 0; border-bottom: 1px solid var(--line); }
section > p, .routine, .sources { max-width: 47rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.note { padding: 1rem; background: #fffdf8; border: 1px solid var(--line); border-top: 4px solid var(--ochre); }
.toes { border-top-color: var(--green); }
.alert { background: #fff9f5; border: 1px solid #cbb1a6; border-left: 4px solid var(--red); padding: 1.15rem 1.2rem; margin-top: 1.15rem; }
.alert h2 { color: var(--red); }
.routine { margin: 0; padding-left: 1.4rem; }
.routine li + li { margin-top: .4rem; }
.sources { border-bottom: 0; padding-bottom: 2rem; }
.sources ul { margin: 0 0 .7em; padding-left: 1.2rem; }
.skip { position: absolute; z-index: 1; left: .5rem; top: .5rem; padding: .4rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

@media screen and (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.55rem; }
  .hero figure { width: min(100%, 16rem); justify-self: center; }
  .pair { grid-template-columns: 1fr; }
  .lede { font-size: 1.08rem; }
  section { padding: 1.25rem 0; }
}

@page { size: letter; margin: .51in .58in; }
@media print {
  body { background: white; color: #1d211e; font-size: 11pt; line-height: 1.43; }
  .wrap { width: auto; }
  .mast { padding: 0 0 .35rem; font-size: 9pt; }
  .mast .site-search-link { display: none; }
  .brand { font-size: 14pt; }
  .hero { grid-template-columns: 1.45fr .55fr; gap: .8rem; padding: .65rem 0 .3rem; }
  h1 { font-size: 30pt; }
  h2 { font-size: 19pt; margin-bottom: .35em; break-after: avoid; }
  h3 { font-size: 13pt; margin-bottom: .3em; }
  .lede { font-size: 12pt; }
  .byline { font-size: 9pt; }
  figure { justify-self: end; width: 2.12in; padding: .12in; background: white; border-color: #c2c1b9; }
  figure img { print-color-adjust: exact; }
  nav, .actions, .skip, .status { display: none !important; }
  section { padding: .52rem 0; border: 0; }
  .note, .alert { background: white; padding: .44rem .58rem; break-inside: avoid; }
  .alert { margin-top: .4rem; }
  .pair { gap: .45rem; }
  .routine li + li { margin-top: .2rem; }
  .print-break { break-before: page; padding-top: 0; }
  .sources h2 { font-size: 15pt; }
  .sources ul { font-size: 10pt; }
  h2, h3, dt { break-after: avoid; }
  p, li { orphans: 2; widows: 2; }
}
