:root {
    --bg: #ffffff;
    --text: #0b0b0c;
    --muted: rgba(11, 11, 12, 0.68);
    --border: rgba(11, 11, 12, 0.08);
    --card: #f4f4f5;
    --accent: #2f16ff;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --max: 1040px;
    --font-sans:
        "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
        Helvetica, Arial;
    --font-serif:
        "Newsreader", ui-serif, Georgia, "Times New Roman", Times, serif;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
}

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

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

/* Force Newsreader (serif) to regular everywhere for headings */
.hero-title,
.about-title,
.quote-text,
.pricing-title,
.member-home-title,
.member-section-title,
.post-title,
.post-comments-title,
.footer-title,
.page-title {
    font-weight: 400;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 20;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand-text {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 28px;
    display: block;
}

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

.link-button {
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.78);
    padding: 10px 10px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    transition:
        transform 0.08s ease,
        opacity 0.2s ease;
    user-select: none;
}

.button:hover {
    opacity: 0.95;
}
.button:active {
    transform: translateY(1px);
}

.button-primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.button-ghost {
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
    color: rgba(0, 0, 0, 0.82);
}

/* Remove borders globally from card-like elements */
.feature-card,
.price-card,
.post-card,
.post-feature-img {
    border: none !important;
}

/* Hero */
.hero {
    padding: 44px 0 18px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(54px, 7vw, 84px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    font-weight: 300;
}

.hero-title-sikh {
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 520px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

/* Video card refinement */
.video-card {
    margin-top: 22px; /* increased gap from hero */
    background: #f2f2f3;
    border-radius: var(--radius);
    overflow: hidden; /* clips iframe corners */
}

.video-head {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.75);
}

.video-play {
    font-size: 13px;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* About + feature grid */
.about {
    padding: 44px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 34px;
    align-items: start;
}

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 3.2vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.about-title em {
    font-style: italic;
}
.about-cta {
    margin-top: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-num {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(0, 0, 0, 0.35);
}

.feature-body p {
    margin: 0;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.68);
    line-height: 1.45;
}

.feature-body p strong {
    color: rgba(0, 0, 0, 0.92);
    font-weight: 600;
}

.feature-card-accent {
    background: var(--accent);
    color: #fff;
}

.feature-card-accent .feature-num {
    color: rgba(255, 255, 255, 0.55);
}
.feature-card-accent .feature-body p {
    color: rgba(255, 255, 255, 0.88);
}
.feature-card-accent .feature-body p strong {
    color: rgba(255, 255, 255, 0.98);
}

/* Quote */
.quote {
    padding: 48px 0 20px;
}

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

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(40px, 4.5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.quote-attrib {
    margin: 0 0 14px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
}

/* Pricing */
.pricing {
    padding: 30px 0 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 34px;
    align-items: start;
}

.pricing-title {
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}

.pricing-title em {
    font-style: italic;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* Base pricing card */
.price-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    min-height: 170px;
}

.price-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform 0.08s ease,
        opacity 0.2s ease;
}

.price-card-link:hover {
    opacity: 0.96;
}
.price-card-link:active {
    transform: translateY(1px);
}

.price-small {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
}

.price-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.price-big {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 34px;
    line-height: 1.02;
    color: rgba(0, 0, 0, 0.92);
}

.price-card-accent {
    background: var(--accent);
    color: #fff;
}

.price-card-accent .price-small {
    color: rgba(255, 255, 255, 0.55);
}
.price-card-accent .price-label {
    color: rgba(255, 255, 255, 0.85);
}
.price-card-accent .price-big {
    color: #fff;
}

/* Discount card */
.price-card-dark {
    background: #0f0f12;
    color: #fff;
    grid-column: 1 / 2; /* keep left column (gap on right) */
}

.price-card-dark .price-small {
    color: rgba(255, 255, 255, 0.45);
}

.price-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
    margin-bottom: 14px;
}

.price-card-dark .price-big {
    font-size: 38px;
    color: #fff; /* force white */
    opacity: 1; /* not watermark */
    font-weight: 800;
}

/* Desktop-only: all pricing cards square, including discount */
@media (min-width: 900px) {
    .pricing-cards .price-card {
        aspect-ratio: 1 / 1;
        min-height: unset;
    }
}

/* Footer */
.site-footer {
    padding: 28px 0 44px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 22px;
    align-items: start;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    margin-top: 0;
}

.footer-small {
    margin: 0 0 10px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
    max-width: 260px;
}

.footer-links-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.75);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-brand span {
    display: block;
}

/* -----------------------------
   Member home
------------------------------ */
.member-home {
    padding: 44px 0 70px;
}

.member-home-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-home-title {
    font-family: var(--font-serif);
    letter-spacing: -0.03em;
    margin: 0;
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1.02;
}

