:root {
    --slate: #3D5266;
    --navy: #22303D;
    --gold: #C9A876;
    --gold-hover: #B99562;
    --gold-deep: #8a6f3f;
    --paper: #E8E2D4;
    --paper-muted-on-slate: rgba(232, 226, 212, 0.75);
    --paper-faint-on-slate: rgba(232, 226, 212, 0.6);
    --navy-muted-on-paper: rgba(34, 48, 61, 0.65);
    --navy-body-on-paper: #2c3a4a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--paper);
    background: var(--slate);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    text-wrap: pretty;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin: 0;
    text-wrap: balance;
}

a {
    color: inherit;
}

::selection {
    background: var(--gold);
    color: var(--navy);
}

img {
    max-width: 100%;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px clamp(20px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--paper);
    min-height: 44px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
}

.brand:hover .brand-name {
    color: var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--paper);
    text-decoration: none;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-sm {
    padding: 11px 20px;
    font-size: 15px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-hover);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--paper);
    color: var(--paper);
}

.btn-secondary:hover {
    background: rgba(232, 226, 212, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(232, 226, 212, 0.35);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--paper);
    display: block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 8px clamp(20px, 5vw, 48px) 20px;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(232, 226, 212, 0.12);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(232, 226, 212, 0.1);
}

.mobile-menu a:hover {
    color: var(--gold);
}

.mobile-menu .btn {
    margin-top: 12px;
    justify-content: center;
}

@media (max-width: 800px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 420px) {
    /* full name + logo + hamburger no longer fit on one nowrap line at this width;
       let the name wrap instead of forcing the hamburger button off-screen */
    .brand-name {
        white-space: normal;
        font-size: 15px;
        line-height: 1.15;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--slate);
    padding: clamp(64px, 12vw, 140px) clamp(20px, 6vw, 64px) clamp(56px, 9vw, 110px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(232, 226, 212, 0.045) 0px, rgba(232, 226, 212, 0.045) 1px, transparent 1px, transparent 64px), repeating-linear-gradient(90deg, rgba(232, 226, 212, 0.045) 0px, rgba(232, 226, 212, 0.045) 1px, transparent 1px, transparent 64px);
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-eyebrow {
    color: var(--paper);
}

.hero-title {
    font-size: clamp(40px, 7vw, 56px);
    line-height: 1.06;
    margin: 0 0 24px;
    color: var(--paper);
}

.hero-lede {
    font-weight: 500;
    font-size: clamp(19px, 2.4vw, 23px);
    line-height: 1.5;
    color: var(--paper);
    max-width: 640px;
    margin: 0 0 14px;
}

.hero-sub {
    font-size: 16px;
    color: var(--paper-muted-on-slate);
    max-width: 520px;
    margin: 0 0 40px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-rise {
    animation: rise 0.5s ease-out both;
}

.delay-1 {
    animation-delay: 0.12s;
}

.delay-2 {
    animation-delay: 0.24s;
}

.delay-3 {
    animation-delay: 0.36s;
}

.section {
    padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 64px);
}

.section--paper {
    background: var(--paper);
    color: var(--navy);
}

.section--slate {
    background: var(--slate);
    color: var(--paper);
}

.section[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease-out, transform .4s ease-out;
}

.section[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

.section--paper .eyebrow {
    color: var(--gold-deep);
}

.section--slate .eyebrow {
    color: var(--paper);
}

.section--paper h2 {
    color: var(--navy);
}

.section--slate h2 {
    color: var(--paper);
}

.section-heading {
    font-size: clamp(28px, 3.2vw, 32px);
    line-height: 1.2;
    margin: 0 0 12px;
}

.section-lede {
    font-size: 16px;
    margin: 0 0 48px;
    max-width: 60ch;
}

.section--paper .section-lede {
    color: var(--navy-muted-on-paper);
}

.section--slate .section-lede {
    color: var(--paper-muted-on-slate);
}

.about-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    align-items: start;
}

.photo {
    display: block;
    width: 100%;
    max-width: 280px;
    height: 320px;
    border-radius: 4px;
    object-fit: cover;
}

.photo-caption {
    font-size: 14px;
    color: var(--navy-muted-on-paper);
    margin: 14px 0 0;
}

.about-copy {
    max-width: 640px;
}

.about-copy p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--navy-body-on-paper);
    margin: 0 0 18px;
    max-width: 65ch;
}

.about-meta {
    font-size: 15px;
    color: var(--navy-muted-on-paper);
    margin: 0;
}

.timeline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    padding: 32px 0;
    border-bottom: 1px dashed rgba(232, 226, 212, 0.2);
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-date {
    flex: 0 0 200px;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-date span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold);
}

.timeline-content {
    flex: 1 1 320px;
    min-width: 280px;
}

.timeline-content h3 {
    font-size: clamp(20px, 2.2vw, 22px);
    margin: 0 0 6px;
    color: var(--paper);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.timeline-company {
    font-size: 15px;
    color: var(--paper-muted-on-slate);
    text-decoration: none;
}

.timeline-company[href] {
    text-decoration: underline;
}

.timeline-company[href]:hover {
    color: var(--gold);
}

.badge-current {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
}

.bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bullet-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bullet-list li::before {
    content: "—";
    color: var(--gold);
    flex-shrink: 0;
}

.bullet-list li span {
    font-size: 16px;
    line-height: 1.55;
    color: var(--paper);
    max-width: 60ch;
}

.skills-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(32px, 5vw, 56px);
}

.skill-group h3 {
    font-size: 19px;
    margin: 0 0 12px;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.skill-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.5;
    color: var(--navy-body-on-paper);
}

