/*
  Site styles — tokens and components ported from docs/style-guide.html.
  Raw colors live only in :root; everything else references a token.
*/
:root {
  color-scheme: light;

  /* paper surfaces */
  --bg-desk: #e8dcc7;
  --bg-canvas: #fbf3e6;
  --bg-surface: #f3eadb;
  --bg-surface-alt: #f0e4d2;
  --border-muted: #e3d7c4;

  /* ink */
  --text-primary: #1f2328;
  --text-secondary: #6a625a;

  /* accents */
  --accent-primary: var(--hue-blue-ink);
  --section-tile: var(--hue-blue-tile);
  --accent-primary-ink: #ffffff;
  --accent-info: #0b4f79;
  --accent-special: #6f42c1;

  /* status */
  --status-danger: #b42318;
  --status-warning: #9a4d00;
  --status-in-progress: #7a5c00;
  --status-completed: #1f6f43;

  /* tinted badge backgrounds */
  --tint-completed: #e1efe6;
  --tint-special: #ece3f7;
  --tint-info: #dde9f3;

  /* highlighter */
  --highlight-yellow: #ffe8a3;
  --highlight-peach: #ffd1a6;

  /* dark app bar chrome */
  --bg-chrome: #22272e;
  --text-on-chrome: var(--bg-canvas);
  --border-on-chrome: rgba(251, 243, 230, 0.28);
  --hover-on-chrome: rgba(251, 243, 230, 0.12);

  /* section hues: GNOME 47 accent colors. "tile" carries a white glyph (>= 3:1), "ink" is the
     darkened text-safe variant (>= 4.5:1 on every paper surface) */
  --hue-blue-tile: #3584e4;
  --hue-blue-ink: #1e4e8c;
  --hue-teal-tile: #2190a4;
  --hue-teal-ink: #0e5f6e;
  --hue-purple-tile: #9141ac;
  --hue-purple-ink: #6a2f80;
  --hue-orange-tile: #ed5b00;
  --hue-orange-ink: #a13d00;
  --hue-green-tile: #3a944a;
  --hue-green-ink: #2a6634;
  --hue-pink-tile: #d56199;

  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;

  --font-body: 'Cantarell', 'Noto Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --shadow-window: 0 1px 2px rgba(31, 35, 40, 0.1), 0 24px 64px rgba(31, 35, 40, 0.22);

  --shadow-soft: 0 1px 2px rgba(31, 35, 40, 0.06);

  --appbar-height: 56px;
  --sidebar-width: 240px;
  --measure: 70ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-primary);
  text-underline-offset: 0.15em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
}

h3 {
  font-size: 1.05rem;
}

p,
ul {
  margin: 0;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

mark {
  background: var(--highlight-yellow);
  color: var(--text-primary);
  padding: 0 3px;
  border-radius: 3px;
}

svg.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 10;
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-control);
}

.skip-link:focus {
  top: var(--sp-2);
}

/* ---------- app bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--appbar-height);
  padding-inline: var(--sp-4);
  background: var(--bg-chrome);
  color: var(--text-on-chrome);
}

/* buttons are inverted on the dark bar: the primary action is paper on ink, the others are
   outlined in paper */
.appbar .btn.primary {
  background: var(--text-on-chrome);
  color: var(--bg-chrome);
}

.appbar .btn.secondary {
  border-color: var(--border-on-chrome);
  color: var(--text-on-chrome);
}

.appbar .btn.secondary:hover {
  background: var(--hover-on-chrome);
}

.appbar a:focus-visible,
.appbar .btn:focus-visible {
  outline-color: var(--text-on-chrome);
}

.appbar .brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-on-chrome);
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar .spacer {
  flex: 1;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex: none;
}

img.avatar {
  object-fit: cover;
  background: var(--bg-surface-alt);
}

/* ---------- shell: sidebar + content ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--appbar-height));
}

.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-muted);
  padding: var(--sp-3);
}

.sidebar nav {
  position: sticky;
  top: calc(var(--appbar-height) + var(--sp-3));
}

.sidebar ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.sidebar a:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
}

.sidebar a[aria-current='page'] {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  font-weight: 700;
}

/* GNOME Settings style icon tiles, each nav item in its own section hue */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--accent-primary-ink);
  background: var(--tile-bg, var(--section-tile));
}

.tile svg.icon {
  width: 16px;
  height: 16px;
}

.hue-blue {
  --tile-bg: var(--hue-blue-tile);
}

.hue-teal {
  --tile-bg: var(--hue-teal-tile);
}

.hue-purple {
  --tile-bg: var(--hue-purple-tile);
}

