@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/literata-roman.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/literata-italic.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk.woff2) format("woff2"); }

:root {
  --paper: #f2f5f4;
  --surface: #ffffff;
  --ink: #14322f;
  --text: #1f2d2b;
  --soft: #4b5b58;
  --accent: #1a6b63;
  --accent-strong: #0f4f49;
  --tint: #dfece9;
  --line: #c9d6d3;
  --ochre: #a26a17;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --measure: 44rem;
  --wide: 74rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1817; --surface: #142321; --ink: #e3eeeb; --text: #d6e2df; --soft: #a3b5b1;
    --accent: #7ccabf; --accent-strong: #a6e0d7; --tint: #1a2f2c; --line: #2c423f; --ochre: #dba95e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1817; --surface: #142321; --ink: #e3eeeb; --text: #d6e2df; --soft: #a3b5b1;
  --accent: #7ccabf; --accent-strong: #a6e0d7; --tint: #1a2f2c; --line: #2c423f; --ochre: #dba95e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
.page-shell { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .page-shell { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 16px; top: 8px; }

h1, h2, h3 { font-family: var(--sans); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 .9rem; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.5rem; margin: 2.6rem 0 .8rem; text-wrap: balance; }
h3 { font-size: 1.18rem; margin: 1.9rem 0 .5rem; }
p, ul, ol, dl, table { margin: 0 0 1.1rem; }

.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2rem; padding-top: .9rem; padding-bottom: .9rem; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.045em; color: var(--ink);
  text-decoration: none; line-height: 1; margin: 0; }
.wordmark:hover { color: var(--accent); }
.wordmark.fine-print { font-size: 1.5rem; margin-bottom: .6rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; }
.site-nav a { font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--text); text-decoration: none; padding: .2rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

main { padding-bottom: 4rem; }
.crumbs ol { list-style: none; padding: 0; margin: 1.6rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .2rem .5rem;
  font-family: var(--sans); font-size: .9rem; color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--soft); }
.page-head { max-width: var(--measure); padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.dek { font-size: 1.22rem; line-height: 1.55; color: var(--text); margin-bottom: 1rem; }
.dated { font-family: var(--sans); font-size: .92rem; color: var(--soft); margin: 0; }

.facts { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0; padding: 1rem 1.2rem; margin: 1.3rem 0; font-size: .98rem; line-height: 1.5; }
.facts-title { font-family: var(--sans); font-weight: 700; color: var(--ink); margin: 0 0 .6rem; }
.facts dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.3rem; margin: 0; }
.facts dt { font-family: var(--sans); font-weight: 600; color: var(--ink); white-space: nowrap; }
.facts dd { margin: 0; }
.facts ol { margin: 0; padding-left: 1.3rem; }
.facts li { margin-bottom: .3rem; }
.facts li::marker { color: var(--accent); font-family: var(--sans); font-weight: 700; }
@media (max-width: 560px) {
  .facts dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: .55rem; }
  .facts dd:last-child { margin-bottom: 0; }
}
.figure-pair { display: grid; gap: 1.5rem; margin: 0 0 2rem; }
.figure-pair .figure { margin: 0; }
@media (min-width: 700px) { .figure-pair { grid-template-columns: 1fr 1fr; align-items: end; } }

.page-images { list-style: none; padding: 0 !important; display: grid; gap: 1.2rem; margin: 1.2rem 0 .8rem; }
@media (min-width: 620px) { .page-images { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-images li { margin: 0; }
.page-images figure { margin: 0; }
.page-images img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.page-images figcaption { font-family: var(--sans); font-size: .9rem; color: var(--soft); margin-top: .45rem; line-height: 1.4; }
.image-note { font-family: var(--sans); font-size: .9rem; color: var(--soft); }

.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.3rem; margin: 0 0 2rem;
  font-family: var(--sans); font-size: 1rem; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.calc legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: .4rem; }
.calc-row { margin-bottom: 1rem; }
.calc-row[hidden] { display: none; }
.calc-row label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.calc input[type="number"], .calc select { font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--soft);
  border-radius: 4px; padding: .5rem .6rem; width: 100%; max-width: 22rem; }
.calc button { font: inherit; font-weight: 700; color: var(--surface); background: var(--accent); border: 0; border-radius: 4px;
  padding: .6rem 1.3rem; cursor: pointer; }
.calc button:hover { background: var(--accent-strong); }
.calc-result { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--tint); border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0; color: var(--ink); font-family: var(--serif); }
.calc-result.error { border-left-color: var(--ochre); }
.calc-note { margin: .6rem 0 0; font-family: var(--sans); font-size: .9rem; color: var(--soft); }
.formula { font-family: var(--sans); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; overflow-x: auto; }

