.resume-view { background: #fbf9f4; }

.resume-view > .page-layout-resume { width: 100%; }
.resume-view > footer.site-footer {
    width: min(1040px, 100% - 2 * clamp(18px, 5vw, 64px));
    align-items: flex-start;
    text-align: start;
}

.resume-view .footer-brand { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.resume-view .footer-brand img { display: block; }

.page-layout-resume {
    --resume-gutter: clamp(18px, 5vw, 64px);
    --resume-ink: #292934;
    --resume-muted: #565561;
    --resume-paper: #fbf9f4;
    --resume-rule: #dbd7df;
    --resume-tint: color-mix(in srgb, var(--accent) 6%, var(--resume-paper));
    --resume-action: var(--page-body-ink, color-mix(in srgb, var(--accent) 54%, #2d1c4b));
    --resume-surface: var(--page-hero-background, #252c38);
    --resume-hero-ink: var(--page-hero-ink, #fff9ef);
    min-height: 100svh;
    margin: 0 auto;
    overflow: visible;
    color: var(--resume-ink);
    background: var(--resume-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.page-layout-resume.custom-page-colors {
    --resume-rule: color-mix(in srgb, var(--highlight) 24%, #dbd7df);
    --resume-tint: color-mix(in srgb, var(--highlight) 11%, var(--resume-paper));
}

.resume-contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-block-start: 18px;
}

.resume-contact-links :is(a, button) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, currentColor 60%, transparent);
    border-radius: 6px;
    color: inherit;
    background: transparent;
    font: 700 .875rem/1.3 var(--brand-sans);
    text-decoration: none;
    text-align: start;
}

.resume-contact-links :is(a, button):hover {
    color: inherit;
    background: color-mix(in srgb, currentColor 13%, transparent);
}

.resume-contact-links .resume-contact {
    border-color: var(--resume-hero-ink);
    background: var(--resume-hero-ink);
    color: var(--resume-surface);
}

.resume-contact-links .resume-contact:hover {
    border-color: var(--resume-hero-ink);
    background: color-mix(in srgb, var(--resume-hero-ink) 88%, var(--resume-surface));
    color: var(--resume-surface);
}

.resume-contact-links .ui-icon, .resume-entry-link .ui-icon { width: 16px; height: 16px; flex: none; }

.resume-contact-dialog {
    width: min(460px, 100% - 28px); max-height: min(760px, 100% - 28px);
    padding: clamp(16px, 4vw, 28px); overflow: auto;
    border: 1px solid #ded8e5; border-radius: 14px;
    background: #fffdfb; color: #26213a; box-shadow: 0 25px 85px #251a3a40;
}
.resume-contact-dialog[open] { animation: resume-dialog-enter 250ms cubic-bezier(.21, .78, .29, 1) both; }
.resume-contact-dialog::backdrop {
    background: #20162bb0; animation: resume-backdrop-enter 200ms ease-out both;
}
.resume-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resume-dialog-header h2 { font: 700 clamp(1.8rem, 6vw, 2.3rem)/1.1 var(--brand-sans); letter-spacing: -.03em; }
.resume-contact-dialog .resume-dialog-close { min-width: 44px; padding: 0; font-size: 1.5rem; line-height: 1; }
.resume-demo-form { display: grid; gap: 10px; margin-top: 10px; }
.resume-demo-note, .resume-contact-status { color: #585269; font-size: .88rem; }
.resume-contact-status:empty { display: none; }
.resume-contact-widget {
    width: min(100%, 320px); line-height: 0;
    animation: resume-dialog-enter 190ms ease-out both;
}
.resume-contact-dialog :is(.resume-contact-submit, .resume-dialog-done) {
    justify-self: start; padding-inline: 17px; border: 1px solid #3b2a50; border-radius: 5px; background: #3b2a50; color: white;
}
.resume-contact-dialog .resume-contact-retry { justify-self: start; }
.resume-demo-success { display: grid; gap: 16px; margin-top: 12px; }
@keyframes resume-dialog-enter {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes resume-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .resume-contact-dialog[open], .resume-contact-dialog::backdrop, .resume-contact-widget { animation: none; }
}

.resume-intro {
    background: var(--resume-surface);
    color: var(--resume-hero-ink);
}

.has-custom-hero.page-layout-resume > .resume-intro {
    padding-inline: 0;
    border-radius: 0;
}

.resume-intro-inner {
    display: grid;
    align-items: center;
    width: min(1200px, 100% - 2 * var(--resume-gutter));
    gap: clamp(24px, 5vw, 68px);
    margin-inline: auto;
    padding-block: clamp(28px, 5vw, 72px);
}

.resume-intro-text { min-width: 0; }

.resume-intro h1 {
    max-width: 16ch;
    margin: 0;
    font: 400 clamp(2.9rem, 6.2vw, 5.55rem)/.98 var(--brand-serif);
    letter-spacing: -.036em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.resume-intro-inner:not(.has-portrait) h1 { max-width: 18ch; }
.page-layout-resume.serif .resume-intro h1 { font-family: Georgia, serif; }
.page-layout-resume.condensed .resume-intro h1 { font-family: "Arial Narrow", "Aptos Narrow", system-ui, sans-serif; }
.resume-role { margin-block-end: 10px; font-weight: 730; }
.resume-summary { max-width: 52ch; margin-block-start: 16px; line-height: 1.55; }
.resume-location { margin-block-start: 12px; font-size: .9rem; font-weight: 650; }
.resume-mark { display: block; width: 52px; height: 52px; object-fit: contain; margin-block-end: 14px; }

.resume-portrait {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.resume-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    object-position: 50% 39%;
}

.resume-intro .page-tools {
    --tool-ink: currentColor;
    --tool-surface: transparent;
    --tool-border: color-mix(in srgb, currentColor 64%, transparent);
    --tool-hover: color-mix(in srgb, currentColor 13%, transparent);
    --tool-focus: currentColor;
}
.resume-document-actions {
    display: inline-flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.resume-document-actions:not(:has(> :not([hidden]))) { display: none; }
.resume-document-actions > button {
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.resume-intro .resume-contact-links :focus-visible { outline: 2px solid var(--resume-hero-ink); outline-offset: 3px; }

.resume-section-nav {
    border-block-end: 1px solid var(--resume-rule);
    background: var(--resume-tint);
}

.resume-section-nav > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(1040px, 100% - 2 * var(--resume-gutter));
    margin-inline: auto;
    gap: 0 clamp(4px, 2vw, 24px);
}

.resume-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 8px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    text-underline-offset: .28em;
    overflow-wrap: anywhere;
}

.resume-section-nav a:is(:hover, :focus-visible) { text-decoration: underline; }
:is(.resume-section-nav a, .resume-section):focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.resume-content {
    display: grid;
    width: min(1040px, 100% - 2 * var(--resume-gutter));
    gap: clamp(26px, 5vw, 58px);
    margin-inline: auto;
    padding-block: clamp(32px, 5.2vw, 68px) clamp(42px, 6vw, 76px);
}

.resume-column, .resume-section { min-width: 0; }
.resume-section { scroll-margin-block-start: 18px; }
.resume-section + .resume-section { margin-block-start: clamp(30px, 5vw, 54px); }

.resume-section h2 {
    margin: 0;
    font: 400 clamp(2rem, 4vw, 3.15rem)/1.05 var(--brand-serif);
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.resume-entries { margin-block-start: 16px; }
.resume-entry { min-width: 0; padding-block: 17px; border-block-start: 1px solid var(--resume-rule); }
.resume-entry-heading { display: grid; gap: 4px 16px; align-items: baseline; }
.resume-entry-copy { min-width: 0; }
.resume-entry h3 { margin: 0; font-size: clamp(1.08rem, 1.8vw, 1.24rem); line-height: 1.3; overflow-wrap: anywhere; }
.resume-organization { margin-block-start: 4px; font-weight: 680; color: var(--resume-action); overflow-wrap: anywhere; }
.resume-entry-date { color: var(--resume-muted); font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.resume-entry-detail { margin-block-start: 6px; color: var(--resume-muted); line-height: 1.55; }
.resume-accomplishments { display: grid; gap: 4px; margin-block-start: 8px; padding-inline-start: 1.25em; color: var(--resume-muted); overflow-wrap: anywhere; }

.resume-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-block-start: 5px;
    color: var(--resume-action);
    font-weight: 700;
    text-underline-offset: 4px;
}

.resume-entry-image { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; margin-block-end: 14px; border-radius: 8px; }

.resume-timeline .resume-entries {
    margin-inline-start: 4px;
    border-inline-start: 1px solid var(--resume-rule);
}

.resume-timeline .resume-entry {
    position: relative;
    padding-block: 0 clamp(20px, 4vw, 32px);
    padding-inline-start: 20px;
    border: 0;
}

.resume-timeline .resume-entry:last-child { padding-block-end: 0; }
.resume-timeline .resume-entry::before {
    position: absolute;
    inset-block-start: 7px;
    inset-inline-start: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--resume-action);
    content: "";
}

.resume-column-projects { padding-block-start: clamp(26px, 5vw, 48px); border-block-start: 1px solid var(--resume-rule); }
.resume-column-projects:only-child { padding-block-start: 0; border: 0; }
.resume-projects .resume-entries { display: grid; gap: clamp(24px, 5vw, 52px); margin-block-start: 22px; }
.resume-projects .resume-entry { padding: 0 0 clamp(22px, 4vw, 38px); border: 0; border-block-end: 1px solid var(--resume-rule); }
.resume-projects .resume-entry:last-child { padding-block-end: 0; border-block-end: 0; }
.resume-projects .resume-entry-image { aspect-ratio: 3 / 2; margin: 0; border-radius: 10px; }
.resume-projects .resume-entry.has-image .resume-entry-copy { padding-block-start: clamp(14px, 3vw, 22px); }
.resume-projects .resume-entry-heading { grid-template-columns: minmax(0, 1fr); }
.resume-projects .resume-entry h3 { font: 400 clamp(1.6rem, 3.4vw, 2.35rem)/1.1 var(--brand-serif); letter-spacing: -.025em; }
.resume-projects .resume-entry-date { text-align: start; }
.resume-projects .resume-entry-detail { margin-block-start: 8px; }

.resume-content.has-sidebar > .resume-column-supporting {
    align-self: start;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 10px;
    background: var(--resume-tint);
}

.resume-content.has-sidebar > .resume-column-supporting h2 { font-size: clamp(1.55rem, 2.75vw, 2.1rem); }
.resume-content.has-sidebar > .resume-column-supporting .resume-section + .resume-section { margin-block-start: 26px; }
.resume-content.has-sidebar > .resume-column-supporting .resume-entry-heading { grid-template-columns: minmax(0, 1fr); }
.resume-content.has-sidebar > .resume-column-supporting .resume-entry-date { text-align: start; }

@media (min-width: 740px) {
    .resume-intro-inner.has-portrait { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
    .resume-section-nav a { min-height: 50px; }
    .resume-content.has-sidebar { grid-template-columns: minmax(0, 1fr) minmax(235px, .48fr); }
    .resume-column-projects { grid-column: 1 / -1; }
    .resume-entry-heading { grid-template-columns: minmax(0, 1fr) fit-content(38%); }
    .resume-entry-date { text-align: end; }
    .resume-projects .resume-entry.has-image {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(24px, 5vw, 50px);
    }
    .resume-projects .resume-entry.has-image:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
    .resume-projects .resume-entry.has-image:nth-child(even) .resume-entry-image { grid-area: 1 / 2; }
    .resume-projects .resume-entry.has-image:nth-child(even) .resume-entry-copy { grid-area: 1 / 1; }
    .resume-projects .resume-entry.has-image .resume-entry-copy { padding-block-start: 0; }
}

@media (max-width: 520px) {
    .resume-section-nav > div { width: 100%; padding-inline: 9px; }
    .resume-document-actions > button { padding-inline: 8px; }
}

@media (min-width: 1024px) {
    .resume-hero-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        margin-block-start: 18px;
    }
    .resume-hero-actions > :is(.resume-contact-links, .page-tools, .languages) {
        margin-block-start: 0;
    }
    .resume-intro-inner.has-portrait:has(.resume-contact-links + .page-tools) {
        grid-template-columns: minmax(505px, .92fr) minmax(0, 1.08fr);
    }
}

@media print {
    .resume-view :is(.bar, .site-footer, .draft-toolbar, .resume-contact-links, .page-tools, .resume-section-nav, .demo-float-dock) { display: none; }
    .resume-view > .page-layout-resume { width: 100%; margin: 0; min-height: auto; background: #fff; }
    .resume-view > .page-layout-resume > .resume-intro { background: transparent; color: var(--resume-ink); }
    .resume-intro-inner, .resume-content { width: 100%; }
    .resume-intro-inner { padding-block: 15px; }
    .resume-intro h1 { font-size: 46pt; }
    .resume-entry { break-inside: avoid; }
}

@media (max-width: 767px) {
    .resume-hero-actions .page-tools { width: 100%; }
    .resume-document-actions { flex: 1 1 100%; }
    .resume-document-actions > button { flex: 1 1 0; }
}
