:root {
    --bg: #f5f1e8;
    --bg-accent: #ece6d8;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --text: #1d1f24;
    --muted: #626b7a;
    --line: #d9d0c0;
    --accent: #2453a6;
    --accent-strong: #173972;
    --accent-soft: rgba(36, 83, 166, 0.08);
    --warm: #9a5a18;
    --warm-soft: rgba(154, 90, 24, 0.1);
    --shadow: 0 18px 40px rgba(29, 31, 36, 0.07);
    --shadow-strong: 0 28px 72px rgba(29, 31, 36, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(36, 83, 166, 0.09), transparent 24%),
        radial-gradient(circle at left 16%, rgba(154, 90, 24, 0.08), transparent 26%),
        repeating-linear-gradient(180deg, transparent 0, transparent 34px, rgba(36, 83, 166, 0.035) 34px, rgba(36, 83, 166, 0.035) 35px),
        var(--bg);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    line-height: 1.72;
}

body.modal-open {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

body::before {
    top: -140px;
    right: -90px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(36, 83, 166, 0.13), transparent 68%);
}

body::after {
    left: -90px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(154, 90, 24, 0.12), transparent 68%);
}

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

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

code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(29, 31, 36, 0.06);
    font-family: "Courier New", monospace;
    font-size: 0.92em;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 10;
    background: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(217, 208, 192, 0.88);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(29, 31, 36, 0.06);
}

.site-brand {
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    flex-wrap: wrap;
}

.site-links a {
    position: relative;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-links a:hover,
.site-links a.active {
    color: var(--text);
}

.site-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.hero {
    position: relative;
    padding: 104px 0 36px;
}

.hero::after {
    content: "";
    position: absolute;
    right: 3%;
    top: 56px;
    width: min(260px, 28vw);
    aspect-ratio: 1;
    border: 1px dashed rgba(36, 83, 166, 0.2);
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: start;
}

.hero-side {
    display: grid;
    gap: 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(36, 83, 166, 0.12);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 12ch;
    margin-top: 18px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(3.2rem, 7vw, 5.7rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero p {
    max-width: 42rem;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-role {
    margin-top: 16px;
    color: var(--warm);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-note,
.blog-card,
.blog-post-header,
.blog-post-content,
.placeholder-card,
.pagination-card,
.surface-card,
.story-panel,
.strength-card,
.work-step,
.project-card,
.contact-card {
    border: 1px solid rgba(217, 208, 192, 0.92);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: var(--shadow);
}

.hero-note {
    position: relative;
    padding: 24px;
    overflow: hidden;
}

.profile-card {
    padding: 18px;
    border: 1px solid rgba(217, 208, 192, 0.92);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow);
}

.profile-media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 3;
    min-height: 320px;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(217, 208, 192, 0.9);
    background:
        radial-gradient(circle at top, rgba(36, 83, 166, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 230, 216, 0.9));
    overflow: hidden;
}

.profile-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    border-radius: 0;
}

.profile-card-copy {
    margin-top: 14px;
}

.profile-card-copy strong {
    display: block;
    color: var(--warm);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-card-copy span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.hero-note::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(36, 83, 166, 0.06), transparent 46%),
        repeating-linear-gradient(180deg, transparent 0, transparent 21px, rgba(154, 90, 24, 0.05) 21px, rgba(154, 90, 24, 0.05) 22px);
    pointer-events: none;
}

.hero-note strong {
    position: relative;
    display: block;
    margin-bottom: 10px;
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm);
}

.hero-note p {
    position: relative;
    margin-top: 0;
    font-size: 0.98rem;
}

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

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-stat {
    min-width: 148px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 208, 192, 0.95);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 10px 24px rgba(29, 31, 36, 0.04);
}

.hero-stat strong {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.section-shell {
    padding: 26px 0 84px;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
}

.section-heading p {
    max-width: 30rem;
    color: var(--muted);
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.surface-card {
    padding: clamp(24px, 3vw, 34px);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: 24px;
    align-items: start;
}

.story-copy {
    position: relative;
    overflow: hidden;
}

.story-copy::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, var(--accent), var(--warm));
}

.story-copy p {
    position: relative;
    max-width: 60ch;
    color: var(--muted);
}

.story-copy p + p {
    margin-top: 1rem;
}

.story-panel {
    padding: 22px;
    display: grid;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(36, 83, 166, 0.06), transparent 52%),
        rgba(255, 253, 248, 0.94);
}

.story-fact {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(217, 208, 192, 0.9);
}

