/* Archivo, latin-ext */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo, latin */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-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;
}

/* Archivo, latin-ext */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo, latin */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-600-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;
}

/* Archivo, latin-ext */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo, latin */@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-700-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;
}

/* IBM Plex Mono, latin-ext */@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/IBMPlexMono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono, latin */@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/IBMPlexMono-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;
}

/* IBM Plex Mono, latin-ext */@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono, latin */@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-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;
}

/* Source Serif 4, latin-ext */@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/SourceSerif4-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Serif 4, latin */@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/SourceSerif4-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;
}

/* Source Serif 4, latin-ext */@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/SourceSerif4-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Serif 4, latin */@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/SourceSerif4-600-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;
}

:root {
  --ground: #EDEEF0;
  --surface: #F9FAFB;
  --ink: #15181C;
  --ink-soft: #5C636B;
  --ink-faint: #868D95;
  --line: #D3D7DC;
  --line-soft: #E2E5E9;
  --accent: #A8490B;
  --accent-wash: #EBD9C6;
  --alert: #A32020;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 34rem;
  --wide: 52rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #131619;
    --surface: #1A1E22;
    --ink: #E9EBEE;
    --ink-soft: #99A1A9;
    --ink-faint: #757D85;
    --line: #2B3138;
    --line-soft: #23282D;
    --accent: #E29A44;
    --accent-wash: #382C1E;
    --alert: #E07070;
  }
}

:root[data-theme="dark"] {
  --ground: #131619;
  --surface: #1A1E22;
  --ink: #E9EBEE;
  --ink-soft: #99A1A9;
  --ink-faint: #757D85;
  --line: #2B3138;
  --line-soft: #23282D;
  --accent: #E29A44;
  --accent-wash: #382C1E;
  --alert: #E07070;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

@media (max-width: 34rem) {
  .page { padding: 2.5rem 1.25rem 4rem; gap: 3.5rem; }
}

p { margin: 0; max-width: var(--measure); }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }

/* ---------- masthead ---------- */

.masthead { display: flex; flex-direction: column; gap: 1.6rem; }

.name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.role {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.lede {
  font-size: 1.24rem;
  line-height: 1.5;
  max-width: 30rem;
}

/* ---------- section chrome ---------- */

section { display: flex; flex-direction: column; gap: 1.4rem; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.012em;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- the scale ---------- */

.figure {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rkey {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.swatch {
  width: 1.6rem;
  height: 0.7rem;
  background: var(--accent-wash);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  flex: none;
}

.ranges {
  display: grid;
  grid-template-columns: 1.25rem 1fr 4.5rem;
  gap: 0.5rem 1rem;
  align-items: center;
}

.rlabel {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.rval {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rtrack { position: relative; height: 1.4rem; }

.rtrack::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}

.rband {
  position: absolute;
  top: 0; bottom: 0;
  left: 61.5%; width: 15.4%;
  background: var(--accent-wash);
}

.rbar {
  position: absolute;
  top: calc(50% - 3px);
  height: 6px;
  background: var(--ink-soft);
}

.rdot {
  position: absolute;
  top: calc(50% - 7px);
  width: 2px;
  height: 14px;
  background: var(--ink);
  transform: translateX(-1px);
}

.rbar.flag { background: var(--alert); }
.rdot.flag { background: var(--alert); }

.raxis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.figcap {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 40rem;
  margin: 0;
}

/* ---------- table ---------- */

.tablewrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

th {
  text-align: right;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding: 0 0.75rem 0.55rem;
  white-space: nowrap;
}

th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }

td {
  text-align: right;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

td:first-child { color: var(--ink); font-weight: 500; }

tr.flag td { color: var(--alert); }
tr.flag td:first-child { color: var(--alert); }

/* ---------- findings ---------- */

.findings { display: flex; flex-direction: column; gap: 0; }

.finding {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.finding:first-child { border-top: 1px solid var(--line-soft); }

.finding .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.finding .num span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.finding p { font-size: 1rem; max-width: 30rem; }

/* ---------- services ---------- */

.services { display: flex; flex-direction: column; gap: 0; }

.service {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.service:first-child { border-top: 1px solid var(--line-soft); }

.service dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}

.service dd { margin: 0; font-size: 1rem; color: var(--ink-soft); max-width: 30rem; }

@media (max-width: 34rem) {
  .finding, .service { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- contact ---------- */

.contact { display: flex; flex-direction: column; gap: 1.4rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mailto {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  align-self: flex-start;
}

footer {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

/* --- Rechtstexte --- */
.legal { display: flex; flex-direction: column; gap: 2.2rem; }
.legal section { gap: 0.9rem; }
.legal p, .legal address { max-width: var(--measure); }
.legal address { font-style: normal; font-family: var(--mono); font-size: 0.88rem; line-height: 1.8; }
.back { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; align-self: flex-start; }
footer a { color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--accent); border-color: var(--accent); }
