/*
  Shared presentation for the placeholder homepage and printable resume.
*/
:root {
  color-scheme: light;
  --navy: #163a5f;
  --slate: #526778;
  --line: #cbd6df;
  --paper: #ffffff;
  --background: #edf2f6;
  --text: #202830;
}

* { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; color: var(--text); }
body { margin: 0; line-height: 1.55; }
a { color: #175d8d; text-underline-offset: .15em; }
a:hover { color: var(--navy); }

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(145deg, #102d49, #1d5276);
}
.home-card {
  width: min(100%, 40rem);
  padding: clamp(2rem, 7vw, 4.5rem);
  background: var(--paper);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem #071a2c66;
  text-align: center;
}
.home h1 { margin: .2rem 0 .6rem; color: var(--navy); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.1; }
.eyebrow { margin: 0; color: #52758e; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.home-title { color: var(--slate); font-size: 1.15rem; line-height: 1.45; }
.button {
  display: inline-block;
  margin: 1rem 0;
  padding: .75rem 1.25rem;
  color: white;
  background: var(--navy);
  border-radius: .35rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { color: white; background: #24567c; }
.home-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }

.resume-page { background: var(--background); padding: 2rem 1rem; }
.resume {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--paper);
  box-shadow: 0 .25rem 1.5rem #163a5f18;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .5rem; background: white; z-index: 1; }
.resume-header { text-align: center; border-bottom: 3px solid var(--navy); padding-bottom: 1.4rem; }
.resume-header h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.subtitle { margin: .5rem 0; color: var(--slate); font-weight: 700; letter-spacing: .035em; }
.contact { margin: .35rem 0; }
.contact span { white-space: nowrap; }
.contact .separator { color: #8a9aa7; padding: 0 .45rem; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.actions a { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .3rem; text-decoration: none; font-size: .9rem; }
.resume-section { margin-top: 2rem; }
.resume-section > h2 { margin: 0 0 1rem; padding-bottom: .35rem; border-bottom: 1px solid #8da5b6; color: var(--navy); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.summary { margin: 0; font-size: 1.02rem; }
.skills { margin: 0; }
.skills p { margin: .45rem 0; }
.skills strong { color: var(--navy); }
.job { margin: 0 0 1.65rem; }
.job h3 { margin: 0; color: var(--navy); font-size: 1.04rem; line-height: 1.35; }
.meta { margin: .15rem 0 .6rem; color: #5c6c78; font-size: .9rem; font-style: italic; }
.job ul { margin: .5rem 0; padding-left: 1.3rem; }
.job li { margin: .35rem 0; padding-left: .15rem; }
.tech { margin: .55rem 0 0; font-size: .9rem; }
.tech strong { color: var(--navy); }
.legacy { margin: 0 0 1rem; }
.legacy h3 { display: inline; margin: 0; color: var(--navy); font-size: .96rem; }
.legacy .meta { display: inline; font-size: .86rem; }
.legacy p:last-child { margin: .2rem 0 0; font-size: .92rem; }
.education { margin-bottom: 1rem; }
.education p:last-child { margin-bottom: 0; }
.resume-footer { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--slate); font-size: .85rem; }

@media (max-width: 40rem) {
  .resume-page { padding: 0; }
  .resume { padding: 1.25rem; }
  .contact span { white-space: normal; }
  .contact .separator { padding: 0 .2rem; }
  .resume-section { margin-top: 1.5rem; }
}

@media print {
  @page { size: Letter; margin: .5in .55in; }
  html, body, .resume-page { background: white; }
  html { font-size: 9.2pt; line-height: 1.3; }
  .resume-page { padding: 0; }
  .resume { max-width: none; padding: 0; box-shadow: none; }
  .no-print, .skip-link, .resume-footer { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .resume-header { padding-bottom: .55rem; border-bottom-width: 2px; }
  .resume-header h1 { font-size: 20pt; }
  .subtitle { margin: .2rem 0; font-size: 9.5pt; }
  .contact { margin: .1rem 0; font-size: 8.5pt; }
  .resume-section { margin-top: .8rem; }
  .resume-section > h2 { margin-bottom: .45rem; padding-bottom: .15rem; font-size: 11pt; }
  .summary { font-size: 9.2pt; }
  .skills p { margin: .2rem 0; }
  .job { margin-bottom: .7rem; }
  .job h3 { font-size: 10pt; }
  .meta { margin: .05rem 0 .25rem; font-size: 8.4pt; }
  .job ul { margin: .2rem 0; }
  .job li { margin: .18rem 0; }
  .tech { margin-top: .25rem; font-size: 8.4pt; }
  .legacy { margin-bottom: .4rem; break-inside: avoid; }
  .legacy h3 { font-size: 8.8pt; }
  .legacy .meta, .legacy p:last-child { font-size: 8.3pt; }
  .education { break-inside: avoid; margin-bottom: .5rem; }
  h2, h3 { break-after: avoid; }
}
