/* ==========================================================================
   MUDr. Katerina Simeckova - "Soft Aqua"
   Soft turquoise accents, light clinical calm. Mobile first.
   Informational personal microsite (not a service catalog).
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/assets/fonts/cormorant-garamond-var-cs.woff2') format('woff2-variations');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-var-cs.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Metric-compatible stand-ins used until the web fonts arrive. A locally
   installed font is rescaled so that the text occupies the same space as the
   final one, which keeps the font swap from shifting the layout (CLS).
   Ratios measured in a browser, see tools/qa/font-metrics.html. */
@font-face {
    font-family: 'Cormorant Garamond Fallback';
    src: local('Times New Roman'), local('Georgia'), local('Tinos');
    size-adjust: 95.4%;
    ascent-override: 96.9%;
    descent-override: 30.1%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Roboto');
    size-adjust: 96.4%;
    ascent-override: 100.5%;
    descent-override: 25%;
    line-gap-override: 0%;
}

/* --- Design tokens -------------------------------------------------------- */

:root {
    --ivory: #f4f8f9;
    --ivory-deep: #e8f1f2;
    --paper: #ffffff;
    --champagne: #eaf4f4;
    --espresso: #1a2428;
    --espresso-soft: #45545a;
    --espresso-faint: #6a7a80;
    --gold: #5ba8a8;
    --gold-deep: #3e8588;
    --gold-wash: #dceeee;
    --line: #d5e3e5;

    --font-display: 'Cormorant Garamond', 'Cormorant Garamond Fallback', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
    --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
    --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
    --step-4: clamp(2.5rem, 1.7rem + 4vw, 4.75rem);

    --wrap: 76rem;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(3.5rem, 8vw, 7rem);
    --radius: 0.75rem;
    --radius-lg: 1.35rem;
    --shadow-soft: 0 18px 50px -28px rgba(26, 36, 40, 0.22);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--espresso);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul,
dl {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
    border-radius: var(--radius);
}

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

/* --- Layout primitives ---------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -110%);
    z-index: 100;
    padding: 0.65rem 1.25rem;
    background: var(--espresso);
    color: var(--ivory);
    font-size: var(--step--1);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.u-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.section {
    padding-block: var(--section-y);
}

.section--muted {
    background: linear-gradient(180deg, var(--ivory-deep), color-mix(in srgb, var(--ivory-deep) 70%, var(--ivory)));
}

.section__eyebrow {
    margin-bottom: 0.75rem;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section__note {
    margin-top: 1rem;
    font-size: var(--step--1);
    color: var(--espresso-faint);
    line-height: 1.65;
}

.section__note a,
.prose a,
.faq__answer a,
.contact__note a {
    color: var(--gold-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.section__note a:hover,
.prose a:hover,
.faq__answer a:hover,
.contact__note a:hover {
    color: var(--espresso);
}

.layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 62rem) {
    .layout {
        grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
        gap: clamp(3rem, 6vw, 6rem);
        align-items: start;
    }

    .layout__aside {
        position: sticky;
        top: 6.5rem;
    }
}

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ivory) 86%, transparent);
    backdrop-filter: saturate(1.3) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

/* Two rows on small screens: name and the contact button on top, navigation
   underneath. From the large breakpoint everything fits on a single row. */
.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem 1rem;
    padding-block: 0.75rem;
}

/* Explicit placement: the button belongs next to the name, not on its own
   row below the navigation, which is where auto-placement would put it. */
.brand {
    grid-column: 1;
    grid-row: 1;
}

.nav {
    grid-column: 1 / -1;
    grid-row: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand__mark {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--gold-deep);
}

.brand__text {
    display: grid;
}

.brand__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.005em;
}

.brand__role {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.btn--header {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 0.48rem 1.05rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 26rem) {
    .brand__mark {
        font-size: 1.4rem;
    }

    .brand__name {
        font-size: 1rem;
    }
}

@media (min-width: 62rem) {
    html {
        scroll-padding-top: 5.5rem;
    }

    .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 1.5rem;
        padding-block: 0.9rem;
    }

    .brand,
    .btn--header {
        grid-column: auto;
        grid-row: auto;
    }

    .nav {
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
    }

    .btn--header {
        padding: 0.6rem 1.35rem;
        font-size: var(--step--1);
    }
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.4rem;
}

.nav__list a {
    position: relative;
    display: inline-block;
    padding-block: 0.2rem;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--espresso-soft);
    text-decoration: none;
}

.nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right 0.28s ease;
}

.nav__list a:hover,
.nav__list a[aria-current='page'] {
    color: var(--espresso);
}

