:root {
  color-scheme: light;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --surface-raised: #eaf0f8;
  --ink: #101820;
  --muted: #56616c;
  --line: #c6d0dd;
  --line-strong: #101820;
  --blue: #165dff;
  --blue-ink: #ffffff;
  --signal: #c8ff36;
  --header: rgba(244, 247, 251, 0.92);
  --shadow: 10px 10px 0 rgba(16, 24, 32, 0.08);
  --max-width: 1240px;
  --header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1017;
  --surface: #111923;
  --surface-raised: #182330;
  --ink: #f4f7fb;
  --muted: #a9b5c3;
  --line: #2e3a48;
  --line-strong: #f4f7fb;
  --blue: #6d95ff;
  --blue-ink: #09101a;
  --signal: #c8ff36;
  --header: rgba(11, 16, 23, 0.92);
  --shadow: 10px 10px 0 rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
::selection { color: #081018; background: var(--signal); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--blue-ink);
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }
[data-language] { display: none; }
html[lang="en"] [data-language="en"], html[lang="fr"] [data-language="fr"] { display: revert; }
.locale-pane { display: none; }
html[lang="en"] .locale-pane[data-language="en"], html[lang="fr"] .locale-pane[data-language="fr"] { display: grid; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-strong);
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell, .section-shell, .footer-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-ink);
  background: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.desktop-nav { display: flex; align-items: center; align-self: stretch; }
.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 88px;
  padding-inline: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.desktop-nav a::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--ink); }
.desktop-nav a.is-active::after, .desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-self: end; gap: 8px; }

.utility-button, .menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.utility-button:hover, .menu-toggle:hover { color: var(--blue-ink); background: var(--blue); }
.utility-button:active, .menu-toggle:active { transform: translate(2px, 2px); }
.language-toggle { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 800; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-width: 1.8; }
html[data-theme="light"] .icon-moon, html[data-theme="dark"] .icon-sun { display: none; }
.menu-toggle { display: none; gap: 5px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 180ms ease; }
.site-header.menu-is-open .menu-toggle > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.menu-is-open .menu-toggle > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: none; }

.page-section {
  scroll-margin-top: var(--header-height);
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.section-shell { padding-block: clamp(88px, 10vw, 144px); }
.hero .section-shell { min-height: calc(100svh - var(--header-height)); padding-block: clamp(56px, 7vw, 96px) 32px; }
.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr); grid-template-rows: 1fr auto; gap: 56px 72px; align-items: center; }

