/* ============================================
   Rose Pine Theme — CSS Variables
   ============================================ */

/* Main (dark) */
.theme-dark {
    --rp-base: #191724;
    --rp-surface: #1f1d2e;
    --rp-overlay: #26233a;
    --rp-muted: #6e6a86;
    --rp-subtle: #908caa;
    --rp-text: #e0def4;
    --rp-love: #eb6f92;
    --rp-gold: #f6c177;
    --rp-rose: #ebbcba;
    --rp-pine: #31748f;
    --rp-foam: #9ccfd8;
    --rp-iris: #c4a7e7;
    --rp-highlight-low: #21202e;
    --rp-highlight-med: #403d52;
    --rp-highlight-high: #524f67;
}

/* Dawn (light) */
.theme-light {
    --rp-base: #faf4ed;
    --rp-surface: #fffaf3;
    --rp-overlay: #f2e9de;
    --rp-muted: #9893a5;
    --rp-subtle: #797593;
    --rp-text: #575279;
    --rp-love: #b4637a;
    --rp-gold: #ea9d34;
    --rp-rose: #d7827e;
    --rp-pine: #286983;
    --rp-foam: #56949f;
    --rp-iris: #907aa9;
    --rp-highlight-low: #f4ede8;
    --rp-highlight-med: #dfdad9;
    --rp-highlight-high: #cecacd;
}

.cta-button:focus {
    outline: 2px solid var(--rp-foam);
    outline-offset: 2px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html { font-size: 62.5%; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 1.8rem;
    line-height: 1.8;
    background: var(--rp-base);
    color: var(--rp-text);
    transition: background 0.3s ease, color 0.3s ease;
}

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

.wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 90rem; padding: 0 2rem; margin: 0 auto; width: 100%; }
.content { flex: 1; padding: 6rem 0; }

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

.navigation {
    position: sticky;
    top: 0;
    background: var(--rp-base);
    z-index: 100;
    border-bottom: 1px solid var(--rp-highlight-med);
}

.navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

.navigation-title {
    text-decoration: none;
    font-weight: 700;
    color: var(--rp-rose);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 1.6rem;
}

.navigation-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navigation-item a {
    text-decoration: none;
    color: var(--rp-text);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.navigation-item a:hover {
    color: var(--rp-foam);
}

.wander-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rp-foam) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--rp-foam) 25%, transparent);
}

.wander-link::before {
    content: "🌿";
    font-size: 1.2rem;
}

/* CSS-only hamburger menu */
.menu-btn { display: none; }

.hamburger {
    display: none;
}

.hamburger span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background: var(--rp-text);
    margin: 0.5rem 0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .navigation-list {
        display: none;
        position: absolute;
        top: 6rem;
        left: 0;
        right: 0;
        background: var(--rp-base);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--rp-highlight-med);
    }

    .menu-btn:checked ~ .navigation-list {
        display: flex;
    }
}

/* ============================================
   Avatar
   ============================================ */

.avatar {
    display: block;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    margin: 2rem auto;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--rp-highlight-med);
}

.hero-avatar {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--rp-highlight-med);
}

.hero-content {
    flex: 1;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--rp-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--rp-subtle);
    margin-bottom: 1.2rem;
}

.hero-bio {
    font-size: 1.6rem;
    color: var(--rp-text);
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.hero-social {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.hero-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rp-foam);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.hero-social-link:hover {
    color: var(--rp-iris);
}

.hero-social-link svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: currentColor;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-social {
        justify-content: center;
    }
}

.pathways {
    margin-bottom: 3.2rem;
    padding: 2.4rem;
    background: color-mix(in srgb, var(--rp-surface) 88%, transparent);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
}

.tending-now {
    margin-bottom: 2.4rem;
    padding: 2.4rem;
    background: color-mix(in srgb, var(--rp-overlay) 45%, transparent);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
}

.tending-now-header {
    margin-bottom: 1.2rem;
}

.tending-now-title {
    font-size: 2.2rem;
    color: var(--rp-text);
    margin-bottom: 0.5rem;
}

