@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

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

html, body {
    height: 100%;
}

body {
    font-family: 'Archivo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.hidden {
    display: none;
}

.ts-main {
    min-height: 100vh;
    width: 100%;
    background: #f1eee7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.ts-badge {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(26, 24, 21, 0.5);
}

.ts-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F5C842;
    display: inline-block;
}

.ts-container {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 14px;
}

.ts-hero-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 0;
    background: #f1eee7;
}

.ts-hero-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 46vh;
    object-fit: contain;
}

.ts-description {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 500;
    line-height: 1.45;
    color: #1a1815;
    text-align: center;
    max-width: 620px;
    text-wrap: balance;
}

.ts-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ts-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #191713;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 26px;
    border-radius: 999px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 3px #F5C842;
}

.ts-btn svg {
    flex-shrink: 0;
}

.ts-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ts-newsletter-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(26, 24, 21, 0.5);
    margin-bottom: 0;
}

.gh-subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ts-message-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.42;
    padding: 12px 18px 12px 14px;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.ts-message-success-box {
    background: rgba(31, 157, 87, 0.10);
}

.ts-message-warning-box {
    background: rgba(232, 163, 61, 0.14);
}

.ts-message-error-box {
    background: rgba(216, 72, 59, 0.10);
}

.ts-message-icon {
    flex: none;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.ts-message-icon-success {
    background: #1f9d57;
}

.ts-message-icon-warning {
    background: #C98A1E;
}

.ts-message-icon-error {
    background: #CF4436;
}

.ts-message {
    flex: 1;
    font-size: inherit;
    font-weight: inherit;
    color: #1a1815;
}

.ts-form-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid rgba(26, 24, 21, 0.14);
    border-radius: 999px;
    padding: 6px 6px 6px 10px;
    min-height: 44px;
}

.ts-form-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.ts-email-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1a1815;
    padding: 10px 12px;
    height: auto;
    width: 100%;
}

.ts-email-input::placeholder {
    color: rgba(26, 24, 21, 0.5);
}

.ts-subscribe-btn {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    background: #F5C842;
    color: #191713;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    transition: transform 0.15s ease;
    white-space: nowrap;
}

.ts-subscribe-btn:hover {
    transform: translateY(-1px);
}

.ts-credits {
    margin-top: auto;
    padding-top: 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(26, 24, 21, 0.5);
    text-align: center;
}

/* Featured spotlight — text-forward highlight card (no image needed) */
.ts-spotlight {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.ts-spotlight-inner {
    width: 100%;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ts-spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #1a1815;
}

.ts-spotlight-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F5C842;
}

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

.ts-spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(26, 24, 21, 0.06);
    border-radius: 16px;
    padding: 30px 34px 32px;
    box-shadow: 0 10px 30px rgba(26, 24, 21, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(26, 24, 21, 0.13);
}

.ts-spotlight-title {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1a1815;
}

.ts-spotlight-excerpt {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(26, 24, 21, 0.6);
}

.ts-spotlight-cta {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #191713;
}

.ts-spotlight-cta svg {
    transition: transform 0.2s ease;
}

.ts-spotlight-card:hover .ts-spotlight-cta svg {
    transform: translateX(4px);
}

.ts-featured {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.ts-featured-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(26, 24, 21, 0.5);
}

.ts-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
}

.ts-featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 3px #F5C842;
}

.ts-featured-thumb {
    line-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1eee7;
}

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

.ts-featured-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}

.ts-featured-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1815;
}

.ts-featured-excerpt {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(26, 24, 21, 0.62);
}

.ts-more-link {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #191713;
    transition: gap 0.2s ease;
}

.ts-more-link:hover {
    gap: 12px;
}

/* Ghost required card styles */
.kg-width-wide {
    max-width: 100%;
}

.kg-width-full {
    max-width: 100%;
}

