/* ==========================================================================
   The Scrantonian - Main Stylesheet
   A Digital Archive of Scranton, Pennsylvania History
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Box Sizing
   ========================================================================== */

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

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Primary Colors */
    --cream: #F5F1E8;
    --charcoal: #2C2C2C;
    --brown: #6B4423;
    --anthracite: #3D3D3D;
    --rust: #8B4513;
    --steel-blue: #4A5568;
    --light-rule: #D4CFC4;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 24px;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 17px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   Header & Masthead
   ========================================================================== */

header {
    border-bottom: 3px solid var(--charcoal);
    padding-bottom: 0;
}

/* Full Masthead (Home Page) */
.masthead {
    text-align: center;
    padding: 40px 0 28px;
    position: relative;
}

.masthead-ornament {
    font-size: 0.9rem;
    color: var(--brown);
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.masthead-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 12px;
}

.masthead-title a {
    color: inherit;
    text-decoration: none;
}

.masthead-title a:hover {
    color: var(--brown);
}

.masthead-tagline {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel-blue);
    margin-bottom: 8px;
}

.masthead-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--anthracite);
}

.masthead-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    gap: 16px;
}

.masthead-rule span {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown);
}

.masthead-rule-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brown), transparent);
}

/* Compact Masthead (Interior Pages) */
body:not(.home) .masthead {
    padding: 28px 0 20px;
}

body:not(.home) .masthead-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

body:not(.home) .masthead-subtitle {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
    background-color: var(--charcoal);
    padding: 0;
}

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    padding: 14px 28px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--brown);
}

.nav-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.nav-divider {
    color: var(--anthracite);
    font-size: 0.5rem;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--light-rule);
}

.breadcrumb-inner {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--steel-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--steel-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brown);
}

.breadcrumb-separator {
    color: var(--brown);
    font-size: 0.6rem;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */

.hero {
    padding: 60px 0;
    border-bottom: 1px solid var(--light-rule);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-main {
    border-right: 1px solid var(--light-rule);
    padding-right: 48px;
}

.hero-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-label::before,
.hero-label::after {
    content: "\2726";
    font-size: 0.6rem;
}

.hero-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(145deg, #D4CFC4 0%, #C4BFB4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 3px double var(--light-rule);
    position: relative;
}

.hero-image::before,
.hero-image::after {
    position: absolute;
    font-size: 1rem;
    color: var(--brown);
    opacity: 0.5;
}

.hero-image::before {
    content: "\2767";
    top: 8px;
    left: 12px;
}

.hero-image::after {
    content: "\2767";
    bottom: 8px;
    right: 12px;
    transform: rotate(180deg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--anthracite);
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--brown);
}

.hero-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--anthracite);
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-item {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light-rule);
    position: relative;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item .sidebar-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: left;
}

.sidebar-item .sidebar-title a {
    color: var(--charcoal);
    text-decoration: none;
}

.sidebar-item .sidebar-title a:hover {
    color: var(--brown);
}

.sidebar-meta {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-meta::before {
    content: "\2666";
    font-size: 0.5rem;
}

.sidebar-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--anthracite);
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "\2014";
    color: var(--brown);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--light-rule), transparent);
}

/* Section Heading (Biography style) */
.section-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--charcoal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading::before {
    content: "\2014";
    color: var(--brown);
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
    padding: 56px 0;
    border-top: 1px solid var(--light-rule);
    border-bottom: 1px solid var(--light-rule);
    background-color: rgba(75, 85, 104, 0.02);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background-color: var(--cream);
    border: 1px solid var(--light-rule);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid var(--light-rule);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.category-card:hover {
    border-color: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.1);
}

.category-card:hover::before {
    opacity: 1;
    border-color: var(--brown);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--brown);
    opacity: 0.85;
}

.category-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.category-count {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-blue);
}

/* ==========================================================================
   Content Grid (Cards)
   ========================================================================== */

