/* =============================================
   Dr. Wee Ghost Theme — screen.css
   Warm, bright, Outlift-inspired design
   ============================================= */

/* === VARIABLES === */
:root {
    --bg: #FFFDF7;
    --bg-warm: #FFF8ED;
    --bg-blue: #EEF4FF;
    --text: #2D2A24;
    --text-body: #4A4640;
    --text-muted: #7A756C;
    --primary: #E8553D;
    --primary-light: #FFEAE5;
    --blue: #4A7FE5;
    --blue-light: #E0ECFF;
    --green: #48A355;
    --green-light: #E2F5E0;
    --purple: #7B5EBF;
    --purple-light: #F0EAFF;
    --gold: #D4940A;
    --gold-light: #FFF6DB;
    --teal: #2B9E9E;
    --border: #E8E3D8;
    --shadow: rgba(45, 42, 36, 0.06);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito', system-ui, sans-serif;
    --content-width: 720px;
    --wide-width: 960px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === NAV === */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: -2px;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 10px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    box-shadow: 0 2px 8px rgba(232, 85, 61, 0.2);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 85, 61, 0.3);
    text-decoration: none !important;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* === HERO === */
.hero {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero-illustration {
    font-size: 5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero h1 .highlight {
    color: var(--primary);
    font-style: italic;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-newsletter {
    max-width: 420px;
    margin: 0 auto 1rem;
}

.hero-newsletter form {
    display: flex;
    gap: 0.5rem;
}

.hero-newsletter input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.hero-newsletter input[type="email"]:focus {
    border-color: var(--primary);
}

.hero-newsletter button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.hero-newsletter button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 85, 61, 0.3);
}

.hero-sub-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* === INTRO === */
.intro {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
}

.intro-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.intro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.intro-text strong { color: var(--text); font-weight: 800; }

.intro-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(232, 85, 61, 0.3);
    text-underline-offset: 3px;
}

.intro-text a:hover {
    text-decoration-color: var(--primary);
}

/* Credential Badges */
.cred-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 2px solid;
}

.cred-badge.blue { background: var(--blue-light); border-color: #C5D8F8; color: var(--blue); }
.cred-badge.green { background: var(--green-light); border-color: #BDE8BC; color: var(--green); }
.cred-badge.purple { background: var(--purple-light); border-color: #D5CAF0; color: var(--purple); }

/* === FEATURE CARTOON === */
.feature-cartoon {
    padding: 1rem 2rem 2.5rem;
    text-align: center;
}

.feature-cartoon-inner {
    max-width: 720px;
    margin: 0 auto;
}

.feature-cartoon-inner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

/* === SECTIONS === */
.section {
    padding: 4rem 2rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* === START HERE === */
.start-here {
    background: var(--bg-warm);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    padding: 4rem 2rem;
}

.start-here-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
}

/* Featured articles card grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.featured-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: rgba(232, 85, 61, 0.25);
}

.featured-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.featured-card-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg);
}

.featured-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.featured-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.featured-card:hover .featured-card-body h3 {
    color: var(--primary);
}

.featured-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
    margin-top: auto;
}

/* === ARTICLE LIST (Outlift-style) === */
.article-list {
    list-style: none;
}

.post-card-item {
    border-bottom: 2px solid var(--border);
    transition: background 0.2s;
}

.post-card-item:first-child {
    border-top: 2px solid var(--border);
}

.post-card-item:hover {
    background: rgba(232, 85, 61, 0.04);
}

.article-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.5rem;
    text-decoration: none !important;
    color: inherit;
}

.article-emoji {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.post-card-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-info { flex: 1; }

.article-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
}

.post-card-item:hover .article-info h3 {
    text-decoration: underline;
    text-decoration-color: rgba(232, 85, 61, 0.4);
    text-underline-offset: 3px;
}

.article-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.article-new-tag {
    background: var(--gold-light);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1.5px solid #EDD88F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.article-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.post-card-item:hover .article-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* === TOPICS GRID === */
.topics-section {
    padding: 4rem 2rem;
}

.topics-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.topic-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow);
}

/* Color variants for topic cards */
.topic-card.color-0 { border-top: 4px solid var(--primary); }
.topic-card.color-1 { border-top: 4px solid var(--blue); }
.topic-card.color-2 { border-top: 4px solid var(--green); }
.topic-card.color-3 { border-top: 4px solid var(--purple); }
.topic-card.color-4 { border-top: 4px solid var(--gold); }
.topic-card.color-5 { border-top: 4px solid var(--teal); }
.topic-card.color-6 { border-top: 4px solid var(--primary); }
.topic-card.color-7 { border-top: 4px solid var(--blue); }

.topic-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.topic-icon { font-size: 1.5rem; }
.topic-icon-img { width: 28px; height: 28px; border-radius: 6px; }

.topic-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.topic-header h3 a {
    color: var(--text);
    text-decoration: none;
}

.topic-header h3 a:hover { color: var(--primary); }

.topic-card ul {
    list-style: none;
}

.topic-card li {
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 600;
    padding: 0.3rem 0;
}

.topic-card li a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.15s;
}