@media (max-width: 768px) {
    .ts-main {
        padding: 24px 16px;
    }

    .ts-badge {
        font-size: 11px;
    }

    .ts-buttons {
        flex-direction: column;
        width: 100%;
    }

    .ts-btn {
        width: 100%;
        justify-content: center;
    }

    .ts-description {
        font-size: 16px;
        max-width: 100%;
    }

    .ts-featured-grid {
        grid-template-columns: 1fr;
    }

    .ts-spotlight-card {
        padding: 24px 22px 26px;
    }

    .ts-spotlight-title {
        font-size: 22px;
    }

    .ts-spotlight-excerpt {
        font-size: 15px;
    }

    .gh-subscribe {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 10px;
    }

    .ts-message-box {
        max-width: 100%;
    }

    .ts-form-wrapper {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        background: transparent;
        border: none;
        padding: 0;
        min-height: auto;
        gap: 10px;
    }

    .ts-form-input-wrapper {
        width: 100%;
        background: #ffffff;
        border: 1px solid rgba(26, 24, 21, 0.14);
        border-radius: 999px;
        padding: 12px 18px;
    }

    .ts-email-input {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .ts-subscribe-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

.ts-btn-rss {
    background: #F26522 !important;
    color: #ffffff !important;
}

.ts-btn-rss:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 3px #F5C842;
}

/* Message visibility controlled by form classes */
.gh-subscribe--success,
.gh-subscribe--warning,
.gh-subscribe--error {
    display: none;
}

.gh-subscribe.success .gh-subscribe--success {
    display: block;
}

.gh-subscribe.invalid .gh-subscribe--warning {
    display: block;
}

.gh-subscribe.error .gh-subscribe--error {
    display: block;
}

.ts-form-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .ts-main {
        padding-bottom: 100px;
    }

    .ts-credits {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 40px;
    }
}

/* ===========================================================================
   Post / newsletter "view in browser" page
   =========================================================================== */

.ts-post-page {
    min-height: 100vh;
    width: 100%;
    background: #f1eee7;
    color: #1a1815;
    display: flex;
    flex-direction: column;
}

.ts-post-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 24px;
}

.ts-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1a1815;
}

.ts-wordmark .ts-dot {
    position: static;
    transform: none;
}

.ts-topbar-link {
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 24, 21, 0.55);
    transition: color 0.15s ease;
}

.ts-topbar-link:hover {
    color: #1a1815;
}

.ts-post-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 24px 56px;
}

.ts-post-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
    padding: 48px 56px 56px;
}

.ts-post-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #C98A1E;
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------------------
   Podcast archive — /podcast/
--------------------------------------------------------------------------- */
.ts-archive-head {
    margin-bottom: 26px;
}

.ts-archive-head .ts-post-eyebrow {
    margin-bottom: 12px;
}

.ts-archive-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1a1815;
}

.ts-archive-sub {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(26, 24, 21, 0.6);
    max-width: 46ch;
}

.ts-archive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(26, 24, 21, 0.12);
}

.ts-archive-item + .ts-archive-item {
    border-top: 1px solid rgba(26, 24, 21, 0.12);
}

.ts-archive-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    color: #1a1815;
}

.ts-archive-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.ts-archive-post-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1815;
    transition: color 0.15s ease;
}

.ts-archive-link:hover .ts-archive-post-title {
    color: #C98A1E;
}

.ts-archive-excerpt {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(26, 24, 21, 0.58);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-archive-meta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(26, 24, 21, 0.5);
}

.ts-archive-arrow {
    flex-shrink: 0;
    color: rgba(26, 24, 21, 0.3);
    line-height: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ts-archive-link:hover .ts-archive-arrow {
    transform: translateX(4px);
    color: #191713;
}

.ts-archive-empty {
    padding: 32px 4px;
    font-size: 16px;
    color: rgba(26, 24, 21, 0.55);
}

.ts-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    font-size: 14px;
    font-weight: 600;
}

.ts-pagination-link {
    color: #191713;
    transition: color 0.15s ease;
}

.ts-pagination-link:hover {
    color: #C98A1E;
}

.ts-pagination-link.is-disabled {
    color: rgba(26, 24, 21, 0.25);
    pointer-events: none;
}

.ts-pagination-page {
    font-weight: 500;
    color: rgba(26, 24, 21, 0.5);
}

.ts-post-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #1a1815;
    text-wrap: balance;
}

