/* ==========================================================
   Malo van Donselaar · portfolio
   Palette: deep blue, black, white.
   Type: Newsreader (display), Instrument Sans (text).
   ========================================================== */

@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/newsreader.woff2") format("woff2-variations"), url("../fonts/newsreader.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/instrument-sans.woff2") format("woff2-variations"), url("../fonts/instrument-sans.woff2") format("woff2");
}

:root {
    --blue: #152f75;
    --blue-dark: #0f2357;
    --ink: #000000;
    --grey: #5b606c;
    --rule: #e2e4ea;
    --wash: #f2f4f9;
    --white: #ffffff;

    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

    --sidebar: 292px;
    --gutter: 80px;
    --measure: 64ch;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html.no-scroll { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    margin: 0;
    font-optical-sizing: auto;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--white);
    color: var(--blue);
    font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 44px 32px 32px;
    background: var(--blue);
    color: var(--white);
    overflow-y: auto;
}

.sidebar :focus-visible { outline-color: var(--white); }

.sb-id { text-decoration: none; display: block; }

.sb-name {
    font-family: var(--serif);
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.005em;
}

.sb-role {
    margin: 14px 0 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.sb-role strong {
    display: block;
    font-weight: 500;
    color: var(--white);
}

.sb-toggle { display: none; }

.sb-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sb-nav {
    margin-top: 56px;
}

.sb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sb-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.sb-nav a {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.74);
    transition: color 0.2s ease;
}

.sb-nav a:hover { color: var(--white); }

.sb-nav a[aria-current="page"] { color: var(--white); }

.sb-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--white);
}

.sb-count {
    font-size: 13px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.55);
}

.sb-foot {
    margin-top: auto;
    padding-top: 48px;
    font-size: 14.5px;
}

.sb-resume {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--white);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    color: var(--white);
    transition: background 0.2s ease, color 0.2s ease;
}

.sb-resume:hover {
    background: var(--white);
    color: var(--blue);
}

.sb-contact {
    display: flex;
    gap: 20px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sb-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

.sb-contact a:hover { color: var(--white); text-decoration-color: var(--white); }

.sb-updated {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================
   MAIN
   ========================================================== */

.main {
    margin-left: var(--sidebar);
    padding: 88px var(--gutter) 0;
}

.wrap { max-width: 1000px; }

.section {
    margin-top: 104px;
    padding-top: 36px;
    border-top: 1px solid var(--ink);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-title {
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.section-note {
    margin: 0;
    font-size: 15px;
    color: var(--grey);
}

.text-link {
    color: var(--blue);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.text-link:hover { color: var(--blue-dark); }

/* ---------- Intro (overview) ---------- */

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: end;
}

.intro-name {
    font-size: clamp(48px, 6.2vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.intro-lead {
    margin: 32px 0 0;
    max-width: 30ch;
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.36;
}

.intro-prepared {
    margin: 16px 0 0;
    max-width: 44ch;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--grey);
}

.intro-photo {
    margin: 0;
    aspect-ratio: 3 / 4;
    background: var(--wash);
}

.intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 64px;
    margin-top: 72px;
}

.about-text p { max-width: var(--measure); }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 32px;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    background: var(--blue);
    color: var(--white);
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn:hover { background: var(--blue-dark); }

.facts {
    margin: 0;
    border-top: 1px solid var(--rule);
}

.facts div {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.facts dt {
    font-size: 14px;
    color: var(--grey);
}

.facts dd {
    margin: 4px 0 0;
    font-size: 16.5px;
    line-height: 1.45;
}

.facts .figure {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.1;
}

.facts .figure small {
    font-size: 18px;
    color: var(--grey);
}

.facts .fact-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 44px;
    margin-top: 8px;
}

.fact-pair > span { display: flex; flex-direction: column; }
.fact-pair .figure { display: block; }

.fact-label {
    margin-top: 4px;
    font-size: 14px;
    color: var(--grey);
}

/* ---------- Figure grid (selected work, projects) ---------- */

.figs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
}

.fig {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fig-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--wash);
}

.fig-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.fig-media.contain img { object-fit: contain; padding: 18px; }

.fig:hover .fig-media img { opacity: 0.86; }

.fig-title {
    margin-top: 18px;
    font-size: 23px;
    line-height: 1.22;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.fig:hover .fig-title {
    color: var(--blue);
    text-decoration-color: currentColor;
}

.fig-meta {
    margin: 8px 0 0;
    font-size: 14.5px;
    color: var(--grey);
}

.fig-text {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.55;
    max-width: 46ch;
}

.figs--wide .fig-media { aspect-ratio: 16 / 10; }

.figs--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
}

.figs--three .fig-media { aspect-ratio: 4 / 3; }
.figs--three .fig-title { font-size: 20px; }

/* ---------- Index rows (overview) ---------- */

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.index li { border-bottom: 1px solid var(--rule); }

.index a {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: baseline;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
}

.index-title {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.index-text { margin: 0; font-size: 16px; color: var(--grey); max-width: 56ch; }

.index-count {
    font-size: 14px;
    color: var(--grey);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.index a:hover .index-title { color: var(--blue); }

/* ---------- Page header (inner pages) ---------- */

.page-head { max-width: 760px; }

.page-title {
    font-size: clamp(44px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.page-lead {
    margin: 24px 0 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--grey);
    max-width: 58ch;
}

.page-body { margin-top: 72px; }

.group + .group { margin-top: 88px; }

.group-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.group-text {
    margin: -14px 0 28px;
    font-size: 16px;
    color: var(--grey);
    max-width: 60ch;
}

/* ---------- Rows (experience, activities) ---------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }

.rows > li { border-bottom: 1px solid var(--rule); }

.row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 228px; /* photo column +30% */
    gap: 36px;
    padding: 30px 0;
    text-decoration: none;
    color: inherit;
}

a.row:hover .row-title { color: var(--blue); text-decoration-color: currentColor; }

.row-date {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
    padding-top: 5px;
}

.row-title {
    font-size: 25px;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.row-org {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--grey);
}

.row-text {
    margin: 12px 0 0;
    font-size: 16.5px;
    line-height: 1.58;
    max-width: 58ch;
}

.row-text:last-child { margin-bottom: 0; }

.row-media {
    aspect-ratio: 3 / 2;
    background: var(--wash);
    overflow: hidden;
    align-self: start;
}

.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-media.contain img { object-fit: contain; padding: 14px; }

.row--plain { grid-template-columns: 150px minmax(0, 1fr); }

.row-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    max-width: 60ch;
}

.row-list li {
    position: relative;
    padding-left: 20px;
    margin-top: 6px;
    font-size: 16.5px;
    line-height: 1.58;
}

.row-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--blue);
}

.row-link { display: inline-block; margin-top: 12px; font-size: 15.5px; }

/* ---------- Feature (aviation) ---------- */

.feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
    padding-top: 36px;
    border-top: 1px solid var(--ink);
}

