/* Resume page: same design system as the home page, quieter layout. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --teal: #054B4B;
  --teal-hover: #043C3C;
  --text: #253A36;
  --text-muted: #52635E;
  --post-it: #F7DD68;
  --manila: #E8D6B1;
  --manila-soft: #F1E7D4;
  --rule: #C4CECA;
  --control-border: #738A83;
  --font-main: "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --radius-button: 999px;
  --radius-paper: .875rem;
  --shadow-paper: 0 8px 22px rgb(37 58 54 / .10), 0 1px 3px rgb(37 58 54 / .12);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--paper); color: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: .2em; }
h1, h2, h3, h4 { color: var(--teal); letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.15; }
h3 { font-weight: 700; }
:where(a, button):focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.1rem;
  border: 1px solid var(--teal); border-radius: var(--radius-button);
  font: 700 .95rem/1.3 var(--font-main);
  text-decoration: none; background: var(--teal); color: #fff;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.btn-secondary { background: transparent; color: var(--teal); }
.btn-on-teal { border-color: #fff; color: #fff; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
  .btn-secondary:hover { background: var(--teal); color: #fff; }
  .btn-on-teal:hover { background: #fff; color: var(--teal); border-color: #fff; }
}

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter);
  background: rgb(250 250 247 / .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.wordmark { color: var(--teal); font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { font: 600 .95rem/1.3 var(--font-main); color: var(--text); text-decoration: none; }
.nav-link:hover { color: var(--teal); }

.page { max-width: 1080px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5.5rem); }

.intro h1 { margin: 0; }
.headline { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--text); margin-top: .35rem; }
.headline-sub { font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 600; color: var(--text); margin-top: .15rem; }
.contact { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 1.1rem 0 1.5rem; font-size: .95rem; color: var(--text-muted); }
.contact li + li::before { content: "·"; margin: 0 12px; color: var(--rule); }
.contact a { color: var(--teal); }
.summary { max-width: 760px; }
.summary p { margin-bottom: .7em; }
.open-to {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: baseline;
  margin-top: 1.1rem; padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-paper); max-width: 760px;
}
.open-label { font-weight: 700; color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--rule); }
h2 { margin-bottom: 1.25rem; }

.role { position: relative; padding: 0 0 1.6rem 1.5rem; border-left: 1px solid var(--rule); margin-left: 5px; }
.role::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); }
.role:last-child { padding-bottom: 0; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.role-head h3, .role-head h4 { flex: 1 1 auto; min-width: 0; }
.role h3 { font-size: 1.2rem; }
.role h4 { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: 0; }
.dates { font-size: .88rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.org { font-size: .92rem; color: var(--text-muted); margin: 2px 0 10px; }
.role ul { padding-left: 18px; }
.role li { font-size: .96rem; margin-bottom: 6px; color: var(--text); }
.role li::marker { color: var(--teal); }
.subrole { margin-top: 12px; }
.subrole .role-head { margin-bottom: 6px; }
.role-earlier p { font-size: .94rem; color: var(--text-muted); margin-top: 6px; }

.side section + section { margin-top: 2.15rem; }
.side h3 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.skill-group { margin-bottom: 1rem; }
.skill-group p, .edu p { font-size: .92rem; color: var(--text-muted); }
.edu { margin-bottom: 1.1rem; }
.edu h3 { font-size: 1.05rem; }
.edu .org { margin: 0 0 4px; }
.plain { list-style: none; }
.plain li { font-size: .92rem; color: var(--text-muted); padding: 9px 0; border-top: 1px solid var(--rule); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain strong { color: var(--text); font-weight: 700; }

.cta { margin-top: clamp(3rem, 6vw, 5rem); background: var(--teal); color: var(--paper); border-radius: var(--radius-paper); padding: clamp(1.6rem, 4vw, 3rem); }
.cta h2 { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.15rem; }
.cta p { color: #E4EDEB; }
.footer { text-align: center; padding: 1.6rem var(--gutter) 2.4rem; font-size: .9rem; color: var(--text-muted); }
.footer a { color: var(--teal); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-link { display: none; }
  .open-to { grid-template-columns: 1fr; gap: 4px; }
  .role { padding-left: 20px; }
  .role-head { flex-wrap: wrap; gap: 2px 12px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@page { size: Letter; margin: 0.5in 0.55in; }
@media print {
  body { background: #fff; font-size: 9.4pt; line-height: 1.42; color: #111; }
  .nav, .no-print { display: none !important; }
  .page { max-width: none; padding: 0; }
  .intro h1 { font-size: 26pt; }
  .headline { font-size: 13pt; margin-top: 2px; }
  .headline-sub { font-size: 11.5pt; margin-top: 1px; }
  .contact { font-size: 9pt; margin: 8px 0 10px; }
  .contact a { text-decoration: none; }
  .contact a[href*="tiffanyfernandez.com"]::after { content: "  (book a call)"; color: var(--text-muted); }
  .summary, .open-to { max-width: none; }
  .summary p { font-size: 9.8pt; margin-bottom: 4px; }
  .open-to { margin-top: 8px; padding: 7px 12px; border-radius: 6px; background: #F6F8F7; }
  .open-to p:last-child { font-size: 9.2pt; }
  .grid { grid-template-columns: minmax(0, 1fr) 2.15in; gap: 0.3in; margin-top: 14px; padding-top: 14px; }
  h2 { font-size: 13pt; margin-bottom: 10px; }
  .role { padding: 0 0 11px 16px; }
  .role::before { top: 5px; width: 9px; height: 9px; left: -5px; }
  .role h3 { font-size: 11.5pt; }
  .role h4 { font-size: 9.6pt; color: #111; }
  .dates { font-size: 8.6pt; }
  .org { font-size: 8.8pt; margin: 0 0 4px; }
  .role li { font-size: 9.1pt; margin-bottom: 2.5px; }
  .subrole { margin-top: 6px; }
  .role-earlier p { font-size: 8.8pt; }
  .side section + section { margin-top: 16px; }
  .side h3 { font-size: 8.8pt; }
  .skill-group { margin-bottom: 8px; }
  .skill-group p, .edu p, .plain li { font-size: 8.4pt; }
  .edu { margin-bottom: 9px; }
  .edu h3 { font-size: 10.5pt; }
  .plain li { padding: 5px 0; }
  .role, .subrole, .skill-group, .edu, .plain li, .side section { break-inside: avoid; }
  a { text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
