/* =========================================================
   Resume — light theme, Letter, print-first.
   Export with the browser: Ctrl+P -> Save as PDF, margins "None",
   background graphics ON, scale 100%.
   ========================================================= */
:root {
  --ink:      #14181d;
  --ink-dim:  #3d454f;
  --ink-mute: #6a7481;
  --rule:     #c9d0d9;
  --brand:    #16466f;
  --paper:    #ffffff;
  --warn-bg:  #fff3cd;
  --warn-ink: #7a5b00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #6b7280;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 10pt;
  line-height: 1.35;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ---------- screen-only toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; align-items: center; gap: .8rem;
  padding: .8rem; background: #0b0f14; color: #e6edf5;
  font-size: .85rem;
}
.toolbar button, .toolbar a {
  font: inherit; font-weight: 600;
  padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid #2a3543;
  background: #4ea1ff; color: #04121f; cursor: pointer; text-decoration: none;
}
.toolbar a { background: transparent; color: #e6edf5; }

/* ---------- the page ---------- */
.page {
  width: min(calc(100% - 2rem), 8.5in); min-height: 11in;
  margin: 1.5rem auto; padding: 0.4in 0.55in;
  background: var(--paper);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* ---------- header ---------- */
.r-head { border-bottom: 2px solid var(--brand); padding-bottom: .4rem; margin-bottom: .75rem; }
.r-name { font-size: 23pt; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--brand); }
.r-role { font-size: 10.5pt; color: var(--ink-dim); font-weight: 500; margin: .1rem 0 .3rem; }
.r-contact { display: flex; flex-wrap: wrap; gap: .3rem .75rem; font-size: 9.2pt; color: var(--ink-dim); }
.r-contact span::after { content: ''; }

/* ---------- sections ---------- */
.r-sec { margin-bottom: .62rem; }
.r-sec > h2 {
  font-size: 9.7pt; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand); margin: 0 0 .28rem;
  border-bottom: 1px solid var(--rule); padding-bottom: .12rem;
}

.r-entry { margin-bottom: .46rem; break-inside: avoid; }
.r-entry:last-child { margin-bottom: 0; }
.r-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.r-title { font-size: 10.5pt; font-weight: 700; margin: 0; }
.r-sub { font-size: 9.8pt; color: var(--ink-dim); font-style: italic; margin: 0; }
.r-when { font-size: 9.1pt; color: var(--ink-mute); white-space: nowrap; font-weight: 500; }

.r-entry ul { margin: .16rem 0 0; padding-left: 1.05rem; }
.r-entry li { margin-bottom: .1rem; }
.r-title, .r-sub, .r-when, .r-contact span { overflow-wrap: anywhere; }

.r-skills { display: grid; gap: .1rem; }
.r-skills div { font-size: 9.4pt; }
.r-skills b { color: var(--ink); }

.r-tools { font-size: 9.4pt; color: var(--ink-mute); margin: .15rem 0 0; }

/* ---------- filler flags (screen only) ---------- */
.filler {
  background: var(--warn-bg); color: var(--warn-ink);
  border-left: 3px solid #e0a800; padding: 0 .3rem; border-radius: 3px;
}
.filler::before {
  content: 'TODO '; font-weight: 700; font-size: 7.5pt; letter-spacing: .06em;
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; font-size: 10pt; line-height: 1.28; }
  .toolbar { display: none; }
  .page { width: auto; min-height: 0; margin: 0; padding: 0.12in 0.45in; box-shadow: none; }
  .r-head { padding-bottom: .25rem; margin-bottom: .4rem; }
  .r-sec { margin-bottom: .35rem; }
  .r-entry { margin-bottom: .3rem; }
  .r-entry ul { margin-top: .08rem; }
  .r-entry li { margin-bottom: 0; }
  /* Placeholders should never land in a submitted PDF — they stay visible
     so you notice them, but printing marks them loudly. */
  .filler { background: #ffe28a !important; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 600px) {
  .toolbar { flex-wrap: wrap; justify-content: flex-start; }
  .toolbar span { flex-basis: 100%; line-height: 1.4; }
  .page { min-height: 0; margin: .75rem auto; padding: 1.1rem; }
  .r-row { display: block; }
  .r-when { display: block; white-space: normal; margin-top: .08rem; }
  .r-entry { margin-bottom: .65rem; }
  .r-entry ul { margin-top: .25rem; }
  .r-entry li { margin-bottom: .25rem; }
  .r-contact { gap: .3rem .65rem; }
}

@page { size: Letter; margin: 0.4in; }