.nav__list a:hover::after,
.nav__list a[aria-current='page']::after {
    right: 0;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--paper);
    font-size: var(--step-0);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px -16px rgba(62, 133, 136, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -14px rgba(62, 133, 136, 0.95);
    background: linear-gradient(135deg, #6db5b5 0%, var(--gold-deep) 100%);
}

.btn--ghost {
    background: transparent;
    color: var(--gold-deep);
    border-color: color-mix(in srgb, var(--gold) 70%, var(--line));
    box-shadow: none;
}

.btn--ghost:hover {
    border-color: var(--gold-deep);
    color: var(--espresso);
    background: color-mix(in srgb, var(--gold-wash) 45%, transparent);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 1rem 2.2rem;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.75rem, 7vw, 6.5rem) clamp(3.25rem, 8vw, 7.5rem);
    background:
        radial-gradient(50% 55% at 78% 42%, color-mix(in srgb, var(--champagne) 75%, transparent), transparent 70%),
        linear-gradient(165deg, #fbfdfe 0%, var(--ivory) 48%, #eaf4f4 100%);
}

.hero__light {
    position: absolute;
    inset: -8% auto auto -6%;
    width: min(52vw, 34rem);
    height: min(42vw, 26rem);
    background:
        url('/assets/img/hero-light.svg') left top / contain no-repeat,
        radial-gradient(closest-side, color-mix(in srgb, var(--gold-wash) 70%, transparent), transparent 72%);
    pointer-events: none;
    opacity: 0.95;
    animation: hero-glow 14s ease-in-out infinite alternate;
}

.hero__ribbons {
    position: absolute;
    left: -4%;
    bottom: -6%;
    width: min(96vw, 58rem);
    height: min(46vw, 28rem);
    background: url('/assets/img/hero-ribbons.svg') left bottom / contain no-repeat;
    pointer-events: none;
    animation: hero-ribbons 18s ease-in-out infinite alternate;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 5vw, 3.75rem);
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
    animation: hero-rise 0.8s ease both;
}

.hero__ornament {
    position: relative;
    width: min(100%, 17rem);
    height: 1px;
    margin-top: 1.15rem;
    background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
    animation: hero-rise 0.85s 0.04s ease both;
}

.hero__ornament::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    background: var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero__subtitle {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--gold-deep);
    animation: hero-rise 0.9s 0.06s ease both;
}

.hero__lead {
    max-width: 36ch;
    margin-top: 1.35rem;
    font-size: var(--step-1);
    line-height: 1.65;
    color: var(--espresso-soft);
    animation: hero-rise 0.95s 0.1s ease both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.1rem;
    animation: hero-rise 1s 0.14s ease both;
}

.hero__portrait {
    position: relative;
    width: min(100%, 26rem);
    margin-inline: auto;
    justify-self: center;
}

.portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    /* No photo card: every free edge dissolves into the page instead of
       ending in a hard rectangle. */
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    filter: saturate(0.96) contrast(1.02);
    animation: hero-rise 1s 0.1s ease both;
}

@media (min-width: 48rem) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(1.5rem, 4vw, 3rem);
    }

    .hero__portrait {
        justify-self: end;
        width: min(100%, 34rem);
        margin-inline: 0;
        /* Bleed to the hero edges so the portrait reads as part of the page. */
        margin-right: calc(var(--gutter) * -1);
        margin-block: calc(clamp(2.75rem, 7vw, 6.5rem) * -1) calc(clamp(3.25rem, 8vw, 7.5rem) * -1);
    }

    .portrait {
        object-position: center 20%;
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 24%, #000 88%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 24%, #000 88%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(0.7rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-glow {
    from {
        opacity: 0.65;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 1;
        transform: translate3d(1.5%, -2%, 0) scale(1.04);
    }
}

