/*
  résumé only (/assets/site-20261025/resume.css). Loads after site.css.
  The résumé is one document on paper (article.r-doc.on-paper), then the contact form on the page ground.
  HEAD       .r-head > .r-id (h1 name, .r-title) + .r-reach-wrap (.r-focus .r-loc, address.r-reach, .r-acts)
  SECTIONS   section.r-sec > h2 (left three columns, sticky while its section scrolls) + .r-body (nine columns)
  ROLES      ol.r-roles > li.r-role[id] > h3 (role) + .r-org (company) + .r-dates + .list. The ranking is
             role, company, dates: display 25px, text 18px semibold in full ink, text 16px in the second ink.
  PROJECTS   ul.r-tools (two tools, text only) + ul.r-apps (six apps with their icons)
  PRINT      A4, black on white: header, footer, contact form, actions and motion state gone; profile URLs
             printed after their names (data-url).
*/

.r-doc { padding: clamp(32px, 4.4vw, 72px) 0 clamp(88px, 9vw, 136px); }

/* ---------- Head ---------- */
.r-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: end; }
.r-id { grid-column: 1 / span 7; }
.r-head h1 { font-size: clamp(48px, 8vw, 116px); white-space: nowrap; }
.r-title { margin: clamp(10px, 1.2vw, 18px) 0 0; font: 600 var(--t-item)/1.12 var(--display); letter-spacing: -0.02em; color: var(--ink-2); }
.r-reach-wrap { grid-column: 8 / span 5; padding-bottom: 6px; }
.r-focus { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; }
.r-loc { display: block; margin-top: 2px; font-weight: 400; font-size: 17px; color: var(--ink-2); }
.r-reach { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; font-style: normal; font-size: 16px; }
.r-reach-group { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.r-reach a { padding-block: 4px; color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-color: var(--line-2); transition: text-decoration-color 180ms ease; }
.r-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
@media (hover: hover) and (pointer: fine) {
  .r-reach a:hover { text-decoration-color: currentColor; }
}

/* ---------- Sections ---------- */
.r-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: start; padding-top: clamp(64px, 6.4vw, 104px); }
.r-head + .r-sec { padding-top: clamp(80px, 8vw, 128px); }
.r-sec > h2 { grid-column: 1 / span 3; position: sticky; top: calc(var(--head-h) + 28px); font-size: var(--t-item); line-height: 1.12; letter-spacing: -0.02em; }
.r-body { grid-column: 4 / span 9; min-width: 0; margin: 0; padding: 0; }
.r-summary { margin: 0; max-width: 56ch; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; }

.r-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px var(--gutter); }
.r-skills .r-wide { grid-column: 1 / -1; }
.r-skills dt { font-weight: 650; line-height: 1.35; }
.r-skills dd { margin: 4px 0 0; max-width: 52ch; line-height: 1.5; }

