/* =============================================================================
   Print styles for the resume.
   Linked with media="print", so it never touches the screen layout.
   ========================================================================== */

@page {
  margin: 15mm 14mm;
}

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

  --bg: #ffffff;
  --bg-sunk: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #c9c9c9;
  --border-strong: #9a9a9a;

  --ink: #000000;
  --ink-soft: #1c1c1c;
  --ink-muted: #4a4a4a;

  --accent: #7a3413;
  --accent-tint: #ffffff;

  --shadow-soft: none;
  --shadow-lift: none;

  --step--1: 8.5pt;
  --step-0: 9.5pt;
  --step-1: 10.5pt;
  --step-2: 12pt;
  --step-3: 13pt;
  --step-4: 21pt;

  --space-2xl: 0.85rem;
  --space-xl: 0.7rem;
  --space-lg: 0.55rem;
  --space-md: 0.5rem;
}

body {
  background: #fff;
  background-image: none;
  line-height: 1.42;
}

/* Screen-only chrome and decoration. */
body::after,
.site-header,
.site-footer,
.button-row,
.print-hint,
.theme-toggle,
.skip-link {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: none;
}

.section {
  padding-block: var(--space-lg) 0;
  break-inside: avoid;
}

.section + .section {
  padding-top: var(--space-lg);
}

h2 {
  padding-bottom: 2pt;
  border-bottom: 0.5pt solid var(--border);
}

/* The accent rule under section titles is decoration the page does not need. */
.section-title::after {
  display: none;
}

a {
  color: #000;
  text-decoration: none;
}

.resume-hero {
  padding-block: 0 var(--space-lg);
}

/* The spine and its dots are screen furniture. On paper the date column and
   the entry are enough. */
.timeline > li,
.timeline__body {
  border-left: 0;
  border-image: none;
  padding-left: 0;
}

.timeline > li::before {
  display: none;
}

.timeline > li,
.skill {
  break-inside: avoid;
}

.timeline__when {
  text-align: left;
}

/* Skill cards print as plain headed lists: no box, no icon, chips run on as
   text with the everyday ones in bold. */
.skill {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}

.skill__icon {
  display: none;
}

.chips {
  display: block;
}

.chip {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
}

.chip--core {
  font-weight: 700;
  color: var(--ink);
}

.chip:not(:last-child)::after {
  content: ", ";
}

/* On screen the lede explains the tint; on paper the bold does the job. */
.section__lede {
  display: none;
}

.skillset::before {
  content: "In bold: what I reach for most weeks.";
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