.hue-orange {
  --tile-bg: var(--hue-orange-tile);
}

.hue-green {
  --tile-bg: var(--hue-green-tile);
}

.hue-pink {
  --tile-bg: var(--hue-pink-tile);
}

/* The page's own hue drives every accent inside the shell (links, buttons, dots, eyebrows).
   The attribute sits on .shell, not body, because boosted navigation only swaps body contents. */
[data-section='teal'] {
  --accent-primary: var(--hue-teal-ink);
  --section-tile: var(--hue-teal-tile);
}

[data-section='purple'] {
  --accent-primary: var(--hue-purple-ink);
  --section-tile: var(--hue-purple-tile);
}

[data-section='orange'] {
  --accent-primary: var(--hue-orange-ink);
  --section-tile: var(--hue-orange-tile);
}

[data-section='green'] {
  --accent-primary: var(--hue-green-ink);
  --section-tile: var(--hue-green-tile);
}

.content {
  padding: var(--sp-8) clamp(var(--sp-4), 4vw, var(--sp-12)) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  max-width: 1080px;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--border-muted);
  padding-top: var(--sp-6);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---------- sections ---------- */
section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.section-head::before,
.hero-title::before {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--section-tile);
  margin-bottom: var(--sp-1);
}

/* the CV stays restrained: no section bar on screen or in print */
.cv-header .section-head::before {
  content: none;
}

.section-head p,
.lead {
  color: var(--text-secondary);
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: var(--measure);
}

.meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero-head {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

/* Photos are square-cropped files; object-fit keeps them square even if a non-square one is
   configured. */
.portrait,
.cv-photo {
  flex: none;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-muted);
  background: var(--bg-surface-alt);
}

.portrait {
  width: clamp(88px, 22vw, 160px);
  box-shadow: var(--shadow-soft);
}

.cv-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-width: 0;
}

.cv-photo {
  width: 112px;
}

/* On wider screens the name block shrinks instead of pushing the Print button onto its own row. */
@media (min-width: 721px) {
  .cv-identity {
    flex: 1 1 0;
  }
}

.cv-years {
  font-weight: 700;
  color: var(--accent-primary);
}

.cv-updated {
  margin-top: var(--sp-2);
  font-size: 0.8rem;
}

/* QR code: right of the name block on wide screens, below it on phones (the header wraps). */
.cv-aside {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}

.cv-qr {
  margin: 0;
  flex: none;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.cv-qr svg {
  display: block;
  width: 22mm;
  height: 22mm;
  border-radius: 4px;
  color: var(--text-primary);
}

.hero .headline {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: var(--measure);
}

.hero .headline mark {
  background: var(--highlight-yellow);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- buttons & link rows ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-control);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border-muted);
  color: var(--text-primary);
}

.btn.secondary:hover {
  background: var(--bg-surface-alt);
}

/* ---------- badges & tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-control);
  white-space: nowrap;
  flex: none;
}

.badge.neutral {
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
}

.badge.in-progress {
  background: var(--highlight-yellow);
  color: var(--status-in-progress);
}

.badge.completed {
  background: var(--tint-completed);
  color: var(--status-completed);
}

.badge.featured {
  background: var(--tint-special);
  color: var(--accent-special);
}

.badge.info {
  background: var(--tint-info);
  color: var(--accent-info);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
}

.card {
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-soft);
}

.card .top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--sp-3);
}

.card .top-row>.row {
  justify-content: flex-end;
  gap: var(--sp-2);
}

.card .links {
  margin-top: auto;
}

.card .links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.9rem;
}

/* Skill cards differ a lot in length, so pack them in columns instead of grid rows. */
.skills-grid {
  display: block;
  columns: 20rem;
  column-gap: var(--sp-4);
}

.skills-grid>.card {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
}

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}

/* ---------- project list ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: 0.8rem;
}

.project {
  gap: var(--sp-4);
  padding: var(--sp-6);
  scroll-margin-top: calc(var(--appbar-height) + var(--sp-4));
}

.project .lead {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.stack {
  list-style: none;
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
  max-width: var(--measure);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-4);
  background: var(--bg-surface-alt);
  border-radius: var(--radius-control);
}

.stack li {
  display: contents;
}

.stack strong {
  font-weight: 700;
}

/* ---------- contact list ---------- */
.contacts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* email is the one filled contact; the rest carry the section hue */
.contacts .btn.secondary {
  color: var(--accent-primary);
}

