/* Withstain Editorial Design System */

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

:root {
    --color-background: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #5C5C5C;
    --color-accent: #C41E3A;
    --color-accent-dark: #A01829;
    --color-border: #D8D8D8;
    --color-border-dark: #2A2A2A;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --spacing-unit: 8px;
    --post-image-height: 600px;
    --header-overlap-factor: 0.87;
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

main {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

h1 {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

h2 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 5);
}

h3 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: calc(var(--spacing-unit) * 3);
    letter-spacing: -0.025em;
}

h4 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-dark);
}

/* Container utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #FFFFFF;
    z-index: 9999;
    transition: border-bottom 0.2s ease;
}

.site-header.scrolled {
    border-bottom: 1px solid var(--color-border);
}

.site-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 900;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
}

.site-logo-symbol {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 2px;
}

.site-logo:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Mobile menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: calc(var(--spacing-unit) * 2) 0;
        display: block;
    }
}

/* Sections */
section {
    padding: calc(var(--spacing-unit) * 12) 0;
}

section:first-of-type {
    padding-top: calc(var(--spacing-unit) * 16);
}

/* Typography utilities */
.lead {
    font-size: 20px;
    line-height: 1.65;
    color: var(--color-text);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 5);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    letter-spacing: 0.015em;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

/* Hero section */
.hero {
    text-align: left;
    border-bottom: 2px solid var(--color-border-dark);
}

.hero-statement {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.hero-cta {
    margin-top: calc(var(--spacing-unit) * 6);
    padding-bottom: calc(var(--spacing-unit) * 2);
}

/* Comparison section */
.comparison-section {
    background-color: #F9F9F9;
    margin: 0 calc(var(--spacing-unit) * -4);
    padding: calc(var(--spacing-unit) * 9) calc(var(--spacing-unit) * 4);
    position: relative;
    z-index: 1;
}

.comparison-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 7);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.comparison-header {
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 2px solid var(--color-border-dark);
}

.comparison-headers h5 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
}

.comparison-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 7);
    margin-bottom: calc(var(--spacing-unit) * 4);
    align-items: start;
}

.comparison-quote {
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 16px;
}

.comparison-answer {
    font-weight: 500;
    font-size: 17px;
}

/* Steps grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 5);
    margin-top: calc(var(--spacing-unit) * 7);
}

.step {
    border-left: 2px solid var(--color-border-dark);
    padding-left: calc(var(--spacing-unit) * 3.5);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.step h4 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.step p {
    font-size: 16px;
}

/* Tools grid */
.tools-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 5);
    margin-top: calc(var(--spacing-unit) * 7);
}

.tool {
    padding: calc(var(--spacing-unit) * 5);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.tool:hover {
    border-color: var(--color-border-dark);
}

.tool-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: inline-block;
}

.tool-label-accent {
    color: var(--color-accent);
}

.tool-content h4 {
    font-size: 30px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.tool-content p {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.link:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent-dark);
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 5);
    margin-top: calc(var(--spacing-unit) * 4);
}

.article-card {
    border-top: 2px solid var(--color-border-dark);
    padding-top: calc(var(--spacing-unit) * 3.5);
}

.article-link:nth-child(4) {
    display: none;
}

.article-card:hover .article-title {
    color: var(--color-accent);
}

.article-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transition: color 0.2s ease;
    color: var(--color-text);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.article-link {
    text-decoration: none;
    color: inherit;
}

.article-meta {
    margin-top: calc(var(--spacing-unit) * 1);
}

.article-meta .post-date {
    font-size: 12px;
}

.no-posts {
    text-align: center;
    padding: calc(var(--spacing-unit) * 8) 0;
}

.no-posts h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Related topics */
.related-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.related-topic-card {
    padding: calc(var(--spacing-unit) * 4);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.related-topic-card:hover {
    border-color: var(--color-border-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-topic-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transition: color 0.2s ease;
}

.related-topic-card:hover h4 {
    color: var(--color-accent);
}

.related-topic-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

/* Post styles */
.post {
    overflow: visible;
}

.post-header {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-top: calc(var(--post-image-height) * var(--header-overlap-factor) * -1);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.post-header-content {
    padding: calc(var(--spacing-unit) * 6);
    margin: 0 calc(var(--spacing-unit) * 4);
    text-align: center;
}

.post-header-content .eyebrow,
.post-header-content .post-title,
.post-header-content .post-meta {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.post-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: calc(var(--spacing-unit) * 8);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 calc(var(--spacing-unit) * 4);
}

.post-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-text);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1);
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.post-meta-separator {
    color: var(--color-border-dark);
    margin: 0 calc(var(--spacing-unit) * 0.5);
}

.post-reading-time {
    color: var(--color-text-secondary);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1);
}

.tag {
    background: rgba(196, 30, 58, 0.08);
    color: var(--color-text-secondary);
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
    border-radius: calc(var(--spacing-unit) * 0.5);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(196, 30, 58, 0.15);
    display: inline-block;
    text-decoration: none;
}

