/* cohns.net — placeholder styling.
   Kept in an external file rather than inline because the CloudFront CSP set in
   modules/static-site forbids inline styles. */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --border: #262b35;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --accent: #5eb0ef;
  --max: 62rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfc;
    --surface: #ffffff;
    --border: #e3e6ea;
    --text: #1a1d23;
    --muted: #5d6673;
    --accent: #1f6fb2;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* The photo library is grid-first, not prose: let its masthead, grid, and footer
   span a much wider container than the site's reading width so the thumbnails fill
   the window and reflow with it, instead of sitting in a narrow centered column. */
.page--gallery .wrap {
  max-width: 100rem;
}

/* --- masthead --- */

.masthead {
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.masthead h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.build-note {
  margin: 2rem 0 0;
  max-width: 44rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- cards --- */

main {
  display: grid;
  gap: 1.25rem;
  padding: 3rem 1.5rem;
}

@media (min-width: 48rem) {
  main { grid-template-columns: repeat(2, 1fr); }
  #engineering { grid-column: 1 / -1; }
}

/* The two-column grid above is for card pages (home, /foodie). A sub-page whose
   <main> holds a single content block (recipe/class lists and detail views, the
   résumé, admin, the gallery) would otherwise be trapped in the left column with
   the right half empty on desktop — so let a lone child span the full width. */
main > :only-child { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.card p { margin: 0 0 1rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.placeholder {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- skills --- */

.skills {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem 2rem;
}

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

.skills li {
  font-size: 0.925rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.skills span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* --- links --- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  font-size: 0.925rem;
}
/* "Coming soon" badge (e.g. the Classes tile before the classes area ships). */
.soon {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

/* --- footer --- */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- recipes --- */

.masthead--sub { padding: 3rem 0 2rem; }
.masthead--sub .eyebrow a { color: var(--accent); text-decoration: none; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.recipe-card {
  display: block;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.recipe-card:hover { border-color: var(--accent); }
.recipe-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.recipe-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Cards with a photo: image spans the top edge-to-edge, text keeps its padding. */
.recipe-card.has-thumb { padding: 0; overflow: hidden; }
.recipe-card-thumb { display: block; width: 100%; height: 10rem; object-fit: cover; }
.recipe-card.has-thumb h3 { margin: 1rem 1.4rem 0.4rem; }
.recipe-card.has-thumb p { margin: 0 1.4rem 1.25rem; }

/* Hero image on the recipe detail page. */
.recipe-hero {
  display: block;
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 1.5rem;
}

/* Admin editor: image-upload control + live preview thumbnail. */
.hero-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-preview { max-width: 12rem; max-height: 8rem; border-radius: 8px; border: 1px solid var(--border); }

/* Admin editor: live Markdown preview under each Markdown-capable field. */
.md-preview {
  margin: -0.4rem 0 0.9rem;
  padding: 0.6rem 0.85rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.md-preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.md-preview-body { font-size: 0.95rem; line-height: 1.5; }
.md-preview-body p { margin: 0 0 0.5rem; }
.md-preview-body ul, .md-preview-body ol { margin: 0; padding-left: 1.4rem; }
.md-preview-body li { margin: 0.2rem 0; }
.md-preview-body a { color: var(--accent); }

/* Classes: sessions + signup/request forms on the class detail page. */
.class-card-meta { color: var(--accent); font-size: 0.85rem; margin: 0.4rem 1.4rem 1.25rem; }
.recipe-card:not(.has-thumb) .class-card-meta { margin-left: 0; margin-right: 0; }
.class-session {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}
.class-session-when { margin: 0 0 0.5rem; }
.class-session-loc, .class-session-spots { color: var(--muted); font-weight: 400; }
.class-none, .class-request-lead { color: var(--muted); }
.class-form { max-width: 32rem; margin: 0.75rem 0 0; }
/* Honeypot — kept off-screen (a class, since CSP style-src 'self' blocks inline styles). */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #c0392b; }

/* Class "tools I used": products used in a class, each an Amazon affiliate link.
   Two-column hairline list on desktop, one column below — the design handoff's
   shape mapped onto the site's tokens (see docs/design-handoffs.md). The name
   reads as an accent link (the site convention; clear tap target from a QR). */
.class-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem 2.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.class-tools li { border-top: 1px solid var(--border); padding-top: 0.6rem; }
.class-tool-name a { color: var(--accent); font-weight: 600; text-decoration: none; }
.class-tool-name a:hover { text-decoration: underline; }
.class-tool-note { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }

/* Admin: a repeatable tool row (name / url / note + remove) in the class editor. */
.tool-edit-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.tool-edit-row .form-input { flex: 1 1 8rem; }

/* FTC affiliate disclosure, shown under recipes that carry an Amazon link. */
.affiliate-disclosure {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}

/* Category filter chips + grouped sections on the recipe list. */
/* Search + facet controls on the recipe list. */
.recipe-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0 0.75rem;
}
.recipe-search { flex: 1 1 16rem; max-width: 28rem; }
.recipe-facets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.recipe-facet { width: auto; min-width: 9rem; font-size: 0.9rem; padding: 0.4rem 0.6rem; }
.recipe-result-count {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0.5rem 0 0.25rem;
}

.recipe-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0.5rem; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { border-color: var(--accent); color: var(--accent); }

.recipe-group > h2 {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 1.75rem 0 0;
}
.recipe-group .recipe-grid { margin-top: 1.25rem; }

.recipe-category { margin: 0 0 0.25rem; }
.recipe-category a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.recipe-category a:hover { text-decoration: underline; }

/* Cuisine + difficulty tags under the recipe title. */
.recipe-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.recipe-tag {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.recipe-tag:hover { border-color: var(--accent); }
.recipe-tag--plain { color: var(--muted); }

.recipe-detail { padding: 2rem 0 3rem; }
.recipe-detail h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.recipe-summary { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.recipe-detail h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; }

/* The Markdown "story"/notes block on a recipe. */
.recipe-notes { color: var(--text); line-height: 1.7; margin: 0 0 2rem; max-width: 44rem; }
.recipe-notes p { margin: 0 0 1rem; }
.recipe-notes h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.recipe-notes h4 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
.recipe-notes ul, .recipe-notes ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.recipe-notes li { margin: 0.3rem 0; }
.recipe-notes a, .recipe-summary a { color: var(--accent); }
.recipe-notes code, .recipe-summary code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.recipe-video {
  width: 100%;
  max-width: 48rem;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border);
  margin: 0.5rem 0 1rem;
}

/* Shown while a freshly uploaded lesson video is still transcoding. */
.recipe-video-pending {
  max-width: 48rem;
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.ingredients, .steps { padding-left: 1.4rem; }
.ingredients li, .steps li { margin: 0.35rem 0; }

/* Servings stepper above the ingredient list — scales the amounts live. */
.servings-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.servings-label { color: var(--muted); font-size: 0.95rem; }
.servings-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.servings-step {
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  width: 2.2rem;
  cursor: pointer;
}
.servings-step:hover { color: var(--accent); }
.servings-input {
  width: 3.5rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.servings-input::-webkit-outer-spin-button,
.servings-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.servings-input:focus { outline: none; }
.servings-reset {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}
.servings-reset:hover { text-decoration: underline; }

.demo-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0 0 1.5rem;
}

/* --- sign-in bar --- */

.authbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.75rem;   /* reserve space so the masthead doesn't jump on render */
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.authbar-who {
  color: var(--muted);
}

.authbar-btn {
  font: inherit;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}

.authbar-btn:hover {
  border-color: var(--accent);
}

/* --- family photo gallery --- */

/* <main> is the site's 2-column content grid (see the `main` rule above); the
   gallery must span both columns, or the photo grid is boxed into one half. */
.gallery {
  grid-column: 1 / -1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo {
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo:hover, .photo:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.photo figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* --- admin (moderators-only user management) --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-actions { white-space: nowrap; }
.admin-actions .authbar-btn { margin: 0 0.4rem 0.3rem 0; }

/* Recipe admin: import bar + editor form. */
.admin-nav { margin: 0 0 1rem; }
.admin-nav a { color: var(--accent); text-decoration: none; }

.recipe-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.import-row { display: flex; gap: 0.5rem; flex: 1 1 24rem; }
.import-row .form-input { flex: 1; }
.btn-plain { color: var(--muted); }
.btn-plain:hover { border-color: var(--accent); color: var(--accent); }

.form-input {
  font: inherit;
  width: 100%;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; line-height: 1.5; }

.recipe-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2rem;
}
.recipe-form h3 { margin: 0 0 1rem; }
.form-row { display: block; margin-bottom: 1rem; }
.form-row > span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1.25rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.form-status { color: var(--muted); font-size: 0.9rem; }

/* --- observability embed --- */

/* A responsive frame for the Grafana public dashboard: hold a 16:9 box that
   reflows with the column, so the embed never forces horizontal scroll on
   mobile. The iframe fills it. */
.o11y-embed { padding: 1rem; }

/* The dashboard is the point of the page — let it span both grid columns. */
@media (min-width: 48rem) {
  .o11y-embed { grid-column: 1 / -1; }
}

.o11y-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 22rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.o11y-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.o11y-embed .links { margin-top: 1rem; }

/* Grafana Cloud can't be iframed, so the frame holds a preview that links out.
   The whole panel is the click target. */
.o11y-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--bg);
  transition: background 0.15s ease;
}
.o11y-preview:hover,
.o11y-preview:focus-visible {
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--bg);
}
.o11y-preview__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.o11y-preview__title {
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}
.o11y-preview__desc {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.5;
}
.o11y-preview__cta {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}
.o11y-preview:hover .o11y-preview__cta { text-decoration: underline; }

/* Shown in place of the frame until the public dashboard URL is wired up. */
.o11y-pending {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.authbar-btn.is-on { border-color: var(--accent); color: var(--accent); }

/* --- Résumé ------------------------------------------------------------- */

.resume-controls { margin-bottom: 1.5rem; }

.btn {
  font: inherit;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }

.resume {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.resume-head { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.resume-name { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.15; margin: 0; }
.resume-label { color: var(--muted); margin: 0.35rem 0 0.75rem; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0; }
.resume-contact a { color: var(--accent); text-decoration: none; }
.resume-contact a:hover { text-decoration: underline; }

.resume-summary { color: var(--text); line-height: 1.6; margin: 0 0 2rem; max-width: 60ch; }

.resume-section { margin-bottom: 2rem; }
.resume-section:last-child { margin-bottom: 0; }
.resume-section > h2 {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 0 0 1rem;
}

.resume-project { margin-bottom: 1.25rem; }
.resume-project h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.resume-project h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); }
.resume-project-summary { margin: 0 0 0.6rem; color: var(--muted); line-height: 1.5; }

.resume-highlights { margin: 0; padding-left: 1.1rem; }
.resume-highlights li { color: var(--text); line-height: 1.5; margin-bottom: 0.35rem; }

.resume-role { margin-bottom: 1.25rem; }
.resume-role-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; align-items: baseline; }
.resume-role-head h3 { font-size: 1.05rem; margin: 0; }
.resume-dates { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* Print / Save-as-PDF: drop the site chrome, flatten the card, force light ink on
   white so it doesn't burn a page of toner in dark mode. The résumé body is the page. */
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #111; --muted: #444; --accent: #111; --border: #bbb; }
  body { background: #fff; color: #111; }
  .masthead, .authbar, .resume-controls, footer { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .resume { border: 0; border-radius: 0; padding: 0; }
  .resume-project h3 a, .resume-contact a { color: #111; }
  a { color: #111; }
  .resume-section { break-inside: avoid; }
  .resume-project, .resume-role { break-inside: avoid; }
}