.layout.with-toc { display: grid; gap: 2rem; }
@media (min-width: 1000px) {
  .layout.with-toc { grid-template-columns: 14rem minmax(0, var(--measure)); gap: 3.5rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; }
  main:has(.layout.with-toc) :is(.page-head, .related) { margin-left: calc(14rem + 3.5rem); }
}
.bodytext { max-width: var(--measure); min-width: 0; }
.bodytext ul, .bodytext ol { padding-left: 1.3rem; }
.bodytext li { margin-bottom: .45rem; }
.bodytext li::marker { color: var(--accent); }
.bodytext strong { color: var(--ink); font-weight: 600; }
.toc { font-family: var(--sans); font-size: .93rem; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }

.toc details { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: .7rem 1rem; }
.toc summary { cursor: pointer; margin: 0; list-style-position: inside; }
.toc details[open] summary { margin-bottom: .5rem; }
@media (min-width: 1000px) {
  .toc details { border: 0; background: none; padding: 0; }
  .toc summary { cursor: default; list-style: none; pointer-events: none; margin-bottom: .5rem; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc details::details-content { content-visibility: visible; display: block; }
}
.toc ol { list-style: none; padding: 0 0 0 .9rem; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: .35rem 0; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.bodytext table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; margin: 0; }
.bodytext th, .bodytext td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
.bodytext th { font-family: var(--sans); font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--tint); }
.bodytext tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .table-wrap.compare table { min-width: 34rem; }
  .table-wrap.compare th:first-child, .table-wrap.compare td:first-child { position: sticky; left: 0; z-index: 1;
    box-shadow: 1px 0 0 var(--line); }
  .table-wrap.compare td:first-child { background: var(--surface); font-family: var(--sans); font-weight: 600; color: var(--ink); }
}