a.tag:hover {
    background: rgba(196, 30, 58, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.post-image-container {
    width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
}

.post-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.post-image {
    width: 100%;
    display: block;
    max-height: var(--post-image-height);
    object-fit: cover;
    object-position: center;
}

.image-credit {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 1);
    padding: 0 calc(var(--spacing-unit) * 4);
    position: relative;
    z-index: 1;
    font-style: normal;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 720px;
    width: 100%;
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    margin-top: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-text);
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin-top: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-text);
}

.post-content h4 {
    font-size: 22px;
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-content p {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.post-content ul,
.post-content ol {
    margin-bottom: calc(var(--spacing-unit) * 3);
    margin-left: calc(var(--spacing-unit) * 4);
}

.post-content li {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--color-accent-dark);
}

.post-content blockquote {
    margin: calc(var(--spacing-unit) * 4) 0;
    padding: calc(var(--spacing-unit) * 3);
    background-color: #F9F9F9;
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    color: var(--color-text-secondary);
}

.post-content code {
    background-color: #F9F9F9;
    color: var(--color-accent);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #F9F9F9;
    border: 1px solid var(--color-border);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: calc(var(--spacing-unit) * 1);
    overflow-x: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

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

.post-content table {
    width: 100%;
    margin: calc(var(--spacing-unit) * 4) 0;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}

.post-content th {
    padding: calc(var(--spacing-unit) * 2);
    text-align: left;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border-dark);
    background-color: #F9F9F9;
}

.post-content td {
    padding: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--color-border);
}

/* Table of Contents */
.table-of-contents {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 10;
}

.toc-sticky {
    padding: calc(var(--spacing-unit) * 3);
    border-left: 2px solid var(--color-border);
}

.toc-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 2);
}

.toc-nav {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.toc-nav::-webkit-scrollbar {
    display: none;
}

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

.toc-item {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.toc-level-2 {
    padding-left: calc(var(--spacing-unit) * 2);
}

.toc-level-3 {
    padding-left: calc(var(--spacing-unit) * 4);
    font-size: 14px;
}

.toc-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.toc-link:hover {
    color: var(--color-accent);
}

.toc-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* About section (dark) */
.about-section {
    background-color: #1A1A1A;
    color: #FFFFFF;
    margin: 0 calc(var(--spacing-unit) * -4);
    padding: calc(var(--spacing-unit) * 11) calc(var(--spacing-unit) * 4);
}

.about-section h3 {
    color: #FFFFFF;
}

.about-section p {
    color: #CCCCCC;
}

.about-section .link {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

/* Newsletter section */
.newsletter-section {
    background-color: #F9F9F9;
    margin: 0 calc(var(--spacing-unit) * -4);
    padding: calc(var(--spacing-unit) * 11) calc(var(--spacing-unit) * 4);
    text-align: center;
}

.newsletter-content {
    max-width: 580px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 5);
}

.email-input {
    flex: 1;
    padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 3);
    border: 2px solid var(--color-border-dark);
    font-size: 15px;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Section utilities */
.section-cta {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 7);
}

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

.mt-8 {
    margin-top: calc(var(--spacing-unit) * 8);
}

/* Post list */
.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
    padding: 0;
}

.post-list-item {
    border-top: 2px solid var(--color-border-dark);
    padding-top: calc(var(--spacing-unit) * 4);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-card-content h2:hover {
    color: var(--color-accent);
}

.post-excerpt {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--color-border);
}

