:root {
  color-scheme: light;
  --bg: #b4bfb6;
  --up: #c5cfc3;
  --panel: #ced5c9;
  --ink: #20352f;
  --muted: #2a4038;
  --petrol: #104245;
  --hover: #a6b9ad;
  --line: #778e80;
  --marker: #8faea2;
  --radius: 6px;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 21px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { margin: .25em 0 .45em; font-size: clamp(2.8rem, 5.8vw, 4.65rem); max-width: 16ch; }
h2 { margin: .35em 0 .7em; font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { margin: .55em 0; font-size: 1.7rem; }
p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.25em; margin: 1em 0; }
li { margin: .3em 0; }
a {
  color: var(--petrol);
  text-underline-offset: .2em;
  text-decoration-thickness: .07em;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-block: .45rem;
  overflow-wrap: anywhere;
}
a:hover { color: var(--ink); text-decoration-thickness: .12em; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 5px;
}
button, input, textarea { font: inherit; }
button { min-height: 48px; padding: .65rem 1rem; border: 2px solid var(--petrol); border-radius: var(--radius); color: var(--petrol); background: var(--panel); cursor: pointer; }
button:hover { background: var(--hover); color: var(--ink); }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; }
summary { min-height: 48px; padding: .6rem .9rem; cursor: pointer; color: var(--petrol); border-radius: var(--radius); }
summary:hover { background: var(--hover); }
summary::marker { color: var(--petrol); }
details[open] > summary { border-bottom: 1px solid var(--line); }
img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: 1rem; padding: 1rem .25rem .25rem; line-height: 1.45; color: var(--muted); }
fieldset { margin: 1.5rem 0; border: 0; padding: 0; min-width: 0; }
legend { padding: 0 0 1rem; }
textarea { width: 100%; background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem; line-height: 1.6; resize: vertical; min-height: 260px; }
[hidden] { display: none !important; }
.w { width: min(100% - 5rem, 1216px); margin-inline: auto; }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 2px solid var(--petrol); padding: 1rem 0; }
.hd > a { text-decoration: none; font-size: 1.15rem; }
.hd > a:hover { text-decoration: underline; }
.mn { flex: 0 1 320px; width: 320px; min-width: 0; z-index: 2; }
.mn > details { border: 0; border-radius: var(--radius); background: var(--up); }
.mn > details > summary { list-style-position: inside; }
.mn > details > div { padding: .5rem; }
.mn details details { border-bottom: 1px solid var(--line); }
.mn details details:last-child { border-bottom: 0; }
.mn ul { list-style: none; padding: .25rem .4rem; margin: 0; }
.mn a { display: flex; padding: .55rem .65rem; border-radius: var(--radius); text-decoration: underline; }
.mn a:hover, .mn a[aria-current] { background: var(--hover); color: var(--ink); }
.h { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 4rem; padding: 3.5rem 0; }
.h > div { min-width: 0; }
.h .lead { font-size: 1.16rem; max-width: 54ch; }
.h.home { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 4rem; align-items: center; padding: 3rem 0 4rem; }
.home h1 { font-size: clamp(3rem, 6.4vw, 4.6rem); max-width: 13ch; }
.home .lead { font-size: 1.12rem; max-width: 44ch; }
.home > div > a { background: var(--petrol); color: var(--panel); border: 2px solid var(--petrol); border-radius: var(--radius); text-decoration: underline; padding: .6rem 1.2rem; margin-top: 1rem; }
.home > div > a:hover { background: var(--panel); color: var(--petrol); }
.tag { font-family: inherit; font-size: 1rem; line-height: 1.45; letter-spacing: normal; color: var(--muted); }
.h > div > .tag { display: table; position: relative; isolation: isolate; margin-bottom: 1.2rem; }
.h > div > .tag::after { content: ""; position: absolute; z-index: -1; inset: auto -.3em -.08em -.2em; height: .48em; border-radius: 40% 12% 30% 16%; background: var(--marker); transform: rotate(-1deg); }
.art { background: var(--up); padding: .7rem .7rem .9rem; border: 0; border-radius: var(--radius); max-width: 390px; justify-self: end; transform: rotate(1.25deg); }
.art img { aspect-ratio: 6 / 5; object-fit: cover; filter: grayscale(1) invert(1); mix-blend-mode: multiply; }
.mark { position: relative; background: var(--up); border-radius: var(--radius); padding: 1.25rem; }
.mark::before { content: ""; position: absolute; top: -.18rem; left: 1rem; width: 3.5rem; height: .5rem; border-top: 3px solid var(--petrol); border-radius: 45% 20% 40% 15%; transform: rotate(-4deg); }
.mark p:not(.tag) { font-size: 1.3rem; line-height: 1.45; }
.mark > span { display: block; color: var(--petrol); font-size: 2.5rem; line-height: 1; margin-top: .5rem; }
.desk { padding-bottom: 4rem; }
.desk > h2 { position: relative; display: table; padding-bottom: .3em; }
.desk > h2::after, .s h2::after { content: ""; display: block; width: min(75%, 12rem); height: .16em; margin-top: .18em; border-radius: 60% 20% 50% 20%; background: var(--petrol); transform: rotate(-1deg); }
.desk > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.desk a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; border: 0; border-radius: var(--radius); padding: 1.5rem; background: var(--up); min-width: 0; }
.desk a:hover { background: var(--panel); }
.desk h3 { max-width: 16ch; text-decoration: underline; text-decoration-color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.desk a p { flex: 1; font-size: 1rem; color: var(--ink); }
.desk a > span:last-child { color: var(--petrol); font-size: 1.5rem; margin-top: .8rem; }
.rd { max-width: 100%; }
.rd > section { padding: 2.75rem 3rem; margin-bottom: 2rem; border-radius: var(--radius); }
.d { border-top: 2px solid var(--line); margin-left: 12%; }
.d h2, .d p { max-width: 65ch; }
.d h2 { max-width: 25ch; }
.s { background: var(--panel); border: 0; }
.s p { max-width: 65ch; }
.src { background: var(--up); border: 0; border-radius: var(--radius); margin: 2rem 0 3rem 12%; }
.src > summary { padding: 1rem 1.5rem; text-decoration: underline; text-underline-offset: .2em; }
.src > div { padding: 1.5rem; }
.src ul { list-style: none; padding: 0; }
.src a { padding: .65rem 0; }
.src li { border-top: 1px solid var(--line); }
.nx { display: flex; align-items: center; gap: 2rem; border-top: 2px solid var(--line); padding: 1.5rem 0; }
.nx > a { font-size: 1.5rem; }
.nx > span:last-child { color: var(--petrol); font-size: 2rem; margin-left: auto; }
.ft { border-top: 2px solid var(--petrol); padding: 2rem 0 2.5rem; }
.ft p { max-width: 70ch; }
.ft nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: .75rem; }
.skip { position: absolute; top: 0; left: 0; transform: translateY(-200%); background: var(--panel); color: var(--petrol); border-radius: var(--radius); padding: .7rem 1rem; z-index: 10; }
.skip:focus { transform: none; }
.kit { background: var(--up); }
.kit label { display: flex; align-items: flex-start; gap: 1rem; min-height: 56px; padding: 1rem; border-top: 1px solid var(--line); cursor: pointer; border-radius: var(--radius); }
.kit label:hover { background: var(--panel); }
.kit input { appearance: none; width: 44px; height: 44px; flex-shrink: 0; border: 2px solid var(--petrol); border-radius: var(--radius); background: var(--bg); margin: 2px 0 0; }
.kit input:checked { background: var(--petrol); border-color: var(--petrol); }
.kit input:checked::after { content: "✓"; display: block; color: var(--panel); text-align: center; font-size: 28px; line-height: 40px; font-weight: 700; }
.kit > label { padding-left: 0; border-top: 0; cursor: default; }
.kit > label:hover { background: transparent; }
.tools { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.tools button:first-child { background: var(--petrol); color: var(--panel); }
.tools button:first-child:hover { background: var(--panel); color: var(--petrol); }
.hint { border-left: 3px solid var(--petrol); padding-left: 1rem; }
@media (max-width: 1000px) {
  .w { width: min(100% - 3rem, 1216px); }
  .h { gap: 2rem; grid-template-columns: minmax(0,1fr) 200px; }
  .h.home { gap: 2rem; }
  .desk > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rd > section { padding: 2.5rem 2rem; }
  .d, .src { margin-left: 5%; }
}
@media (max-width: 700px) {
  :root { font-size: 20px; }
  .w { width: calc(100% - 2rem); }
  .hd { gap: .6rem; flex-direction: column; align-items: stretch; padding: .6rem 0 1rem; }
  .hd > a { font-size: 1.1rem; }
  .mn { flex: 0 1 auto; width: 100%; }
  .h, .h.home { display: block; padding: 2.25rem 0 2.5rem; }
  h1, .home h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); max-width: 14ch; }
  .h .lead { font-size: 1.1rem; }
  .art { margin: 2.5rem auto 0; width: min(100% - .6rem, 340px); }
  .mark { margin-top: 2rem; }
  .mark p:not(.tag) { font-size: 1.15rem; }
  .mark > span { position: absolute; bottom: 1rem; right: 1.25rem; }
  .desk { padding-bottom: 2.5rem; }
  .desk > div { grid-template-columns: 1fr; gap: .8rem; }
  .desk a { padding: 1.3rem; }
  .desk h3 { font-size: 1.75rem; max-width: 19ch; }
  .rd > section { padding: 1.75rem 1.15rem; margin-bottom: 1.5rem; }
  .d, .src { margin-left: 0; }
  .d { padding-inline: 0 !important; }
  .src { margin-bottom: 2.5rem; }
  .src > summary, .src > div { padding: 1rem; }
  .nx { flex-wrap: wrap; gap: .25rem 1rem; }
  .nx .tag { width: 100%; }
  .nx > a { font-size: 1.4rem; max-width: calc(100% - 3rem); }
  .ft { padding: 1.5rem 0; }
  .ft nav { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .kit label { padding: 1rem .2rem; gap: .75rem; }
  .tools { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  button:active { transform: none; }
}
@media (forced-colors: active) {
  .kit input { appearance: auto; }
  .kit input:checked::after { content: none; }
}
@media print {
  :root { color-scheme: light; font-size: 16px; }
  html, body { color: #000; background: #fff; }
  h1,h2,h3,summary,a,.tag { color: #000; }
  .hd,.ft,.nx,.mark,.tools,.hint,.skip,.art { display: none !important; }
  .w { width: 100%; }
  .h { display: block; padding: 0 0 1rem; }
  h1 { font-size: 2.5rem; }
  .h > div > .tag::after, .desk > h2::after, .s h2::after { display: none; }
  .rd > section { margin: 0; padding: 1rem 0; background: #fff; border: 0; }
  .d,.src { margin-left: 0; }
  .src { break-inside: avoid; background: #fff; border-color: #626262; }
  .kit label { break-inside: avoid; }
  .kit input { border-color: #000; background: #fff; }
  .kit input:checked { background: #fff; border-color: #000; }
  .kit input:checked::after { color: #000; }
  textarea { background: #fff; color: #000; min-height: 0; height: auto; overflow: visible; }
  body[data-kit-print] article .rd > section:not(.kit), body[data-kit-print] .src, body[data-kit-print] .kit fieldset { display: none; }
  body[data-kit-print] textarea { display: none; }
  .paper { white-space: pre-wrap; line-height: 1.7; }
}