.member-home-sub {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.member-home-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.member-home-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.post-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-card-link {
    display: block;
    padding: 18px;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    margin-bottom: 10px;
}

.post-tag {
    font-family: var(--font-serif);
    font-style: italic;
}

.post-featured {
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 8px;
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.7);
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.post-card-excerpt {
    margin: 0;
    color: rgba(0, 0, 0, 0.68);
    font-size: 13px;
    line-height: 1.5;
}

.member-section {
    margin-top: 26px;
}

.member-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.member-section-title {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    margin: 0;
    font-size: 22px;
}

.member-section-link {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
}

.member-section-link:hover {
    text-decoration: underline;
}

.member-empty {
    padding: 14px 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 13px;
}

/* -----------------------------
   Post layout
------------------------------ */
.post-hero {
    padding: 54px 0 18px;
}
.post-hero-inner {
    max-width: 760px;
}

.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
    margin-bottom: 14px;
}

.post-tag-pill {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 10px;
    border-radius: 999px;
}

.post-featured-pill {
    background: rgba(0, 0, 0, 0.06);
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.7);
}

.post-date {
    color: rgba(0, 0, 0, 0.5);
}

.post-title {
    font-family: var(--font-serif);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 12px;
    font-size: clamp(40px, 4.8vw, 60px);
}

.post-excerpt {
    margin: 0 0 18px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 14px;
    line-height: 1.6;
    max-width: 62ch;
}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.post-author-avatar--empty {
    background: rgba(0, 0, 0, 0.08);
}
.post-author-name {
    color: rgba(0, 0, 0, 0.68);
}

.post-reading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.5);
}

.post-reading-dot {
    opacity: 0.6;
}

/* Feature image */
.post-feature {
    margin: 10px 0 0;
}

.post-feature-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* Post + Page body spacing */
.post-body {
    padding: 22px 0 30px;
}

/* Long-form content (Pages + Posts) */
.page .content,
.post .content {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-serif); /* ✅ Newsreader for reading */
    font-size: 17px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.85);
}

.content p {
    margin: 0 0 18px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.content figure {
    margin: 24px 0;
}

/* Keep headings inside content clean (serif) */
.page .content h2,
.page .content h3,
.page .content h4,
.post .content h2,
.post .content h3,
.post .content h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 34px 0 10px;
    line-height: 1.2;
}

.content h2 {
    font-size: 24px;
}
.content h3 {
    font-size: 20px;
}
.content h4 {
    font-size: 17px;
}

.content a {
    color: rgba(0, 0, 0, 0.86);
    text-decoration: underline;
    text-decoration-color: rgba(47, 22, 255, 0.35);
    text-underline-offset: 3px;
}

.content blockquote {
    margin: 28px 0;
    padding: 6px 0 6px 18px;
    border-left: 3px solid rgba(47, 22, 255, 0.55);
    color: rgba(0, 0, 0, 0.75);
}

.content code {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
}

.content pre {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 14px;
    overflow: auto;
}

/* Comments section */
.post-comments {
    padding: 24px 0 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-comments-title {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    font-size: 22px;
}

.post-comments-sub {
    margin: 0 0 18px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 13px;
}

/* Pages */
.page-hero {
    padding: 54px 0 18px;
}

.page-title {
    font-family: var(--font-serif);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 12px;
    font-size: clamp(40px, 4.8vw, 60px);
}

.page-excerpt {
    margin: 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 14px;
    line-height: 1.6;
    max-width: 62ch;
}

.page-body {
    padding: 22px 0 60px;
}

.page-feature {
    margin: 10px 0 0;
}
.page-feature-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* Required Ghost Koenig width classes */
.kg-width-wide {
    width: min(1100px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

.kg-width-full img {
    border-radius: 0;
}

/* Responsive refinements */
@media (max-width: 900px) {
    .about-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards .price-card {
        aspect-ratio: auto;
        min-height: 170px;
    }

    .price-card-dark {
        grid-column: auto; /* on small screens it can stack naturally */
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        aspect-ratio: auto;
        min-height: 140px;
        padding: 16px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .post-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ✅ Mobile padding fix for reading pages/posts */
    .post-body .content,
    .page-body .content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---------------------------------
   Mobile swipe carousel (square cards)
---------------------------------- */

/* ---------------------------------
   Mobile swipe carousel (height-capped)
---------------------------------- */

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        max-height: 35vh;
        min-height: 240px;
        overflow: hidden;
        padding: 16px;
    }

    .feature-body {
        overflow: auto;
        padding-right: 6px;
    }
}

/* ============================
   Member home: 3-column grid on desktop + square cards
   Applies to BOTH Events + Ideas (they share .member-home-list)
============================ */

/* Base: keep 1 column by default (you already have this) */
.member-home-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* Tablet: 2 columns */
@media (min-width: 720px) {
    .member-home-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1040px) {
    .member-home-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Make cards square on desktop only */
@media (min-width: 1040px) {
    .post-card {
        aspect-ratio: 1 / 1;
        display: flex; /* so inner content can be laid out */
    }

    .post-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Keep title/excerpt from blowing up the square */
    .post-card-title {
        display: -webkit-box;
        display: box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }

    .post-card-excerpt {
        margin-top: auto; /* pushes excerpt down */
        display: -webkit-box;
        display: box;
        line-clamp: 4;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }
}

/* Safety: if you ever want to disable square cards below desktop */
@media (max-width: 1039px) {
    .post-card {
        aspect-ratio: auto;
    }
}
