/* resume.randallmills.com — screen + print. No dependencies. */

:root {
  --bg: #fbfaf7; --text: #23201c; --muted: #6b655c;
  --rule: #ddd8cf; --accent: #a8600f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#161513; --text:#e8e4dc; --muted:#a09990; --rule:#322f2a; --accent:#e8a54c; }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.cv-head { border-bottom: 2px solid var(--text); padding-bottom: 1.25rem; margin-bottom: .5rem; }
h1 { font-family: var(--sans); font-size: 1.9rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .35rem; }
.contact { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin: 0 0 1rem; }
.contact a { color: var(--accent); }
.summary { margin: 0; font-size: 1.02rem; }

h2 {
  font-family: var(--sans); font-size: .74rem; font-weight: 650;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  margin: 2.25rem 0 .25rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule);
}

.job { margin: 1.4rem 0 0; break-inside: avoid; }
.jh { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; }
.jh h3 { font-family: var(--sans); font-size: 1rem; font-weight: 640; margin: 0; }
.when { font-family: var(--sans); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.where { font-size: .92rem; color: var(--muted); margin: .1rem 0 .45rem; font-style: italic; }

ul { margin: .4rem 0 0; padding-left: 1.15rem; }
li { margin-bottom: .3rem; }
ul.skills { margin-top: .8rem; }
ul.skills li { margin-bottom: .45rem; }

a { color: var(--accent); text-underline-offset: 2px; }
.foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule);
        font-family: var(--sans); font-size: .82rem; color: var(--muted); }

@media (max-width: 34rem) {
  main { padding: 2rem 1.1rem 3rem; }
  .when { white-space: normal; }
}

/* ---- print: clean single document, no dark mode, no URLs bleeding in ---- */
@media print {
  :root { --bg:#fff; --text:#000; --muted:#444; --rule:#bbb; --accent:#000; }
  body { font-size: 10.5pt; line-height: 1.4; background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  h2 { margin-top: 1.1rem; }
  .job { margin-top: .85rem; }
  .foot { display: none; }
  a { text-decoration: none; }
  @page { margin: 1.5cm; }
}
