/* =============================================
   VAXZEM DIGITAL GARDEN - STYLES v2
   Multi-page architecture with View Transitions
   ============================================= */

/* ========== VIEW TRANSITIONS API ========== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.25s ease-out;
}

::view-transition-new(root) {
    animation: fade-in 0.25s ease-in;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Nord Light - Snow Storm */
    --snow-0: #ECEFF4;
    --snow-1: #E5E9F0;
    --snow-2: #D8DEE9;
    
    /* Nord - Polar Night */
    --polar-0: #2E3440;
    --polar-1: #3B4252;
    --polar-2: #434C5E;
    --polar-3: #4C566A;
    
    /* Nord - Frost */
    --frost-0: #8FBCBB;
    --frost-1: #88C0D0;
    --frost-2: #81A1C1;
    --frost-3: #5E81AC;
    
    /* Nord - Aurora */
    --aurora-green: #A3BE8C;
    --aurora-red: #BF616A;
    --aurora-yellow: #EBCB8B;
    --aurora-purple: #B48EAD;
    --aurora-orange: #D08770;
    
    /* Light Theme (Default) */
    --bg-primary: var(--snow-0);
    --bg-secondary: var(--snow-1);
    --bg-tertiary: var(--snow-2);
    --text-primary: var(--polar-0);
    --text-secondary: var(--polar-3);
    --text-tertiary: #8E99A8;
    --accent: var(--frost-3);
    --accent-light: var(--frost-1);
    --success: var(--aurora-green);
    --border: rgba(46, 52, 64, 0.08);
    --shadow: rgba(46, 52, 64, 0.12);
    --nav-pill-bg: var(--polar-1);
    --nav-item-color: var(--snow-1);
    
    /* iOS-like values */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
    
    /* Safe areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: var(--polar-0);
    --bg-secondary: var(--polar-1);
    --bg-tertiary: var(--polar-2);
    --text-primary: var(--snow-0);
    --text-secondary: var(--snow-2);
    --text-tertiary: #7b88a1;
    --accent: var(--frost-1);
    --accent-light: var(--frost-0);
    --border: rgba(216, 222, 233, 0.1);
    --shadow: rgba(0, 0, 0, 0.4);
    --nav-pill-bg: var(--polar-2);
    --nav-item-color: var(--snow-1);
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Raleway', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

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

/* ========== HOME PAGE ========== */
.home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ========== EXPANDABLE NAV PILL ========== */
.nav-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--nav-pill-bg);
    border-radius: var(--radius-pill);
    padding: 6px;
    gap: 0;
    width: auto;
    transition: gap 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                padding 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    box-shadow: 0 4px 24px var(--shadow),
                0 1px 3px var(--shadow);
    will-change: gap, padding;
    transform: translateZ(0);
}

.nav-pill.expanded {
    gap: 4px;
    padding: 6px 8px;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0000FF;
    flex-shrink: 0;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease;
    margin: 0 8px;
    will-change: width, opacity;
}

.nav-pill.expanded .nav-items {
    width: 415px;
    opacity: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--nav-item-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Theme toggle in nav pill */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.nav-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-theme-toggle:active {
    transform: scale(0.88);
}

.nav-theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--nav-item-color);
    transition: opacity 0.2s ease;
}

.nav-theme-toggle .icon-sun {
    display: none;
}

.nav-theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .nav-theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .nav-theme-toggle .icon-moon {
    display: none;
}

/* Nav toggle button */
.nav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--frost-3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
}

.nav-toggle:active {
    transform: scale(0.88);
}

