/* Westin Waldburger — résumé site. Mobile-first, editorial, dependency-free. */

:root {
    --paper: #fafaf8;
    --paper-warm: #f4f1ea;
    --ink: #1c1917;
    --ink-soft: #44403c;
    --ink-muted: #78716c;
    --accent: #0f766e;
    --accent-deep: #115e59;
    --accent-soft: #e6f4f2;
    --line: #e7e2d8;
    --card: #ffffff;
    --radius: 14px;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 250, 248, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(28, 25, 23, .05); }
.nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 12px 22px;
    display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px; flex: none;
    background: var(--accent); color: var(--paper);
    font-family: var(--serif); font-size: 19px; font-weight: 600;
    display: grid; place-items: center;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a {
    text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500;
    padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { background: var(--paper-warm); color: var(--ink); }
.nav .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 13px 22px; border-radius: 12px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(15, 118, 110, .28); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 26px rgba(15, 118, 110, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); background: var(--card); }
.btn-small { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; background: var(--ink); color: var(--paper); min-height: 44px; }
.btn-small:hover { background: #000; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(720px 380px at 12% -60px, rgba(15, 118, 110, .10), transparent 65%),
        radial-gradient(560px 340px at 92% 30%, rgba(180, 120, 40, .08), transparent 60%),
        var(--paper);
}
.eyebrow {
    text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700;
    color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(46px, 13vw, 96px);
    line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 10px;
}
.hero .role { font-size: 21px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    border-top: 1px solid var(--line); padding-top: 22px;
}
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { font-size: 14.5px; font-weight: 600; }
@media (max-width: 380px) { .facts dt { font-size: 11px; letter-spacing: .08em; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label {
    text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700;
    color: var(--accent); margin-bottom: 28px;
}

/* ---------- Experience ---------- */
.job {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; margin-bottom: 22px;
    box-shadow: 0 2px 14px rgba(28, 25, 23, .04);
}
.job h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.job-meta { color: var(--ink-muted); font-size: 14px; margin-top: 4px; margin-bottom: 6px; }
.role-block { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.role-block:first-of-type { border-top: none; margin-top: 14px; padding-top: 0; }
.role-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.role-head h4 { font-size: 16.5px; font-weight: 700; }
.tenure {
    font-size: 12.5px; font-weight: 600; color: var(--accent-deep);
    background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.role-block ul { list-style: none; }
.role-block li {
    position: relative; padding-left: 20px; margin-bottom: 10px;
    font-size: 15px; color: var(--ink-soft);
}
.role-block li::before {
    content: ""; position: absolute; left: 2px; top: .62em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .75;
}

/* ---------- Skills ---------- */
.skill-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
.skill-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; box-shadow: 0 2px 14px rgba(28, 25, 23, .04);
}
.skill-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin-bottom: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
    font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
    background: var(--paper); border: 1px solid var(--line);
    padding: 6px 12px; border-radius: 999px;
}

/* ---------- Education ---------- */
.edu {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: 0 2px 14px rgba(28, 25, 23, .04);
}
.edu h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact h2 { font-family: var(--serif); font-size: clamp(34px, 8vw, 54px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.contact-lede { color: var(--ink-soft); font-size: 17px; max-width: 32em; margin-bottom: 26px; }
.contact-alt { margin-top: 22px; color: var(--ink-muted); font-size: 14.5px; }
.contact-alt a { color: var(--accent-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.contact-alt a:hover { border-bottom-color: var(--accent-deep); }
.contact-alt span { margin: 0 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 26px 0 34px; }
footer p { color: var(--ink-muted); font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Print: the site doubles as a printable résumé ---------- */
@media print {
    .nav, .hero-cta, footer, .contact { display: none; }
    .hero { padding: 0 0 20px; }
    .section { padding: 24px 0; }
    .reveal { opacity: 1; transform: none; }
    body { background: #fff; }
}
