/* Win Function: self-hosted fonts (Bagel Fat One, Newsreader, IBM Plex Mono; θ from STIX Two Text and JetBrains Mono; all SIL Open Font License). */
@font-face { font-family: 'WF Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/bagel-fat-one-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'WF Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/bagel-fat-one-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'WF Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'WF Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'WF Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/newsreader-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'WF Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/newsreader-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'WF Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'WF Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'WF Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-normal-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'WF Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-normal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'WF Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/stix-two-text-italic-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'WF Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/stix-two-text-normal-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'WF Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/jetbrains-mono-normal-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

/* Layout: a page from a paper. Figure 1 is a live loss-landscape plot with axes and a colour bar; Table 1 is the company register. */
:root {
  --paper: #f5f6f8;
  --ink: #12141a;
  --muted: #5b6271;
  --rule: #d6dae2;
  --axis: #868d9c;
  --accent: #29698a;
  --focus: #355f8d;
  --contour: 18, 20, 26;
  --dark: 0;
  --cb: linear-gradient(to top, #440154, #482475, #414487, #355f8d, #2a788e, #21918c, #22a884, #44bf70, #7ad151, #a5db36);
  --display: 'WF Display', Georgia, 'Times New Roman', serif;
  --display-weight: 400;
  --text: 'WF Text', Georgia, 'Times New Roman', serif;
  --mono: 'WF Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0e13;
    --ink: #e8eaf0;
    --muted: #949aa9;
    --rule: #252935;
    --axis: #5f6676;
    --accent: #6fcf6a;
    --focus: #fde725;
    --contour: 232, 234, 240;
    --dark: 1;
    --cb: linear-gradient(to top, #fde725, #bddf26, #7ad151, #44bf70, #22a884, #21918c, #2a788e, #355f8d, #3b528b);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0e13;
  --ink: #e8eaf0;
  --muted: #949aa9;
  --rule: #252935;
  --axis: #5f6676;
  --accent: #6fcf6a;
  --focus: #fde725;
  --contour: 232, 234, 240;
  --dark: 1;
  --cb: linear-gradient(to top, #fde725, #bddf26, #7ad151, #44bf70, #22a884, #21918c, #2a788e, #355f8d, #3b528b);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1120px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-block: 22px 18px;
}
.mark { font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; letter-spacing: 0.005em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 20px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 4px; }

.fig { margin: 0; }
.plot-area {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 60px;
  grid-template-rows: auto 28px auto;
}
.plot {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: clamp(340px, 68vh, 720px);
  height: clamp(340px, 68svh, 720px);
  border-left: 1px solid var(--axis);
  border-bottom: 1px solid var(--axis);
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}
#bg, #fg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.yticks, .xticks, .cbar { position: relative; font-family: var(--mono); font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.yticks { grid-column: 1; grid-row: 1; }
.yticks span { position: absolute; right: 8px; transform: translateY(-50%); line-height: 1; }
.yticks span::after { content: ""; position: absolute; right: -8px; top: 50%; width: 5px; border-top: 1px solid var(--axis); }
.yticks .lab, .xlab { font-family: var(--text); font-style: italic; font-size: 16px; color: var(--ink); }
.yticks .lab { right: auto; left: 0; top: 50%; }
.yticks .lab::after { display: none; }
.xticks { grid-column: 2; grid-row: 2; }
.xticks span { position: absolute; top: 9px; transform: translateX(-50%); line-height: 1; }
.xticks span::before { content: ""; position: absolute; left: 50%; top: -9px; height: 5px; border-left: 1px solid var(--axis); }
.xlab { grid-column: 2; grid-row: 3; text-align: center; line-height: 1.2; }
.cbar { grid-column: 3; grid-row: 1; }
.cbar .bar { position: absolute; left: 14px; top: 30px; bottom: 0; width: 9px; background: var(--cb); }
.cbar .title { position: absolute; left: 10px; top: 2px; font-family: var(--text); font-style: italic; font-size: 14px; color: var(--ink); }
.cbar span:not(.title):not(.bar) { position: absolute; left: 28px; transform: translateY(-50%); line-height: 1; }

.hud {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 14px;
  padding: 8px 10px 9px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.hud b { font-weight: 500; color: var(--ink); text-align: right; min-width: 7ch; }
.hud canvas { grid-column: 1 / -1; width: 112px; height: 24px; margin-top: 5px; display: block; }

.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 32px;
  margin-top: 14px;
  padding-left: 52px;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.about { max-width: 46ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.about summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: right;
  cursor: pointer;
  list-style: none;
  padding-block: 7px;
}
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: " +"; }
.about[open] summary::after { content: " −"; }
.about summary:hover { color: var(--ink); }
.caption { margin: 6px 0 0; text-wrap: pretty; }
.caption b, .tcap b { font-weight: 600; color: var(--ink); }
.tcap { margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 7px 0; }
tr + tr th, tr + tr td { border-top: 1px solid var(--rule); }
th { font-weight: 400; color: var(--muted); padding-right: 24px; white-space: nowrap; }
td { min-width: 0; overflow-wrap: anywhere; }
.mail { color: var(--ink); text-decoration-color: var(--axis); text-underline-offset: 4px; }
.mail:hover { text-decoration-color: var(--ink); }
.copy { margin-left: 12px; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 11px; color: var(--muted); cursor: pointer; vertical-align: 1px; }
.copy:hover { color: var(--ink); }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 64px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.foot sub { font-size: 9px; }

.contact { padding-block: clamp(32px, 9vh, 96px) 0; display: grid; gap: 40px; }
.ctitle { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(44px, 8vw, 88px); line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; }
.ctable { max-width: 640px; }

@media (max-width: 640px) {
  .plot-area { grid-template-columns: minmax(0, 1fr); }
  .yticks, .cbar { display: none; }
  .plot, .xticks, .xlab { grid-column: 1; }
  .plot { height: clamp(320px, 58vh, 500px); height: clamp(320px, 58svh, 500px); }
  .tools { padding-left: 0; }
  .about summary { text-align: left; }
  .hud { top: 8px; right: 8px; font-size: 10px; padding: 6px 8px 7px; gap: 0 10px; }
  .hud canvas { width: 90px; height: 20px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.yticks .p0 { top: 0%; } .yticks .p25 { top: 25%; } .yticks .p50 { top: 50%; } .yticks .p75 { top: 75%; } .yticks .p100 { top: 100%; }
.xticks .p0 { left: 0%; } .xticks .p25 { left: 25%; } .xticks .p50 { left: 50%; } .xticks .p75 { left: 75%; } .xticks .p100 { left: 100%; }
.cbar .c-top { top: 30px; } .cbar .c-mid { top: calc(30px + (100% - 30px) / 2); } .cbar .c-bot { top: 100%; }