.figure { margin: 2rem 0; }
.figure svg { display: block; width: 100%; max-width: 27rem; margin: 0; }
.figure.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.figure.chart svg { max-width: 30rem; margin: 0 auto; }  
.illustration { display: block; width: 100%; height: auto; border-radius: 14px; }
.figure svg.illustration { max-width: 44rem; }
.illustration text { font-family: var(--sans); }
.illustration .name { font-size: 17px; font-weight: 700; fill: #14322f; }
.illustration .label-dim { font-size: 13.5px; fill: #4b5b58; }
.illustration .name.pale { fill: #eef5f3; }
.illustration .label-dim.pale { fill: #a9c2bd; }
.figure svg.illustration.tall { max-width: 30rem; }
.cover-figure svg.illustration { max-width: 30rem; }
.figure figcaption { font-family: var(--sans); font-size: .9rem; color: var(--soft); margin-top: .8rem; line-height: 1.5; }

.keypoint { background: var(--tint); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; margin: 1.6rem 0; }
.keypoint p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--accent); color: var(--surface); font-family: var(--sans); font-weight: 700;
  font-size: .95rem; display: grid; place-items: center; line-height: 1; }
.steps h3 { margin-top: 0; }

.term-list dt { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-top: 1.4rem; scroll-margin-top: 1rem; }
.term-list dd { margin: .25rem 0 0; }
.letters { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-family: var(--sans); padding: 0; list-style: none; }

.sources { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.55; }
.sources h2 { font-size: 1.15rem; margin-top: 0; }
.sources li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.advice-note { margin-top: 2rem; font-size: .93rem; color: var(--soft); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: .9rem 1.1rem; }
.advice-note p { margin: 0; }
.related { margin-top: 3.5rem; max-width: var(--measure); }
.nav-label { font-family: var(--sans); color: var(--ink); font-weight: 700; line-height: 1.15; font-size: 1.15rem; margin: 2.6rem 0 .8rem; }
.related .nav-label { margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .related ul { grid-template-columns: 1fr 1fr; } }
.related a { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.related span { display: block; color: var(--soft); font-size: .93rem; line-height: 1.5; margin-top: .2rem; }

.index-list { list-style: none; padding: 0 !important; margin: 1.4rem 0 2rem; }
.index-list li { padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list a { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; }
.index-list p { margin: .25rem 0 0; color: var(--soft); font-size: .98rem; line-height: 1.55; }
.plain-list { list-style: none; padding: 0 !important; font-family: var(--sans); font-size: 1.1rem; }

.layout.front-page .bodytext { max-width: none; }
.layout.front-page :is(.home-section > h2, .home-section > p, .home-section > .figure, .sources) { max-width: var(--measure); }
.cover { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .cover { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; padding: 4rem 0; } }
.cover h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.3rem; }
.cover .dek { font-size: 1.25rem; }
.cover-figure { margin: 0; }
.cover-figure svg { display: block; width: 100%; max-width: 27rem; margin: 0 auto; }
.cover-figure figcaption { font-family: var(--sans); font-size: .88rem; color: var(--soft); text-align: center; margin-top: .6rem; }
.home-section { padding: 3rem 0 1rem; }
.home-section > h2 { margin-top: 0; font-size: 1.75rem; }
.starts { display: grid; gap: 0; list-style: none; padding: 0 !important; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .starts { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.starts li { border-top: 2px solid var(--ink); padding: 1.1rem 0 1.6rem; margin: 0; }
.starts > li > a { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.starts > li > a:hover { color: var(--accent); text-decoration: underline; }
.starts p { margin: .4rem 0 0; color: var(--soft); }
.sections-grid { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.sections-grid h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.sections-grid h3 a { color: var(--ink); text-decoration: none; }
.sections-grid h3 a:hover { color: var(--accent); }
.sections-grid ul { list-style: none; padding: 0 !important; margin: .6rem 0 0; }
.sections-grid li { margin: .35rem 0; }
.figure-line { font-size: 1.35rem; line-height: 1.5; font-family: var(--serif); color: var(--ink); }
.figure-line + p { color: var(--soft); font-size: .95rem; }

.drawing { stroke-linejoin: round; stroke-linecap: round; }
.drawing { --tissue: color-mix(in srgb, var(--ochre) 10%, var(--paper)); }
.drawing .tissue { fill: var(--tissue); stroke: var(--soft); stroke-width: 1.5; }
.drawing .ts-out { fill: none; stroke: var(--soft); }
.drawing .ts-in { fill: none; stroke: var(--tissue); }
.drawing .bl-out { fill: none; stroke: var(--ink); }
.drawing .bl-in { fill: none; stroke: var(--surface); }
.drawing .dv-out { fill: none; stroke: var(--accent); }
.drawing .dv-in { fill: none; stroke: var(--tint); }
.drawing .cut { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 2.5; }
.drawing .canal { fill: none; stroke: var(--line); stroke-width: 1.2; }
.drawing .core { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.drawing .hatch { fill: var(--ochre); fill-opacity: .45; stroke: var(--ochre); stroke-width: 1.4; }
.drawing .blade { fill: none; stroke: var(--ink); stroke-width: 7; }
.drawing .sole { fill: none; stroke: var(--ochre); stroke-width: 5; }
.drawing .axis { stroke: var(--soft); stroke-width: 1.2; }
.drawing .track { fill: var(--line); fill-opacity: .55; }
.drawing .bar { fill: var(--accent); fill-opacity: .55; }
.drawing .bar.strong { fill-opacity: 1; }
.drawing .bar.fade { fill-opacity: .3; }
.drawing text.stepnum { text-anchor: end; font-weight: 700; fill: var(--ink); }
.drawing text.mid { text-anchor: middle; }
.drawing .liner { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 4; }
.drawing .bone { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.drawing .device { fill: var(--tint); stroke: var(--accent); stroke-width: 2.2; }
.drawing .device.see { fill-opacity: .5; }
.drawing .rim { fill: none; stroke: var(--accent); stroke-width: 3.2; }
.drawing .metal { fill: var(--accent); stroke: var(--accent); stroke-width: 1; }
.drawing .rod { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.drawing .pivot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.2; }
.drawing .keel { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.drawing .wire { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 3 3; }
.drawing .thread { fill: none; stroke: var(--surface); stroke-width: 1.4; }
.drawing .opening { fill: var(--surface); stroke: var(--soft); stroke-width: 1.4; }
.drawing .digit-out { fill: none; stroke: var(--accent); stroke-width: 20; }
.drawing .digit-in { fill: none; stroke: var(--tint); stroke-width: 15.5; }
.drawing .knuckle { fill: var(--accent); }
.drawing .ground { stroke: var(--line); stroke-width: 2; }
.drawing .level { fill: none; stroke: var(--ochre); stroke-width: 2; stroke-dasharray: 7 5; }
.drawing .leader { stroke: var(--ochre); stroke-width: 1.2; fill: none; }
.drawing .mark-dot { fill: var(--ochre); }
.drawing text { font-family: var(--sans); font-size: 13.5px; font-weight: 500; fill: var(--text); stroke: none; }
.drawing text.sub { font-size: 12px; fill: var(--soft); }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); font-family: var(--sans); font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid p { color: var(--soft); max-width: 26rem; line-height: 1.55; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: .3rem 0; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.2rem;
  padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--soft); font-size: .88rem; }
.foot-base p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .cover-figure .device, .cover-figure .metal, .cover-figure .rim, .cover-figure .keel { animation: settle .9s ease-out .2s both; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media print {
  .site-head, .site-foot, .toc, .related { display: none; }
  body { background: #fff; color: #000; }
}
.drawing .ts-fill { fill: var(--tissue); }
.drawing .dv-fill { fill: var(--tint); }