.feature-media { margin: 0; aspect-ratio: 4 / 5; background: var(--wash); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.feature-title { font-size: 28px; line-height: 1.2; }

.feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 14px 0 22px;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.feature-meta dt { color: var(--grey); display: inline; }
.feature-meta dd { display: inline; margin: 0 0 0 6px; font-weight: 500; }

.feature p { max-width: 58ch; }

/* ---------- Sport table ---------- */

.plain-list { margin: 0; border-top: 1px solid var(--ink); }

.plain-list div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}

.plain-list dt { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.plain-list dd { margin: 0; font-size: 16.5px; padding-top: 2px; }

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

.footer {
    margin-top: 128px;
    padding: 28px 0 44px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    font-size: 14.5px;
    color: var(--grey);
}

.footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }

.footer a { color: var(--ink); text-underline-offset: 3px; }
.footer a:hover { color: var(--blue); }

/* ==========================================================
   DETAIL DRAWER
   ========================================================== */

.drawer[hidden] { display: none; }

.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(800px, 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 18px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
}

.drawer-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { color: var(--blue); }

.drawer-body { padding: 44px 60px 80px; }

/* content injected from <template> */

.modal-title {
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 22ch;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
    margin: 18px 0 0;
    overflow: hidden; /* hides the separator of the first item on each line */
    font-size: 15px;
    color: var(--grey);
}

.modal-meta span {
    position: relative;
    margin-right: 29px;
}

.modal-meta span::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0.25em;
    bottom: 0.25em;
    border-left: 1px solid var(--rule);
}

.modal-banner {
    width: 100%;
    margin: 32px 0 0;
    background: var(--wash);
}

.project-section { margin-top: 40px; }

.project-section h2 {
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.project-section p { font-size: 17px; line-height: 1.65; }

.project-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-list li {
    position: relative;
    padding-left: 22px;
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.62;
}

.project-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.64em;
    width: 6px;
    height: 6px;
    background: var(--blue);
}

.project-list + p,
p + .project-list { margin-top: 16px; }

.project-figure {
    width: 100%;
    margin-top: 20px;
    background: var(--wash);
}

.project-figure.small { max-width: 360px; }

.project-figure.logo { max-width: 300px; padding: 20px 28px; object-fit: contain; }

.figure-caption {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--grey);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 11px;
    border: 1px solid var(--rule);
    font-size: 14px;
    line-height: 1.3;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-top: 1px solid var(--ink);
}

.stat-box {
    padding: 16px 20px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.1;
}

.stat-lbl { font-size: 14.5px; line-height: 1.4; color: var(--grey); }

.stats-row + .project-list { margin-top: 24px; }

.doc-row { margin-top: 20px; }

