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

:root {
    --black: #050504;
    --black-soft: #0d0b0a;
    --paper: #f3eadc;
    --paper-dim: #cbbdab;
    --ash: #8c8175;
    --ember: #d34b2f;
    --ember-deep: #8f2b1f;
    --line: rgba(243, 234, 220, 0.18);
    --line-strong: rgba(211, 75, 47, 0.58);
    --radius: 0;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "DM Mono", "Courier New", monospace;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(243, 234, 220, 0.025) 1px, transparent 1px),
        var(--black);
    background-size: 100% 18px;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(211, 75, 47, 0.64);
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--ember);
}

h1, h2, h3, h4 {
    color: var(--paper);
    font-family: var(--serif);
    line-height: 1.04;
    font-weight: 700;
}

p {
    color: var(--paper-dim);
}

ul {
    padding-left: 1.1rem;
}

li {
    margin-bottom: 0.56rem;
    color: var(--paper-dim);
}

strong {
    color: var(--paper);
}

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

.eyebrow,
.section-label,
.nav-links a,
.stat-label,
.family-role,
.dates,
.skill-tag,
.org-label,
.crumb,
.notice-label,
.company,
.info-table .label {
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 4, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-inner {
    width: min(1060px, calc(100% - 44px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.logo:hover {
    color: var(--ember);
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    color: rgba(243, 234, 220, 0.68);
    font-size: 0.7rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--line-strong);
    color: var(--paper);
}

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: flex-end;
    padding: 116px 0 74px;
    overflow: hidden;
    background: var(--black);
}

.hero::before {
    content: "";
    position: absolute;
    top: 118px;
    right: max(22px, calc((100vw - 1060px) / 2));
    width: min(310px, 28vw);
    height: 18px;
    background: var(--ember);
}

.hero::after,
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--line-strong);
}

.hero .container,
.page-header .container {
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 58px;
    align-items: end;
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.org-label,
.crumb,
.notice-label,
.section-label {
    color: var(--ember);
    font-size: 0.72rem;
}

.eyebrow {
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 740px;
    font-size: clamp(4rem, 8vw, 7rem);
    text-wrap: balance;
}

.hero-portrait {
    position: relative;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-strong);
    background: var(--black);
}

.hero-portrait::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(243, 234, 220, 0.08) 0,
            rgba(243, 234, 220, 0.08) 1px,
            transparent 1px,
            transparent 4px
        );
    mix-blend-mode: screen;
    opacity: 0.42;
}

.hero-portrait img {
    width: 100%;
    height: clamp(300px, 42vw, 480px);
    object-fit: cover;
    object-position: center 18%;
    filter: grayscale(1) contrast(1.12) brightness(0.86);
}

.hero-portrait figcaption {
    margin-top: 10px;
    color: var(--ember);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tagline {
    max-width: 620px;
    margin-top: 22px;
    color: var(--paper);
    font-size: 1.08rem;
}

.announcement,
.announcement-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    border-top: 1px solid var(--line-strong);
}

.announcement {
    width: min(660px, 100%);
    margin-top: 36px;
    padding-top: 18px;
}

.announcement-date {
    min-width: 112px;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 0.96;
}

.announcement p {
    color: var(--paper-dim);
    font-size: 0.97rem;
}

.hero-links,
.book-cta-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.btn:hover {
    border-color: var(--line-strong);
    color: var(--paper);
}

.btn-primary {
    background: var(--ember);
    border-color: var(--ember);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--black);
}

.btn-secondary,
.btn-secondary.dark {
    border-color: var(--line);
    color: var(--paper);
}

.intro,
.highlights,
.content,
.split-section,
.book-cta,
.quiet-band {
    padding: 78px 0;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.68fr) 1fr;
    gap: 46px;
    align-items: end;
    margin-bottom: 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.section-head h2,
.page-header h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.section-head p {
    max-width: 650px;
    font-size: 1rem;
}

.grid {
    display: grid;
    gap: 16px;
}

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

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.stat-card,
.value-card,
.family-card,
.job,
.edu-item,
.cert-card,
.contact-section,
.info-card,
.resume-summary,
.feature-panel,
.announcement-card {
    background: rgba(13, 11, 10, 0.84);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}

.card,
.feature-panel,
.value-card,
.family-card,
.job,
.edu-item,
.cert-card,
.contact-section,
.info-card,
.resume-summary {
    position: relative;
}

.card::before,
.feature-panel::before,
.value-card::before,
.job::before,
.edu-item::before,
.cert-card::before,
.contact-section::before,
.info-card::before,
.resume-summary::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42px;
    height: 2px;
    background: var(--ember);
}

