/* ==========================================================================
   Abhinav Pokhrel — portfolio
   Design system adapted from the SpaceX DESIGN.md (see /DESIGN.md).
   Mood: black. Feeling: austere precision — engineered, not marketed.
   Pure black canvas, white type, 1px hairlines, uppercase condensed
   display type, one ghost-pill button style, no icons, no accent colors.
   ========================================================================== */

/* ---------- Tokens: dark (default) ---------- */
:root {
  --canvas: #000000;
  --canvas-soft: #0a0a0a;
  --hairline: #3a3a3f;
  --hairline-soft: #1f1f23;
  --ink: #ffffff;
  --ink-muted: #b4b4bd;
  --ink-subtle: #85858f;
  --invert-bg: #ffffff;
  --invert-ink: #000000;
  --badge-ground: #ffffff; /* badge artwork is designed for a white ground */

  --font: "Barlow", "D-DIN", Arial, Verdana, sans-serif;
  --font-display: "Barlow Condensed", "D-DIN", "Arial Narrow", Arial, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-pill: 32px;

  --container: 75rem;
  --gutter: 1.5rem;
  --section: 4rem;
  --nav-h: 72px;

  color-scheme: dark;
}

/* ---------- Tokens: light (opt-in) ---------- */
:root[data-theme="light"] {
  --canvas: #ffffff;
  --canvas-soft: #f0f0fa;
  --hairline: #d4d4de;
  --hairline-soft: #e6e6ee;
  --ink: #000000;
  --ink-muted: #3a3a3f;
  --ink-subtle: #5a5a5f;
  --invert-bg: #000000;
  --invert-ink: #ffffff;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

p {
  margin: 0;
}

/* Display tiers: uppercase condensed, tight leading, positive tracking */
h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--invert-bg);
  color: var(--invert-ink);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 10px 18px;
  background: var(--invert-bg);
  color: var(--invert-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

@media (min-width: 64rem) {
  :root {
    --gutter: 2rem;
    --section: 6rem;
  }
}

/* ---------- Type helpers ---------- */
/* micro-cap: uppercase, tracked, small */
.eyebrow,
.cert-issuer,
.dates,
.lab-tags,
.cert-facts,
.site-footer h2,
.resume h2,
.toc h2 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--ink-subtle);
}