.tending-now-subtitle {
    color: var(--rp-subtle);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.tending-now-seasonal-note {
    color: var(--rp-text);
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.tending-now-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.tending-thread {
    background: var(--rp-base);
    border: 1px solid var(--rp-highlight-low);
    border-radius: 0.8rem;
    padding: 1.6rem;
}

.tending-thread-title {
    font-size: 1.7rem;
    color: var(--rp-foam);
    margin-bottom: 0.6rem;
}

.tending-thread-description {
    color: var(--rp-subtle);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tending-thread-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.tending-thread-meta a {
    color: var(--rp-iris);
    text-decoration: none;
    font-size: 1.3rem;
}

.tending-thread-meta a:hover {
    color: var(--rp-foam);
    text-decoration: underline;
}

.pathways-header {
    margin-bottom: 1.6rem;
}

.pathways-title {
    font-size: 2.2rem;
    color: var(--rp-text);
    margin-bottom: 0.5rem;
}

.pathways-subtitle {
    color: var(--rp-subtle);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.pathway-card {
    background: var(--rp-base);
    border: 1px solid var(--rp-highlight-low);
    border-radius: 0.8rem;
    padding: 1.6rem;
}

.pathway-audience {
    font-size: 1.2rem;
    color: var(--rp-muted);
    margin-bottom: 0.6rem;
}

.pathway-name {
    font-size: 1.7rem;
    color: var(--rp-foam);
    margin-bottom: 0.8rem;
}

.pathway-steps {
    margin: 0;
    padding-left: 1.7rem;
    color: var(--rp-subtle);
    font-size: 1.4rem;
}

.pathway-steps li {
    margin-bottom: 0.6rem;
}

.pathway-steps li:last-child {
    margin-bottom: 0;
}

.pathway-step-label {
    color: var(--rp-text);
    font-weight: 600;
}

.pathway-steps a {
    color: var(--rp-iris);
    text-decoration: none;
}

.pathway-steps a:hover {
    color: var(--rp-foam);
    text-decoration: underline;
}

.pathways-compact .pathways-list {
    display: grid;
    gap: 0.9rem;
}

.pathways-compact .pathway-row {
    background: var(--rp-base);
    border: 1px solid var(--rp-highlight-low);
    border-radius: 0.8rem;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

.pathways-compact .pathway-name {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.pathways-compact .pathway-audience {
    margin-bottom: 0;
}

.pathway-row-links {
    margin: 0;
    white-space: nowrap;
    color: var(--rp-muted);
    font-size: 1.3rem;
}

.pathway-row-links a {
    color: var(--rp-iris);
    text-decoration: none;
}

.pathway-row-links a:hover {
    color: var(--rp-foam);
    text-decoration: underline;
}

.browse-notes-intro {
    margin-bottom: 1.2rem;
}

.browse-notes-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.browse-notes-intro p {
    color: var(--rp-subtle);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.filter-panel {
    margin-bottom: 2.4rem;
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
    padding: 1rem 1.2rem;
}

.filter-panel summary {
    cursor: pointer;
    color: var(--rp-text);
    font-size: 1.4rem;
    font-weight: 600;
}

.filter-panel[open] summary {
    margin-bottom: 0.8rem;
}

.filter-panel .tag-filters {
    margin-bottom: 0.2rem;
}

@media (max-width: 1000px) {
    .tending-now-grid,
    .pathways-grid {
        grid-template-columns: 1fr;
    }

    .pathways-compact .pathway-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .pathway-row-links {
        white-space: normal;
    }
}

.search-bar {
    position: relative;
    margin-bottom: 1.6rem;
}

.search-input {
    width: 100%;
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.6rem;
    color: var(--rp-text);
    font-family: inherit;
    font-size: 1.6rem;
    padding: 1.1rem 4rem 1.1rem 1.4rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--rp-iris);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-iris) 20%, transparent);
}

.search-input::placeholder {
    color: var(--rp-muted);
}

.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.no-results {
    text-align: center;
    color: var(--rp-subtle);
    margin: 2rem 0;
}

.status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    align-items: center;
}

.status-filters-label {
    font-size: 1.3rem;
    color: var(--rp-muted);
    font-weight: 500;
    margin-right: 0.4rem;
}

.status-filter-btn {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--rp-overlay);
    color: var(--rp-subtle);
    border-radius: 10rem;
    font-size: 1.3rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.status-filter-btn:hover {
    background: var(--rp-highlight-med);
}

.status-filter-btn.active[data-status="all"] {
    background: var(--rp-highlight-med);
    color: var(--rp-foam);
    border-color: var(--rp-foam);
}

.status-filter-btn.active[data-status="seedling"] {
    background: color-mix(in srgb, var(--rp-gold) 15%, transparent);
    color: var(--rp-gold);
    border-color: color-mix(in srgb, var(--rp-gold) 30%, transparent);
}

.status-filter-btn.active[data-status="budding"] {
    background: color-mix(in srgb, var(--rp-foam) 15%, transparent);
    color: var(--rp-foam);
    border-color: color-mix(in srgb, var(--rp-foam) 30%, transparent);
}

.status-filter-btn.active[data-status="evergreen"] {
    background: color-mix(in srgb, var(--rp-pine) 20%, transparent);
    color: var(--rp-pine);
    border-color: color-mix(in srgb, var(--rp-pine) 35%, transparent);
}

/* ============================================
   Tag Filter Pills
   ============================================ */

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    align-items: center;
}

.tag-filters-label {
    font-size: 1.3rem;
    color: var(--rp-muted);
    font-weight: 500;
    margin-right: 0.4rem;
}

.tag-filter-btn {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--rp-overlay);
    color: var(--rp-subtle);
    border-radius: 10rem;
    font-size: 1.3rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
    background: var(--rp-highlight-med);
    color: var(--rp-foam);
    border-color: var(--rp-foam);
}

/* ============================================
   Post Cards
   ============================================ */

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.post-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
    padding: 2.4rem;
    text-decoration: none;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--rp-highlight-high);
}