.card,
.feature-panel {
    padding: 30px;
}

.card h2,
.card h3,
.feature-panel h2,
.feature-panel h3,
.value-card h3,
.family-card h3,
.job h3,
.cert-card h4,
.edu-item h3 {
    color: var(--paper);
}

.card h2,
.card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.card p,
.feature-panel p {
    margin-bottom: 12px;
}

.link-arrow {
    display: inline-flex;
    margin-top: 8px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.link-arrow::before {
    content: ">";
    margin-right: 0.5ch;
    color: var(--ember);
}

.link-arrow:hover {
    color: var(--ember);
}

.quiet-band {
    background: var(--paper);
    color: var(--black);
}

.quiet-band h2,
.quiet-band h3,
.quiet-band strong {
    color: var(--black);
}

.quiet-band p,
.quiet-band li {
    color: #4c433b;
}

.book-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.book-cta-card h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3.7rem);
}

.book-cta-card p {
    max-width: 760px;
}

.highlights {
    padding-top: 0;
}

.stat-card {
    min-height: 156px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-number {
    display: block;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.stat-label {
    margin-top: 18px;
    color: var(--paper-dim);
    font-size: 0.72rem;
}

.page-header {
    position: relative;
    padding: 92px 0 58px;
    background: var(--black);
    color: var(--paper);
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 48px;
    right: max(22px, calc((100vw - 1060px) / 2));
    width: min(280px, 34vw);
    height: 18px;
    background: var(--ember);
}

.page-header h1 {
    max-width: 860px;
}

.page-header .subtitle {
    max-width: 720px;
    margin-top: 16px;
    color: var(--paper-dim);
    font-size: 1.04rem;
}

.crumb,
.org-label {
    display: inline-block;
    margin-bottom: 16px;
}

.content h2 {
    margin: 32px 0 14px;
    font-size: 1.7rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 14px;
}

.info-card {
    padding: 24px;
    margin-bottom: 26px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    color: var(--paper-dim);
}

.info-table tr:last-child td {
    border-bottom: 0;
}

.info-table .label {
    width: 128px;
    padding-right: 14px;
    color: var(--ember);
    font-size: 0.68rem;
    font-weight: 500;
}

.family-intro {
    max-width: 780px;
    margin: 0 0 44px;
    font-size: 1.06rem;
}

.family-intro p {
    color: var(--paper);
}

.announcement-card {
    margin-bottom: 42px;
    padding: 24px;
    background: rgba(211, 75, 47, 0.12);
    border-color: var(--line-strong);
}

.announcement-card h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 54px;
}

.family-card {
    min-height: 216px;
    padding: 22px;
}

.family-card.parent,
.family-card.grandchild {
    background: var(--paper);
    color: var(--black);
    border-color: var(--paper);
}

.family-card.parent h3,
.family-card.parent p,
.family-card.parent .family-role,
.family-card.grandchild h3,
.family-card.grandchild p,
.family-card.grandchild .family-role {
    color: var(--black);
}

.family-card.grandchild {
    background: var(--ember);
    border-color: var(--ember);
}

.family-card.child-of-sophia {
    position: relative;
    margin-left: 24px;
}

.family-card.child-of-sophia::before {
    content: "↳";
    position: absolute;
    left: -22px;
    top: 22px;
    color: var(--ember);
    font-size: 1.4rem;
    font-weight: 700;
}

.family-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid var(--line-strong);
    color: var(--ember);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.parent .family-mark,
.grandchild .family-mark {
    border-color: rgba(5, 5, 4, 0.34);
    color: var(--black);
}

.family-card h3 {
    margin-bottom: 6px;
    font-size: 1.18rem;
}

.family-role {
    margin-bottom: 8px;
    color: var(--ember);
    font-size: 0.68rem;
    font-weight: 500;
}

.patron-saint {
    margin-bottom: 8px;
    color: var(--ash);
    font-size: 0.86rem;
    font-style: italic;
}

.family-card p {
    font-size: 0.94rem;
}

.value-card {
    min-height: 178px;
    padding: 24px;
}

.value-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.resume-summary {
    padding: 30px;
    margin-bottom: 38px;
    border-left: 1px solid var(--line-strong);
}

.job {
    padding: 28px;
    margin-bottom: 16px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.job h3 {
    font-size: 1.2rem;
}

.company {
    color: var(--ember);
    font-size: 0.68rem;
    font-weight: 500;
}

.dates {
    min-width: 142px;
    padding-top: 4px;
    color: var(--ash);
    font-size: 0.68rem;
    text-align: right;
}

.edu-section {
    margin-bottom: 34px;
}

.edu-item,
.cert-card,
.contact-section {
    padding: 22px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.cert-card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.skills-section {
    margin-bottom: 34px;
}

.skill-group {
    margin-bottom: 22px;
}

.skill-group h4 {
    margin-bottom: 10px;
    color: var(--paper);
}

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

.skill-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid var(--line);
    color: var(--paper-dim);
    background: transparent;
    font-size: 0.66rem;
}

.contact-section {
    margin-bottom: 34px;
}

.bio-block,
.mission-block,
.build-block,
.story-block {
    margin-bottom: 54px;
}

.bio-block p {
    max-width: 880px;
    font-size: 1.02rem;
}

.bio-block h2,
.mission-block h2,
.build-block h2,
.story-block h2 {
    margin-bottom: 20px;
}

.sig {
    margin-top: 18px;
    color: var(--ember);
    font-family: var(--serif);
    font-style: italic;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    background: var(--black);
    color: var(--ash);
    text-align: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

footer p {
    color: var(--ash);
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
        padding: 96px 0 60px;
    }

    .section-head,
    .hero .container,
    .book-cta-card,
    .two-col,
    .three-col {
        grid-template-columns: 1fr;
    }

    .book-cta-card {
        gap: 16px;
    }

    .job-header {
        flex-direction: column;
        gap: 4px;
    }

    .dates {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .container,
    .nav-inner {
        width: min(100% - 28px, 1060px);
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 4px;
    }

    .nav-links a {
        padding: 7px 8px;
    }

    .hero {
        padding: 78px 0 48px;
    }

    .hero::before {
        top: 82px;
        width: 132px;
        height: 12px;
    }

    .hero-portrait {
        order: -1;
        width: min(230px, 68vw);
    }

    .tagline {
        font-size: 1rem;
    }

    .announcement,
    .announcement-card {
        grid-template-columns: 1fr;
    }

    .announcement {
        padding: 16px 0 0;
    }

    .page-header {
        padding: 70px 0 46px;
    }

    .page-header::before {
        top: 36px;
        width: 132px;
        height: 12px;
    }

    .intro,
    .highlights,
    .content,
    .split-section,
    .book-cta,
    .quiet-band {
        padding: 56px 0;
    }

    .card,
    .feature-panel,
    .resume-summary,
    .job,
    .value-card,
    .family-card,
    .info-card,
    .cert-card,
    .contact-section {
        padding: 20px;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table .label {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .info-table td:last-child {
        padding-top: 0;
    }
}


/* === Diary / Blog === */
.diary-header .disclaimer-card {
    margin-top: 24px;
}

.disclaimer-card {
    max-width: 860px;
    padding: 18px 20px 18px 24px;
    border: 1px solid rgba(245, 197, 24, 0.45);
    background: rgba(245, 197, 24, 0.12);
    box-shadow: inset 5px 0 0 var(--gold);
    color: var(--white);
    border-radius: var(--radius);
    line-height: 1.55;
}

.diary-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.diary-feed {
    display: grid;
    gap: 18px;
}

.diary-entry,
.sidebar-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.diary-entry {
    padding: 28px;
}

.featured-entry {
    border-color: var(--line-strong);
}

.entry-date {
    margin-bottom: 10px;
    color: var(--ember);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.diary-entry h2 {
    margin-bottom: 12px;
    font-size: 1.65rem;
}

.diary-entry p + p {
    margin-top: 12px;
}

.diary-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h3 {
    margin-bottom: 12px;
}

.sidebar-card ul {
    padding-left: 18px;
}

.sidebar-card li + li {
    margin-top: 8px;
}

@media (max-width: 820px) {
    .diary-layout {
        grid-template-columns: 1fr;
    }

    .diary-sidebar {
        position: static;
    }
}


/* === Individual Diary Posts === */
.narrow-container {
    max-width: 880px;
}

.post-body {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 11, 10, 0.84);
}

.post-body p {
    color: var(--paper);
    font-size: 1.06rem;
    line-height: 1.85;
}

.post-body p + p {
    margin-top: 20px;
}

.post-back {
    margin-top: 24px;
}

.diary-entry h2 a {
    color: var(--paper);
    text-decoration: none;
}

.diary-entry h2 a:hover {
    color: var(--gold);
}


.post-body blockquote {
    margin: 0 0 26px;
    padding: 18px 22px;
    border-left: 5px solid var(--gold);
    background: rgba(245, 197, 24, 0.1);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.65;
}