.content-section {
    padding: 56px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(145deg, #D4CFC4 0%, #C4BFB4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--light-rule);
    overflow: hidden;
}

.card-image-portrait {
    height: auto;
    aspect-ratio: 9 / 16;
}

.card-image-landscape {
    height: auto;
    aspect-ratio: 4 / 3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-text {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--anthracite);
    opacity: 0.6;
}

.card-category {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-category::before {
    content: "\2022";
    font-size: 0.6rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--charcoal);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--brown);
}

.card-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--anthracite);
}

/* ==========================================================================
   Quote Block
   ========================================================================== */

.quote-section {
    padding: 48px 0;
    border-top: 1px solid var(--light-rule);
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 48px;
    text-align: center;
    border-top: 2px solid var(--brown);
    border-bottom: 2px solid var(--brown);
    position: relative;
}

.quote-block::before {
    content: "\201C";
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--brown);
    opacity: 0.25;
    position: absolute;
    top: 0;
    left: 24px;
    line-height: 1;
}

.quote-block blockquote {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--anthracite);
    margin-bottom: 16px;
    line-height: 1.6;
}

.quote-block cite {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown);
}

/* ==========================================================================
   Person/Entity Header
   ========================================================================== */

.person-header {
    padding: 48px 0;
    border-bottom: 1px solid var(--light-rule);
}

.person-header-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.portrait-container {
    position: relative;
}

/* Decorative Portrait Frame */
.portrait-frame {
    border: 3px double var(--brown);
    padding: 8px;
    background: var(--cream);
    position: relative;
}

.portrait-inner {
    border: 1px solid var(--brown);
    padding: 4px;
}

.portrait {
    width: 100%;
    aspect-ratio: 9/16;
    background: linear-gradient(145deg, #D4CFC4 0%, #C4BFB4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portrait.landscape {
    aspect-ratio: 4/3;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--anthracite);
    opacity: 0.6;
    text-align: center;
    padding: 20px;
}

.portrait-caption {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--anthracite);
    text-align: center;
    margin-top: 12px;
}

/* Corner ornaments for portrait */
.portrait-frame::before,
.portrait-frame::after {
    position: absolute;
    font-size: 1rem;
    color: var(--brown);
    opacity: 0.6;
}

.portrait-frame::before {
    content: "\2767";
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.portrait-frame::after {
    content: "\2767";
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.person-info {
    padding-top: 8px;
}

.person-category {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.person-category::before {
    content: "\2666";
    font-size: 0.5rem;
    color: var(--brown);
}

.person-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.person-dates {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--brown);
    margin-bottom: 24px;
}

.person-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--anthracite);
    border-left: 3px solid var(--brown);
    padding-left: 20px;
}

/* Vital Stats */
.vital-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--light-rule);
    background: linear-gradient(to bottom, rgba(107, 68, 35, 0.03), transparent);
    position: relative;
}

.vital-stats::before {
    content: "\2014 Vital Information \2014";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    padding: 0 12px;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel-blue);
}

.vital-stat {
    display: flex;
    flex-direction: column;
}

.vital-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 4px;
}

.vital-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
}

.vital-value a,
.vital-value a:visited {
    color: var(--charcoal);
    text-decoration: none;
}

.vital-value a:hover {
    color: var(--brown);
}

/* ==========================================================================
   Content Layout (Article + Sidebar)
   ========================================================================== */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 48px 0;
}

/* ==========================================================================
   Biography / Article Content
   ========================================================================== */

.biography {
    max-width: 720px;
}

.biography p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
}

.biography p:last-child {
    margin-bottom: 0;
}

/* Decorative Drop Cap */
.drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.75;
    padding-right: 12px;
    padding-top: 8px;
    color: var(--brown);
    text-shadow: 2px 2px 0 rgba(107, 68, 35, 0.1);
}

