/* ==========================================================================
   CV page — /cv
   Extends site.css; adds nothing to the palette. Same art deco language as
   the portfolio: brass rules, diamond marks, Limelight display.
   --------------------------------------------------------------------------
   SCREEN: every entry is a two-column record — date rail left, content right —
   collapsing to a stack below 720px.
   PRINT:  the deco skin comes off entirely and the page rebuilds itself as a
   conventional document matching the source Word CV — Calibri, its exact
   type sizes and page margins, dates right-aligned on the title line.
   ========================================================================== */

/* Two text colours need their own tokens here, because the CV uses them at
   small sizes where the site's decorative values fail AA:
     --brass-text  brass is 3.2:1 on paper — fine for rules, not for 11px dates
     --teal-text   teal is 2.2:1 on the night palette — invisible in dark mode
   Both fall back to the decorative value in whichever mode already passes. */
.cv{
  --brass-text: #6F5314;
  --teal-text:  var(--teal);
  padding-top: 96px;
  padding-bottom: clamp(40px, 7vh, 80px);
}
:root[data-theme="dark"] .cv{
  --brass-text: var(--brass);
  --teal-text:  #52B0BC;
}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .cv{
    --brass-text: var(--brass);
    --teal-text:  #52B0BC;
  }
}

/* ── Masthead ────────────────────────────────────────────────────────── */

.cv__head{ padding-bottom: clamp(20px, 3vh, 30px); }

.cv__name{
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 6.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0.045em 0.045em 0 rgba(201,155,63,.55);
}
.cv__name span{ display: inline-block; }

.cv__contact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--dim);
}
/* brass diamond between items, deco-style */
.cv__contact li + li::before{
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 14px;
  background: var(--brass);
  transform: rotate(45deg);
  vertical-align: middle;
}
.cv__contact a{
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.cv__contact a:hover{ color: var(--teal-text); border-color: var(--brass); }

.cv__head .scale{ margin-top: clamp(22px, 3.5vh, 32px); }

.cv__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 24px;
}
.cv__actions .link{ cursor: pointer; font-family: inherit; }

/* Secondary action — quiet text button beside the download. */
.cv__print{
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--dim);
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.cv__print:hover{ color: var(--ink); border-color: var(--brass); }

/* ── Sections ────────────────────────────────────────────────────────── */

.cv__section{ padding-block: clamp(32px, 5vh, 52px); }

.cv__h2{
  margin-bottom: clamp(22px, 3.5vh, 32px);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
}

.cv__intro{
  max-width: 68ch;
  margin-bottom: clamp(24px, 4vh, 36px);
  font-size: 16px;
  color: var(--dim);
}

/* ── Entry: the repeating record ─────────────────────────────────────── */
/* The head wrapper exists for print, where title and date share a line.
   On screen it dissolves (display:contents) so title and date become direct
   grid children and the date rail is preserved. */

.entry{
  display: grid;
  gap: 6px 26px;
  padding-block: clamp(16px, 2.4vh, 22px);
  border-top: 1px solid var(--rule);
}
.entry:first-of-type{ border-top: 2px solid var(--brass); }
.entry__head{ display: contents; }

@media (min-width: 720px){
  .entry{ grid-template-columns: 148px minmax(0, 1fr); }
  .entry__when { grid-column: 1; grid-row: 1; }
  .entry__title{ grid-column: 2; grid-row: 1; }
  .entry__body { grid-column: 2; }
}

.entry__when{
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-text);
  padding-top: 4px;
  white-space: nowrap;
}
/* App names sit in the date rail but read as titles, not dates. */
.entry--app .entry__when{
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--teal-text);
}

.entry__title{
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.entry__meta{
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.entry__lede{
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink);
  max-width: 64ch;
}
.entry__lede strong{ color: var(--teal-text); font-weight: 700; }

.entry__list{
  margin-top: 10px;
  display: grid;
  gap: 7px;
  max-width: 68ch;
}
.entry__list li{
  position: relative;
  padding-left: 17px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dim);
}
/* deco diamond bullet */
.entry__list li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  background: var(--brass);
  transform: rotate(45deg);
}
.entry__list b{ color: var(--ink); font-weight: 700; }

/* ── Skills — reuses .facts from site.css, wider label column ────────── */

.cv__facts > div{ grid-template-columns: 118px minmax(0, 1fr); }
.cv__facts dd{ font-weight: 400; line-height: 1.6; }

/* ── Achievements ────────────────────────────────────────────────────── */

.awards{
  display: grid;
  gap: 0;
  border-top: 2px solid var(--brass);
}
.awards li{
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--dim);
}
.awards__when{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brass-text);
  padding-top: 2px;
}
.awards b{ color: var(--ink); font-weight: 700; }

/* ==========================================================================
   PRINT — rebuilds the page as the Word CV
   --------------------------------------------------------------------------
   Values lifted from CV_Efe_Cavusoglu_International.docx:
     page margins  720 twips top/bottom, 900 left/right  = 12.7mm / 15.9mm
     name          w:sz 32  = 16pt
     section head  w:sz 22  = 11pt
     entry title   w:sz 20  = 10pt
     body/bullets  w:sz 19  = 9.5pt
     contact line  w:sz 18  = 9pt
   assets/Efe-Cavusoglu-CV.pdf is generated FROM these rules, so edits to the
   CV must be followed by a regenerate (serve the site locally first):

     "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
       --headless=new --disable-gpu --no-pdf-header-footer \
       --user-data-dir="$(mktemp -d)" --virtual-time-budget=8000 \
       --print-to-pdf="assets/Efe-Cavusoglu-CV.pdf" \
       http://localhost:4331/cv/
   ========================================================================== */

