:root {
  color-scheme: light;
  --pine: #202a22;
  --shadow: #182019;
  --light: #f1e6d0;
  --paper: #eee9da;
  --ink: #242d22;
  --moss: #495847;
  --rust: #a44024;
  --orange: #e28462;
  --stroke: #a6a797;
  --gutter: clamp(1.1rem, 5vw, 5rem);
  font-family: "Gill Sans", "Gill Sans MT", "Avenir Next", Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2.5rem; }
body, h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: .97; font-weight: 500; letter-spacing: -.061em; font-family: Georgia, "Times New Roman", serif; }
h2 { font-size: clamp(2.7rem, 5.3vw, 5.4rem); }
h3 { font-size: clamp(2.15rem, 4vw, 4.3rem); }
a { color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.top-line :focus-visible, .cover :focus-visible, .footer :focus-visible { outline-color: var(--orange); }
.skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { position: fixed; z-index: 10; background: var(--light); top: .5rem; left: .5rem; padding: .65rem; }
.top-line { color: var(--light); background: var(--pine); padding-inline: var(--gutter); display: grid; grid-template-columns: max-content 1fr max-content; gap: 1rem; align-items: center; min-height: 63px; border-bottom: 1px solid #5e6654; }
.brand { display: inline-flex; align-items: center; gap: .55rem; width: max-content; font: 500 clamp(1.25rem, 2.1vw, 1.6rem)/1 Georgia, serif; letter-spacing: -.05em; text-decoration: none; }
.brand svg { width: 22px; color: var(--orange); }
.top-nav, .languages { display: flex; align-items: center; gap: 1.15rem; }
.top-nav { justify-content: center; }
.top-nav a, .languages a { display: inline-grid; place-items: center; min-height: 44px; font-size: .87rem; text-decoration: none; }
.languages { gap: 1px; }
.languages a { min-width: 38px; }
.languages [aria-current], .top-nav a:hover { color: var(--orange); }
.languages span { opacity: .66; }
.read-progress { height: 3px; position: fixed; z-index: 9; top: 0; left: 0; right: 0; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--progress,0)); }
.cover { color: var(--light); background: var(--pine); }
.cover-mast { display: grid; grid-template-columns: minmax(0,1fr) minmax(11rem,.38fr); gap: clamp(.65rem,1.5vw,1.5rem) clamp(1.2rem,3vw,3.4rem); align-items: end; padding: clamp(1.9rem,4.5vw,4.5rem) var(--gutter) clamp(1.65rem,3.8vw,3.5rem); }
.label { text-transform: uppercase; font-size: .73rem; font-weight: 750; letter-spacing: .15em; color: var(--rust); }
.cover .label { grid-column: 1/-1; color: var(--orange); }
.cover h1 { font-size: clamp(3.6rem,8vw,9.3rem); letter-spacing: -.079em; max-width: 12ch; text-wrap: balance; }
.cover h1 em { color: var(--orange); font-weight: inherit; }
:lang(fr) .cover h1 { font-size: clamp(3.4rem,7.2vw,8.3rem); max-width: 14ch; }
.cover-lede { border-left: 1px solid #73765f; padding-left: 1rem; max-width: 28ch; }
.cover-lede p { font-size: 1.1rem; }
.cover-lede > div { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-top: .52rem; }
.cover-lede a { min-height: 35px; display: inline-flex; gap: .35rem; align-items: center; width: max-content; text-underline-offset: .24em; font-size: .94rem; }
.cover-lede a:first-child { color: var(--orange); font-weight: 700; }
.cover img { height: clamp(235px, 33vw, 495px); object-position: 50% 55%; border-block: 1px solid #5e6654; }
.journal { padding: clamp(3.2rem,8vw,8rem) var(--gutter); display: grid; grid-template-columns: minmax(12rem,.32fr) minmax(0,1fr); column-gap: clamp(2rem,6vw,7rem); align-items: start; }
.index { position: sticky; top: 2.3rem; }
.index header { padding-bottom: 1rem; border-bottom: 1px solid var(--stroke); }
.index h2 { margin: .2em 0 .3em; font-size: clamp(2.1rem,3.8vw,4rem); }
.index header p:last-child { max-width: 31ch; }
.index ol { margin: 0; padding-left: 1.3rem; list-style: decimal-leading-zero; }
.index li { border-bottom: 1px solid var(--stroke); padding-left: .22rem; }
.index li::marker { color: var(--rust); font-size: .75rem; font-weight: 750; }
.index a { display: inline-flex; min-height: 43px; align-items: center; text-decoration: none; }
.index a[aria-current], .index a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: .21em; }
.entry { display: grid; grid-template-columns: minmax(0,.81fr) minmax(0,1.19fr); gap: 1rem clamp(1.2rem,3vw,3rem); border-top: 1px solid var(--stroke); padding: clamp(1.5rem,3.6vw,3.5rem) 0; scroll-margin-top: 1rem; }
.entry h3 { margin-top: .15em; }
.entry-text { line-height: 1.62; max-width: 64ch; }
.entry-text p + p { margin-top: .8rem; }
.log-line { color: var(--moss); font-size: .94rem; padding-left: .8rem; border-left: 2px dashed var(--rust); }
.log-line strong { color: var(--ink); }
.insert { margin-bottom: 1.6rem; color: var(--moss); background: #e6dfca; }
.insert img { height: clamp(205px,27vw,365px); }
.insert figcaption { padding: .6rem 1rem; font-size: .88rem; }
.caution { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,1fr); gap: .42rem 1.35rem; padding: 1rem 0 1rem 1rem; border-left: 2px dashed var(--rust); margin-bottom: clamp(1.8rem,4vw,3.8rem); }
.caution p + p { max-width: 52ch; }
.checklist { background: var(--pine); color: var(--light); padding: clamp(3rem,7vw,6rem) var(--gutter); }
.check-sheet { padding: clamp(1.25rem,4vw,3.6rem); max-width: 72rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 1.2rem clamp(1.5rem,4vw,4rem); border: 1px dashed #939986; }
.check-sheet .label { color: var(--orange); }
.check-sheet h2 { margin: .14em 0 .25em; }
.check-sheet header > p:last-child { max-width: 37ch; }
.check-progress { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-direction: column; gap: .25rem; }
.check-progress progress { width: 100%; height: 9px; accent-color: var(--orange); appearance: none; }
.check-progress progress::-webkit-progress-bar { background: #515d51; }
.check-progress progress::-webkit-progress-value { background: var(--orange); transition: inline-size .25s ease; }
.check-progress progress::-moz-progress-bar { background: var(--orange); }
.check-progress output { font-size: .84rem; color: var(--light); }
.care-list { grid-column: 2; list-style: none; margin: 0; padding: 0; border-top: 1px solid #75806e; }
.care-list li { border-bottom: 1px solid #75806e; }
.care-list label { display: grid; grid-template-columns: 1.2rem minmax(0,1fr); align-items: center; gap: .65rem; min-height: 47px; padding-block: .55rem; cursor: pointer; }
.care-list input { appearance: none; width: 1rem; height: 1rem; padding: 0; margin: 0; display: grid; place-items: center; border: 1px solid #e4d8be; background: var(--pine); color: var(--pine); cursor: pointer; border-radius: 2px; }
.care-list input:checked { background: var(--orange); border-color: var(--orange); }
.care-list input:checked::after { content: "✓"; font-size: .91rem; line-height: 1; font-weight: 800; }
.care-list input:checked + span { color: #bdc0ad; }
.check-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: .55rem 1.05rem; }
.check-actions button { display: inline-grid; place-items: center; background: none; color: var(--light); border: 1px solid #a7aa95; font: inherit; min-height: 44px; padding: .42rem .78rem; cursor: pointer; }
.check-actions button:first-child { background: var(--orange); border-color: var(--orange); color: var(--shadow); font-weight: 750; }
.check-actions button:hover { border-color: var(--light); }
.check-actions button:disabled { opacity: .55; cursor: default; }
.check-sheet :focus-visible { outline-color: var(--orange); }
.footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; background: var(--shadow); color: var(--light); padding: 1.8rem var(--gutter); font-size: .91rem; }
.footer div { display: flex; flex-direction: column; }
.footer div span { color: var(--orange); font-size: .78rem; }
@media(max-width:800px) {
  .top-line { grid-template-columns: minmax(0,1fr) auto; min-height: 58px; }
  .top-nav { display: none; }
  .cover-mast, .journal, .entry, .check-sheet { grid-template-columns: minmax(0,1fr); }
  .cover .label, .check-progress, .care-list, .check-actions { grid-column: 1; }
  .check-progress { grid-row: auto; }
  .cover-mast { gap: .75rem; }
  .cover-lede { border: 0; padding-left: 0; max-width: 37ch; }
  .cover img { height: clamp(210px,62vw,370px); }
  .index { position: static; margin-bottom: 1.6rem; }
  .index header p:last-child { max-width: 52ch; }
  .index ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.25rem; }
  .index a { min-height: 41px; }
  .entry { gap: .7rem; }
  .caution { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color: #242d22; background: #fff; font-size: 12pt; }
  .top-line, .read-progress, .cover, .journal, .footer, .check-actions, .check-progress, .check-sheet header > p:last-child { display: none !important; }
  .checklist { color: #242d22; background: #fff; padding: 0; }
  .check-sheet { display: block; border: 0; padding: 0; }
  .check-sheet h2 { font-size: 32pt; }
  .check-sheet .label { color: #242d22; }
  .care-list label { padding: .7rem 0; min-height: 0; }
  .care-list li { break-inside: avoid; }
  .care-list input, .care-list input:checked { color: #242d22; background: #fff; border: 1px solid #242d22; }
  .care-list input:checked + span { color: #242d22; }
}
