/* Self-hosted web fonts — no request leaves the visitor's browser to a third party.
   Archivo, IBM Plex Mono and Source Serif 4 are all SIL Open Font License 1.1. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/archivo-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibmplexmono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibmplexmono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibmplexmono-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibmplexmono-500-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sourceserif4-400-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;
}

/* ------------------------------------------------------------------
   biord.de — Romeo Dervishaj
   Layout: one scrolling column on a 68ch measure; sections divided by
   hairline rules; a numbered signal spine only where the content is a
   real progression (the three-layer arc).
   ------------------------------------------------------------------ */

:root {
  /* Color — cool slate ink on a faintly green-biased off-white,
     one petrol accent for signal, one amber for work in progress. */
  --paper:      #f3f5f4;
  --surface:    #ffffff;
  --surface-2:  #e9edec;
  --ink:        #121a1c;
  --ink-muted:  #55666a;
  --ink-faint:  #7d8d90;
  --rule:       #d5dcdb;
  --signal:     #0f6b67;
  --signal-ink: #0a4f4c;
  --amber:      #8d5c12;
  --shadow:     0 1px 2px rgba(18, 26, 28, .05), 0 8px 24px -16px rgba(18, 26, 28, .22);

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

  /* Scale */
  --step--1: clamp(.78rem, .76rem + .1vw, .83rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.34rem + .8vw, 1.95rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --gutter:  max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0d1214;
    --surface:    #141c1e;
    --surface-2:  #1c2527;
    --ink:        #e6edec;
    --ink-muted:  #9aabac;
    --ink-faint:  #74878a;
    --rule:       #263134;
    --signal:     #58d2c4;
    --signal-ink: #8ae4d9;
    --amber:      #d9a251;
    --shadow:     0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:      #0d1214;
  --surface:    #141c1e;
  --surface-2:  #1c2527;
  --ink:        #e6edec;
  --ink-muted:  #9aabac;
  --ink-faint:  #74878a;
  --rule:       #263134;
  --signal:     #58d2c4;
  --signal-ink: #8ae4d9;
  --amber:      #d9a251;
  --shadow:     0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--signal-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--signal); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* paints the strip above a sticky header on phones */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 10;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--paper);
  padding: .6em 1em;
  font-family: var(--mono);
  font-size: var(--step--1);
  z-index: 40;
}
.skip:focus { left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- shared shells ---------- */

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.012em;
}

.section {
  border-top: 1px solid var(--rule);
}
main > .section:first-child { border-top: 0; }
.section > .wrap { padding-block: clamp(2.75rem, 6vw, 4.75rem); }

.section-head {
  display: grid;
  gap: .5rem;
  margin-bottom: 2.25rem;
}
.section-head h1,
.section-head h2 { font-size: var(--step-2); }
.section-head p {
  margin: .35rem 0 0;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .topbar { background: var(--paper); }
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .7rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.topnav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; min-width: 0; }
.topnav a {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.topnav a:hover { color: var(--signal); }
.topnav a[aria-current="page"] { color: var(--ink); }

/* On a phone the navigation drops to its own row beneath the wordmark.
   It must not be hidden: with five pages it is the only way through the
   site, and there is no second route to Work, CV, About or Contact. */
@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; row-gap: .5rem; }
  .topnav { order: 3; width: 100%; gap: .3rem 1rem; }
}

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--signal); border-color: var(--signal); }
.theme-toggle svg { width: 1rem; height: 1rem; }

/* ---------- hero ---------- */

.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
@media (max-width: 820px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 {
  font-size: var(--step-3);
  font-weight: 700;
  margin: .9rem 0 0;
}
.role-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--ink-muted);
  margin: .65rem 0 0;
  max-width: 46ch;
}

/* language switcher */
.langs {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: .3rem;
  flex: 0 0 auto;
}
.langs a, .langs button {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .04em;
  color: var(--ink-faint);
  background: none;
  border: 0;
  border-radius: 3px;
  padding: .3em .45em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.langs a:hover, .langs button:hover { color: var(--signal); }
.langs [aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 48ch;
  margin: 1.4rem 0 0;
}
.lede + p {
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .03em;
  padding: .72em 1.15em;
  border-radius: 4px;
  border: 1px solid var(--signal);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--signal); color: var(--paper); }
:root[data-theme="dark"] .btn-primary { color: #06100f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #06100f; }
}
.btn-primary:hover { filter: brightness(1.08); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--signal-ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--signal-ink); }

.portrait {
  margin: 0;
  display: grid;
  gap: .7rem;
}
.portrait img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.portrait figcaption {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
  line-height: 1.5;
  max-width: 300px;
}
@media (max-width: 820px) {
  .portrait { justify-items: start; }
}