.post-date {
    font-size: 13px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Page layouts */
.page-intro {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-intro h1 {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.page-intro .lead {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--color-border);
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 4);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.site-footer p {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

/* Related posts */
.related-posts {
    margin-top: calc(var(--spacing-unit) * 12);
    padding-top: calc(var(--spacing-unit) * 8);
    border-top: 2px solid var(--color-border);
}

.related-posts-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.related-posts-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Subscribe block */
.subscribe-block {
    margin: calc(var(--spacing-unit) * 10) 0 0;
    padding: calc(var(--spacing-unit) * 11) calc(var(--spacing-unit) * 4);
    background-color: #F9F9F9;
    text-align: center;

    /* Break out of post container to full width */
    width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.subscribe-block-content {
    max-width: 580px;
    margin: 0 auto;
}

.subscribe-block h3 {
    font-size: 28px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.subscribe-block .lead {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.subscribe-subtext {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin-bottom: 0;
}

.subscribe-block-form {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 5);
}

.subscribe-block-input {
    flex: 1;
    padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 3);
    border: 2px solid var(--color-border-dark);
    font-size: 15px;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease;
}

.subscribe-block-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.subscribe-block-btn {
    padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 5);
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.subscribe-block-btn:hover {
    background-color: var(--color-accent-dark);
}

.subscribe-message {
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-radius: calc(var(--spacing-unit) * 0.5);
    font-size: 15px;
}

.subscribe-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscribe-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Post Tool CTA */
.post-tool-cta {
    margin: calc(var(--spacing-unit) * 10) 0 0;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    background-color: #F9F9F9;

    /* Break out of post container to full width */
    width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.post-tool-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 4);
    max-width: 900px;
    margin: 0 auto;
}

.post-tool-cta-text {
    flex: 1;
}

.post-tool-cta-text .eyebrow {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.post-tool-cta-text h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 700;
}

.post-tool-cta-text p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.post-subscribe-cta {
    margin: 0;
}

/* Post navigation */
.post-nav {
    margin: calc(var(--spacing-unit) * 8) 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
    .steps-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .comparison-headers,
    .comparison-row {
        gap: calc(var(--spacing-unit) * 4);
    }

    .comparison-headers h5 {
        font-size: 12px;
    }

    .comparison-quote {
        font-size: 15px;
    }

    .comparison-answer {
        font-size: 16px;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        display: none;
    }
}

/* Tablet layout (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --post-image-height: 450px;
        --header-overlap-factor: 0.85;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 36px;
    }

    h4 {
        font-size: 22px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 20px;
    }

    section:first-of-type {
        padding-top: calc(var(--spacing-unit) * 14);
    }

    .page-intro {
        margin-bottom: calc(var(--spacing-unit) * 6);
    }

    .articles-grid {
        margin-top: calc(var(--spacing-unit) * 4);
    }

    .article-link:nth-child(4) {
        display: block;
    }

    .post-header {
        max-width: 800px;
    }

    .post-header-content {
        padding: calc(var(--spacing-unit) * 4.5) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
        margin: 0 calc(var(--spacing-unit) * 3);
    }

    .post-title {
        font-size: clamp(28px, 4vw, 38px);
    }

    .lead {
        font-size: 18px;
    }

    .site-nav {
        padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 4);
    }

    .site-logo {
        font-size: 22px;
    }

    .site-logo-symbol {
        height: 26px;
        margin-bottom: 2px;
    }

    body {
        font-size: 16px;
    }

    .post-content {
        font-size: 17px;
        line-height: 1.65;
    }

    .post-content h2 {
        font-size: 30px;
    }

    .post-content h3 {
        font-size: 24px;
    }

    .post-content h4 {
        font-size: 20px;
    }

    .tag {
        font-size: 11px;
        padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.25);
    }

    .post-tags {
        gap: calc(var(--spacing-unit) * 0.75);
    }
}

@media (max-width: 768px) {
    :root {
        --post-image-height: 350px;
        --header-overlap-factor: 0.72;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 20px;
    }

    .lead {
        font-size: 17px;
        line-height: 1.6;
    }

    .article-title {
        font-size: 19px;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .site-nav {
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    }

    .site-logo {
        font-size: 20px;
    }

    .site-logo-symbol {
        height: 24px;
        margin-bottom: 2px;
    }

    body {
        font-size: 15px;
    }

    .post-content {
        font-size: 16px;
        line-height: 1.65;
    }

    .post-content h2 {
        font-size: 26px;
    }

    .post-content h3 {
        font-size: 22px;
    }

    .post-content h4 {
        font-size: 18px;
    }

    section {
        padding: calc(var(--spacing-unit) * 6) 0;
    }

    section:first-of-type {
        padding-top: calc(var(--spacing-unit) * 8);
    }

    .page-intro {
        margin-bottom: calc(var(--spacing-unit) * 4);
    }

    .page-intro h1 {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }

    .articles-grid {
        margin-top: calc(var(--spacing-unit) * 3);
    }

    .article-link:nth-child(4) {
        display: block;
    }

    .comparison-headers,
    .comparison-row {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

    .comparison-headers h5 {
        font-size: 11px;
    }

    .comparison-quote {
        font-size: 14px;
    }

    .comparison-answer {
        font-size: 15px;
    }

    .comparison-row {
        margin-bottom: calc(var(--spacing-unit) * 4);
    }

    .container,
    .container-narrow {
        padding-left: calc(var(--spacing-unit) * 3);
        padding-right: calc(var(--spacing-unit) * 3);
    }

    .comparison-section,
    .about-section,
    .newsletter-section {
        margin-left: calc(var(--spacing-unit) * -3);
        margin-right: calc(var(--spacing-unit) * -3);
        padding-left: calc(var(--spacing-unit) * 3);
        padding-right: calc(var(--spacing-unit) * 3);
    }

    .email-form {
        flex-direction: column;
    }

    .subscribe-block-form {
        flex-direction: column;
    }

    .subscribe-block {
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    }

    .post-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-tool-cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 3);
    }

    .post-tool-cta-content .btn {
        width: 100%;
        text-align: center;
    }

    .post-header {
        max-width: 100%;
    }

    .post-header-content {
        padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
        margin: 0 calc(var(--spacing-unit) * 2);
    }

    .post-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: calc(var(--spacing-unit) * 2);
    }

    .post-meta {
        font-size: 13px;
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .tag {
        font-size: 10px;
        padding: calc(var(--spacing-unit) * 0.4) calc(var(--spacing-unit) * 1);
    }

    .post-tags {
        gap: calc(var(--spacing-unit) * 0.6);
    }
}