.post-card.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.post-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.post-card-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--rp-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-card:hover .post-card-title {
    color: var(--rp-rose);
}

.post-card-category {
    display: inline-block;
    padding: 0.2rem 0.9rem;
    border-radius: 10rem;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-card-category--code { background: rgba(86, 148, 159, 0.2); color: var(--rp-foam); }
.post-card-category--devops { background: rgba(234, 157, 52, 0.2); color: var(--rp-gold); }
.post-card-category--leadership { background: rgba(144, 122, 169, 0.2); color: var(--rp-iris); }
.post-card-category--default { background: var(--rp-overlay); color: var(--rp-subtle); }

.post-card-meta {
    color: var(--rp-muted);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.post-card-meta-sep {
    opacity: 0.4;
}

.post-card-description {
    color: var(--rp-subtle);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.post-card-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--rp-overlay);
    color: var(--rp-foam);
    border-radius: 0.4rem;
    font-size: 1.2rem;
}

/* Legacy flat list (still used on /posts/ taxonomy page) */
.posts-list { list-style: none; }

.posts-list-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--rp-highlight-low);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.posts-list-item:hover {
    transform: translateX(2px);
}

.posts-list-item-date {
    color: var(--rp-subtle);
    font-size: 1.4rem;
    min-width: 14rem;
    font-family: monospace;
}

.posts-list-item-title {
    color: var(--rp-text);
    text-decoration: none;
    font-size: 1.6rem;
}

.posts-list-item-title:hover {
    color: var(--rp-rose);
}

/* Reading time span inside list item */
.posts-list-item span:last-child {
    color: var(--rp-muted);
    font-size: 1.3rem;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .posts-list-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .posts-list-item-date {
        min-width: unset;
    }

    .posts-list-item span:last-child {
        margin-left: 0;
    }
}

/* ============================================
   Post Page
   ============================================ */

.post-title {
    color: var(--rp-text);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    color: var(--rp-subtle);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.post-meta a {
    color: var(--rp-foam);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--rp-iris);
}

.post-tags {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--rp-overlay);
    color: var(--rp-foam);
    border-radius: 0.4rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background 0.2s;
}

.tag:hover {
    background: var(--rp-highlight-med);
}