.ts-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(26, 24, 21, 0.55);
}

.ts-post-author {
    font-weight: 700;
    color: #1a1815;
}

.ts-post-meta-sep {
    color: rgba(26, 24, 21, 0.3);
}

.ts-post-feature {
    margin: 32px 0 8px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.ts-post-feature img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Image lightbox --- */
.ts-zoomable {
    cursor: zoom-in;
}

.ts-lightbox-lock {
    overflow: hidden;
}

.ts-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(20, 18, 15, 0.88);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ts-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.ts-lightbox-img {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: ts-lightbox-in 0.2s ease;
}

@keyframes ts-lightbox-in {
    from { transform: scale(0.96); }
    to   { transform: scale(1); }
}

.ts-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ts-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --- Rendered Ghost content typography --- */

.ts-post-content {
    margin-top: 32px;
    font-size: 17.5px;
    line-height: 1.72;
    color: #2a2722;
}

.ts-post-content > * {
    margin-bottom: 1.4em;
}

.ts-post-content > *:last-child {
    margin-bottom: 0;
}

.ts-post-content h2,
.ts-post-content h3,
.ts-post-content h4 {
    color: #1a1815;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.ts-post-content h2 {
    font-size: 1.5em;
}

.ts-post-content h3 {
    font-size: 1.25em;
}

.ts-post-content h4 {
    font-size: 1.08em;
}

.ts-post-content a {
    color: #1a1815;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #F5C842;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: background 0.15s ease;
}

.ts-post-content a:hover {
    background: #F5C842;
}

.ts-post-content strong {
    font-weight: 700;
    color: #1a1815;
}

.ts-post-content ul,
.ts-post-content ol {
    padding-left: 1.3em;
}

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

.ts-post-content li::marker {
    color: rgba(26, 24, 21, 0.5);
}

.ts-post-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid #F5C842;
    font-style: italic;
    color: #1a1815;
}

.ts-post-content hr {
    border: none;
    border-top: 1px solid rgba(26, 24, 21, 0.12);
    margin: 2.2em 0;
}

.ts-post-content img,
.ts-post-content video,
.ts-post-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.ts-post-content figure {
    margin: 0;
}

.ts-post-content figcaption {
    margin-top: 8px;
    font-size: 13.5px;
    text-align: center;
    color: rgba(26, 24, 21, 0.5);
}

.ts-post-content code {
    background: rgba(26, 24, 21, 0.07);
    color: #1a1815;
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 5px;
}

.ts-post-content pre {
    background: #1a1815;
    color: #f1eee7;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.6;
}

.ts-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Ghost width cards inside the narrow column */
.ts-post-content .kg-width-wide {
    width: 100%;
}

.ts-post-content .kg-width-full {
    width: 100%;
}

.ts-post-content .kg-card {
    margin-top: 1.4em;
    margin-bottom: 1.4em;
}

/* --- Subscribe call to action --- */

.ts-post-cta {
    margin-top: 28px;
    background: #191713;
    color: #ffffff;
    border-radius: 18px;
    padding: 40px 44px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ts-post-cta-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F5C842;
}

.ts-post-cta-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.ts-post-cta-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 460px;
    text-wrap: balance;
}

.ts-post-cta .ts-buttons {
    margin-top: 8px;
}

.ts-post-cta .ts-btn {
    background: #ffffff;
    color: #191713;
}

.ts-post-cta .gh-subscribe {
    margin-top: 12px;
}

.ts-post-cta .ts-form-wrapper {
    background: #ffffff;
}

.ts-post-footer {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 36px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(26, 24, 21, 0.5);
}

@media (max-width: 768px) {
    .ts-post-main {
        padding: 4px 14px 40px;
    }

    .ts-post-card {
        padding: 30px 22px 34px;
        border-radius: 14px;
    }

    .ts-post-content {
        font-size: 16.5px;
    }

    .ts-post-cta {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .ts-post-cta .ts-btn {
        width: 100%;
        justify-content: center;
    }

    .ts-archive-post-title {
        font-size: 19px;
    }

    .ts-archive-arrow {
        display: none;
    }
}
