/* Compact academic index: profile, recent material, subject navigation.
   Structure reference: https://robjhyndman.com/ */
.page-home {
    --paper: #fcfcfa;
    --paper-deep: #f1f4ef;
    --ink: #293b35;
    --muted: #69746d;
    --burgundy: #246655;
    --burgundy-dark: #194c3e;
    --olive: #526f61;
    --line: #e0e5de;
    background: var(--paper);
    color: var(--ink);
}
[data-theme="dark"] .page-home {
    --paper: #1b2621;
    --paper-deep: #25352c;
    --ink: #e7eee8;
    --muted: #afbeb2;
    --burgundy: #9cd4b9;
    --burgundy-dark: #b8e3ce;
    --olive: #b4c7b9;
    --line: #3b4a40;
}
.page-home .container { width: min(1160px, calc(100% - 80px)); }
.page-home .topline { display: none; }
.page-home .site-header { min-height: 78px; gap: 24px; border-bottom: 1px solid var(--line); }
.page-home .brand { gap: 13px; }
.page-home .brand-monogram { font-size: 38px; color: var(--burgundy); }
.page-home .brand-name { font: 600 16px/1.4 var(--sans); letter-spacing: -.3px; }
.page-home .brand-name small { font-size: 7px; font-weight: 400; letter-spacing: 1px; margin-top: 4px; }
.page-home .main-nav { font-size: 12px; gap: 20px; }
.page-home .main-nav>a.active:after { height: 2px; }
.page-home :is(a, button):focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.home-index { padding-bottom: 48px; }
.home-profile { display: flex; gap: 18px; align-items: center; padding-block: 27px; border-bottom: 1px solid var(--line); }
.home-profile-photo { flex: 0 0 auto; }
.home-profile-photo img { width: 64px; height: 64px; object-fit: cover; object-position: center 27%; border-radius: 50%; }
.home-profile-info { min-width: 0; }
.home-profile h1 { font: 600 25px/1.3 var(--sans); letter-spacing: -.6px; margin: 0 0 7px; }
.home-profile p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.home-profile p>span { padding-inline: 4px; }
.home-profile-link { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; padding-block: 12px; flex: 0 0 auto; font-size: 12px; color: var(--burgundy); }
.home-profile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; }
.home-area-card { --area-accent: #386752; --area-background: #f0f5ef; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 96px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--area-background); color: var(--ink); }
.area-audio { --area-accent: #9a6b3f; --area-background: #f8f2e9; grid-template-columns: 32px minmax(0, 1fr); }
.area-writing { --area-accent: #77638e; --area-background: #f4f0f6; }
.area-video { --area-accent: #496b8c; --area-background: #eef3f7; }
.home-area-icon { color: var(--area-accent); display: grid; place-items: center; }
.home-area-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-area-copy { min-width: 0; }
.home-area-copy strong { display: block; font: 600 14px/1.5 var(--sans); letter-spacing: -.2px; }
.home-area-copy small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 4px; }
.home-area-arrow { align-self: start; color: var(--area-accent); font-size: 17px; line-height: 1.2; }
a.home-area-card:hover { border-color: var(--area-accent); box-shadow: 0 3px 12px #263c2b0a; }
[data-theme="dark"] .home-area-card { --area-accent: #9bcbb0; --area-background: #26392e; }
[data-theme="dark"] .area-audio { --area-accent: #d6b78d; --area-background: #383227; }
[data-theme="dark"] .area-writing { --area-accent: #c2afd7; --area-background: #322e3b; }
[data-theme="dark"] .area-video { --area-accent: #a4bfd8; --area-background: #293540; }
.home-pinned { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.home-pinned>span { font-size: 10px; color: var(--muted); }
.home-pinned>a { font-size: 14px; font-weight: 500; }
.home-pinned>a:hover { color: var(--burgundy); }
.home-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 48px; padding-top: 29px; }
.home-feed, .home-sidebar { min-width: 0; }
.home-feed-section+.home-feed-section { margin-top: 32px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-section-heading h2, .home-sidebar-section>h2 { font: 600 20px/1.4 var(--sans); letter-spacing: -.4px; margin: 0; }
.home-section-heading h2>span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.home-section-heading>a { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font-size: 11px; color: var(--burgundy); padding-block: 5px; }
.home-section-heading>a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-entry { padding-block: 17px; border-bottom: 1px solid var(--line); }
.home-entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.home-entry-meta>span:first-child { color: var(--olive); font-weight: 500; }
.home-entry-meta time { margin-left: auto; white-space: nowrap; font-size: 10px; }
.home-entry h3 { font: 500 19px/1.4 var(--sans); letter-spacing: -.3px; margin: 7px 0 6px; overflow-wrap: anywhere; }
.home-entry h3 a:hover { color: var(--burgundy); text-decoration: underline; text-underline-offset: 4px; }
.home-entry>p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-file-link { font-size: 10px; display: inline-flex; gap: 10px; color: var(--burgundy); margin-top: 7px; }
.home-file-link:hover { text-decoration: underline; }
.page-home .demo-label { color: var(--muted); border-color: var(--line); font-size: 8px; }
.home-featured-label { font-size: 9px; color: var(--burgundy); }
.home-empty { margin: 0; padding-block: 20px; font-size: 13px; color: var(--muted); }
.home-sidebar { border-left: 1px solid var(--line); padding-left: 27px; }
.home-sidebar-section+.home-sidebar-section { margin-top: 27px; }
.home-sidebar-section>h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 17px; }
.home-sidebar .home-section-heading h2 { font-size: 17px; }
.home-topic-list { display: flex; flex-direction: column; }
.home-topic-list>a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.home-topic-list small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--muted); }
.home-topic-list>a>span:last-child { color: var(--muted); font-size: 16px; }
.home-topic-list>a:hover, .home-writing-links a:hover { color: var(--burgundy); }
.home-video-entry { display: flex; align-items: flex-start; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.home-video-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; margin-top: 2px; border: 1px solid var(--line); border-radius: 5px; color: var(--burgundy); font-size: 18px; background: var(--paper-deep); }
.home-video-entry>div { min-width: 0; }
.home-video-entry h3 { font: 500 13px/1.6 var(--sans); margin: 0 0 5px; overflow-wrap: anywhere; }
.home-video-entry h3 a:hover { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.home-video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 9px; }
.home-writing-links { display: flex; flex-direction: column; }
.home-writing-links>a { display: flex; justify-content: space-between; gap: 15px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.home-writing-links>a>span { color: var(--muted); }
.page-home .site-footer { background: var(--paper-deep); }
.page-home .footer-main { padding-block: 30px; }
.page-home .footer-name { font: 500 24px/1.4 var(--sans); letter-spacing: -.5px; }
@media (max-width: 1100px) {
    .page-home .container { width: calc(100% - 64px); }
    .page-home .main-nav { top: calc(100% - 1px); font-size: 14px; }
    .page-home .main-nav.is-open { gap: 3px; }
    .home-dashboard { grid-template-columns: minmax(0, 1fr) 255px; gap: 30px; }
    .home-sidebar { padding-left: 22px; }
    .home-profile h1 { font-size: 23px; }
    .home-profile p { max-width: 440px; }
    .home-area-card { grid-template-columns: 1fr auto; gap: 10px; align-content: start; padding: 15px; }
    .home-area-icon { justify-self: start; grid-column: 1; grid-row: 1; }
    .home-area-arrow { grid-column: 2; grid-row: 1; }
    .home-area-copy { grid-column: 1 / -1; grid-row: 2; }
    .home-area-copy strong { font-size: 13px; }
}
@media (max-width: 760px) {
    .page-home .container { width: calc(100% - 40px); }
    .home-profile { gap: 15px; padding-block: 23px; flex-wrap: wrap; }
    .home-profile-info { flex: 1; }
    .home-profile h1 { font-size: 22px; }
    .home-profile p { font-size: 11px; }
    .home-profile-link { margin-left: 79px; margin-top: -10px; font-size: 11px; padding-block: 4px; }
    .home-dashboard { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
    .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
    .home-sidebar-section+.home-sidebar-section { margin-top: 0; }
    .home-section-heading h2 { font-size: 20px; }
    .home-entry h3 { font-size: 18px; }
    .home-entry-meta time { font-size: 9px; }
    .home-feed-section+.home-feed-section { margin-top: 27px; }
    .home-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 18px; }
    .home-area-card { grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; align-content: center; gap: 11px; }
    .home-area-icon { grid-column: 1; }
    .home-area-copy { grid-column: 2; grid-row: 1; }
    .home-area-arrow { grid-column: 3; }
    .area-audio { grid-template-columns: 30px minmax(0, 1fr); }
}
@media (max-width: 540px) {
    .page-home .site-header { min-height: 72px; gap: 6px; }
    .page-home .brand { gap: 9px; }
    .page-home .brand-monogram { font-size: 34px; }
    .page-home .brand-name { font-size: 13px; }
    .page-home .brand-name small { font-size: 6px; letter-spacing: .7px; }
    .home-profile-photo img { width: 52px; height: 52px; }
    .home-profile { gap: 13px; padding-block: 20px; }
    .home-profile h1 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 5px; }
    .home-profile p { font-size: 10px; }
    .home-profile-link { margin-left: 65px; margin-top: -8px; }
    .home-entry { padding-block: 15px; }
    .home-entry-meta { font-size: 9px; gap: 5px 7px; }
    .home-entry-meta time { font-size: 8px; }
    .home-entry h3 { font-size: 17px; }
    .home-entry>p { font-size: 12px; }
    .home-sidebar { grid-template-columns: 1fr; gap: 28px; }
    .home-video-entry h3 { font-size: 14px; }
    .home-video-meta { font-size: 10px; }
    .home-area-card { grid-template-columns: 1fr auto; align-content: start; gap: 9px; padding: 13px; }
    .home-area-copy { grid-column: 1 / -1; grid-row: 2; }
    .home-area-arrow { grid-column: 2; }
    .home-area-icon svg { width: 23px; height: 23px; }
    .home-area-copy strong { font-size: 12px; }
    .home-area-copy small { font-size: 9px; }
}
@media (max-width: 360px) {
    .page-home .container { width: calc(100% - 32px); }
    .page-home .brand { gap: 7px; }
    .page-home .brand-name { font-size: 12px; }
    .page-home .brand-name small { font-size: 5.8px; }
    .page-home .brand-monogram { font-size: 32px; }
    .home-profile h1 { font-size: 18px; }
    .home-entry-meta time { margin-left: 0; }
}
@media print {
    .page-home { --paper: #fff; --ink: #111; --muted: #444; --line: #ccc; }
    .home-dashboard { grid-template-columns: 1fr; }
    .home-sidebar, .home-profile-link { display: none; }
    .home-entry { break-inside: avoid; }
}