.nav-toggle svg {
    width: 18px;
    height: 18px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-pill.expanded .nav-toggle svg {
    transform: rotate(45deg);
}

/* ========== PAGE LAYOUT ========== */
.page {
    padding: 20px;
    padding-bottom: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

/* ========== PAGE HEADER ========== */
.page-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 8px;
    background: rgba(46, 52, 64, 0.8);
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .page-header {
    background: rgba(236, 239, 244, 0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.2s, color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button:active {
    opacity: 0.6;
    transform: scale(0.94);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.page-title {
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header theme toggle */
.header-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-theme-toggle:hover {
    background: var(--bg-tertiary);
}

.header-theme-toggle:active {
    transform: scale(0.88);
}

.header-theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.header-theme-toggle .icon-sun {
    display: none;
}

.header-theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .header-theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .header-theme-toggle .icon-moon {
    display: none;
}

/* Sort button */
.sort-button {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.2s, color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sort-button:hover {
    opacity: 0.7;
}

.sort-button:active {
    opacity: 0.6;
    transform: scale(0.92);
}

/* ========== YEAR FILTER PILLS ========== */
.year-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.year-filter::-webkit-scrollbar {
    display: none;
}

.year-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease, background-color 0.3s ease, color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.year-pill:active {
    transform: scale(0.92);
}

.year-pill.active {
    background: var(--accent);
    color: white;
}

/* ========== POST LIST ========== */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
}

.post-item:active {
    background: var(--bg-secondary);
    margin: 0 -20px;
    padding: 12px 20px;
    transform: scale(0.98);
}

.post-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

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

/* Gradient thumbnail for posts without hero images */
.post-thumb-gradient {
    background-size: cover;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.post-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.post-indicator svg {
    width: 20px;
    height: 20px;
}

/* ========== ARTICLE PAGE ========== */
.article-header {
    margin-bottom: 32px;
}

.article-hero {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 24px;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-title {
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-pill);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-read-time {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

/* Article Content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content p:first-of-type::first-letter {
    float: left;
    font-family: 'Raleway', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--frost-2);
}

.article-content em {
    font-style: italic;
}

.article-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--frost-2);
    font-style: italic;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-content ol,
.article-content ul {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content figure {
    margin: 2em 0;
}

.article-content figure img {
    width: 100%;
    border-radius: var(--radius-md);
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* Dinkus */
.dinkus {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 3em 0;
}

.dinkus span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: background-color 0.3s ease;
}

/* Article Footer Quote */
.article-footer {
    margin-top: 4em;
    padding-top: 2em;
    border-top: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.3s ease;
}

.article-footer-quote {
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* ========== QUOTES PAGE ========== */
.quotes-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    padding: 0 20px;
}

.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 3px solid var(--frost-2);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-card:active {
    transform: scale(0.98);
}

.quote-card.featured {
    border-left-color: var(--aurora-yellow);
    background: linear-gradient(135deg, rgba(235, 203, 139, 0.05), transparent);
}

.quote-featured-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aurora-yellow);
    margin-bottom: 12px;
    font-weight: 600;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    white-space: pre-line;
}

.quote-text strong {
    font-weight: 600;
    font-style: normal;
}

.quote-source {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.quote-source a {
    color: inherit;
    text-decoration: none;
}

.quote-source a:hover {
    color: var(--frost-2);
}

/* ========== ART PAGE ========== */
.series-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.series-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.series-card:active {
    transform: scale(0.96);
}

.series-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--frost-3), var(--aurora-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.series-cover-title {
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.series-cover-title.has-image {
    text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
}

.series-info {
    padding: 16px;
}

.series-title {
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.series-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

/* Series Detail Page */
.series-hero {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 20px;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, var(--frost-3), var(--aurora-purple));
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-hero.has-image {
    position: relative;
}

.series-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.series-hero-title {
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.series-hero.has-image .series-hero-title {
    text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
}

.series-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.series-stats {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

/* Volume List */
.volume-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.volume-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.volume-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.volume-header:active {
    background: var(--bg-tertiary);
    transform: scale(0.98);
}

.volume-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--frost-2), var(--frost-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.volume-info {
    flex: 1;
    min-width: 0;
}

.volume-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.volume-meta {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.volume-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.volume-card.expanded .volume-chevron {
    transform: rotate(90deg);
}

/* Arc List */
.arc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-tertiary);
}

.volume-card.expanded .arc-list {
    max-height: 500px;
}

.arc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 74px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arc-item:active {
    background: var(--bg-secondary);
    transform: scale(0.98);
}

.arc-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    width: 24px;
    transition: color 0.3s ease;
}

.arc-title {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.arc-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.arc-status.complete {
    background: rgba(163, 190, 140, 0.2);
    color: var(--aurora-green);
}

.arc-status.ongoing {
    background: rgba(136, 192, 208, 0.2);
    color: var(--frost-1);
}

.arc-status.upcoming {
    background: rgba(76, 86, 106, 0.2);
    color: var(--text-tertiary);
}

/* ========== CONTACT PAGE ========== */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.contact-card {
    width: 100%;
    max-width: 500px;
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.2s ease;
    cursor: pointer;
}

.contact-method * {
    pointer-events: none;
}

.contact-method:hover {
    background: var(--bg-tertiary);
}

.contact-method:active {
    transform: scale(0.98);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
}

.contact-method-icon.email {
    background: linear-gradient(135deg, #5E81AC, #81A1C1);
}

.contact-method-icon.email svg {
    stroke: white;
}

.contact-method-icon.twitter {
    background: linear-gradient(135deg, #2E3440, #3B4252);
}

.contact-method-icon.twitter svg {
    fill: white;
}

.contact-method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-method-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-method-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-method-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .page {
        padding: 40px;
    }
    
    .article-hero {
        width: 100%;
        margin-left: 0;
        border-radius: var(--radius-lg);
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .post-item:hover {
        background: var(--bg-secondary);
        margin: 0 -20px;
        padding: 12px 20px;
        border-radius: var(--radius-md);
    }
    
    .series-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .series-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px var(--shadow);
    }
    
    .series-hero {
        width: 100%;
        margin-left: 0;
        border-radius: var(--radius-lg);
    }
    
    .volume-header:hover {
        background: var(--bg-tertiary);
    }
    
    .arc-item:hover {
        background: var(--bg-secondary);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-item {
    animation: fadeInUp 0.4s ease-out backwards;
}

.post-item:nth-child(1) { animation-delay: 0.05s; }
.post-item:nth-child(2) { animation-delay: 0.1s; }
.post-item:nth-child(3) { animation-delay: 0.15s; }
.post-item:nth-child(4) { animation-delay: 0.2s; }
.post-item:nth-child(5) { animation-delay: 0.25s; }
.post-item:nth-child(6) { animation-delay: 0.3s; }
.post-item:nth-child(7) { animation-delay: 0.35s; }
.post-item:nth-child(8) { animation-delay: 0.4s; }
.post-item:nth-child(9) { animation-delay: 0.45s; }
.post-item:nth-child(10) { animation-delay: 0.5s; }

.quote-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.quote-card:nth-child(1) { animation-delay: 0.05s; }
.quote-card:nth-child(2) { animation-delay: 0.1s; }
.quote-card:nth-child(3) { animation-delay: 0.15s; }
.quote-card:nth-child(4) { animation-delay: 0.2s; }
.quote-card:nth-child(5) { animation-delay: 0.25s; }

/* ========== ACCESSIBILITY: REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}
