:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #5f6470;
  --border: #e4e4df;
  --accent: #0f6e6a;
  --accent-soft: #e3f1ef;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
  --radius: 16px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

/* Dark mode follows the system unless the visitor picked a theme */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1b1f;
    --text: #ececef;
    --muted: #9da1ab;
    --border: #2a2c31;
    --accent: #5cc8bf;
    --accent-soft: #19302e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #1a1b1f;
  --text: #ececef;
  --muted: #9da1ab;
  --border: #2a2c31;
  --accent: #5cc8bf;
  --accent-soft: #19302e;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility: links inside running text are underlined, so they do not rely on color alone */
.prose p a,
.prose li a,
.job li li a,
.job ul a,
.role-summary a,
.section-intro a,
.lead a,
.footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Accessibility: a clear focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessibility: "Skip to content" link, visible only when focused with the keyboard */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Discreet top bar buttons: no outline, a soft background on hover */
.nav .lang:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Show the icon of the theme the button switches to */
.theme-toggle .icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Layout */

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Profile sidebar */

.profile {
  position: sticky;
  top: 80px;
  padding: 32px 28px;
}

.avatar {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  background: #1a1a1a;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.profile h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.headline strong {
  color: var(--text);
  font-weight: 600;
}

.contact {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.side-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.side-block h2 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Favorite quote under the interests */
.side-quote {
  margin: 16px 0 0;
}

.side-quote blockquote {
  margin: 0;
}

.side-quote p {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}

.side-quote figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.languages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.languages li {
  display: flex;
  justify-content: space-between;
}

.languages span {
  color: var(--muted);
}

/* Main content */

.content {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.section {
  padding: 32px 36px;
  scroll-margin-top: 80px;
}

.section > h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lead + .lead {
  margin-top: 14px;
}

.lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.job {
  position: relative;
  padding-left: 32px;
  padding-bottom: 28px;
}

.job:last-child {
  padding-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.job.current::before {
  background: var(--accent);
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.job h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Location next to the company name, in the secondary text style */
.place {
  color: var(--muted);
  font-weight: 400;
}

/* Organization links stay in the text color, with a subtle underline */
.job h3 a,
.issuer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.job h3 a:hover,
.issuer a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.job ul {
  list-style-type: circle;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.95rem;
}

.job li {
  margin-bottom: 6px;
}

.job li::marker {
  color: var(--accent);
}

/* Several roles held at the same company */

.roles {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.role h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.role ul {
  margin-top: 8px;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.subhead {
  margin: 32px 0 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section > h2 + .subhead {
  margin-top: 0;
}

.subhead + .chips {
  margin-bottom: 4px;
}

/* Education */

.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.certs li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.certs li:last-child {
  border-bottom: 0;
}

.certs .year {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.certs strong {
  display: block;
  font-weight: 600;
}

.certs span.issuer {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Chips */

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
}

.chips.outline li {
  background: transparent;
  border: 1px solid var(--border);
}

/* Role summary with a collapsible list of details */

.role-summary {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.role-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.role-details summary::-webkit-details-marker {
  display: none;
}

/* Chevron that points down when closed and up when open */
.role-details summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.role-details[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.role-details summary:hover .more,
.role-details summary:hover .less {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.role-details .less,
.role-details[open] .more {
  display: none;
}

.role-details[open] .less {
  display: inline;
}

.role-details ul {
  margin-top: 8px;
}

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sites I am product owner of, shown as cards in the About card */

.owned {
  margin-top: 24px;
}

.owned-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owned-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owned-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}

.owned-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.owned-card svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.owned-card strong {
  display: block;
  font-size: 0.95rem;
}

.owned-card span span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .owned-list {
    grid-template-columns: 1fr;
  }
}

/* Highlight quote at the end of the About card */

.highlight {
  margin: 24px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
}

.highlight blockquote {
  margin: 0;
}

.highlight p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
}

.highlight figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.highlight figcaption a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--bg);
}

/* A last quote on its own spans the full width */
.quote.wide {
  grid-column: 1 / -1;
}

.quote blockquote {
  flex: 1;
  margin: 0;
}

.quote p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
}

.quote figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* Side projects */

.section-intro {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* A last project on its own spans the full width */
.project.wide {
  grid-column: 1 / -1;
}

.project h3 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.gh-link {
  flex: none;
}

.project h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.project h3 a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.project-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gh-link {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.gh-link:hover {
  color: var(--text);
}

.gh-link svg {
  width: 20px;
  height: 20px;
}

.project p {
  margin: 6px 0 14px;
  font-size: 0.92rem;
  flex: 1;
}

.chips.small {
  gap: 6px;
}

.chips.small li {
  padding: 2px 10px;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

/* Single-column text pages (legal notice) */

.layout.single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.prose h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.prose .meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose > .meta + p {
  margin-top: 20px;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
}

.prose h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.prose p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

/* Blog */

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.prose .post-list {
  list-style: none;
  margin: 28px 0 16px;
  padding: 0;
}

.prose .post-list li {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.post .date {
  margin-bottom: 28px;
}

.post-list time {
  color: var(--muted);
  font-size: 0.85rem;
}

.prose .post-list h2 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
}

.post-list h2 a {
  color: var(--text);
}

.post-list h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-list p {
  margin: 0;
  color: var(--muted);
}

.prose .empty {
  margin-top: 28px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.post h1 {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 0.95rem;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--accent);
}

.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  font-size: 0.88em;
}

.prose a code {
  color: var(--accent);
}

.prose pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.85rem;
  line-height: 1.5;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-box img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}

.prose .author-box p {
  margin: 0 0 4px;
}

.author-name {
  font-weight: 600;
}

.prose .author-box .ai-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.prose .author-box .ai-note {
  margin-top: 8px;
}

.draft-banner {
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Footer */

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.flag {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-left: 2px;
  border-radius: 2px;
}

/* Responsive */

/* Collapsible menu: below 880px the links fold into a menu button */

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Medium screens: tighter spacing so the full menu still fits */
@media (max-width: 1000px) {
  .nav {
    gap: 10px;
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 12px;
  }
}

@media (max-width: 879px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
  }

  .nav-links a:hover {
    background: var(--accent-soft);
    color: var(--text);
  }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 24px;
  }

  .profile {
    position: static;
  }

  .content {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    padding: 10px 16px;
  }

  .nav {
    gap: 14px;
  }

  .layout {
    padding: 16px 16px 48px;
  }

  .section,
  .profile {
    padding: 24px 20px;
  }

  .certs li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Print: a clean single-column CV */

@page {
  size: A4;
  margin: 12mm 14mm;
}

@media print {
  :root:not([data-print]),
  :root[data-theme] {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #444;
    --border: #ddd;
    --accent: #0f6e6a;
    --accent-soft: #eef5f4;
  }

  /* Every size is relative to this, so the whole CV scales down together */
  html {
    font-size: 8.6pt;
  }

  body {
    background: #fff;
    font-size: 1rem;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Web-only elements */
  .topbar,
  .footer,
  .skip-link,
  .highlight,
  .gh-link,
  .role-details,
  .print-hide {
    display: none !important;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .content {
    gap: 0;
  }

  .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Profile as a band across the top of the first page */
  .profile {
    position: static;
    display: grid;
    grid-template-columns: 76px 1.3fr 1.3fr 1fr;
    grid-template-areas:
      "photo name contact langs"
      "photo title contact interests";
    column-gap: 20px;
    align-items: start;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
  }

  .avatar {
    grid-area: photo;
    width: 76px;
    height: 76px;
    margin: 0;
    box-shadow: none;
  }

  .profile h1 {
    grid-area: name;
  }

  .profile .headline {
    grid-area: title;
  }

  .profile .contact {
    grid-area: contact;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 4px;
  }

  .profile .side-block {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .profile .languages-block {
    grid-area: langs;
  }

  .profile .interests {
    grid-area: interests;
    margin-top: 8px;
  }

  .profile .side-block h2 {
    margin-bottom: 4px;
  }

  .languages {
    gap: 0;
  }

  .section {
    padding: 12px 0 4px;
  }

  .section > h2 {
    margin-bottom: 10px;
  }

  .job {
    padding-bottom: 14px;
  }

  .roles {
    margin-top: 6px;
    gap: 8px;
  }

  .quotes,
  .projects {
    gap: 10px;
  }

  .quote,
  .project {
    padding: 10px 14px;
  }

  .certs li {
    padding: 6px 0;
  }

  .profile {
    grid-template-rows: auto 1fr;
  }

  .profile .headline {
    margin-top: 4px;
  }

  .subhead {
    margin: 12px 0 6px;
  }

  .section > h2 + .subhead {
    margin-top: 0;
  }

  .chips {
    gap: 5px;
  }

  .chips li,
  .chips.small li {
    padding: 1px 9px;
    font-size: 0.85rem;
  }

  /* Page breaks between items, never right after a heading */
  .role,
  .job.break,
  .quote,
  .project,
  .certs li,
  .job li {
    break-inside: avoid;
  }

  h2,
  h3,
  h4,
  .job-head,
  .role-head,
  .section-intro {
    break-after: avoid;
  }
}