@media print{
  /* Side margins come from padding on <body>, NOT from @page.
     @page margins are overridden whenever the print dialog's Margins is set
     to "None" (and some browsers ignore them outright), which is how this
     ended up printing edge-to-edge. Padding is part of the box, so it holds
     on every page under every dialog setting. @page keeps the vertical
     margins because padding-block only applies to the first and last page. */
  @page{ margin: 10mm 0; }

  /* Monochrome — a CV that photocopies and ATS-parses cleanly. */
  :root,
  :root[data-theme="dark"],
  :root[data-theme="light"]{
    --paper:   #FFFFFF;
    --paper-2: #FFFFFF;
    --ink:     #000000;
    --dim:     #1A1A1A;
    --rule:    #9A9A9A;
    --brass:   #000000;
    --gold:    #000000;
    --teal:    #000000;
    --red:     #000000;
  }
  .cv{ --brass-text: #000000; --teal-text: #000000; }

  html{ background: #fff; }
  body{
    background: #fff;
    color: #000;
    /* Word's default. Falls back to the nearest humanist sans if absent. */
    font-family: Calibri, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 9.5pt;
    line-height: 1.32;
    /* The real margins. 4mm top/bottom stacks with @page's 10mm on the first
       and last page, and is the only vertical guard if @page is overridden. */
    padding: 4mm 16mm;
    margin: 0;
  }

  /* Web-only chrome */
  .topbar,
  .theme-toggle,
  .cv__actions,
  .skip,
  .rail,
  .divider,
  .footer,
  .cv__contact li + li::before,
  .entry__list li::before{ display: none !important; }

  .shell{ max-width: none; padding-inline: 0; }
  .cv{ padding: 5mm 0 0; }

  /* ── Masthead ──────────────────────────────────────────────────── */
  .cv__head{ padding-bottom: 0; text-align: center; }
  .cv__head .eyebrow,
  .cv__head .scale{ display: none; }

  .cv__name{
    margin: 0;
    font-family: inherit;
    font-size: 16pt;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: none;
    text-shadow: none;
    color: #000;
  }
  .cv__contact{
    justify-content: center;
    gap: 0;
    margin-top: 3pt;
    font-size: 9pt;
    color: #000;
  }
  /* Word separates the contact items with spaced middots. */
  .cv__contact li + li::after{ content: none; }
  .cv__contact li:not(:last-child)::after{
    content: "  ·  ";
    white-space: pre;
  }
  .cv__contact a{ border-bottom: 0; color: #000; text-decoration: none; }

  /* ── Section headings — caps with a rule, as in the document ────── */
  .cv__section{ padding-block: 0; }
  .cv__h2{
    margin: 11pt 0 4pt;
    font-family: inherit;
    font-size: 11pt;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #000;
    border-bottom: .75pt solid #000;
    padding-bottom: 1.5pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .cv__intro{
    max-width: none;
    margin: 4pt 0 2pt;
    font-size: 9.5pt;
    color: #000;
  }

  /* ── Entries — title left, date right on one line (Word tab stop) ─ */
  .entry{
    display: block;
    padding-block: 4.5pt 0;
    border-top: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .entry:first-of-type{ border-top: 0; }

  .entry__head{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10pt;
  }
  .entry__title{
    font-size: 10pt;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
  }
  .entry__when{
    padding-top: 0;
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #000;
    white-space: nowrap;
    flex: none;
  }
  /* App records have no date — the name belongs in front of the description,
     as one bold line: "Figdex — LEGO collection tracker". */
  .entry--app .entry__head{ justify-content: flex-start; gap: 0; }
  .entry--app .entry__when{
    order: -1;
    font-family: inherit;
    font-size: 10pt;
  }
  .entry--app .entry__when::after{ content: " — "; white-space: pre; }

  .entry__meta{
    margin-top: 0;
    font-size: 9pt;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    color: #000;
  }
  .entry__lede{
    margin-top: 1.5pt;
    max-width: none;
    font-size: 9.5pt;
    color: #000;
  }
  .entry__lede strong{ color: #000; }

  /* Real bullets rather than the deco diamonds. */
  .entry__list{
    display: block;
    margin: 2pt 0 0;
    padding-left: 13pt;
    max-width: none;
    list-style: disc outside;
  }
  .entry__list li{
    display: list-item;
    position: static;
    padding-left: 0;
    margin-bottom: 1.5pt;
    font-size: 9.5pt;
    line-height: 1.32;
    color: #000;
  }
  .entry__list b{ color: #000; }

  /* ── Skills ────────────────────────────────────────────────────── */
  .cv__facts{ border-top: 0; }
  .cv__facts > div{
    display: block;
    padding: 2pt 0;
    border-bottom: 0;
    break-inside: avoid;
  }
  .cv__facts dt{
    display: inline;
    font-size: 9.5pt;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #000;
    padding: 0;
  }
  .cv__facts dt::after{ content: ": "; }
  .cv__facts dd{ display: inline; font-size: 9.5pt; line-height: 1.32; color: #000; }
  .facts__of{ color: #000; }

  /* ── Achievements ──────────────────────────────────────────────── */
  .awards{ display: block; border-top: 0; }
  .awards li{
    display: block;
    padding: 1pt 0;
    border-bottom: 0;
    font-size: 9.5pt;
    color: #000;
    break-inside: avoid;
  }
  .awards__when{
    display: inline;
    font-size: 9.5pt;
    font-weight: 400;
    letter-spacing: 0;
    color: #000;
    padding: 0;
  }
  .awards__when::after{ content: "  "; white-space: pre; }
  .awards b{ color: #000; }

  a{ color: #000; word-break: break-word; }
}