/* ==========================================================================
   Sidebar (Related Content)
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-section {
    background-color: var(--cream);
    border: 1px solid var(--light-rule);
    padding: 24px;
    position: relative;
}

/* Decorative inner border for sidebar */
.sidebar-section::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid var(--light-rule);
    pointer-events: none;
    opacity: 0.6;
}

.sidebar-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-rule);
    text-align: center;
}

/* Roles List */
.role-list {
    list-style: none;
}

.role-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-rule);
}

.role-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.role-item:first-child {
    padding-top: 0;
}

.role-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.role-dates {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--steel-blue);
}

/* Related Items List */
.related-list {
    list-style: none;
}

.related-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-rule);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:first-child {
    padding-top: 0;
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-category {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 4px;
}

.related-name {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    transition: color 0.2s ease;
}

.related-link:hover .related-name {
    color: var(--brown);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--light-rule);
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--light-rule);
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "\2666";
    position: absolute;
    left: -38px;
    top: 2px;
    font-size: 0.7rem;
    color: var(--brown);
}

.timeline-year {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--brown);
    margin-bottom: 6px;
}

.timeline-event {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
}

/* ==========================================================================
   Sources Section
   ========================================================================== */

.sources-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--light-rule);
}

.sources-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--anthracite);
}

.sources-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sources-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--brown);
}

.sources-list em {
    color: var(--charcoal);
}

.sources-list a {
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background-color: var(--charcoal);
    color: var(--cream);
    padding: 56px 0 36px;
    margin-top: 60px;
}

.footer-ornament {
    text-align: center;
    font-size: 1.5rem;
    color: var(--brown);
    margin-bottom: 32px;
    opacity: 0.6;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-nav h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.6;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 241, 232, 0.15);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.footer-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem !important;
    margin-bottom: 8px;
    opacity: 0.7 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-main {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--light-rule);
        padding-bottom: 40px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .person-header-grid {
        grid-template-columns: 220px 1fr;
        gap: 36px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .biography {
        max-width: none;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .masthead {
        padding: 32px 0 24px;
    }

    .masthead-title {
        font-size: 2.5rem;
    }

    .masthead-ornament {
        display: none;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .nav-icon {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .section-title {
        font-size: 1.25rem;
    }

    .quote-block {
        padding: 24px;
    }

    .quote-block blockquote {
        font-size: 1.1rem;
    }

    .person-header {
        padding: 32px 0;
    }

    .person-header-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .portrait-container {
        max-width: 280px;
        margin: 0 auto;
    }

    .person-name {
        font-size: 2rem;
    }

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

    .vital-stats::before {
        font-size: 0.6rem;
    }

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

    .drop-cap::first-letter {
        font-size: 3.5rem;
    }

    .biography p {
        text-align: left;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .masthead-title {
        font-size: 2rem;
    }

    .masthead-rule {
        display: none;
    }

    .nav-inner {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--anthracite);
    }

    .nav-link:first-child {
        border-top: none;
    }

    .person-summary {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ==========================================================================
   Static Pages (About, etc.)
   ========================================================================== */

.static-page {
    padding: 48px 0;
}

.static-page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light-rule);
}

.static-page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.static-page-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--anthracite);
}

.static-page-content {
    max-width: 720px;
    margin: 0 auto;
}

.static-page-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.75em;
    color: var(--color-charcoal);
}

.static-page-content p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.75;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--color-brown);
}

.static-page-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .static-page-content p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin-right: 8px;
    }
}

/* Archive List Pages */
.archive-header {
    padding: 48px 0 32px;
}

.archive-header-content {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-brown);
}

.archive-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.archive-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-anthracite);
}

.archive-intro {
    max-width: 720px;
    margin: 0 auto;
}

.archive-intro p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5em;
    color: var(--color-charcoal);
}

.archive-intro p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.75;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--color-brown);
}

.archive-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .archive-intro p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin-right: 8px;
    }
}
