/* IBM Plex Mono — self-hosted subsets extracted from the paper résumé bundle.
   Kept local (no Google Fonts call) since this serves from a home NAS. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113;
}

/* ---- Design tokens, lifted from cv-guillaume-3a-standalone.html ---- */
/* Design tokens (colors, fonts) live in css/tokens.css, linked before this
   file in index.html — single source shared with server/views.js and the
   CV variants. Don't redeclare them here; see that file's header comment. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100dvh;
  background: var(--surface);
}

body {
  font-family: var(--font-sans);
  color: var(--body);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 1080px;
  min-height: 100dvh;
  padding-inline: clamp(24px, 6vw, 80px);
  padding-block: clamp(16px, 3vh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

/* ---- Header ---- */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--fill, var(--ink));
}

.hdr .name {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 0.95;
}

.hdr .role {
  font-size: clamp(12px, 1vw + 9px, 15px);
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdr .meta {
  text-align: right;
  font: 400 11px var(--font-mono);
  color: var(--muted);
  line-height: 1.7;
  white-space: nowrap;
}

.hdr .meta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.hdr .meta a:hover, .hdr .meta a:focus-visible { color: var(--accent); border-color: var(--accent); }

.theme-toggle {
  /* Reset button chrome, same approach as .intro-link — real <button>, styled
     to read as inline mono text so it stays keyboard/AT-accessible. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--accent); }

/* ---- Prompt / intro ---- */
.prompt {
  margin-top: clamp(10px, 2.5vh, 22px);
  font: 500 clamp(14px, 0.4vw + 13px, 17px) var(--font-mono);
  color: var(--body);
  letter-spacing: 0.2px;
}

.prompt .path { color: var(--accent); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--fill, var(--ink));
  margin-left: 2px;
  transform: translateY(3px);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

.intro {
  margin-top: 10px;
  font-size: clamp(15px, 0.7vw + 12px, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
}

/* ---- Sections ---- */
.section {
  border-top: 1px solid var(--rule);
  margin-top: clamp(20px, 4vh, 44px);
  padding-top: clamp(14px, 2vh, 22px);
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 200px) 1fr;
  gap: 8px 40px;
}

.chip {
  font: 500 10px var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--on-fill, var(--on-ink));
  background: var(--fill, var(--ink));
  padding: 4px 9px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  height: fit-content;
  white-space: nowrap;
}

/* Section-heading chips can wrap to multiple lines rather than overflowing
   their narrow grid column; tool tags (span.chip) stay single-line via the
   base .chip nowrap above. */
h2.chip {
  white-space: normal;
  line-height: 1.4;
  /* Hanging indent so wrapped lines align under the title text, not the
     "NN " section-number prefix (3 mono chars incl. trailing space, plus
     3 x the .chip letter-spacing). First line stays at the pill's 9px inset. */
  padding-left: calc(9px + 3ch + 4.5px);
  text-indent: calc(-1 * (3ch + 4.5px));
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 10px);
}

@media (min-width: 720px) {
  .focus-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
  }
}

.focus-item {
  border-left: 2px solid var(--rule-2);
  padding-left: 12px;
  font-size: clamp(12px, 0.3vw + 11px, 14px);
  line-height: 1.5;
  color: var(--body);
}

.focus-item b { color: var(--heading); font-weight: 700; }

.focus-item.is-highlight {
  border-left-color: var(--accent);
  background: rgba(201, 42, 42, 0.06);
  transition: border-color 0.15s, background-color 0.15s;
}

.intro-link {
  /* Reset button chrome — these are real <button>s now, styled to read as
     inline text so they stay keyboard/AT-accessible without JS. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px dotted var(--muted-2);
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.intro-link:hover,
.intro-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.links a {
  font: 500 12px var(--font-mono);
  letter-spacing: 0.4px;
  color: var(--body);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.links a:hover, .links a:focus-visible { color: var(--accent); border-color: var(--accent); }
.links a.is-primary { color: var(--accent); border-color: var(--accent); }

/* ---- Footer ---- */
.ftr {
  margin-top: clamp(14px, 3vh, 26px);
  padding-top: clamp(8px, 1.5vh, 14px);
  border-top: 1px solid var(--rule);
  font: 400 11px var(--font-mono);
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .card { padding-block: 16px; }
  .hdr { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 14px; }
  .hdr .meta { text-align: left; }
  .hdr .name { font-size: clamp(24px, 9vw, 30px); line-height: 1.05; }
  .prompt { margin-top: 6px; font-size: 13px; }
  .intro { font-size: clamp(11.5px, 3vw, 13px); line-height: 1.35; margin-top: 6px; }
  .section { grid-template-columns: 1fr; margin-top: 10px; padding-top: 8px; }
  .focus-list { grid-template-columns: 1fr; gap: 5px; }
  .focus-item { font-size: 12.5px; line-height: 1.4; }
  .ftr { flex-direction: column; gap: 3px; margin-top: 10px; padding-top: 6px; }
}

@media (max-height: 720px) {
  .hdr .name { font-size: clamp(30px, 4vw, 46px); }
  .intro { font-size: clamp(13px, 0.7vw + 10px, 16px); line-height: 1.4; }
  .section { margin-top: clamp(14px, 2.6vh, 28px); padding-top: clamp(10px, 1.4vh, 16px); }
}
