/* =========================================================
   resume.css — professional. Warm paper, ink navy, serif
   headings, generous whitespace, prints cleanly.
   ========================================================= */

:root {
  --paper: #f7f5f0;
  --sheet: #ffffff;
  --ink: #1b2230;
  --ink-2: #4a5466;
  --rule: #e3dfd5;
  --navy: #1f3a68;
  --gold: #b08d57;
  --nav-bg: rgba(247,245,240,.85);
  --nav-fg: #1b2230;
  --nav-muted: #5c6577;
  --nav-accent: #1f3a68;
  --nav-border: #e3dfd5;
  --nav-font: "Inter", system-ui, sans-serif;
  --nav-radius: 6px;
}
.world-nav__links a[aria-current="page"] { color: #fff; }
.world-nav__mark { color: #fff; font-family: "Source Serif 4", Georgia, serif; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15.5px;
}

.page { max-width: 1180px; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 2.5rem) 5rem; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding-bottom: 2.5rem; margin-bottom: 3rem;
  border-bottom: 3px double var(--rule);
}
.overline { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.masthead h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  margin: .5rem 0 .6rem;
}
.title { font-size: 1.1rem; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.badges li {
  font-size: .8rem; font-weight: 500; padding: .35rem .75rem;
  border: 1px solid var(--rule); background: var(--sheet); border-radius: 4px;
}
.badges span { color: var(--ink-2); font-weight: 400; }
.masthead__actions { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 6px; font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn--solid { background: var(--navy); color: #fff; box-shadow: 0 2px 0 #142748; }
.btn--solid:hover { background: #17305a; }
.btn--line { border: 1px solid var(--rule); background: var(--sheet); color: var(--navy); }
.btn--line:hover { border-color: var(--navy); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem;
}
.main-col h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.block + .block { margin-top: 3rem; }
.summary { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }

/* ---------- Jobs ---------- */
.job { position: relative; padding-left: 1.5rem; border-left: 2px solid var(--rule); }
.job + .job { margin-top: 2.25rem; }
.job::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--navy);
}
.job__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline; }
.job h3 { font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.when { font-size: .82rem; font-weight: 600; color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
.org { color: var(--ink-2); font-style: italic; margin: .15rem 0 .8rem; }
.org a { color: var(--navy); }
.job ul { padding-left: 1.1rem; color: var(--ink-2); }
.job li { margin-bottom: .45rem; }
.job li::marker { color: var(--gold); }
.job li strong { color: var(--ink); font-weight: 600; }

.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .9rem; line-height: 1.55; }
.more a { color: var(--navy); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* ---------- Sidebar ---------- */
.side-col { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 80px; }
@media (max-width: 960px) { .side-col { position: static; } }
.card {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.5rem; box-shadow: 0 1px 2px rgba(27,34,48,.04);
}
.card h2 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.meta { color: var(--ink-2); font-size: .88rem; }
.skills dt { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-top: .9rem; }
.skills dt:first-child { margin-top: 0; }
.skills dd { margin: .2rem 0 0; color: var(--ink-2); font-size: .9rem; }
.card--cta { background: var(--navy); color: #fff; border: 0; text-align: center; }
.card--cta p { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; margin-bottom: .9rem; }
.card--cta .btn--solid { background: #fff; color: var(--navy); box-shadow: none; }

.site-footer { border-top: 1px solid var(--rule); color: var(--ink-2); max-width: 1180px; margin: 0 auto; }

/* ---------- Print ---------- */
@media print {
  .world-nav, .masthead__actions, .card--cta, .site-footer, .more, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page { padding: 0; }
  .layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .side-col { position: static; }
  .card { border: 0; padding: 0; box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
}