/* key/value strip under the hero text */
.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.facts dt, .facts .k {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .15rem;
}
.facts .v { margin: 0; font-size: var(--step--1); line-height: 1.45; }

/* ---------- work cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.card .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal-ink);
}
.card .tag.wip { color: var(--amber); }
.card h3 { font-size: var(--step-1); }
.card p { margin: 0; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; }
.card .metric {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------- the arc (numbered spine) ---------- */

.arc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.arc li {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0 1.2rem;
  padding-block: 1.4rem;
}
.arc li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.arc li:first-child::before { top: 1.9rem; }
.arc li:last-child::before { bottom: calc(100% - 1.9rem); }
.arc .num {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  align-self: start;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--signal);
  background: var(--paper);
  color: var(--signal-ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.arc h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.arc p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.arc .substrate {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: .45rem;
}
@media (max-width: 560px) {
  .arc li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .arc li::before { left: .78rem; }
}

.closing {
  margin: 1.75rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  max-width: 62ch;
}
.closing p { margin: 0; }

/* ---------- experience ---------- */

.roles { display: grid; gap: 0; }
.role {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: .4rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.roles .role:first-child { border-top: 0; padding-top: 0; }
.role .when {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.role .where { margin: .2rem 0 0; font-family: var(--mono); font-size: var(--step--1); color: var(--ink-faint); }
.role h3 { font-size: var(--step-1); }
.role .org {
  margin: .2rem 0 .7rem;
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink-muted);
}
.role ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.role li { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 760px) {
  .role { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- skills / lists ---------- */

.groups {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.group { min-width: 0; }
.group h3 {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .75rem;
}
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.group li { font-size: var(--step--1); color: var(--ink-muted); line-height: 1.55; }
.group li strong { color: var(--ink); font-weight: 600; }

.inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.inline-list li {
  font-family: var(--mono);
  font-size: var(--step--1);
  padding: .35em .7em;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink-muted);
}
.inline-list li .wip { color: var(--amber); }

/* ---------- education ---------- */

.degrees { display: grid; gap: 0; }
.degree {
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: .4rem 2rem;
}
.degrees .degree:first-child { border-top: 0; padding-top: 0; }
.degree h3 { font-size: var(--step-1); }
.degree .org { margin: .2rem 0 .5rem; color: var(--ink-muted); font-family: var(--display); font-weight: 500; }
.degree p { margin: 0; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; }
.degree .thesis { font-style: italic; }
@media (max-width: 760px) {
  .degree { grid-template-columns: minmax(0, 1fr); }
}

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

.contact-form {
  display: grid;
  gap: 1.15rem;
  max-width: 34rem;
  margin: 0 0 2rem;
}
.contact-form .field { display: grid; gap: .35rem; }
.contact-form label {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-form .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-style: italic;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .6em .7em;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--ink-faint); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--signal); outline-offset: 1px; }
.contact-form .hint {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}
.contact-form button[disabled] { opacity: .55; cursor: progress; }
.contact-form .form-note {
  margin: 0;
  padding-top: .2rem;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 60ch;
}

.form-status {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--signal-ink); }
.form-status.is-error { color: var(--amber); }

/* The honeypot. Taken off-screen rather than display:none, because some
   scripts skip hidden fields but not displaced ones, and because a screen
   reader following the label is told plainly to leave it alone. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.direct {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.direct .k {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .2rem;
}
.direct .v { margin: 0; }
.direct .v a, .direct .v span { font-family: var(--mono); font-size: var(--step--1); word-break: break-word; }

/* ---------- legal pages ---------- */

.legal-lede {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.legal {
  max-width: 68ch;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--ink-muted);
}
.legal h3 {
  margin: 2.4rem 0 .7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
}
.legal h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { margin: 0 0 .9rem; }
.legal ul {
  margin: 0 0 .9rem;
  padding-left: 1.1rem;
}
.legal li { margin-bottom: .3rem; }
.legal-address {
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--ink);
  word-break: break-word;
}

/* ---------- footer ---------- */

.footer-legal {
  margin: .45rem 0 0;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .04em;
}
.footer-legal a { color: var(--ink-muted); }
.footer-legal a:hover { color: var(--signal); }
.footer-legal a[aria-current="page"] { color: var(--ink); }

footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
}
footer .wrap {
  padding-block: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
}
footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  :root { --paper: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-muted: #222; --ink-faint: #444; --rule: #bbb; --shadow: none; }
  .topbar, .theme-toggle, .skip, .hero-actions, body::before { display: none !important; }
  body { font-size: 10.5pt; }
  .section > .wrap { padding-block: 1.1rem; }
  .card, .section { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* list resets for the key/value strips */
.facts, .direct { list-style: none; padding: 0; }
.facts > li, .direct > li { min-width: 0; }