/* ============================================
   Post Content
   ============================================ */

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--rp-text);
    letter-spacing: -0.02em;
}

.post-content h1 { font-size: 2.8rem; }
.post-content h2 { font-size: 2.4rem; }
.post-content h3 { font-size: 2rem; }

.post-content p { margin-bottom: 1.6rem; }

.post-content { line-height: 1.9; }

.post-content a { color: var(--rp-foam); text-decoration: underline; }
.post-content a:hover { color: var(--rp-iris); }

.wiki-link {
    text-decoration-style: dotted;
    text-underline-offset: 0.18rem;
}

.wiki-link:hover {
    color: var(--rp-iris);
}

.wiki-link--missing {
    display: inline-block;
    padding: 0 0.4rem;
    border-radius: 0.3rem;
    background: color-mix(in srgb, var(--rp-love) 16%, transparent);
    color: var(--rp-love);
}

.garden-notes-panels {
    display: grid;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.garden-panel {
    padding: 1.6rem 1.8rem;
    border-radius: 0.8rem;
    border: 1px solid var(--rp-highlight-med);
    background: color-mix(in srgb, var(--rp-surface) 88%, transparent);
}

.garden-panel-title {
    font-size: 1.8rem;
    color: var(--rp-text);
    margin-bottom: 0.8rem;
}

.garden-panel-list {
    margin-left: 1.8rem;
    color: var(--rp-subtle);
}

.garden-panel-list li + li {
    margin-top: 0.6rem;
}

.post-content ul, .post-content ol { margin-left: 2rem; margin-bottom: 1.6rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
    border-left: 3px solid var(--rp-iris);
    padding-left: 2rem;
    margin: 2rem 0;
    color: var(--rp-subtle);
    font-style: italic;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.testimonial {
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
    padding: 2.4rem 2.8rem;
    margin: 0;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--rp-iris);
    opacity: 0.4;
    font-family: Georgia, serif;
}

.testimonial blockquote {
    border: none;
    padding: 0;
    margin: 0 0 1.2rem;
    color: var(--rp-text);
    font-style: italic;
    font-size: 1.7rem;
    line-height: 1.7;
    padding-top: 2rem;
}

.testimonial figcaption {
    color: var(--rp-iris);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: normal;
}

.cta-button {
    display: inline-block;
    background: var(--rp-pine);
    color: var(--rp-base);
    padding: 1rem 2rem;
    border-radius: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    margin: 1rem 0;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    background: var(--rp-foam);
    color: var(--rp-base);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 116, 143, 0.3);
}

a.cta-button::after {
    content: " →";
    speak: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.4rem;
}

/* ============================================
   Code Blocks (override Pygments with Rose Pine)
   ============================================ */

.post-content code {
    background: var(--rp-surface);
    color: var(--rp-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 1.5rem;
}

.post-content pre {
    background: var(--rp-surface);
    border-radius: 0.6rem;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--rp-highlight-med);
}

.post-content pre code {
    background: transparent;
    color: var(--rp-text);
    padding: 0;
    font-size: 1.4rem;
}

/* Pygments highlight wrapper */
.highlight {
    background: var(--rp-surface) !important;
    border-radius: 0.6rem;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--rp-highlight-med);
}

.highlight pre {
    background: transparent !important;
    padding: 0;
    margin: 0;
    border: none;
}

.highlight code {
    background: transparent;
    padding: 0;
    color: var(--rp-text);
}

/* ============================================
   Reading Progress Bar
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--rp-iris);
    width: 0%;
    z-index: 300;
    transition: width 0.1s linear;
}

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

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--rp-highlight-med);
}

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

.footer p {
    color: var(--rp-muted);
    font-size: 1.4rem;
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.footer-social-link {
    color: var(--rp-foam);
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer-social-link svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: currentColor;
}

.footer-social-link:hover {
    color: var(--rp-iris);
}

/* ============================================
   Theme Toggle Button
   ============================================ */

.theme-toggle-nav {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: var(--rp-overlay);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--rp-highlight-med);
}