.story-fact span,
.project-meta,
.contact-line {
    display: block;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-fact strong {
    display: block;
    margin-top: 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.4;
}

.certificate-showcase {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.certificate-showcase-wide {
    margin-top: 0;
}

.certificate-kicker,
.certificate-modal-kicker {
    display: inline-flex;
    color: var(--warm);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.certificate-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(217, 208, 192, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.certificate-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 83, 166, 0.24);
    box-shadow: 0 12px 24px rgba(29, 31, 36, 0.06);
}

.certificate-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(217, 208, 192, 0.85);
    background: rgba(245, 241, 232, 0.8);
}

.certificate-label {
    color: var(--text);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

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

.strength-card,
.work-step,
.project-card {
    padding: 24px;
}

.strength-card h3,
.work-step h3,
.project-card h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.12;
}

.strength-card h3 {
    font-size: 1.45rem;
}

.strength-card p,
.work-step p,
.project-card p,
.contact-copy {
    margin-top: 12px;
    color: var(--muted);
}

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

.work-step {
    position: relative;
    overflow: hidden;
}

.work-step::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--warm), var(--accent));
}

.work-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.work-step h3 {
    margin-top: 16px;
    font-size: 1.35rem;
}

.focus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.focus-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(36, 83, 166, 0.12);
    background: linear-gradient(135deg, rgba(36, 83, 166, 0.08), rgba(255, 253, 248, 0.94));
    color: var(--accent-strong);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.focus-item-lead {
    border-color: rgba(154, 90, 24, 0.18);
    background: linear-gradient(135deg, rgba(154, 90, 24, 0.12), rgba(255, 253, 248, 0.96));
    color: var(--text);
}

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

.project-card {
    display: flex;
    flex-direction: column;
}

.project-meta {
    color: var(--warm);
}

.project-card h3 {
    margin-top: 12px;
    font-size: 1.55rem;
}

.text-link,
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--accent-strong);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.text-link::after,
.contact-link::after {
    content: "->";
    font-size: 0.9em;
}

.text-link:hover,
.contact-link:hover {
    color: var(--warm);
}

.contact-card {
    padding: clamp(24px, 3vw, 34px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(36, 83, 166, 0.08), transparent 48%),
        rgba(255, 253, 248, 0.95);
}

.contact-line {
    margin: 0;
}

.contact-link {
    margin-top: 10px;
    font-size: 1rem;
}

.contact-copy {
    margin-top: 10px;
    max-width: 30ch;
}

.certificate-modal[hidden] {
    display: none;
}

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 22px;
}

.certificate-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 31, 36, 0.62);
    backdrop-filter: blur(6px);
}

.certificate-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(217, 208, 192, 0.9);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-strong);
}

.certificate-modal-dialog h3 {
    margin-top: 10px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.05;
}

.certificate-modal-image {
    width: 100%;
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid rgba(217, 208, 192, 0.9);
}

.certificate-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 9px 14px;
    border: 1px solid rgba(29, 31, 36, 0.14);
    border-radius: 999px;
    background: rgba(29, 31, 36, 0.04);
    color: var(--text);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.certificate-close:hover {
    background: rgba(29, 31, 36, 0.08);
}

.blog-list {
    display: grid;
    gap: 22px;
}

.blog-page {
    min-height: 100vh;
}

.blog-hero {
    padding-bottom: 42px;
}

.page-home .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    counter-reset: post-cards;
}

.page-home .blog-card:first-child {
    grid-column: 1 / -1;
}

.page-archive .blog-list {
    width: min(760px, 100%);
    margin: 0 auto;
    counter-reset: post-cards;
}

.blog-card {
    position: relative;
    overflow: hidden;
    counter-increment: post-cards;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, var(--accent), var(--warm));
}

.blog-card::after {
    content: counter(post-cards, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 22px;
    color: rgba(36, 83, 166, 0.16);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.page-home .blog-card:first-child {
    padding-top: 34px;
    background:
        linear-gradient(135deg, rgba(36, 83, 166, 0.08), transparent 52%),
        rgba(255, 253, 248, 0.95);
}

.page-home .blog-card:first-child h3 {
    max-width: 18ch;
}

.blog-card-meta,
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
}

.blog-card h3 {
    margin-top: 14px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.95rem, 3vw, 2.7rem);
    line-height: 1.02;
    text-wrap: balance;
}

.blog-card-title {
    display: block;
}

.blog-card p {
    margin-top: 14px;
    color: var(--muted);
    max-width: 58ch;
}

.blog-card-footer,
.blog-post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.blog-post-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(217, 208, 192, 0.95);
}

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

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(36, 83, 166, 0.14);
    background: rgba(36, 83, 166, 0.06);
    color: var(--accent-strong);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.button-link,
.blog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--text), var(--accent-strong));
    color: var(--surface-strong);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 10px 24px rgba(23, 57, 114, 0.18);
}

