:root {
    color-scheme: light;
    --bg: #f7f7f2;
    --text: #17212b;
    --muted: #53606c;
    --line: rgba(28, 93, 153, 0.16);
    --panel: rgba(255, 255, 255, 0.68);
    --panel-strong: rgba(255, 255, 255, 0.88);
    --accent: #1c5d99;
    --accent-dark: #123f69;
    --teal: #207480;
    --olive: #6b7f3f;
    --copper: #b56b34;
    --brick: #8a3b24;
    --soft-blue: #eaf3fb;
    --soft-teal: #e8f5f4;
    --soft-warm: #fff1e5;
    --shadow: 0 22px 60px rgba(24, 50, 74, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.thesis-page {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0 18%, transparent 18%),
        linear-gradient(218deg, rgba(213, 232, 239, 0.92) 0 24%, transparent 24%),
        linear-gradient(36deg, rgba(248, 223, 195, 0.86) 0 20%, transparent 20%),
        linear-gradient(180deg, #f8fbfc 0%, #eef6f4 48%, #fff7ee 100%);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--accent);
}

header,
main,
footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding-top: 38px;
    padding-bottom: 30px;
}

main {
    padding-bottom: 56px;
}

footer {
    color: var(--muted);
    font-size: 14px;
}

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

.eyebrow,
.tag,
.section-kicker {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    max-width: 100%;
    white-space: normal;
}

.section-kicker {
    padding: 5px 9px;
    border: 1px solid rgba(28, 93, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

p {
    margin-bottom: 14px;
}

.intro {
    max-width: 760px;
    color: rgba(23, 33, 43, 0.72);
    font-size: 20px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 34px;
    align-items: center;
    min-width: 0;
}

.hero-copy {
    padding: 18px 0;
    min-width: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-actions a,
.cta-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(28, 93, 153, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(28, 93, 153, 0.95), rgba(18, 63, 105, 0.96));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(28, 93, 153, 0.18);
}

.hero-actions a:nth-child(2) {
    background: linear-gradient(180deg, rgba(32, 116, 128, 0.95), rgba(20, 86, 94, 0.96));
}

.hero-actions a:nth-child(3) {
    background: linear-gradient(180deg, rgba(181, 107, 52, 0.95), rgba(138, 78, 36, 0.96));
}

.cover-preview,
.visual-frame,
.gallery-strip figure {
    margin: 0;
}

.cover-preview {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3)),
        linear-gradient(180deg, rgba(32, 116, 128, 0.12), rgba(181, 107, 52, 0.1));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    min-width: 0;
}

.cover-preview img {
    max-height: 620px;
    margin: 0 auto;
    border-radius: 8px;
}

figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.meta-grid,
.stats,
.split,
.grid,
.recommendation-grid,
.media-grid,
.gallery-strip {
    display: grid;
    gap: 14px;
}

.meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-meta {
    margin-top: 28px;
}

body.thesis-page .meta-grid div,
body.thesis-page .stats div,
body.thesis-page .split article,
body.thesis-page .card,
body.thesis-page .timeline div,
.recommendation-grid article,
.rollup article,
.status {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
        linear-gradient(180deg, rgba(28, 93, 153, 0.08), transparent 64%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.meta-grid div,
.stats div {
    padding: 16px;
}

.meta-grid span,
.stats span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.meta-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.35;
}

.status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    max-width: 920px;
    padding: 18px;
}

.status p {
    margin-bottom: 0;
}

.section {
    margin-top: 48px;
}

.visual-section {
    margin-top: 58px;
}

.prose {
    max-width: 820px;
    color: var(--muted);
    font-size: 17px;
}

.showcase-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 18px;
}

.stats strong {
    display: block;
    color: var(--accent-dark);
    font-size: 46px;
    line-height: 1;
}

.stats div:nth-child(2) strong,
.recommendation-grid article:nth-child(2) span,
.rollup article:nth-child(2) span {
    color: var(--teal);
}

.stats div:nth-child(3) strong,
.recommendation-grid article:nth-child(3) span,
.rollup article:nth-child(3) span {
    color: var(--olive);
}

.stats div:nth-child(4) strong,
.recommendation-grid article:nth-child(4) span {
    color: var(--copper);
}

.stats span {
    margin-top: 8px;
}

.split,
.grid,
.research-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid {
    margin-top: 18px;
}

.split article,
body.thesis-page .card,
.recommendation-grid article,
.rollup article,
.research-grid article {
    padding: 20px;
}