.theme-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.note-hovercard {
    position: absolute;
    width: min(32rem, calc(100vw - 2.8rem));
    padding: 1.4rem;
    border-radius: 0.8rem;
    border: 1px solid var(--rp-highlight-high);
    background: color-mix(in srgb, var(--rp-surface) 96%, transparent);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    z-index: 250;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.note-hovercard.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.note-hovercard-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.note-hovercard-kind,
.note-hovercard-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 1.2rem;
}

.note-hovercard-kind {
    background: var(--rp-overlay);
    color: var(--rp-subtle);
}

.note-hovercard-status {
    background: color-mix(in srgb, var(--rp-foam) 12%, transparent);
    color: var(--rp-foam);
}

.note-hovercard-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--rp-text);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.note-hovercard-description {
    color: var(--rp-subtle);
    font-size: 1.4rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.note-hovercard-meta {
    color: var(--rp-muted);
    font-size: 1.25rem;
}

/* ============================================
   Taxonomy List
   ============================================ */

.taxonomy-list { list-style: none; }
.taxonomy-list li { padding: 0.5rem 0; }
.taxonomy-list a { color: var(--rp-foam); text-decoration: none; font-size: 1.8rem; }
.taxonomy-list a:hover { color: var(--rp-iris); }

/* ============================================
   Subtitle
   ============================================ */

.subtitle {
    text-align: center;
    color: var(--rp-subtle);
    margin-bottom: 3rem;
    font-size: 1.6rem;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.4s ease both;
}

.hero {
    animation: fadeInUp 0.5s ease both;
}

/* ============================================
   Growth Stage Badges
   ============================================ */

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.growth-badge--seedling {
    background: color-mix(in srgb, var(--rp-gold) 15%, transparent);
    color: var(--rp-gold);
    border: 1px solid color-mix(in srgb, var(--rp-gold) 30%, transparent);
}

.growth-badge--budding {
    background: color-mix(in srgb, var(--rp-foam) 15%, transparent);
    color: var(--rp-foam);
    border: 1px solid color-mix(in srgb, var(--rp-foam) 30%, transparent);
}

.growth-badge--evergreen {
    background: color-mix(in srgb, var(--rp-pine) 20%, transparent);
    color: var(--rp-pine);
    border: 1px solid color-mix(in srgb, var(--rp-pine) 35%, transparent);
}

.post-card-meta .growth-badge {
    padding: 0.1rem 0.3rem;
    font-size: 1.4rem;
    background: none;
    border: none;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--rp-highlight-med);
}

.contact-form h2 {
    font-size: 2.4rem;
    color: var(--rp-text);
    margin-bottom: 2.4rem;
}

.contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-form__label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rp-subtle);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-form__input {
    width: 100%;
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.6rem;
    color: var(--rp-text);
    font-family: inherit;
    font-size: 1.7rem;
    padding: 1.1rem 1.4rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.contact-form__input:focus {
    border-color: var(--rp-iris);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-iris) 20%, transparent);
}

.contact-form__input::placeholder {
    color: var(--rp-muted);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 14rem;
    line-height: 1.6;
}

.contact-form .cta-button {
    align-self: flex-start;
    margin-top: 0.4rem;
}

.contact-form__privacy {
    margin-top: 1.4rem;
    font-size: 1.3rem;
    color: var(--rp-muted);
}

/* ============================================
   Quick Thoughts
   ============================================ */

.quick-thoughts {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rp-highlight-med);
}

.quick-thoughts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.quick-thoughts h2 {
    font-size: 1.6rem;
    color: var(--rp-subtle);
    font-weight: 500;
}

.quick-thoughts-link {
    font-size: 1.3rem;
    color: var(--rp-foam);
}

.thought-preview {
    background: var(--rp-surface);
    border-radius: 0.8rem;
    padding: 1.2rem 1.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--rp-highlight-med);
}

