/* cv.async-digital.com
 *
 * Structural styles for the CV page. Brand tokens (--bg, --text, --primary,
 * --accent, --muted, --card, --border) are cross-loaded from
 * https://async-digital.com/assets/brand.css and are NOT redefined here.
 *
 * Geometry ported from the claude.ai/design source at
 * ordova-vault/content/cv-page-design/. Keep the two in step: if this file
 * changes shape, the design bundle's brief.md geometry section is now stale.
 */

/* The one place this site departs from its siblings. Every other Async Digital
 * product subdomain runs on the system stack that brand.css defines; this page
 * loads two webfonts so that it is typographically continuous with the PDF it
 * hands out. That is a deliberate posture decision, recorded in README.md. */
:root {
  --cv-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --cv-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --cv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  margin: 0;
  background: var(--bg, #FDFBF7);
  color: var(--text, #1F1C18);
  font-family: var(--cv-sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary, #8B3A2A); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.cv-wrap { max-width: 736px; margin: 0 auto; padding: 28px 28px 0; }

/* Top strip: language switch left, a plain-text download right. The second
 * download affordance is deliberate. The primary one lives in the colophon at
 * the foot, which a reader who came only for the file would never scroll to. */
.cv-topstrip {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border, #E8E4DC);
  font-size: 14px; color: var(--muted, #6B6560);
}
.cv-topstrip__dl { color: var(--primary, #8B3A2A); text-underline-offset: 3px; }
.lang-switch a { color: var(--muted, #6B6560); text-decoration: none; border-bottom: 1px solid var(--border, #E8E4DC); padding-bottom: 1px; }
.lang-switch a:hover { border-bottom-color: var(--text, #1F1C18); color: var(--text, #1F1C18); }

.cv-header {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: flex-start; justify-content: space-between;
  margin: 44px 0 0;
}
.cv-header__text { flex: 1 1 340px; min-width: 260px; }
.cv-name {
  font-family: var(--cv-serif); font-weight: 600; font-size: 41px;
  line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 12px;
  color: var(--text, #1F1C18);
}
.cv-role { margin: 0; font-size: 17px; color: var(--accent, #2A3A4A); font-weight: 600; }
.cv-location { margin: 4px 0 0; font-size: 15.5px; color: var(--muted, #6B6560); }
.cv-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 15px; }
.cv-portrait {
  width: 124px; height: 124px; object-fit: cover; object-position: 50% 24%;
  border: 1px solid var(--border, #E8E4DC); filter: saturate(0.92); display: block;
}

.cv-positioning {
  font-family: var(--cv-serif); font-size: 19.5px; line-height: 1.58;
  max-width: 60ch; margin: 34px 0 0; color: var(--text, #1F1C18);
}
.cv-recommendations { font-size: 15.5px; color: var(--muted, #6B6560); max-width: 60ch; margin: 14px 0 0; }

.cv-section { margin-top: 58px; }
.cv-section h2, .cv-colophon h2 {
  margin: 0 0 22px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary, #8B3A2A);
}
.cv-section h2 { border-top: 1px solid var(--border, #E8E4DC); padding-top: 11px; }

.cv-skills { display: flex; flex-direction: column; gap: 12px; }
.cv-skill { display: grid; grid-template-columns: minmax(120px, 168px) 1fr; gap: 6px 24px; align-items: baseline; }
.cv-skill__label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #6B6560); }

.cv-jobs { display: flex; flex-direction: column; gap: 38px; }
.cv-job h3 { margin: 0; font-size: 17.5px; font-weight: 600; line-height: 1.35; color: var(--accent, #2A3A4A); }
.cv-job__meta { margin: 3px 0 0; font-size: 14.5px; color: var(--muted, #6B6560); }
.cv-job p.cv-job__para { margin: 12px 0 0; max-width: 66ch; }
.cv-job ul { margin: 12px 0 0; padding: 0 0 0 20px; max-width: 66ch; display: flex; flex-direction: column; gap: 10px; }
.cv-job li { padding-left: 2px; }

/* Bolded-lead sub-entries, used by the freelance block and by Earlier roles. */
.cv-entries { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; max-width: 66ch; }
.cv-entries--flush { margin-top: 0; }
.cv-entries p { margin: 0; }
.cv-entries strong { font-weight: 600; color: var(--accent, #2A3A4A); }

.cv-list { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.cv-list--tight { gap: 10px; }
.cv-list__title { font-weight: 600; }
.cv-list__detail { font-size: 15px; color: var(--muted, #6B6560); }

.cv-colophon {
  margin-top: 76px; border-top: 1px solid var(--border, #E8E4DC);
  padding: 34px 0 88px;
}
.cv-colophon h2 { margin-bottom: 20px; }
.cv-colophon__actions { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.cv-download {
  background: var(--primary, #8B3A2A); color: var(--bg, #FDFBF7);
  text-decoration: none; padding: 10px 16px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600;
}
.cv-download:hover { text-decoration: none; }
.cv-filefacts { font-size: 14.5px; color: var(--muted, #6B6560); }

.cv-verify { margin-top: 24px; max-width: 62ch; }
.cv-verify__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted, #6B6560); }

/* The hash is 64 characters and must survive a select-and-copy at any width.
 * user-select: all takes the whole string on one click; overflow-wrap: anywhere
 * with word-break: normal wraps it without CSS inserting a hyphen. Do not add
 * letter-spacing here: it does not survive the clipboard cleanly. */
.cv-sha {
  display: block; margin-top: 8px;
  font-family: var(--cv-mono); font-size: 14px; line-height: 1.7; letter-spacing: 0;
  color: var(--text, #1F1C18); background: var(--card, #F8F5EE);
  border: 1px solid var(--border, #E8E4DC); border-radius: 4px; padding: 10px 12px;
  user-select: all; overflow-wrap: anywhere; word-break: normal;
}
.cv-verify__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-top: 12px; font-size: 15px; }
.cv-quietbtn {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--primary, #8B3A2A); text-decoration: underline; text-underline-offset: 3px; text-align: left;
}

.cv-overlay {
  position: fixed; inset: 0; background: rgba(31, 28, 24, 0.44);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 20px; overflow: auto; z-index: 200;
}
.cv-overlay[hidden] { display: none; }
.cv-dialog {
  background: var(--card, #F8F5EE); border: 1px solid var(--border, #E8E4DC);
  border-radius: 16px; max-width: 640px; width: 100%;
  padding: 34px 36px 36px; margin: auto;
}
.cv-dialog__head { display: flex; gap: 24px; align-items: baseline; justify-content: space-between; }
.cv-dialog__head h2 { margin: 0; font-family: var(--cv-serif); font-size: 25px; font-weight: 600; line-height: 1.2; color: var(--text, #1F1C18); text-transform: none; letter-spacing: normal; }
.cv-dialog__close {
  background: none; border: 1px solid var(--border, #E8E4DC); border-radius: 999px;
  width: 32px; height: 32px; flex: 0 0 auto; cursor: pointer;
  color: var(--muted, #6B6560); font-size: 16px; line-height: 1;
}
.cv-dialog__body { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; max-width: 58ch; }
.cv-dialog__body p { margin: 0; }
.cv-cmds { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.cv-cmd { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cv-cmd__os { font-size: 14.5px; color: var(--muted, #6B6560); min-width: 82px; }
.cv-cmd code {
  font-family: var(--cv-mono); font-size: 13.5px;
  background: var(--bg, #FDFBF7); border: 1px solid var(--border, #E8E4DC);
  border-radius: 4px; padding: 4px 8px; overflow-wrap: anywhere;
}
.cv-caveat {
  margin: 24px 0 0; padding-top: 20px;
  border-top: 1px solid var(--border, #E8E4DC);
  font-size: 15.5px; color: var(--muted, #6B6560); max-width: 58ch;
}

@media print {
  .cv-topstrip, .cv-colophon, .cv-overlay { display: none; }
}