.lead {
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.subtle {
  color: var(--ink-subtle);
}

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

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

.brand {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Text controls: theme and menu. No icons. */
.text-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

html:not(.js) .theme-toggle,
html:not(.js) .nav-toggle {
  display: none;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: block;
  padding: 0.875rem 0;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

@media (min-width: 52rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    order: 0;
    width: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.75rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.5rem 0;
    border: 0;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.5em;
  }
}

/* ---------- Buttons: one ghost-pill style ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--invert-bg);
  color: var(--invert-ink);
  text-decoration: none;
}

/* Secondary: same shape, quieter edge */
.btn-secondary {
  border-color: var(--hairline);
}

.btn-secondary:hover {
  border-color: var(--invert-bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}

.section--lift {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

.section-title {
  margin-bottom: 2.5rem;
}

.page-header {
  padding-block: 4.5rem 3rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-block: 5rem 4rem;
}

.hero h1 {
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.9;
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 8rem 6rem;
  }
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 2.5rem 1.5rem;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Certification tiles (home) ---------- */
.grid--certs {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 64rem) {
  .grid--certs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid--certs > li {
  display: flex;
}

/* A tile, not a box: badge on a white ground, caption underneath */
.cert-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  color: var(--ink);
  text-decoration: none;
}

.cert-card:hover {
  text-decoration: none;
}

.cert-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  border-radius: var(--r-sm);
  background: var(--badge-ground);
  overflow: hidden;
}

.cert-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: scale-down; /* show the whole badge, never enlarge a small image */
  background: var(--badge-ground); /* covers the issuer-name fallback behind it */
}

.cert-fallback {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #3a3a3f;
}

.cert-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.cert-card .cert-issuer {
  color: var(--ink-subtle);
}

.card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

a.cert-card:hover h3,
a.cert-card:hover .card-foot {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ---------- Certification write-ups: an accordion of ruled rows ---------- */
.cert-entries {
  border-top: 1px solid var(--hairline);
}

.cert-entry {
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.cert-entry summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

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

/* plus / minus instead of an icon */
.cert-entry summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  width: 1.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-muted);
}

.cert-entry[open] summary::after {
  content: "\2212";
}

.cert-entry summary:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.cert-entry summary img {
  flex: none;
  width: 64px;
  height: 48px;
  padding: 4px;
  border-radius: var(--r-xs);
  object-fit: contain;
  background: var(--badge-ground);
}

@media (min-width: 48rem) {
  .cert-entry summary img {
    width: 88px;
    height: 66px;
  }
}

.cert-entry-title {
  display: grid;
  gap: 0.25rem;
}

.cert-entry-title h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.1;
}

.cert-entry .cert-issuer {
  color: var(--ink-subtle);
}

.cert-entry-body {
  display: grid;
  gap: 2rem;
  padding: 0.5rem 0 2.5rem;
}

@media (min-width: 64rem) {
  .cert-entry-body {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
    padding-left: calc(88px + 1.25rem); /* align with the title, past the badge */
  }
}

/* links line + "current exam" line, full width above the two columns */
.cert-meta {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.375rem;
}

.cert-verify {
  font-size: 0.875rem;
  font-weight: 600;
}

.cert-entry-body .cert-facts {
  color: var(--ink-subtle);
}

.cert-entry-body h3 {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.cert-entry-body p,
.cert-entry-body li {
  color: var(--ink-muted);
  line-height: 1.7;
}

.cert-entry-body p + p,
.cert-entry-body p + ul {
  margin-top: 0.75rem;
}

.cert-entry-body ul {
  margin: 0;
  padding-left: 1.125rem;
}

.cert-entry-body li + li {
  margin-top: 0.5rem;
}

.cert-entry-body li::marker {
  color: var(--ink-subtle);
}

.cert-entry-body strong {
  color: var(--ink);
  font-weight: 600;
}

.cert-entry-body .placeholder {
  color: var(--ink-subtle);
  font-style: italic;
}

/* ---------- Resume ---------- */
.resume {
  display: grid;
  gap: 3rem;
  padding-block: 2.5rem var(--section);
}

@media (min-width: 64rem) {
  .resume {
    grid-template-columns: 17rem 1fr;
    gap: 5rem;
  }

  .resume-aside {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    align-self: start;
  }
}

.resume section + section {
  margin-top: 3rem;
}

.resume h2 {
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-subtle);
}

.contact-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-group + .skill-group {
  margin-top: 1.25rem;
}

.skill-group h3 {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.skill-group p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.job + .job {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--hairline-soft);
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

.job h3 {
  font-size: 1.25rem;
}

.job .org {
  margin-top: 0.375rem;
  color: var(--ink-muted);
}

.dates {
  color: var(--ink-subtle);
  white-space: nowrap;
}

.job ul {
  margin: 1rem 0 0;
  padding-left: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.job li + li {
  margin-top: 0.5rem;
}

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

.lab-link,
.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-link {
  margin-top: 0.75rem;
}

.lab-summary {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.lab-tags {
  margin-top: 0.5rem;
  color: var(--ink-subtle);
}

.edu {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
}

.edu + .edu {
  border-top: 1px solid var(--hairline-soft);
}

.edu p,
.resume-main > section > p {
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ---------- Article (how-i-built-this.html) ---------- */
.prose {
  max-width: 46rem;
  padding-block: 3rem var(--section);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.prose section {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.prose h2 {
  margin: 4rem 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
}

.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose figure,
.prose .table-wrap {
  margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

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

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-xs);
  color: var(--ink);
  font-family: var(--font-code);
  font-size: 0.85em;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.prose pre {
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
  background: var(--canvas-soft);
  overflow-x: auto;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  border: 0;
  font-size: 0.8125rem;
  overflow-wrap: normal;
  white-space: pre;
}

/* "On this page": a plain ruled list, no box */
.toc {
  margin-bottom: 3rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--hairline);
}

.prose .toc h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
}

.toc ol {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.toc li + li {
  margin-top: 0.375rem;
}

.toc a {
  color: var(--ink-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* the section currently being read (set by main.js) */
.toc a[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
}

/* "Why it matters": a ruled aside, not a box */
.callout {
  padding-left: 1.25rem;
  border-left: 1px solid var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.callout span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Architecture diagram: outlined boxes joined by arrows */
.arch {
  padding: 1.5rem 0;
  border-block: 1px solid var(--hairline);
}

.arch-flow {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arch-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
  line-height: 1.4;
}

.arch-node--key {
  border-color: var(--ink);
}

.arch-node + .arch-node::before {
  content: "↓";
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-subtle);
}

.arch-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.arch-role {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.arch figcaption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-subtle);
}

@media (min-width: 48rem) {
  .arch-flow {
    flex-direction: row;
    gap: 32px;
  }

  .arch-node {
    flex: 1;
  }

  .arch-node + .arch-node::before {
    content: "→";
    top: 50%;
    left: -24px;
    transform: translateY(-50%);
  }
}

/* Cost table */
.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  text-align: left;
}

.prose th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  border-bottom-color: var(--hairline);
}

.prose td:last-child,
.prose th:last-child {
  text-align: right;
  white-space: nowrap;
}

/* ---------- 404 ---------- */
.not-found {
  padding-block: 6rem;
}

.not-found h1 {
  margin-bottom: 1.25rem;
}

.not-found .lead {
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 5rem;
  }
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--ink-subtle);
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-inner a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-inner .brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* ---------- Motion: deliberate, and only where it explains something ---------- */

/* Accordion: the write-up eases open */
.cert-entry[open] .cert-entry-body {
  animation: entry-open 0.3s ease-out;
}

@keyframes entry-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Reading progress: a thin line along the bottom of the sticky header */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Theme switch: fade colors for the moment of the switch only */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print (resume) ---------- */
@media print {
  :root {
    --canvas: #fff;
    --canvas-soft: #fff;
    --hairline: #ccc;
    --hairline-soft: #ddd;
    --ink: #000;
    --ink-muted: #222;
    --ink-subtle: #444;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .no-print {
    display: none !important;
  }

  .page-header {
    padding-block: 0 1rem;
  }

  .resume {
    padding-block: 1rem;
  }

  .resume-aside {
    position: static;
  }

  a {
    text-decoration: none;
  }

  @page {
    margin: 14mm 14mm;
  }

  body {
    font-size: 10pt;
    line-height: 1.45;
  }

  /* On paper the name is the title, not "Resume & Contact" */
  .page-header {
    border: 0;
  }

  .page-header .eyebrow {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 26pt;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #000;
  }

  .page-header h1 {
    display: none;
  }

  .page-header .lead {
    font-size: 11pt;
  }

  /* Contact buttons become plain text with the full address */
  .contact-links {
    margin-top: 0.5rem;
    gap: 0.25rem 1.5rem;
  }

  .contact-links .btn {
    min-height: 0;
    padding: 0;
    border: 0;
    font-size: 9pt;
  }

  .contact-links a::after {
    content: ": " attr(href);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  /* Keep the two-column layout on paper */
  .resume {
    grid-template-columns: 12rem 1fr;
    gap: 2rem;
    padding-top: 0.5rem;
  }

  .resume section + section {
    margin-top: 1.5rem;
  }

  .job + .job {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .job,
  .edu,
  .skill-group {
    break-inside: avoid;
  }
}
