/* ── resume.sfas.dev · ink on paper ──────────────────────────── */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --ink: #21201c;
  --ink-soft: #5c574c;
  --rule: #d9d0bd;
  --accent: #a03d2d;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a16;
    --paper-deep: #232019;
    --ink: #eae4d6;
    --ink-soft: #9a927f;
    --rule: #3a352a;
    --accent: #e0705a;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  background-image: radial-gradient(ellipse 80% 40% at 50% 0%, var(--paper-deep), transparent 70%);
}

::selection { background: var(--accent); color: var(--paper); }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
a:hover { border-bottom-color: var(--accent); }

.sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 32px 64px;
  animation: rise .7s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── print button ── */
.print-btn {
  position: fixed; top: 20px; right: 20px; z-index: 10;
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--paper); background: var(--ink);
  border: none; border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform .2s, background .2s;
}
.print-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ── masthead ── */
.masthead { text-align: center; padding-bottom: 36px; border-bottom: 3px double var(--rule); }
.masthead-kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
}
.masthead h1 {
  font-size: clamp(40px, 7.5vw, 62px);
  font-weight: 500; line-height: 1.05; letter-spacing: -.01em;
}
.masthead h1 em { font-style: italic; font-weight: 380; color: var(--accent); }
.masthead-role {
  margin-top: 12px; font-size: 17px; font-style: italic; color: var(--ink-soft);
}
.contact-row {
  list-style: none; margin-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 0; font-size: 14.5px;
}
.contact-row li { display: flex; align-items: center; }
.contact-row li + li::before { content: "·"; margin: 0 12px; color: var(--rule); }

/* ── summary ── */
.summary {
  padding: 30px 0;
  font-size: 19px; line-height: 1.65;
  text-align: center;
}
.summary p { max-width: 58ch; margin: 0 auto; }
.summary strong { font-weight: 600; color: var(--accent); }

/* ── sections ── */
section { margin-top: 26px; }
h2 {
  font-size: 13px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ── entries ── */
.entry { margin-bottom: 24px; break-inside: avoid; }
.entry-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.entry h3 { font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
.entry-role { font-weight: 380; font-style: italic; font-size: 17px; color: var(--ink-soft); }
.entry-dates {
  font-size: 13px; letter-spacing: .08em; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.entry ul { list-style: none; margin-top: 8px; }
.entry li {
  position: relative; padding-left: 20px; margin-bottom: 5px;
  font-size: 15.5px; color: var(--ink);
}
.entry li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
}
.edu-degree { font-size: 15.5px; margin-top: 6px; font-style: italic; }

/* ── two column block ── */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

.skills { display: flex; flex-direction: column; gap: 10px; }
.skills div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.skills dt {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.skills dd { font-size: 15px; }

/* ── colophon ── */
.colophon {
  margin-top: 52px; padding-top: 20px;
  border-top: 3px double var(--rule);
  text-align: center; font-size: 13px; font-style: italic; color: var(--ink-soft);
}

/* ── responsive ── */
@media (max-width: 620px) {
  .sheet { padding: 76px 20px 48px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .entry-head { flex-direction: column; gap: 2px; }
  .summary { font-size: 17px; text-align: left; }
  .masthead { text-align: left; }
  .contact-row { justify-content: flex-start; }
  .print-btn { top: auto; bottom: 16px; right: 16px; }
}

/* ── print: one clean paper page ── */
@media print {
  @page { margin: 12mm 14mm; }
  :root {
    --paper: #fff; --paper-deep: #fff;
    --ink: #000; --ink-soft: #444;
    --rule: #bbb; --accent: #7a2417;
  }
  body { background: #fff; font-size: 10pt; line-height: 1.42; }
  .sheet { max-width: none; padding: 0; animation: none; }
  .print-btn, .colophon { display: none; }
  a { color: var(--ink); border: none; }
  .masthead { padding-bottom: 10pt; }
  .masthead-kicker { margin-bottom: 6pt; }
  .masthead h1 { font-size: 24pt; }
  .masthead-role { margin-top: 3pt; font-size: 11pt; }
  .contact-row { margin-top: 6pt; font-size: 9pt; }
  .summary { padding: 8pt 0; font-size: 10.5pt; }
  section { margin-top: 8pt; }
  h2 { margin-bottom: 6pt; font-size: 8.5pt; }
  .entry { margin-bottom: 8pt; }
  .entry h3 { font-size: 11.5pt; }
  .entry-role { font-size: 10pt; }
  .entry li { font-size: 9.5pt; margin-bottom: 2pt; padding-left: 12pt; }
  .two-col { gap: 18pt; }
  .skills dd, .edu-degree { font-size: 9.5pt; }
}