.thought-preview .e-content {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.thought-preview .dt-published {
    font-size: 1.2rem;
    color: var(--rp-muted);
    text-decoration: none;
}

.thought-preview .dt-published:hover {
    color: var(--rp-foam);
}

/* Individual thought page */
.thought {
    max-width: 680px;
    margin: 0 auto;
}

.thought .h-entry {
    background: var(--rp-surface);
    border-radius: 0.8rem;
    padding: 2rem;
    border: 1px solid var(--rp-highlight-med);
}

.thought .e-content {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.thought-meta {
    margin-bottom: 1rem;
}

.thought-meta .dt-published {
    font-size: 1.3rem;
    color: var(--rp-muted);
}

.thought-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.thought-tags .tag {
    font-size: 1.2rem;
    color: var(--rp-pine);
}

/* Thoughts list page */
.thought-card {
    background: var(--rp-surface);
    border-radius: 0.8rem;
    padding: 1.2rem 1.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--rp-highlight-med);
}

.thought-card .e-content {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.thought-card .thought-meta {
    font-size: 1.2rem;
    color: var(--rp-muted);
    margin-bottom: 0.6rem;
}

.thought-card .thought-tags {
    font-size: 1.2rem;
}

.thought-card .tag {
    color: var(--rp-pine);
}

/* ============================================
   Backlinks & Patterns
   ============================================ */

.backlinks {
    margin-top: 3.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rp-highlight-med);
}

.backlinks-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--rp-text);
}

.backlinks-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.backlinks-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.backlinks-item a {
    color: var(--rp-foam);
    text-decoration: none;
}

.backlinks-item a:hover {
    color: var(--rp-iris);
}

.backlinks-kind {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--rp-overlay);
    color: var(--rp-subtle);
    font-size: 1.2rem;
}

.patterns-empty {
    padding: 2.4rem;
    border-radius: 0.8rem;
    border: 1px dashed var(--rp-highlight-high);
    color: var(--rp-subtle);
    background: color-mix(in srgb, var(--rp-surface) 88%, transparent);
}

/* ============================================
   Shares
   ============================================ */

/* Share page */
.share-page {
    max-width: 72rem;
}

.share-header {
    margin-bottom: 2.4rem;
}

.share-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.share-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--rp-muted);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.share-meta-sep {
    opacity: 0.4;
}

.share-source-link {
    color: var(--rp-foam);
    text-decoration: none;
}

.share-source-link:hover {
    color: var(--rp-rose);
}

.share-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.share-commentary {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--rp-text);
    margin-top: 2.4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rp-highlight-med);
}

/* Responsive video embed */
.share-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 2.4rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background: var(--rp-overlay);
}

.share-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Shares archive */
.shares-intro {
    color: var(--rp-subtle);
    font-size: 1.5rem;
    margin-bottom: 2.4rem;
}

.shares-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Share card */
.share-card-link {
    text-decoration: none;
    display: block;
}

.share-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-highlight-med);
    border-radius: 0.8rem;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.share-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--rp-highlight-high);
}

.share-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--rp-overlay);
}

.share-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.share-card:hover .share-card-thumbnail img {
    transform: scale(1.03);
}

.share-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4.8rem;
    height: 4.8rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    pointer-events: none;
}

.share-card-body {
    padding: 1.6rem 2rem;
}

.share-card-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--rp-text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.share-card:hover .share-card-title {
    color: var(--rp-rose);
}

.share-card-excerpt {
    color: var(--rp-subtle);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.share-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--rp-muted);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.share-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Compact cards for homepage */
.share-card--compact {
    display: flex;
    flex-direction: column;
}

.share-card--compact .share-card-thumbnail {
    aspect-ratio: 16 / 9;
}

.share-card--compact .share-card-body {
    padding: 1.2rem 1.6rem;
}

.share-card--compact .share-card-title {
    font-size: 1.5rem;
}

/* Recent shares section on homepage */
.recent-shares {
    margin-bottom: 3.2rem;
}

.recent-shares-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.recent-shares-header h2 {
    font-size: 1.8rem;
    color: var(--rp-text);
}

.recent-shares-link {
    color: var(--rp-foam);
    text-decoration: none;
    font-size: 1.4rem;
}

.recent-shares-link:hover {
    color: var(--rp-rose);
}

.recent-shares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 1.6rem;
}

@media (max-width: 768px) {
    .recent-shares-grid {
        grid-template-columns: 1fr;
    }
}
