:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #fff;
  --secondary: #cfcfcf;
  --muted: #aaa;
  --date: #999;
  background: var(--background);
  color: var(--foreground);
  font: 100% / 1.6 system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #fff;
  --foreground: #161616;
  --secondary: #454545;
  --muted: #595959;
  --date: #666;
}

body {
  box-sizing: border-box;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

h1 {
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: 1.125rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--secondary);
}

.header-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.location {
  color: var(--muted);
  font-size: 0.875rem;
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.5rem;
  color: var(--muted);
}

.theme-switcher {
  min-width: 1.75rem;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.theme-switcher svg {
  display: block;
  margin-inline: auto;
}

.language-switcher:hover,
.theme-switcher:hover {
  color: var(--foreground);
}

.intro {
  max-width: 48ch;
  margin-top: 0.75rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.5rem;
}

.profile-links a:hover {
  color: var(--secondary);
}

.profile-links svg {
  flex: none;
  fill: currentColor;
}

.profile-link-divider {
  flex: none;
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 50%;
  background: var(--muted);
}

section {
  margin-top: 2rem;
}

article + article {
  margin-top: 1.25rem;
}

.entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.9rem;
}

.dates {
  color: var(--date);
  font-size: 0.875rem;
}

.role {
  color: var(--foreground);
}

.entry-detail {
  margin-top: 0.15rem;
}

.role + .entry-detail {
  margin-top: 0.4rem;
}

.entry-with-logo {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
}

.entry-logo {
  width: 3rem;
  height: 3rem;
}

.entry-logo--request {
  width: 2.75rem;
  height: 2.75rem;
  justify-self: center;
}

.entry-logo--law {
  background: #fff;
}

.entry-logo--lycee {
  filter: brightness(0) invert(1);
}

:root[data-theme="light"] .entry-logo--lycee {
  filter: none;
}

.skills-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 1rem;
}

.skills-list dt {
  font-weight: 600;
}

.skills-list dd {
  color: var(--secondary);
}

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

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

@media (max-width: 25rem) {
  .profile-email-divider {
    display: none;
  }

  .profile-email {
    flex-basis: 100%;
  }
}

@media (max-width: 28rem) {
  .entry-heading, .skills-list {
    display: block;
  }

  .experience-link {
    row-gap: 0;
  }

  .experience-copy {
    display: contents;
  }

  .experience-copy .role, .experience-copy .entry-detail {
    grid-column: 1 / -1;
  }

  .experience-copy .role {
    margin-top: 0.5rem;
  }

  .skills-list dt:not(:first-child) {
    margin-top: 0.65rem;
  }
}