body.thesis-page .card .tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(234, 243, 251, 0.86);
}

.visual-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    min-width: 0;
}

.visual-frame img {
    width: 100%;
}

.visual-frame figcaption {
    padding: 0 16px 16px;
}

.rollup {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.rollup article {
    position: relative;
    min-height: 190px;
}

.rollup span,
.recommendation-grid span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(28, 93, 153, 0.16);
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.metric-list span {
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--accent-dark);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.metric-list span:nth-child(2n) {
    color: var(--teal);
}

.metric-list span:nth-child(3n) {
    color: var(--copper);
}

.research-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.research-grid article {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34)),
        linear-gradient(180deg, rgba(32, 116, 128, 0.08), transparent 64%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.research-grid article span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(234, 243, 251, 0.78);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.research-grid article:nth-child(2n) span {
    background: rgba(232, 245, 244, 0.82);
    color: var(--teal);
}

.research-grid article:nth-child(3n) span {
    background: rgba(255, 241, 229, 0.86);
    color: var(--copper);
}

.research-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.timeline {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.timeline div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 17px;
}

.timeline span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.timeline p {
    margin: 0;
}

.recommendation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.gallery-strip {
    grid-template-columns: 0.78fr 1fr 1fr 1fr;
    align-items: stretch;
}

.gallery-strip figure {
    display: grid;
    align-content: space-between;
    overflow: hidden;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.gallery-strip img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: top center;
}

.gallery-strip figure:first-child img {
    height: 250px;
}

.gallery-strip figcaption {
    margin: 0;
    padding: 11px 12px;
    color: var(--accent-dark);
    font-weight: 700;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
        linear-gradient(100deg, rgba(28, 93, 153, 0.12), rgba(181, 107, 52, 0.14));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.cta-panel h2 {
    margin-bottom: 10px;
}

.cta-panel p {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--muted);
}

.cta-panel a {
    white-space: nowrap;
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    .cover-preview,
    body.thesis-page .meta-grid div,
    body.thesis-page .stats div,
    body.thesis-page .split article,
    body.thesis-page .card,
    body.thesis-page .timeline div,
    .recommendation-grid article,
    .rollup article,
    .visual-frame,
    .gallery-strip figure,
    .status,
    .cta-panel,
    .section-kicker,
    .metric-list span {
        -webkit-backdrop-filter: blur(26px) saturate(165%);
        backdrop-filter: blur(26px) saturate(165%);
    }

    .research-grid article {
        -webkit-backdrop-filter: blur(26px) saturate(165%);
        backdrop-filter: blur(26px) saturate(165%);
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .showcase-stats,
    .rollup,
    .recommendation-grid,
    .gallery-strip,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .cover-preview {
        max-width: 520px;
    }

    .showcase-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-panel {
        align-items: start;
    }

    .cta-panel a {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    header,
    main,
    footer {
        padding-left: 18px;
        padding-right: 18px;
        max-width: 100vw;
        overflow: hidden;
    }

    header {
        padding-top: 28px;
    }

    body.thesis-page .hero-layout,
    body.thesis-page .hero-copy,
    body.thesis-page .cover-preview,
    body.thesis-page .hero-actions,
    body.thesis-page .meta-grid,
    body.thesis-page .status,
    body.thesis-page .section {
        width: 100%;
        max-width: 330px;
    }

    body.thesis-page h1 {
        max-width: 330px;
        font-size: 27px;
        text-wrap: unset !important;
        overflow-wrap: anywhere;
    }

    body.thesis-page h2 {
        font-size: 29px;
        text-wrap: unset !important;
    }

    body.thesis-page .intro {
        max-width: 330px;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    body.thesis-page .eyebrow {
        display: block;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    body.thesis-page strong,
    body.thesis-page p,
    body.thesis-page figcaption,
    body.thesis-page a {
        overflow-wrap: anywhere;
    }

    .showcase-stats {
        grid-template-columns: 1fr;
    }

    .hero-actions a,
    .cta-panel a {
        width: 100%;
    }

    .status,
    .timeline div {
        grid-template-columns: 1fr;
    }

    .visual-frame {
        overflow-x: auto;
    }

    .visual-frame img {
        min-width: 0;
    }

    .cover-preview img,
    .gallery-strip img {
        min-width: 0;
    }

    .gallery-strip figure:first-child img,
    .gallery-strip img {
        height: 210px;
    }
}

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