.eyebrow, .section-index, .card-label, .project-type, .experience-role > p, .tech-line {
  margin: 0;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span { display: inline-grid; width: 28px; height: 28px; margin-right: 10px; place-items: center; color: var(--blue-ink); background: var(--blue); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; font-weight: 820; letter-spacing: -0.055em; line-height: 0.96; }
h1 { max-width: 820px; margin-top: 28px; font-size: clamp(3.5rem, 7.4vw, 7rem); }
h1 em, h2 em { color: var(--blue); font-style: normal; }
.hero-intro { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid var(--line-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-primary { color: var(--blue-ink); border-color: var(--blue); background: var(--blue); box-shadow: 6px 6px 0 var(--line-strong); }
.button-primary:hover { color: #0b1017; border-color: var(--signal); background: var(--signal); box-shadow: 2px 2px 0 var(--line-strong); transform: translate(4px, 4px); }
.button-secondary { background: var(--surface); }
.button-secondary:hover { color: var(--blue-ink); border-color: var(--blue); background: var(--blue); }

.hero-system { align-self: stretch; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.system-heading { display: flex; height: 48px; padding-inline: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.system-status::before { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--signal); border: 1px solid var(--line-strong); content: ""; }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.system-grid > div { display: flex; min-height: 158px; padding: 18px; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-grid > div:nth-child(even) { border-right: 0; }
.system-grid > div:nth-child(n+3) { border-bottom: 0; }
.system-grid span, .system-grid small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.05em; }
.system-grid strong { font-size: 2.7rem; letter-spacing: -0.06em; }
.system-grid .system-accent { color: #09101a; background: var(--signal); }
.system-grid .system-accent span, .system-grid .system-accent small { color: #314016; }

.hero-facts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line-strong); background: var(--surface); }
.hero-facts > div { min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 750; line-height: 1.4; }
.section-shell.locale-pane { grid-template-columns: 1fr; }
.section-heading { display: grid; grid-template-columns: 1fr 2.1fr; align-items: start; margin-bottom: clamp(48px, 7vw, 88px); }
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 5.3rem); }
.section-heading-inline { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; }
.section-heading-inline h2 { margin-top: 15px; }
.section-heading-inline > p { max-width: 430px; margin: 34px 0 0; color: var(--muted); font-size: 1.05rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); background: var(--surface); }
.about-copy, .education-card { padding: clamp(28px, 5vw, 64px); }
.about-copy { border-right: 1px solid var(--line-strong); }
.about-copy p { max-width: 600px; margin: 22px 0 0; color: var(--muted); }
.about-copy .lead { margin-top: 0; color: var(--ink); font-size: clamp(1.35rem, 2.25vw, 2rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.35; }
.education-card article { padding-block: 24px; border-bottom: 1px solid var(--line); }
.education-card article:last-child { padding-bottom: 0; border-bottom: 0; }
.education-card time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.education-card h3 { margin: 7px 0 3px; font-size: 1.15rem; line-height: 1.35; }
.education-card article p { margin: 0; color: var(--muted); font-size: 14px; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.skills-grid article { min-width: 0; min-height: 220px; padding: 22px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.skills-grid article > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.skills-grid h3 { margin: 42px 0 12px; font-size: 1.2rem; }
.skills-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.projects-section { background: var(--surface-raised); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.project-card { display: flex; min-width: 0; min-height: 470px; padding: clamp(24px, 3vw, 38px); flex-direction: column; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.project-featured { grid-column: span 2; min-height: 410px; color: var(--blue-ink); background: var(--blue); }
.project-card header { display: flex; align-items: center; justify-content: space-between; }
.project-featured .project-type, .project-featured .tech-line { color: color-mix(in srgb, var(--blue-ink) 78%, transparent); }
.project-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2rem; font-weight: 800; }
.project-card > div { margin-block: 58px 28px; }
.project-card h3 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -0.045em; line-height: 1; }
.project-card > div p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.03rem; }
.project-featured > div p { color: color-mix(in srgb, var(--blue-ink) 78%, transparent); }
.project-card ul { display: grid; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.project-card li { position: relative; padding-left: 21px; color: var(--muted); font-size: 14px; }
.project-card li::before { position: absolute; top: 0.72em; left: 0; width: 8px; height: 2px; content: ""; background: var(--blue); }
.project-featured li { color: color-mix(in srgb, var(--blue-ink) 85%, transparent); }
.project-featured li::before { background: var(--signal); }
.tech-line { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.6; }
.project-featured .tech-line { border-color: color-mix(in srgb, var(--blue-ink) 35%, transparent); }

.experience-list { border-top: 1px solid var(--line-strong); }
.experience-list article { display: grid; grid-template-columns: 150px minmax(240px, 0.9fr) minmax(300px, 1.1fr); gap: 34px; padding-block: 38px; border-bottom: 1px solid var(--line-strong); }
.experience-date { display: flex; flex-direction: column; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.experience-date span + span::before { content: "↓ "; color: var(--blue); }
.experience-role h3 { margin: 8px 0 3px; font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.3; }
.experience-role h3 span { color: var(--muted); font-weight: 500; }
.experience-role small { color: var(--muted); font-size: 13px; }
.experience-description p { margin: 0 0 10px; color: var(--muted); }

.contact-section { padding-block: clamp(48px, 8vw, 100px); color: #07101c; background: var(--signal); }
.contact-section .section-shell { padding-block: 0; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #07101c; background: #c8ff36; box-shadow: 12px 12px 0 #07101c; }
.contact-copy { padding: clamp(30px, 5vw, 68px); border-right: 1px solid #07101c; }
.contact-copy .section-index { color: #07101c; }
.contact-copy h2 { margin-top: 76px; font-size: clamp(2.8rem, 5vw, 5.4rem); }
.contact-copy h2 em { color: #165dff; }
.contact-copy > p:last-child { max-width: 480px; margin: 26px 0 0; color: #34431b; font-size: 1.05rem; }
.contact-links { display: grid; grid-template-rows: repeat(3, 1fr); }
.contact-links a { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 28px; align-items: center; border-bottom: 1px solid #07101c; transition: color 160ms ease, background 160ms ease; }
.contact-links a:last-child { border-bottom: 0; }
.contact-links a:hover { color: #ffffff; background: #165dff; }
.contact-links span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.contact-links strong { min-width: 0; font-size: clamp(0.9rem, 1.3vw, 1.1rem); overflow-wrap: anywhere; }
.contact-links b { font-size: 1.5rem; }

.site-footer { color: #dce5ee; background: #07101c; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; padding-block: 28px; align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.footer-grid p { margin: 0; }
.footer-grid p:nth-child(2), .footer-grid p:nth-child(3) { justify-self: center; }
.footer-grid a { display: inline-flex; justify-self: end; gap: 10px; align-items: center; }
.footer-grid a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 1040px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { position: fixed; z-index: 99; top: var(--header-height); right: 0; left: 0; display: grid; padding: 20px 24px 28px; border-bottom: 1px solid var(--line-strong); background: var(--paper); transform: translateY(calc(-100% - var(--header-height))); visibility: hidden; transition: transform 220ms ease, visibility 220ms; }
  .site-header.menu-is-open .mobile-nav { transform: translateY(0); visibility: visible; }
  .mobile-nav a { display: grid; grid-template-columns: 1fr auto; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; }
  .mobile-nav a > span:last-child { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 40px; }
  .experience-list article { grid-template-columns: 120px minmax(220px, 0.8fr) minmax(280px, 1.2fr); gap: 24px; }
  .contact-links a { grid-template-columns: 1fr auto; }
  .contact-links span { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .nav-shell, .section-shell, .footer-grid { width: min(calc(100% - 32px), var(--max-width)); }
  .brand-name { font-size: 15px; }
  .hero .section-shell { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-system, .hero-facts { grid-column: 1; }
  .hero-system { box-shadow: 7px 7px 0 rgba(16, 24, 32, 0.12); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div:nth-child(2) { border-right: 0; }
  .hero-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .section-heading-inline { grid-template-columns: 1fr; gap: 20px; }
  .section-heading h2 { margin-top: 20px; }
  .section-heading-inline > p { margin-top: 0; }
  .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .about-copy, .contact-copy { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-list article { grid-template-columns: 110px 1fr; }
  .experience-description { grid-column: 2; }
  .contact-copy { border-color: #07101c; }
  .contact-copy h2 { margin-top: 48px; }
}

@media (max-width: 560px) {
  .nav-shell, .section-shell, .footer-grid { width: min(calc(100% - 24px), var(--max-width)); }
  .brand-name { display: none; }
  .header-actions { gap: 6px; }
  .utility-button, .menu-toggle { width: 40px; height: 40px; }
  .section-shell { padding-block: 72px; }
  .hero .section-shell { padding-top: 50px; }
  .hero-grid { gap: 34px; }
  h1 { margin-top: 22px; font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .system-grid > div { min-height: 132px; padding: 15px; }
  .system-grid strong { font-size: 2.2rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div, .hero-facts > div:nth-child(2), .hero-facts > div:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts > div:last-child { border-bottom: 0; }
  .section-heading h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .about-copy, .education-card { padding: 24px; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .skills-grid article { min-height: 190px; }
  .project-card, .project-featured { grid-column: auto; min-height: 440px; }
  .project-card > div { margin-top: 42px; }
  .experience-list article { grid-template-columns: 1fr; gap: 20px; }
  .experience-date { flex-direction: row; gap: 8px; }
  .experience-date span + span::before { content: "→ "; }
  .experience-description { grid-column: 1; }
  .contact-panel { box-shadow: 7px 7px 0 #07101c; }
  .contact-copy, .contact-links a { padding: 24px; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-grid { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .footer-grid p:nth-child(2), .footer-grid p:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Resume content rendered from Markdown. */
main {
  width: min(calc(100% - 48px), 920px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
}

main h1,
main h2,
main h3 {
  overflow-wrap: normal;
}

main h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
}

main h1 + p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

main h1 + p a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}

main h2 {
  margin: clamp(64px, 9vw, 96px) 0 32px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--blue);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
}

main h3 {
  margin: 36px 0 6px;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

main h2 + h3 {
  margin-top: 0;
}

main p {
  margin: 8px 0 0;
}

main ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 20px;
}

main li {
  padding-left: 5px;
  color: var(--muted);
}

main li::marker {
  color: var(--blue);
}

main strong {
  color: var(--ink);
}

.footer-grid {
  grid-template-columns: 1fr auto;
}

@media (max-width: 820px) {
  main {
    width: min(calc(100% - 32px), 920px);
  }
}

@media (max-width: 560px) {
  main {
    width: min(calc(100% - 24px), 920px);
    padding-block: 48px 64px;
  }

  main h1 {
    margin-top: 0;
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  main h1 + p {
    font-size: 0.98rem;
  }

  main h2 {
    margin-top: 64px;
  }
}
