/*
  Zakaria Idbouhouch | Portfolio
  Plain CSS, mobile first. Print styles for an A4 PDF are at the end.
*/

/* Tokens */

:root {
  --bg: #ffffff;
  --surface: #f4f4f1;
  --line: #e3e3dd;
  --line-strong: #c9cbd3;
  --ink: #0b0c10;
  --ink-2: #3b3e4a;
  --muted: #5c606e;

  --accent: #2b3bff;
  --accent-hover: #1a28d9;
  --accent-soft: #eef0ff;
  --chart-second: #868a98;
  --on-accent-muted: #dfe2ff;

  --dark: #0b0c10;
  --dark-line: #2a2d37;
  --dark-muted: #a6aab6;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;
  --space-section: clamp(4.5rem, 10vw, 8.5rem);

  color-scheme: light;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

strong {
  font-weight: 650;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-right: auto;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
}

.nav-links a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-links a[aria-current="true"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.nav-toggle-icon {
  position: relative;
  width: 1rem;
  height: .75rem;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: 1px;
}

.nav-toggle-icon::after {
  top: calc(100% - 3px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

@media (max-width: 33.99em) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 2.5rem;
    padding: 0 .875rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
  }

  .js .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem var(--gutter) 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(11, 12, 16, .25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
  }

  .js .site-header.is-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .js .nav-links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 650;
  }

  .js .nav-links li:last-child a {
    border-bottom: 0;
  }

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

  .no-js .header-inner {
    flex-wrap: wrap;
  }

  .no-js .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

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

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

.btn-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn-sm {
  min-height: 2.5rem;
  padding: .5rem 1rem;
  font-size: .9375rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: clamp(.9375rem, .88rem + .3vw, 1.0625rem);
  font-weight: 550;
  line-height: 1.4;
}

.hero-eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  font-size: clamp(2.875rem, 1.1rem + 8.6vw, 7rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
}

.hero-title span {
  display: block;
}

.hero-id {
  display: grid;
  gap: 1.5rem;
}

.headshot {
  display: block;
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
}

/* Slightly zoomed so the face sits in the middle of the circle */
.headshot img {
  width: 128%;
  max-width: none;
  height: auto;
  margin: -2% 0 0 -28%;
}

.headshot--small {
  width: 5rem;
  height: 5rem;
}

@media (min-width: 48em) {
  .hero-id {
    grid-template-columns: auto auto;
    align-items: end;
    justify-content: start;
    gap: clamp(2rem, 4.5vw, 4rem);
  }

  .headshot {
    order: 1;
    width: 10rem;
    height: 10rem;
  }

  .headshot--small {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.hero-lead {
  max-width: 17ch;
  font-size: clamp(1.625rem, 1.15rem + 2.1vw, 2.875rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-lead em {
  color: var(--accent);
  font-style: normal;
}

.hero-text {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.hero-text strong {
  color: var(--ink);
}

.hero-status {
  display: flex;
  gap: .75rem;
  max-width: 36rem;
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.55;
}

.hero-status strong {
  color: var(--ink);
}

.status-dot {
  flex: none;
  width: .625rem;
  height: .625rem;
  margin-top: .45em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 59, 255, .16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

@media (min-width: 60em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 4rem;
  }
}

/* Numbers strip */

.numbers {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--accent);
  color: #ffffff;
}

.numbers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.25rem;
}

.numbers-list > li:last-child {
  grid-column: 1 / -1;
}

.number-value {
  display: block;
  font-size: clamp(2.5rem, 1.9rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.number-label {
  display: block;
  max-width: 15rem;
  margin-top: .625rem;
  color: var(--on-accent-muted);
  font-size: .9375rem;
  line-height: 1.4;
}

@media (min-width: 48em) {
  .numbers-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .numbers-list > li:last-child {
    grid-column: auto;
  }

  .numbers-list > li + li {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, .28);
  }

  .number-value {
    font-size: clamp(1.875rem, 4.2vw - .25rem, 4.25rem);
  }

  .number-label {
    font-size: .875rem;
  }
}

/* Sections */

.section {
  padding-block: var(--space-section);
}

.section-title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

/* Work index */

.work .section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.work-index {
  display: grid;
  border-top: 1px solid var(--line);
}

.work-index a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  column-gap: .875rem;
  height: 100%;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.wi-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: .15rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.wi-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.wi-role {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.wi-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 1.125rem;
}

.work-index a:hover .wi-name,
.work-index a:hover .wi-arrow {
  color: var(--accent);
}

.work-index a:hover .wi-arrow {
  transform: translateX(3px);
}

@media (min-width: 48em) {
  .work-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 64em) {
  .work-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Case studies */

.case {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.case-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.case-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .625rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: .875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.case-title {
  max-width: 24ch;
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.375rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.case-meta {
  display: grid;
  gap: .875rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-block: 1.125rem;
  border-block: 1px solid var(--line);
}

.case-meta > div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 1rem;
}

.case-meta dt {
  padding-top: .2rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-meta dd {
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.5;
}

@media (min-width: 60em) {
  .case-meta {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .case-meta > div {
    grid-template-columns: 1fr;
    gap: .375rem;
  }
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.case-block h4,
.case-quotes h4,
.draft-block h4 {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-block h4::before,
.case-quotes h4::before,
.draft-block h4::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--accent);
}

.case-block > p:not([class]) {
  max-width: 40rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.did-list li,
.result-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
}

.did-list li + li,
.result-list li + li {
  margin-top: .75rem;
}

.did-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: .75rem;
  height: 2px;
  background: var(--accent);
}

.result-list {
  margin-top: 1.25rem;
}

.result-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .6em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
}

.did-list strong,
.result-list strong {
  color: var(--ink);
}

.case-block > .source {
  margin: -.5rem 0 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.case-block > .learned {
  max-width: 36rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.case-status {
  display: flex;
  align-items: center;
  gap: .625rem;
  align-self: flex-start;
  padding: .625rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.4;
}

.case-status::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--muted);
}

.case-status strong {
  color: var(--ink);
}

/* "Read more" panel: collapsed only when scripts run, see script.js */

.more-toggle {
  align-self: flex-start;
  cursor: pointer;
}

.more-toggle::after {
  content: "";
  width: .45rem;
  height: .45rem;
  margin: -.2rem 0 0 .125rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.more-toggle[aria-expanded="true"]::after {
  margin-top: .25rem;
  transform: rotate(225deg);
}

.no-js .more-toggle {
  display: none;
}

.more {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: -2.5rem;
}

.more-inner {
  display: grid;
  gap: .5rem;
  min-height: 0;
  overflow: hidden;
}

.more-inner > .case-block {
  padding-top: 2rem;
}

.js .more {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.js .more.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
}

@media (min-width: 64em) {
  .case-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto 1fr;
    column-gap: clamp(3rem, 5vw, 5.5rem);
  }

  .case-results > * {
    grid-column: 2;
  }

  .case-results > h4,
  .case-results > .source,
  .case-results > .numbers-card {
    grid-column: 1 / -1;
  }

  .case-results > .stats,
  .case-results > .big-stat {
    grid-column: 1;
    grid-row: 2 / -1;
    align-self: start;
  }

  .case-results > .source ~ .stats {
    grid-row: 3 / -1;
  }

  .case-results > .result-list,
  .case-results > .bars-figure {
    margin-top: 0;
  }

  .more-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: clamp(3rem, 5vw, 5.5rem);
  }

  .more-inner > .case-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .more-inner > .case-block:only-child {
    grid-column: 1 / -1;
  }

  .more-inner > .case-block:only-child .did-list {
    max-width: 44rem;
  }
}

/* Stat tiles */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.125rem 1rem 1.25rem;
  background: #ffffff;
}

.stat-value {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.stat-value small {
  margin-right: .2em;
  color: var(--muted);
  font-size: max(.75rem, .34em);
  font-weight: 650;
  letter-spacing: 0;
}

.stat-label {
  display: block;
  margin-top: .5rem;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.4;
}

/* Numbers card (case study 04) */

.numbers-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark-line);
}

.numbers-card .stat {
  padding: 1.5rem 1.25rem;
  background: var(--dark);
}

.numbers-card .stat-value {
  color: #ffffff;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}

.numbers-card .stat-value small,
.numbers-card .stat-label {
  color: var(--dark-muted);
}

.numbers-card .stat--hero {
  grid-column: 1 / -1;
}

.numbers-card .stat--hero::before {
  content: "";
  width: 2.5rem;
  height: 4px;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  background: var(--accent);
}

.numbers-card .stat--hero .stat-value {
  font-size: clamp(4rem, 2.4rem + 7vw, 7.5rem);
}

.numbers-card .stat--hero .stat-label {
  color: #ffffff;
  font-size: 1.0625rem;
}

@media (min-width: 48em) {
  .numbers-card {
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  }

  .numbers-card .stat {
    padding: 1.75rem 1.5rem;
  }

  .numbers-card .stat--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .numbers-card .stat--hero::before {
    margin-bottom: auto;
  }

  .numbers-card .stat--hero .stat-value {
    margin-top: 2rem;
  }
}

/* Events results: big number and bars */

.big-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .875rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.big-stat .stat-value {
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem);
}

.big-stat .stat-label {
  margin-top: 0;
  font-size: 1rem;
}

.bars-figure {
  margin-top: 1.5rem;
}

.bars-title {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.bars {
  display: grid;
  gap: 1rem;
}

.bar-row {
  display: grid;
  gap: .375rem;
}

.bar-label {
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.35;
}

.bar-note {
  color: var(--muted);
}

.bar-track {
  display: flex;
  align-items: center;
  gap: .625rem;
}

.bar {
  flex: none;
  width: calc((100% - 2.5rem) * var(--v) / var(--max, 71));
  height: .875rem;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.bar-value {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 40em) {
  .bar-row {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: .3rem;
  }

  .bar-row--pair .bar-label {
    grid-row: 1 / span 2;
  }

  .bar-track {
    grid-column: 2;
  }
}

/* Quotes and chips */

.case-quotes {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.quotes {
  display: grid;
  gap: 1rem;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.quote::before {
  content: "\201C";
  height: 1.75rem;
  color: var(--accent);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.quote p {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}

@media (min-width: 48em) {
  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.badges-title {
  margin: 1.5rem 0 .75rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .4375rem .875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.3;
}

.chip-count {
  color: var(--accent);
  font-weight: 750;
}

/* Galleries and images */

.gallery {
  display: grid;
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.shot {
  min-width: 0;
}

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

.shot figcaption {
  margin-top: .625rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.shot figcaption strong {
  color: var(--ink);
}

.gallery--le,
.gallery--shop {
  grid-template-columns: minmax(0, 1fr);
}

.gallery--phones,
.gallery--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--covers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .75rem;
}

.gallery--covers figcaption {
  margin-top: .5rem;
}

@media (min-width: 40em) {
  .gallery--le {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery--covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 48em) {
  .gallery--shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  container-type: inline-size;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: transparent;
}

/* Fills the frame edge to edge, for screenshots and store photographs */
.media--cover img {
  object-fit: cover;
}

.shot--upwork {
  max-width: 44rem;
}

.media.is-pending img {
  opacity: 0;
}

.media.is-missing {
  border-color: transparent;
}

.media.is-missing img {
  display: none;
}

/* Search Console charts (case study 01), drawn by script.js */

.chart {
  position: relative;
}

.chart-screen {
  position: relative;
}

.chart-print {
  display: none;
}

.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}

.chart-axis-note {
  color: var(--muted);
  font-weight: 400;
}

.chart-key {
  flex: none;
  width: 1.125rem;
  height: 3px;
  margin-right: .125rem;
  border-radius: 2px;
}

.chart-key--clicks {
  background: var(--accent);
}

.chart-key--impressions {
  background: var(--chart-second);
}

.chart-grid,
.chart-base {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-base {
  stroke: var(--line-strong);
}

.chart-tick {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--clicks {
  stroke: var(--accent);
}

.chart-line--impressions {
  stroke: var(--chart-second);
  stroke-width: 1.5;
}

.chart-area {
  fill: var(--chart-second);
  fill-opacity: .14;
}

.chart-rule {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.chart-dot {
  stroke: #ffffff;
  stroke-width: 2;
}

.chart-dot--clicks {
  fill: var(--accent);
}

.chart-dot--impressions {
  fill: var(--chart-second);
}

.chart-tip {
  position: absolute;
  top: 0;
  z-index: 1;
  display: grid;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #ffffff;
  font-size: .8125rem;
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
}

.chart-tip[hidden] {
  display: none;
}

.chart-fallback {
  color: var(--ink-2);
}

.gallery--le {
  row-gap: clamp(2rem, 4vw, 3rem);
}

.bars-figure--countries {
  margin-top: 0;
}

.big-stat--mobile {
  align-self: center;
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 64em) {
  .gallery--le {
    column-gap: clamp(3rem, 5vw, 5.5rem);
  }
}

/* Placeholder shown by script.js when an image or video file is missing */

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(11, 12, 16, .03) 0 10px, transparent 10px 20px),
    var(--surface);
  color: var(--muted);
  text-align: center;
}

.placeholder svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.ph-name {
  max-width: 100%;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ph-dir {
  color: var(--muted);
}

@container (max-width: 11rem) {
  .placeholder {
    gap: .375rem;
    padding: .5rem;
  }

  .placeholder svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ph-name {
    font-size: .625rem;
  }

  .ph-dir {
    display: block;
  }
}

/* Case study 06: draft layout */

.tag {
  padding: .25rem .625rem;
  border: 1px dashed var(--muted);
  border-radius: 999px;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.draft-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.draft-block {
  padding: 1.25rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}

.draft-block h4 {
  margin-bottom: .625rem;
}

.todo {
  color: var(--muted);
  font-style: italic;
}

@media (min-width: 48em) {
  .draft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery--pair {
    max-width: 48rem;
  }
}

/* About */

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 60em) {
  .about-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
  }
}

.about-intro {
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.about-body > p + p {
  margin-top: 1.25rem;
}

.about-body > p:not(.about-intro) {
  max-width: 40rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

.languages {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.languages-title {
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.lang-list li {
  display: inline-flex;
  align-items: baseline;
  gap: .375rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.lang-level {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
}

@media (min-width: 60em) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 4rem;
  }
}

/* Skills */

.skills .section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.skill-groups {
  border-top: 1px solid var(--line);
}

.skill-group {
  display: grid;
  gap: .875rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--line);
}

.skill-group dt {
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -.01em;
}

.skills .chips li {
  border-color: transparent;
  background: var(--surface);
}

@media (min-width: 48em) {
  .skill-group {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: baseline;
    gap: 2rem;
  }
}

/* Contact */

.contact {
  background: var(--dark);
  color: #ffffff;
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: #ffffff;
  font-size: clamp(1.375rem, .5rem + 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .09em;
  text-underline-offset: .16em;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  text-decoration-color: #ffffff;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.contact-label {
  display: block;
  margin-bottom: .25rem;
  color: var(--dark-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-list a,
.contact-value {
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact .btn {
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 48em) {
  .contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3.5rem;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: var(--dark-muted);
  font-size: .875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
}

.site-footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Motion, only when the visitor has not asked for less */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn,
  .btn-arrow,
  .wi-arrow,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .2s ease, top .2s ease;
  }

  .media img {
    transition: opacity .4s ease;
  }

  .js .nav-links {
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .js .site-header.is-open .nav-links {
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }

  .js .more {
    transition: grid-template-rows .24s ease, visibility 0s linear .24s;
  }

  .js .more.is-open {
    transition: grid-template-rows .24s ease, visibility 0s;
  }

  .status-dot {
    animation: pulse 2.6s ease-out infinite;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 59, 255, .35); }
  70% { box-shadow: 0 0 0 9px rgba(43, 59, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 59, 255, 0); }
}

/* Print: Chrome "Save as PDF" on A4 */

@media print {
  /* Every margin slot is defined, so Chrome's own date, title and file path
     never print, even when "Headers and footers" is ticked. */
  @page {
    size: A4;
    margin: 11mm 14mm 14mm;

    @top-left { content: ""; }
    @top-center { content: ""; }
    @top-right { content: ""; }
    @bottom-center { content: ""; }

    @bottom-left {
      content: "Zakaria Idbouhouch | Portfolio";
      color: #5c606e;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
      font-size: 8pt;
    }

    @bottom-right {
      content: counter(page) " / " counter(pages);
      color: #5c606e;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
      font-size: 8pt;
    }
  }

  @page :first {
    @bottom-left { content: ""; }
    @bottom-right { content: ""; }
  }

  html {
    font-size: 8.2pt;
    scroll-padding-top: 0;
  }

  body {
    background: #ffffff;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skip-link,
  .site-header,
  .hero-actions,
  .work > .container > .section-title,
  .work-index,
  .more-toggle,
  .contact .btn,
  .site-footer {
    display: none;
  }

  a {
    text-decoration: none;
  }

  .container {
    max-width: none;
    padding-inline: 0;
  }

  .section {
    padding-block: 0;
  }

  .section-title {
    font-size: 17pt;
  }

  .status-dot {
    animation: none;
  }

  /* Hero and numbers. The index is navigation, so it stays on screen only. */

  .hero {
    padding-block: 0 4mm;
  }

  .hero-id {
    grid-template-columns: auto auto;
    align-items: end;
    justify-content: space-between;
  }

  .headshot {
    order: 1;
    width: 27mm;
    height: 27mm;
  }

  .hero-title {
    margin-top: 2mm;
    font-size: 31pt;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 8mm;
    margin-top: 4mm;
  }

  .hero-lead {
    font-size: 17pt;
  }

  .hero-text {
    max-width: none;
    font-size: 9pt;
    line-height: 1.5;
  }

  .hero-status {
    max-width: none;
    margin-top: 2.5mm;
    padding: 2.2mm 3mm;
    font-size: 8pt;
  }

  .numbers {
    padding: 4mm 5mm;
    border-radius: 3mm;
  }

  .numbers-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4mm;
  }

  .numbers-list > li:last-child {
    grid-column: auto;
  }

  .numbers-list > li + li {
    padding-left: 4mm;
    border-left: .5pt solid rgba(255, 255, 255, .4);
  }

  .number-value {
    font-size: 18pt;
  }

  .number-label {
    margin-top: 1mm;
    font-size: 7.5pt;
  }

  /* Case studies run on from one another, everything expanded */

  .case {
    margin-top: 5mm;
    padding-top: 4mm;
  }

  .case-num {
    min-width: 6.5mm;
    height: 6.5mm;
    padding-inline: 1mm;
    font-size: 7.5pt;
  }

  .case-title {
    max-width: none;
    margin-top: 2mm;
    font-size: 15pt;
  }

  .case-meta {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6mm;
    margin-top: 2.5mm;
    padding-block: 1.8mm;
  }

  .case-meta > div {
    grid-template-columns: 1fr;
    gap: .3mm;
  }

  .case-meta dt {
    padding-top: 0;
    font-size: 6.5pt;
  }

  .case-meta dd {
    font-size: 8pt;
    line-height: 1.35;
  }

  .case-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0 8mm;
    margin-top: 3mm;
  }

  .case-body > .more {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    visibility: visible;
    transition: none;
  }

  .case-body > .case-results {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .case-body > .case-status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-top: 2.5mm;
    padding: 1.2mm 3mm;
    font-size: 7.5pt;
  }

  .more-inner {
    display: block;
    overflow: visible;
  }

  .more-inner > .case-block {
    padding-top: 0;
  }

  .more-inner > .case-block + .case-block {
    margin-top: 3.2mm;
  }

  .case-block h4,
  .case-quotes h4 {
    margin-bottom: 1.4mm;
    font-size: 7pt;
  }

  .case-block > p:not([class]) {
    font-size: 8.5pt;
  }

  .case-block > .source {
    margin: 0 0 1.6mm;
    font-size: 7.5pt;
  }

  .did-list li + li,
  .result-list li + li {
    margin-top: 1mm;
  }

  .result-list {
    margin-top: 2.2mm;
  }

  .case-block > .learned {
    max-width: none;
    padding-left: 3mm;
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .stat {
    padding: 2mm 2.5mm;
  }

  .stat-value,
  .numbers-card .stat-value {
    font-size: 15pt;
  }

  .stat-label {
    margin-top: .8mm;
    font-size: 7.5pt;
    line-height: 1.3;
  }

  .numbers-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .numbers-card .stat {
    padding: 2.6mm 3mm;
  }

  .numbers-card .stat--hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .numbers-card .stat--hero::before {
    margin-bottom: 2mm;
  }

  .numbers-card .stat--hero .stat-value {
    margin-top: 0;
    font-size: 26pt;
  }

  .numbers-card .stat--hero .stat-label {
    font-size: 8.5pt;
  }

  .big-stat {
    padding-bottom: 2mm;
  }

  .big-stat .stat-value {
    font-size: 24pt;
  }

  .big-stat .stat-label {
    font-size: 8.5pt;
  }

  .bars-figure {
    margin-top: 2.5mm;
  }

  .bars-title {
    margin-bottom: 1.6mm;
    font-size: 8pt;
  }

  .bars {
    gap: 1.4mm;
  }

  .bar-row {
    grid-template-columns: 27mm minmax(0, 1fr);
    align-items: center;
    gap: .6mm 2mm;
  }

  .bar-row--pair .bar-label {
    grid-row: 1 / span 2;
  }

  .bar-track {
    grid-column: 2;
    gap: 1.5mm;
  }

  .bar {
    height: 2.4mm;
  }

  .bar-label,
  .bar-value {
    font-size: 7.5pt;
  }

  .badges-title {
    margin: 2.5mm 0 1.2mm;
    font-size: 8pt;
  }

  .chips,
  .lang-list {
    gap: 1.2mm;
  }

  .chips li,
  .lang-list li {
    padding: .6mm 2mm;
    font-size: 7.5pt;
  }

  .case-quotes {
    margin-top: 3.5mm;
  }

  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
  }

  .quote {
    gap: 0;
    padding: 2mm 3mm 2.4mm;
  }

  .quote::before {
    height: 4.5mm;
    font-size: 20pt;
  }

  .quote p {
    font-size: 8pt;
    line-height: 1.4;
  }

  .draft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Images stay in, at reduced size and several to a row */

  .gallery {
    gap: 4mm;
    margin-top: 3.5mm;
  }

  .shot--wide {
    grid-column: auto;
  }

  .shot figcaption {
    margin-top: 1.2mm;
    font-size: 7pt;
    line-height: 1.35;
  }

  .gallery--le {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0 8mm;
  }

  .gallery--le > .shot--wide {
    grid-row: 1 / span 2;
  }

  .big-stat--mobile {
    align-self: start;
    margin-top: 3mm;
  }

  .chart-legend {
    margin-bottom: 1.5mm;
    font-size: 8pt;
  }

  .chart-screen {
    display: none;
  }

  .chart-print {
    display: block;
  }

  .gallery--phones {
    grid-template-columns: repeat(2, 78mm);
  }

  .gallery--shop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery--covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm 4mm;
  }

  .gallery--covers .shot {
    display: flex;
    align-items: flex-end;
    gap: 2.5mm;
  }

  .gallery--covers .media {
    flex: none;
    width: 31mm;
  }

  .gallery--pair {
    grid-template-columns: repeat(2, 60mm);
  }

  .media img {
    opacity: 1;
    transition: none;
  }

  /* Sensible page breaks */

  h2, h3, h4,
  .case-head,
  .case-kicker,
  .bars-title {
    break-after: avoid;
  }

  .case-head,
  .case-body,
  .case-quotes,
  .gallery,
  figure,
  .media,
  .stat,
  .stats,
  .numbers,
  .numbers-card,
  .quote,
  .bars-figure,
  .big-stat,
  .case-meta,
  .case-status,
  .did-list li,
  .result-list li,
  .skill-group,
  .draft-block,
  .work-index li {
    break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* About, skills, contact */

  .about {
    margin-top: 6mm;
    padding-top: 5mm;
    border-top: 1px solid var(--line);
    background: none;
  }

  .about-grid {
    grid-template-columns: 34mm minmax(0, 1fr);
    gap: 6mm;
  }

  .about-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3mm;
  }

  .headshot--small {
    width: 22mm;
    height: 22mm;
  }

  .about-intro {
    max-width: none;
    font-size: 11pt;
  }

  .about-body > p:not(.about-intro) {
    max-width: none;
    font-size: 8.5pt;
    line-height: 1.5;
  }

  .about-body > p + p {
    margin-top: 2mm;
  }

  .languages {
    margin-top: 3mm;
    padding-top: 2.5mm;
  }

  .languages-title {
    margin-bottom: 1.5mm;
    font-size: 7pt;
  }

  .skills {
    padding-top: 6mm;
  }

  .skills .section-title {
    margin-bottom: 2.5mm;
  }

  .skill-group {
    grid-template-columns: 34mm minmax(0, 1fr);
    align-items: baseline;
    gap: 6mm;
    padding-block: 1.4mm;
  }

  .skill-group dt {
    font-size: 9pt;
  }

  .contact {
    padding-top: 6mm;
    background: none;
    color: var(--ink);
    break-inside: avoid;
  }

  .contact .section-title {
    color: var(--ink);
  }

  .contact-email {
    margin-top: 2mm;
    color: var(--ink);
    font-size: 13pt;
  }

  .contact-list {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0 12mm;
    margin-top: 3mm;
  }

  .contact-list a,
  .contact-value {
    color: var(--ink);
    font-size: 8.5pt;
  }

  .contact-label {
    color: var(--muted);
    font-size: 6.5pt;
  }
}