/* Roles: the role leads, the company follows in full ink, the dates sit on the right in the second ink. */
.r-roles { list-style: none; }
.r-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; max-width: 880px; }
.r-roles .r-role + .r-role { margin-top: clamp(40px, 3.8vw, 56px); }
.r-role h3 { grid-column: 1; grid-row: 1; font-size: clamp(22px, 1.75vw, 25px); line-height: 1.15; letter-spacing: -0.018em; }
.r-org { grid-column: 1; grid-row: 2; margin: 6px 0 0; font-size: 18px; line-height: 1.35; font-weight: 600; }
.r-dates { grid-column: 2; grid-row: 1; margin: 0; padding-top: 4px; font-size: 16px; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-role .list { grid-column: 1 / -1; margin-top: 16px; max-width: 70ch; font-size: 17px; line-height: 1.55; }
.r-role .list li + li { margin-top: 8px; }
.r-role strong { font-weight: 650; }
.r-edu-note { grid-column: 1 / -1; margin: 12px 0 0; max-width: 70ch; font-size: 17px; line-height: 1.55; }

/* Projects: two tools, then the six apps with their icons. */
.r-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); margin: 0; padding: 0; list-style: none; }
.r-tools + .r-apps { margin-top: clamp(40px, 4vw, 56px); }
.r-apps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.r-icon { width: 48px; height: 48px; border-radius: 11px; }
.r-projects h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; }
.r-projects h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--line-2); transition: text-decoration-color 180ms ease; }
.r-meta { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.r-projects p:not(.r-meta) { margin: 8px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .r-projects h3 a:hover { text-decoration-color: currentColor; }
}

.r-end { padding-top: clamp(72px, 7vw, 112px); }
.r-consent { max-width: 96ch; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Contact (as on the home page, on the page ground here) ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.contact-text { grid-column: 1 / span 5; }
.contact-text .lead { margin-top: 24px; }
.contact-text p + p { margin: 16px 0 0; }
.contact-text a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; }
.contact-form { grid-column: 7 / span 6; min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .r-id { grid-column: 1 / -1; }
  .r-reach-wrap { grid-column: 1 / span 9; padding: 0; }
  .r-sec > h2 { grid-column: 1 / span 4; }
  .r-body { grid-column: 5 / span 8; }
  .r-projects { grid-template-columns: minmax(0, 1fr); }
  .r-skills { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .r-sec { row-gap: 22px; }
  .r-sec > h2, .r-body { grid-column: 1 / -1; }
  .r-sec > h2 { position: static; }
  .r-projects, .r-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-text, .contact-form { grid-column: 1 / -1; }
  .contact-text .lead { max-width: 52ch; }
}
@media (max-width: 640px) {
  .r-doc { padding-top: 24px; }
  .r-head { row-gap: 26px; }
  .r-head h1 { font-size: clamp(42px, 13vw, 56px); }
  .r-title { font-size: 24px; }
  .r-reach-wrap { grid-column: 1 / -1; }
  .r-focus { font-size: 19px; }
  .r-reach { margin-top: 14px; }
  .r-acts { flex-direction: column; align-items: stretch; gap: 16px; }
  .r-acts .btn { width: 100%; }
  .r-acts .r-print { align-self: flex-start; }
  .r-sec > h2 { font-size: 26px; }
  .r-summary { font-size: 19px; }
  .r-skills, .r-projects { grid-template-columns: minmax(0, 1fr); }
  .r-skills { gap: 18px; }
  .r-role { grid-template-columns: minmax(0, 1fr); }
  .r-role h3 { font-size: 22px; }
  .r-org { font-size: 17px; }
  .r-dates { grid-column: 1; grid-row: 3; padding-top: 2px; font-size: 15.5px; }
  .r-role .list, .r-edu-note { font-size: 16.5px; }
  .r-role .list { margin-top: 14px; }
  .r-projects { gap: 26px; }
  .r-apps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .r-icon { width: 44px; height: 44px; border-radius: 10px; }
  .r-projects h3 { font-size: 20px; }
  .r-consent { font-size: 13.5px; }
}

/* ---------- Print: a clean black-on-white document ---------- */
@media print {
  @page { size: A4; margin: 13mm 14mm 14mm; }
  html, body { background: #fff !important; color: #000; font-size: 9.6pt; line-height: 1.42; }
  .foot, .contact, .r-acts { display: none !important; }
  .r-doc { --bg: #fff; --tone: #fff; --ink: #000; --ink-2: #333; --ink-3: #444; --line-2: #000; padding: 0; background: #fff; color: #000; }
  .r-doc .wrap { width: 100%; margin: 0; }
  .r-doc a, .r-doc .r-projects h3 a, .r-doc .r-reach a { color: #000; text-decoration: none; }
  .r-doc a[href^="http"]::after { content: none; }
  .r-doc .r-reach a[data-url]::after { content: ": " attr(data-url); font-size: inherit; color: #000; }

  .r-head { grid-template-columns: 1fr 1fr; gap: 8mm; align-items: end; }
  .r-id, .r-reach-wrap { grid-column: auto; padding: 0; }
  .r-head h1 { font-size: 27pt; line-height: 0.95; letter-spacing: -0.035em; }
  .r-title { margin-top: 3pt; font-size: 14pt; color: #333; }
  .r-focus { font-size: 10.5pt; }
  .r-loc { font-size: 9.5pt; color: #333; }
  .r-reach { margin-top: 5pt; gap: 1pt; font-size: 8.6pt; }
  .r-reach-group { gap: 0 10pt; }
  .r-reach a { padding: 0; }

  .r-sec, .r-head + .r-sec { grid-template-columns: 31mm minmax(0, 1fr); column-gap: 6mm; padding-top: 6mm; break-inside: auto; }
  .r-sec > h2 { grid-column: 1; position: static; font-size: 11.5pt; line-height: 1.2; letter-spacing: -0.01em; }
  .r-body { grid-column: 2; }
  .r-summary { font-size: 10.5pt; line-height: 1.45; max-width: none; }
  .r-skills { grid-template-columns: 1fr 1fr; gap: 2.4mm 6mm; }
  .r-skills dd { margin-top: 0.5pt; max-width: none; }

  .r-roles .r-role + .r-role { margin-top: 3.6mm; }
  .r-role { column-gap: 6mm; max-width: none; break-inside: avoid; }
  .r-role h3 { font-size: 11pt; line-height: 1.2; letter-spacing: -0.01em; }
  .r-org { margin-top: 0.5pt; font-size: 9.6pt; }
  .r-dates { padding-top: 1pt; font-size: 9pt; color: #000; }
  .r-role .list, .r-edu-note { margin-top: 2pt; max-width: none; font-size: 9.4pt; line-height: 1.4; }
  .r-role .list li + li { margin-top: 1.2pt; }
  .list li { padding-left: 12pt; }
  .list li::before { width: 4pt; height: 4pt; top: 0.55em; background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .r-projects { gap: 3mm 6mm; grid-template-columns: 1fr 1fr; }
  .r-tools + .r-apps { margin-top: 3mm; }
  .r-projects li { break-inside: avoid; }
  .r-apps li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 3mm; }
  .r-icon { width: 22px; height: 22px; border-radius: 5px; }
  .r-projects h3 { font-size: 10pt; }
  .r-meta { margin-top: 0; font-size: 8.4pt; color: #333; }
  .r-projects p:not(.r-meta) { margin-top: 1pt; max-width: none; font-size: 9pt; line-height: 1.38; }
  .r-end { display: block; padding-top: 6mm; }
  .r-consent { max-width: none; font-size: 7.2pt; line-height: 1.45; color: #333; }
}