/* ---------- facts (key/value list) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-4);
}

.facts ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* ---------- timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  border-left: 2px solid var(--border-muted);
  margin-left: var(--sp-2);
}

.timeline>li {
  position: relative;
  padding-left: var(--sp-6);
}

.timeline>li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
}

.timeline>li.current::before {
  background: var(--status-completed);
  border-color: var(--status-completed);
}

.timeline .card ul:not(.tags) {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* ---------- skill level meter ---------- */
.skill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.skill-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border-muted);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-name {
  display: flex;
  flex-direction: column;
}

.skill-level {
  display: inline-flex;
  justify-self: end;
  white-space: nowrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.level-dots {
  display: inline-flex;
  gap: 3px;
}

.level-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
}

.level-dots span.on {
  background: var(--accent-primary);
}

/* ---------- 404 ---------- */
.callout {
  border-radius: var(--radius-control);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  max-width: var(--measure);
  background: var(--highlight-peach);
  color: var(--text-primary);
}

/* ---------- at a glance (home page) ---------- */
.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--sp-3) var(--sp-6);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-card);
}

.glance dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.glance dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.glance .wide {
  grid-column: 1 / -1;
}

.cv-downloads {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- desktop: the site is a centered, floating window ---------- */
@media (min-width: 1000px) and (min-height: 560px) {
  body {
    background: var(--bg-desk);
  }

  .window {
    display: flex;
    flex-direction: column;
    width: min(1200px, calc(100% - 2 * var(--sp-8)));
    height: min(calc(100vh - 2 * var(--sp-8)), 1100px);
    margin: var(--sp-8) auto;
    background: var(--bg-canvas);
    border: 1px solid var(--border-muted);
    border-radius: 14px;
    box-shadow: var(--shadow-window);
    overflow: hidden;
  }

  @supports (height: 100dvh) {
    .window {
      height: min(calc(100dvh - 2 * var(--sp-8)), 1100px);
    }
  }

  /* The window scrolls inside, so the app bar stays put without sticky positioning. */
  .appbar {
    position: static;
    flex: none;
  }

  .shell {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar nav {
    top: var(--sp-3);
  }

  .project {
    scroll-margin-top: var(--sp-4);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    position: sticky;
    top: var(--appbar-height);
    z-index: 4;
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
    padding: var(--sp-2);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar nav {
    position: static;
  }

  .sidebar ul {
    flex-direction: row;
    gap: var(--sp-1);
  }

  .sidebar a {
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.9rem;
  }

  .tile {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .tile svg.icon {
    width: 14px;
    height: 14px;
  }

  .content {
    padding-top: var(--sp-6);
    gap: var(--sp-8);
  }

  .project {
    padding: var(--sp-4);
    scroll-margin-top: calc(var(--appbar-height) + 64px);
  }

  .appbar .btn .label {
    display: none;
  }
}

/* ---------- CV ---------- */
.cv {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 820px;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.cv-contacts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
}

.cv-contacts li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.cv-section {
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-muted);
}

/* Section titles must stand out clearly from the entry titles (h3) inside them. */
.cv-section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--accent-primary);
  margin-bottom: var(--sp-1);
}

.cv-section ul {
  padding-left: 1.2em;
}

.cv-entry {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.cv-entry .prose {
  gap: var(--sp-2);
}

.cv-more {
  margin-top: var(--sp-3);
}

.cv-entry+.cv-entry {
  margin-top: var(--sp-3);
}

/* Date and duration go on their own line under the title, so long titles and long date lines
   never fight for the same row. */
.cv-entry-head {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-skills {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-1) var(--sp-4);
}

.cv-skills dt {
  font-weight: 700;
}

.cv-skills dd {
  margin: 0;
}

button.btn {
  cursor: pointer;
}

@media (max-width: 720px) {
  .cv-aside {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  /* Photo next to the location and name only, so the headline gets the full width. */
  .hero-head:has(.portrait) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-1) var(--sp-4);
  }

  .hero-head:has(.portrait) .hero-title {
    display: contents;
  }

  /* the title's children become grid cells here, so the section bar would take a cell of its own */
  .hero-head:has(.portrait) .hero-title::before {
    content: none;
  }

  .hero-head .portrait {
    grid-row: 1 / span 2;
    width: 88px;
  }

  .hero-head .headline {
    grid-column: 1 / -1;
    margin-top: var(--sp-3);
  }

  .cv-identity {
    gap: var(--sp-4);
  }

  .cv-photo {
    width: 88px;
  }

  .stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .stack span {
    margin-bottom: var(--sp-2);
  }

  .card .top-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
  }

  .card .top-row>.row {
    justify-content: flex-start;
  }

  .card .top-row>.badge {
    justify-self: start;
  }

  .cv-skills {
    grid-template-columns: 1fr;
  }

  .cv-skills dd {
    margin-bottom: var(--sp-2);
  }
}