.button-link:hover,
.blog-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--accent), var(--warm));
}

.button-link.ghost {
    background: rgba(255, 253, 248, 0.72);
    color: var(--text);
    border: 1px solid rgba(29, 31, 36, 0.18);
    box-shadow: none;
}

.button-link.ghost:hover {
    background: rgba(29, 31, 36, 0.05);
}

.blog-post {
    padding: 36px 0 82px;
}

.blog-post-shell {
    width: min(860px, 100%);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

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

.blog-back-link {
    gap: 8px;
}

.blog-post-header,
.blog-post-content,
.placeholder-card {
    padding: clamp(26px, 4vw, 40px);
}

.blog-post-header h1,
.placeholder-card h1 {
    margin-top: 16px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2.7rem, 6vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.blog-post-lead,
.placeholder-card p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.06rem;
}

.blog-post-lead {
    max-width: 44rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.75;
}

.blog-post-content {
    margin-top: 22px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.14rem;
    line-height: 1.9;
}

.blog-post-content > p:first-child::first-letter {
    float: left;
    margin-right: 0.12em;
    font-size: 3.5em;
    line-height: 0.82;
    color: var(--accent-strong);
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.08;
}

.blog-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.blog-post-content p + p {
    margin-top: 1rem;
}

.blog-post-content ul {
    margin: 1rem 0 1rem 1.25rem;
}

.blog-post-content ol {
    margin: 1rem 0 1rem 1.25rem;
}

.blog-post-content li + li {
    margin-top: 0.45rem;
}

.blog-post-content a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: rgba(36, 83, 166, 0.35);
    text-underline-offset: 0.18em;
}

.blog-post-content a:hover {
    color: var(--warm);
}

.blog-post-content pre {
    overflow-x: auto;
    margin: 1.4rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(217, 208, 192, 0.92);
    border-radius: 20px;
    background: rgba(29, 31, 36, 0.95);
    color: #f5f1e8;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-post-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.blog-post-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(217, 208, 192, 0.95);
}

.blog-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--warm);
    border-radius: 0 18px 18px 0;
    background: linear-gradient(135deg, var(--warm-soft), rgba(36, 83, 166, 0.05));
    color: #4e3413;
    font-size: 1.08em;
    font-style: italic;
}

.blog-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.pagination-card {
    padding: 18px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pagination-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 83, 166, 0.28);
}

.pagination-card span {
    display: block;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pagination-card strong {
    display: block;
    margin-top: 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.04rem;
    line-height: 1.35;
}

.placeholder-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.small-note {
    margin-top: 18px;
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
}

.site-footer {
    padding: 34px 0 46px;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(217, 208, 192, 0.95);
    color: var(--muted);
    font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero::after {
        display: none;
    }

    .profile-media-frame {
        min-height: 280px;
    }

    .page-home .blog-list {
        grid-template-columns: 1fr;
    }

    .story-grid,
    .project-grid,
    .contact-card,
    .strength-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1080px);
    }

    .site-nav,
    .blog-card-footer,
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        top: 10px;
    }

    .hero {
        padding-top: 88px;
    }

    .blog-pagination {
        grid-template-columns: 1fr;
    }

    .site-brand {
        letter-spacing: 0.14em;
    }

    .hero h1 {
        max-width: 100%;
    }

    .section-heading h2 {
        line-height: 1.06;
    }

    .hero-stats,
    .focus-grid {
        gap: 10px;
    }

    .certificate-modal-dialog {
        padding: 18px;
    }
}

@media (max-width: 540px) {
    .site-nav {
        padding: 14px 16px;
    }

    .site-links {
        gap: 12px 14px;
    }

    .site-links a {
        font-size: 0.86rem;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        width: 100%;
    }

    .profile-card {
        padding: 14px;
        border-radius: 24px;
    }

    .profile-media-frame {
        min-height: 240px;
        border-radius: 20px;
    }

    .button-link,
    .blog-link {
        width: 100%;
    }

    .hero-role,
    .section-kicker,
    .story-fact span,
    .project-meta,
    .contact-line {
        letter-spacing: 0.06em;
    }

    .hero p,
    .section-heading p,
    .story-copy p,
    .strength-card p,
    .work-step p,
    .project-card p,
    .contact-copy {
        font-size: 1rem;
    }

    .blog-card,
    .strength-card,
    .work-step,
    .project-card,
    .contact-card,
    .story-panel {
        border-radius: 24px;
    }

    .focus-item {
        width: 100%;
        justify-content: center;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .certificate-modal {
        padding: 14px;
    }

    .certificate-modal-dialog {
        border-radius: 22px;
    }
}