.skill-list li::before {
    content: "–";
    color: var(--gold-deep);
    flex-shrink: 0;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
}

.education-row h3 {
    font-size: 19px;
    margin: 0 0 4px;
    color: var(--navy);
}

.education-row p {
    margin: 0;
    font-size: 15px;
    color: var(--navy-muted-on-paper);
}

.education-date {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold-deep);
    white-space: nowrap;
}

.section--education {
    border-top: 1px dashed rgba(34, 48, 61, 0.18);
}

.contact-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap: 56px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-faint-on-slate);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--paper);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.contact-value:hover {
    color: var(--gold);
    text-decoration: underline;
}

.contact-copy {
    font-size: 16px;
    line-height: 1.6;
    color: var(--paper-muted-on-slate);
    margin: 0 0 32px;
    max-width: 50ch;
}

.footnote {
    font-size: 13px;
    color: var(--paper-faint-on-slate);
    margin: 16px 0 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    color: var(--paper-muted-on-slate);
}

.form-field input, .form-field textarea {
    min-height: 44px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid rgba(232, 226, 212, 0.4);
    border-radius: 4px;
    color: var(--paper);
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
}

.form-field input:focus, .form-field textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-color: var(--gold);
}

.form-field textarea {
    resize: vertical;
}

.site-footer {
    background: var(--navy);
    color: rgba(232, 226, 212, 0.6);
    padding: 32px clamp(20px, 6vw, 64px) 8px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(232, 226, 212, 0.6);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--gold);
}

.credit-row {
    margin-top: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(232, 226, 212, 0.12);
    text-align: center;
    position: relative;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.credit-btn {
    background: transparent;
    border: none;
    color: rgba(232, 226, 212, 0.55);
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 6px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-btn:hover {
    color: var(--gold);
}

.credit-label {
    font-size: 13px;
}

.credit-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.credit-logo {
    flex-shrink: 0;
    opacity: 0.85;
}

.credit-wordmark {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(232, 226, 212, 0.75);
}

.credit-wordmark-accent {
    color: #E8B030;
}

.credit-btn:hover .credit-wordmark {
    color: var(--paper);
}

.credit-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #182129;
    border: 1px solid rgba(232, 226, 212, 0.15);
    border-radius: 6px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    min-width: 190px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 60;
}

.credit-popover.open {
    display: flex;
}

.credit-popover a {
    color: var(--paper);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.credit-popover a:hover {
    background: rgba(232, 226, 212, 0.08);
    color: var(--gold);
}

.blog-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 60vh;
}

.blog-main .container {
    max-width: 520px;
}

body.blog-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.resume-page {
    background: var(--slate);
    min-height: 100vh;
}

.resume-toolbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.resume-back {
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.resume-back:hover {
    color: var(--gold);
}

.resume-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.resume-hint {
    font-size: 13px;
    color: var(--paper-muted-on-slate);
}

.resume-sheet-wrap {
    max-width: 900px;
    margin: 24px auto 60px;
}

.resume-sheet {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.resume-header {
    padding: 34px 44px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 3px solid var(--gold);
}

.resume-header h1 {
    font-size: 30px;
    color: var(--navy);
    margin: 0 0 6px;
}

.resume-title {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6a78;
    margin: 0;
}

.resume-contact {
    text-align: right;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--slate);
}

.resume-body {
    display: grid;
    grid-template-columns:210px 1fr;
}

.resume-sidebar {
    background: var(--paper);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.resume-main {
    padding: 24px 34px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resume-sidebar h2, .resume-main h2 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b6a78;
    margin: 0 0 12px;
}

.resume-sidebar p, .resume-main p {
    margin: 0;
    color: var(--slate);
}

.skill-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.skill-block p:first-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.skill-block p:last-child {
    font-size: 11.5px;
    line-height: 1.5;
}

.edu-block p:first-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.edu-block p:last-child {
    font-size: 11.5px;
}

.edu-block .edu-entry + .edu-entry {
    margin-top: 12px;
}

.summary-block p {
    font-size: 12px;
    line-height: 1.55;
}

.resume-role {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.resume-role-item + .resume-role-item {
    margin-top: 11px;
}

.resume-role-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.resume-role-head p {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
}

.resume-role-date {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a6f3f;
    white-space: nowrap;
}

.resume-role ul {
    margin: 4px 0 0;
    padding: 0 0 0 15px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--slate);
}

.resume-footnote {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(34, 48, 61, 0.12);
    font-size: 11px;
    color: #5b6a78;
}

@media (max-width: 640px) {
    /* fixed 210px sidebar column leaves almost nothing for the main column
       on a phone-width screen — stack instead */
    .resume-sheet-wrap {
        padding: 0 16px;
    }

    .resume-body {
        grid-template-columns: 1fr;
    }

    .resume-header {
        padding: 24px 20px 18px;
    }

    .resume-sidebar {
        padding: 20px 18px;
    }

    .resume-main {
        padding: 20px 18px 18px;
    }
}

@media print {
    /* browsers drop background colors on print/PDF export by default;
       this forces the sidebar tint and gold rule to actually show up */
    .resume-sheet, .resume-sheet * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .resume-toolbar {
        display: none;
    }

    .resume-page {
        background: #fff;
    }

    .resume-sheet-wrap {
        margin: 0;
        max-width: none;
    }

    .resume-sheet {
        box-shadow: none;
        width: 8.5in;
        min-height: 11in;
        margin: 0 auto;
    }

    @page {
        size: letter;
        margin: 0;
    }
}