.topic-card li a:hover { color: var(--primary); }

.topic-card li::before {
    content: '• ';
    color: var(--text-muted);
    font-weight: 400;
}

/* === ABOUT BLOCK === */
.about-block {
    background: var(--bg-blue);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    padding: 3.5rem 2rem;
}

.about-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.65;
}

.about-meta strong {
    color: var(--text);
    font-weight: 800;
}

/* === CTA === */
.cta-section {
    padding: 4rem 2rem 5rem;
    text-align: center;
}

.cta-section .section-heading {
    max-width: 500px;
    margin: 0 auto 0.5rem;
}

.cta-section .section-sub {
    max-width: 480px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(232, 85, 61, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 85, 61, 0.3);
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.hero-signup {
    margin: 0 auto 0.75rem;
}

/* === RECENT POSTS === */
.recent-posts {
    max-width: var(--wide-width);
    margin: 0 auto;
}

.recent-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
}

.recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.recent-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.recent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: rgba(232, 85, 61, 0.25);
}

.recent-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.recent-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.recent-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.recent-card:hover .recent-card-body h3 {
    color: var(--primary);
}

.recent-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
    margin-top: auto;
}

/* === ARCHIVE / INDEX === */
.archive-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.archive-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.archive-header {
    margin-bottom: 2rem;
}

.archive-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.25rem;
}

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

.author-header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--border);
}

.pagination {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* === POST (Single) === */
.post-full {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.post-header {
    padding: 3rem 0 2rem;
}

.post-header-inner {
    max-width: var(--content-width);
}

.post-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.post-tag:hover { text-decoration: none; opacity: 0.85; }

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.post-feature-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 0;
}

/* === POST CONTENT (gh-content) === */
.gh-content {
    font-size: 1.075rem;
    color: var(--text-body);
    line-height: 1.8;
}

.gh-content > * + * {
    margin-top: 1.5rem;
}

.gh-content h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 2.5rem;
    letter-spacing: -0.01em;
}

.gh-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 2rem;
}

.gh-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(232, 85, 61, 0.3);
    text-underline-offset: 3px;
}

.gh-content a:hover {
    text-decoration-color: var(--primary);
}

.gh-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.5rem 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text);
    background: var(--bg-warm);
    border-radius: 0 8px 8px 0;
}

.gh-content ul, .gh-content ol {
    padding-left: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.35rem;
}

.gh-content img {
    border-radius: 8px;
}

.gh-content pre {
    background: #2D2A24;
    color: #E8E4D9;
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.gh-content code {
    font-size: 0.9em;
    background: rgba(232, 85, 61, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.gh-content pre code {
    background: none;
    padding: 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.gh-content th, .gh-content td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
}

.gh-content th {
    font-weight: 800;
    color: var(--text);
}

/* Author box at end of post */
.post-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: start;
    padding: 2rem;
    margin-top: 3rem;
    background: var(--bg-warm);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.author-info h4 a { color: var(--text); }
.author-info h4 a:hover { color: var(--primary); }

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* === FOOTER === */
.site-footer {
    padding: 2.5rem 2rem;
    border-top: 2px solid var(--border);
    text-align: center;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.7;
}

.site-footer a { color: var(--primary); font-weight: 700; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-nav { padding: 0.75rem 1.25rem; flex-wrap: wrap; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.75rem 0 0.5rem;
        border-top: 2px solid var(--border);
        margin-top: 0.75rem;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links li {
        list-style: none;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.7rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(232, 227, 216, 0.5);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-cta {
        display: inline-block !important;
        margin-top: 0.5rem;
        text-align: center;
    }
    .nav-mobile-toggle { display: flex; }

    /* Hamburger animation when open */
    .nav-mobile-toggle.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-mobile-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    .nav-mobile-toggle.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .nav-mobile-toggle span {
        transition: transform 0.3s, opacity 0.3s;
    }

    .hero { padding: 3rem 1.25rem 2rem; }
    .intro {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 2rem 1.25rem 3rem;
    }
    .cred-row { justify-content: center; }
    .start-here { padding: 3rem 1.25rem; }
    .topics-section { padding: 3rem 1.25rem; }
    .topics-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .recent-grid { grid-template-columns: 1fr; }
    .about-block { padding: 2.5rem 1.25rem; }
    .post-full { padding: 0 1.25rem 3rem; }
    .post-author-box { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
    .hero-newsletter form { flex-direction: column; }
    .article-emoji { display: none; }
    .post-card-image { display: none; }
}

/* === ANIMATION === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeIn 0.7s ease-out; }

/* === GHOST MEMBER FORMS === */
.gh-portal-triggerbtn-iframe {
    color-scheme: light;
}
