/* =====================================================================
   mmarca.tech — "Centered airy" design system
   Global harmonization of shared MudBlazor primitives so every page
   inherits the home page's visual language. Purely presentational:
   no markup or component logic depends on these rules.
   ===================================================================== */

/* --- Headings: thin, airy, gently tracked (mirrors the home hero) --- */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3 {
    font-weight: 200 !important;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-weight: 300 !important;
    letter-spacing: 0.02em;
}

/* --- Quiet secondary text --- */
.mud-typography-overline {
    letter-spacing: 0.18em !important;
    opacity: 0.6;
}

.mud-typography-caption {
    opacity: 0.6;
}

.mud-typography-subtitle2 {
    letter-spacing: 0.01em;
}

/* --- Dividers: hairline --- */
.mud-divider {
    opacity: 0.25;
}

/* --- Links: no underline, underline on hover with offset (home nav) --- */
.mud-link {
    text-decoration: none;
}

.mud-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Buttons: minimal, tracked, no shout-caps, no shadow --- */
.mud-button-root {
    text-transform: none;
    letter-spacing: 0.03em;
    box-shadow: none !important;
}

/* --- Chips: tracked, calm --- */
.mud-chip {
    letter-spacing: 0.02em;
}

/* --- Flatten: no drop shadows on surfaces (airy, editorial) --- */
.mud-paper {
    box-shadow: none !important;
}

/* ---------------------------------------------------------------------
   Page hero — centered, enlarged title block mirroring the home page.
   Usage:
     <div class="page-hero">
         <h1 class="page-hero-title">Title</h1>
         <p class="page-hero-sub">Optional caption</p>
         <div class="page-hero-rule"></div>
     </div>
   --------------------------------------------------------------------- */
.page-hero {
    max-width: 900px;
    margin: 3.5rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
}

.page-hero-title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.page-hero-sub {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.6;
}

.page-hero-rule {
    width: 48px;
    height: 1px;
    margin-top: 2.5rem;
    background: currentColor;
    opacity: 0.25;
}

@media (max-width: 600px) {
    .page-hero {
        margin-top: 2rem;
    }
    .page-hero-title {
        font-size: 2.1rem;
    }
}

/* ---------------------------------------------------------------------
   Split-pane hairlines (Journal & Courses share .course-tree-panel).
   Soften the panel edge to a translucent hairline that reads the same
   in light and dark, and keep a gentle tint on the selected entry so
   the selection cue survives the flattened (shadowless) surfaces.
   --------------------------------------------------------------------- */
.course-tree-panel {
    border-right-color: rgba(127, 127, 127, 0.22) !important;
}

.journal-post-selected {
    background: rgba(127, 127, 127, 0.08);
}