.doc-btn {
    display: inline-block;
    padding: 13px 22px;
    background: var(--blue);
    color: var(--white);
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.doc-btn:hover { background: var(--blue-dark); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1240px) {
    :root { --gutter: 56px; }
    .intro { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
    .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
    .facts .fact-school { grid-column: 1 / -1; }
    .row { grid-template-columns: 130px minmax(0, 1fr) 195px; gap: 28px; }
    .figs--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    :root { --sidebar: 0px; --gutter: 24px; }

    .sidebar {
        position: sticky;
        top: 0;
        bottom: auto;
        width: auto;
        height: auto;
        max-height: 100vh;
        padding: 16px var(--gutter);
        overflow: visible;
    }

    .sb-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .sb-name { font-size: 23px; }
    .sb-role { display: none; }

    .sb-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border: 0;
        background: none;
        color: var(--white);
        font: inherit;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
    }

    .sb-toggle-icon { position: relative; width: 18px; height: 12px; }
    .sb-toggle-icon::before,
    .sb-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.2s ease, top 0.2s ease;
    }
    .sb-toggle-icon::before { top: 2px; }
    .sb-toggle-icon::after { top: 9px; }
    .sidebar.is-open .sb-toggle-icon::before { top: 5px; transform: rotate(45deg); }
    .sidebar.is-open .sb-toggle-icon::after { top: 5px; transform: rotate(-45deg); }

    .sb-panel { display: none; }
    .sidebar.is-open .sb-panel { display: block; padding-bottom: 12px; }
    .sb-nav { margin-top: 20px; }
    .sb-nav a[aria-current="page"]::before { left: calc(-1 * var(--gutter)); }
    .sb-foot { padding-top: 28px; }

    .main { margin-left: 0; padding-top: 48px; }

    .intro { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .intro-photo { max-width: 320px; order: -1; }
    .intro-lead { font-size: 22px; }

    .facts { grid-template-columns: minmax(0, 1fr); }

    .section { margin-top: 80px; }
    .section-title { font-size: 30px; }
    .section-head { flex-direction: column; gap: 6px; }

    .figs,
    .figs--three { grid-template-columns: minmax(0, 1fr); gap: 44px; }

    .index a { grid-template-columns: minmax(0, 1fr); gap: 6px; }

    .row,
    .row--plain { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; }
    .row-media { order: -1; max-width: 320px; }
    .row-date { padding-top: 0; }

    .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .feature-media { max-width: 380px; }

    .plain-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

    .drawer-bar { padding: 14px 20px; }
    .drawer-body { padding: 32px 22px 64px; }
    .modal-title { font-size: 30px; }
}

/* ---------- Large screens: the layout grows with the window instead of stopping at 1000px ---------- */

@media (min-width: 1600px) {
    :root { --sidebar: 320px; --gutter: 96px; }
    body { font-size: 18px; }
    .wrap { max-width: 1320px; }

    .sidebar { padding: 52px 36px 36px; }
    .sb-name { font-size: 34px; }
    .sb-role { font-size: 15.5px; }
    .sb-nav a { font-size: 18px; padding: 15px 0; }
    .sb-nav a[aria-current="page"]::before { left: -36px; }

    .intro { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; }
    .intro-name { font-size: 88px; }
    .intro-lead { font-size: 29px; }
    .section-title { font-size: 42px; }
    .page-title { font-size: 72px; }
    .page-lead { font-size: 21px; }
    .group-title { font-size: 32px; }

    .row { grid-template-columns: 170px minmax(0, 1fr) 300px; gap: 48px; padding: 36px 0; }
    .row--plain { grid-template-columns: 170px minmax(0, 1fr); }
    .row-title { font-size: 28px; }
    .row-text, .row-list li { font-size: 17.5px; max-width: 70ch; }

    .figs { gap: 64px 48px; }
    .fig-title { font-size: 26px; }
    .fig-text { font-size: 17px; max-width: 56ch; }
    .figs--three .fig-title { font-size: 22px; }

    .index a { grid-template-columns: 260px minmax(0, 1fr) auto; }
    .index-title { font-size: 28px; }
    .index-text { font-size: 17px; max-width: 70ch; }
    .plain-list div { grid-template-columns: 260px minmax(0, 1fr); }
    .facts .figure { font-size: 34px; }

    .drawer-panel { width: min(920px, 100%); }
}

@media (min-width: 2200px) {
    :root { --sidebar: 360px; --gutter: 128px; }
    body { font-size: 19px; }
    .wrap { max-width: 1640px; }
    .sb-name { font-size: 38px; }
    .sb-nav a[aria-current="page"]::before { left: -36px; }

    .intro { grid-template-columns: minmax(0, 1fr) 420px; }
    .intro-name { font-size: 100px; }
    .row { grid-template-columns: 190px minmax(0, 1fr) 360px; }
    .row--plain { grid-template-columns: 190px minmax(0, 1fr); }
    .row-title { font-size: 31px; }
    .row-text, .row-list li { font-size: 18.5px; }
    .figs:not(.figs--three):not(.figs--wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .figs--three { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .drawer-panel { width: min(1040px, 100%); }
}

@media (min-width: 2500px) {
    .wrap { max-width: 1840px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    .sidebar, .drawer, .footer { display: none; }
    .main { margin: 0; padding: 0; }
}