@keyframes hero-ribbons {
    from {
        opacity: 0.75;
        transform: translate3d(0, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(1.5%, -1.5%, 0);
    }
}

/* --- Notice --------------------------------------------------------------- */

.notice {
    display: grid;
    gap: 0.5rem 2rem;
    padding: clamp(1.35rem, 3vw, 2.1rem);
    background: color-mix(in srgb, var(--paper) 88%, white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -24px rgba(44, 38, 34, 0.35);
}

.notice__label {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.notice__text {
    max-width: 64ch;
    color: var(--espresso-soft);
}

@media (min-width: 48rem) {
    .notice {
        grid-template-columns: 8rem minmax(0, 1fr);
    }
}

/* --- Prose ---------------------------------------------------------------- */

.prose {
    max-width: 62ch;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose .lead {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--espresso);
}

.prose p {
    color: var(--espresso-soft);
}

.pull-quote {
    margin-top: 2rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.35;
    color: var(--espresso) !important;
    text-wrap: balance;
}

/* --- Timeline ------------------------------------------------------------- */

.timeline {
    display: grid;
    gap: 0;
}

.timeline__item {
    display: grid;
    gap: 0.35rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
}

.timeline__item:last-child {
    border-bottom: 1px solid var(--line);
}

.timeline__period {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    line-height: 1.3;
    color: var(--gold-deep);
    font-variant-numeric: tabular-nums;
}

.timeline__title {
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.4;
}

.timeline__body p {
    margin-top: 0.4rem;
    font-size: var(--step--1);
    line-height: 1.75;
    color: var(--espresso-soft);
}

@media (min-width: 40rem) {
    .timeline__item {
        grid-template-columns: 8.5rem minmax(0, 1fr);
    }
}

/* --- Memberships ---------------------------------------------------------- */

.credentials {
    margin-top: 2.75rem;
}

.credentials__title {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 500;
    line-height: 1.2;
}

.credentials__note {
    max-width: 60ch;
    margin: 0.7rem 0 1.35rem;
    font-size: var(--step--1);
    line-height: 1.7;
    color: var(--espresso-faint);
}

/* --- Facts ---------------------------------------------------------------- */

.facts {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.facts__item {
    display: grid;
    gap: 0.2rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--gold-wash);
}

.facts__value {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 500;
    line-height: 1.1;
}

.facts__label {
    font-size: var(--step--1);
    line-height: 1.5;
    color: var(--espresso-faint);
}

@media (min-width: 40rem) {
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 2rem;
    }
}

@media (min-width: 62rem) {
    .facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --- Social links --------------------------------------------------------- */

.hero__social {
    margin-top: 2.1rem;
    animation: hero-rise 1.05s 0.18s ease both;
}

.contact__social {
    margin-top: 2.25rem;
}

.social-heading {
    margin-bottom: 0.75rem;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.social-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-inline--center {
    justify-content: center;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    background: color-mix(in srgb, var(--paper) 70%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-chip:hover {
    background: var(--paper);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.social-chip__icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: var(--gold-deep);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__question {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.15rem;
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    flex: none;
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1;
    color: var(--gold-deep);
    transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
    content: '\2013';
}

.faq__question:hover {
    color: var(--gold-deep);
}

.faq__answer {
    padding-bottom: 1.35rem;
}

.faq__answer p {
    max-width: 66ch;
    font-size: var(--step--1);
    line-height: 1.8;
    color: var(--espresso-soft);
}

/* --- Contact -------------------------------------------------------------- */

.section--contact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 80% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
        linear-gradient(160deg, var(--champagne) 0%, var(--ivory-deep) 55%, var(--ivory) 100%);
    color: var(--espresso);
}

.section--contact .section__eyebrow {
    color: var(--gold-deep);
}

.contact {
    max-width: 46rem;
    text-align: center;
}

.contact__title {
    color: var(--espresso);
}

.contact__text {
    margin-top: 1.25rem;
    color: var(--espresso-soft);
}

.contact__mail {
    margin-top: 2rem;
}

.contact__note {
    margin-top: 1.75rem;
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--espresso-faint);
}

.contact__note a {
    color: var(--gold-deep);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: var(--ivory-deep);
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: grid;
    gap: 0.6rem;
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
}

.site-footer__motto {
    max-width: 48ch;
    font-family: var(--font-display);
    font-style: normal;
    font-size: var(--step-0);
    line-height: 1.55;
    color: var(--espresso-soft);
}

.site-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-top: 1rem;
}

.site-footer__nav a {
    font-size: var(--step--1);
    color: var(--espresso-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-footer__nav a:hover {
    color: var(--gold-deep);
    border-bottom-color: var(--gold);
}


/* --- Breadcrumb ----------------------------------------------------------- */

.breadcrumb {
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: var(--step--1);
    color: var(--espresso-faint);
}

.breadcrumb__list li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--gold);
}

.breadcrumb__list a {
    color: var(--espresso-soft);
    text-decoration: none;
}

.breadcrumb__list a:hover {
    color: var(--gold-deep);
}

/* --- CV page -------------------------------------------------------------- */

.cv__header {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.cv__title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.cv__subtitle {
    max-width: 52ch;
    margin-top: 1rem;
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--espresso-soft);
}

.cv__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.cv__body {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.cv__section {
    padding-top: clamp(2.25rem, 5vw, 3.5rem);
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    border-top: 1px solid var(--line);
}

.cv__section-title {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.cv__subhead {
    margin-bottom: 0.85rem;
    font-size: var(--step-0);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cv__group + .cv__group {
    margin-top: 2rem;
}

.cv__intro {
    max-width: 64ch;
    margin-bottom: 1.25rem;
    color: var(--espresso-soft);
}

.cv__section--motto .quote {
    margin-bottom: 1.25rem;
}

.cv__back {
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.checklist {
    display: grid;
    gap: 0.7rem;
    max-width: 74ch;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    font-size: var(--step--1);
    line-height: 1.75;
    color: var(--espresso-soft);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 0.55rem;
    height: 1px;
    background: var(--gold);
}

@media (min-width: 48rem) {
    .checklist--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem 2.5rem;
        max-width: none;
    }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags li {
    padding: 0.45rem 0.9rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--step--1);
    color: var(--espresso-soft);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tags li:has(a:hover) {
    border-color: var(--gold);
    color: var(--espresso);
}

.tags a {
    color: inherit;
    text-decoration: none;
}

.tags a:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
}

.quote {
    max-width: 56ch;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold);
}

.quote p {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.35;
    text-wrap: balance;
}

/* --- Motion & print ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    :root {
        --ivory: #fff;
        --ivory-deep: #fff;
        --paper: #fff;
        --champagne: #fff;
    }

    .site-header,
    .site-footer,
    .breadcrumb,
    .cv__actions,
    .cv__back,
    .skip-link,
    .hero__light,
    .hero__ribbons {
        display: none !important;
    }

    body {
        font-size: 10.5pt;
        line-height: 1.5;
        color: #000;
    }

    .cv__section {
        break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}
