@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    /* ---- Brand palette ---- */
    --coral: #F2615C;
    --coral-deep: #D94A45;
    --yellow: #F5C518;
    --orange: #E28E43;
    --mint: #CDE7D2;
    --mint-deep: #B6D9BD;
    --sage: #A6B5A0;

    /* ---- Surfaces — crisp white ---- */
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --surface-warm: #F7F5F1;

    /* ---- Ink ---- */
    --ink: #1F1D1B;
    --ink-soft: #5C5650;
    --ink-faint: #78736C;
    --on-dark: #FBF8F3;
    --on-dark-soft: #E4DED4;

    /* ---- Lines ---- */
    --line: #EAE7E1;
    --line-strong: #D7D2C8;

    /* ---- Highlight (text call-out, replaces pull quotes) ---- */
    --highlight: rgba(245, 197, 24, 0.42);

    /* ---- Radii ---- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 2px rgba(33, 30, 27, 0.05), 0 1px 3px rgba(33, 30, 27, 0.04);
    --shadow-md: 0 6px 18px rgba(33, 30, 27, 0.07), 0 2px 6px rgba(33, 30, 27, 0.05);
    --shadow-lg: 0 22px 48px rgba(33, 30, 27, 0.14), 0 8px 16px rgba(33, 30, 27, 0.08);

    /* ---- Layout ---- */
    --page: 1080px;
    --sidebar-w: 260px;
    --header-h: 64px;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--ink);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

::selection {
    background: rgba(245, 197, 24, 0.4);
}

.font-display {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.font-read {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.font-ui {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.hm-highlight {
    background: var(--highlight);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0.08em 0.06em;
    border-radius: 2px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hardmode theme — sidebar layout */

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



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

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Layout ─── */
.layout {
    display: flex;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: var(--page);
    padding: 64px 40px 40px;
    min-width: 0;
}

/* ─── Sidebar (desktop) ─── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 100;
    background: var(--surface);
    border-right: 1px solid var(--line-strong);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 900px) {
    .sidebar {
        transform: none;
    }

    body {
        padding-left: var(--sidebar-w);
    }

    .layout {
        display: block;
    }

    main {
        margin: 0 auto;
    }
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.sidebar-top {
    padding: 32px 28px 20px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    line-height: 0;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-logo-text {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.4px;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

.sidebar-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-faint);
    margin: 0;
}

.sidebar-mid {
    padding: 0 28px 20px;
    flex-shrink: 0;
}

/* ─── Sidebar nav ─── */
.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav li {
    border: none;
}

.sidebar-nav a {
    display: block;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav a:hover {
    background: var(--mint);
    color: var(--ink);
}

.sidebar-nav .nav-current a,
.sidebar-nav a[aria-current="page"] {
    background: var(--mint);
    color: var(--ink);
    font-weight: 700;
}

/* ─── Sidebar search ─── */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.sidebar-search:hover {
    border-color: var(--ink-faint);
    color: var(--ink-soft);
}

.sidebar-search svg {
    flex-shrink: 0;
    color: var(--ink-faint);
}

.sidebar-search:hover svg {
    color: var(--ink-soft);
}

/* ─── Sidebar bottom (pinned) ─── */
.sidebar-bottom {
    margin-top: auto;
    padding: 20px 28px 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ─── Subscribe button in sidebar ─── */
.sidebar .btn-subscribe {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    background: var(--coral);
    color: var(--on-dark);
    padding: 8px 24px;
    min-height: 38px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.sidebar .btn-subscribe:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

.sidebar .btn-subscribe:hover {
    background: var(--coral-deep);
    color: var(--on-dark);
}

/* ─── Social links ─── */
.sidebar-social {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--ink-faint);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.social-link:hover {
    color: var(--ink);
    border-color: var(--ink-faint);
    background: var(--surface);
}

/* ─── Copyright ─── */
.sidebar-copyright {
    font-size: 12px;
    color: var(--ink-faint);
}

/* ─── Overlay (mobile sidebar backdrop) ─── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(31, 29, 27, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Mobile header (hidden on desktop) ─── */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
}

@media (min-width: 900px) {
    .mobile-header {
        display: none;
    }
}

.mobile-logo {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
}

.hamburger .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

/* ─── Mobile adjustments ─── */
@media (max-width: 899px) {
    .layout {
        flex-direction: column;
    }

    main {
        padding: 32px 20px 40px;
    }
}

/* ─── Page header ─── */
.page-header {
    padding: 48px 0 36px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

.page-header p {
    color: var(--ink-soft);
    font-size: 18px;
    margin: 0;
}

/* ─── Koenig content classes ─── */
.kg-width-wide {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: 24px 0;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.kg-gallery-image {
    flex: 1;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.kg-bookmark-card {
    margin: 24px 0;
}

.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s;
}

.kg-bookmark-container:hover {
    border-color: var(--ink-faint);
}

.kg-bookmark-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.kg-bookmark-description {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: auto;
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.kg-bookmark-author {
    font-weight: 500;
}

.kg-bookmark-publisher {
    font-weight: 500;
}

.kg-bookmark-thumbnail {
    flex-shrink: 0;
    width: 200px;
    min-height: 120px;
    overflow: hidden;
    background: var(--surface-warm);
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── CTA card (native) ─── */
.post-content .kg-cta-card {
    margin: 36px 0;
    padding: 32px;
    background: var(--surface-warm);
    border-radius: var(--radius-md);
}

.post-content .kg-cta-card .kg-cta-content-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .post-content .kg-cta-card .kg-cta-content-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.post-content .kg-cta-text p:first-child {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--ink);
}

.post-content .kg-cta-text h3 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-content .kg-cta-text p {
    margin: 0;
    color: var(--ink-soft);
}

.post-content .kg-cta-button {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 38px;
    border-radius: var(--radius-pill);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

.post-content .kg-cta-button[href^="mailto:"]::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--on-dark);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 4 12 13 2 4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 4 12 13 2 4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─── HTML Card Components ─── */

/* Stats bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
    margin: 36px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
}

.stat-divider {
    display: none;
    width: 1px;
    height: 32px;
    background: var(--line-strong);
}

@media (min-width: 640px) {
    .stat-divider {
        display: block;
    }
}

/* ─── Essays section ─── */
.essays-section {
    scroll-margin-top: 80px;
    padding-top: 56px;
}

.essays-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.essays-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .essays-title {
        font-size: 1.875rem;
    }
}

.essays-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    min-width: 200px;
    white-space: nowrap;
}

.essays-search-btn:hover {
    border-color: var(--ink);
    color: var(--ink-soft);
}

.essays-search-btn svg {
    flex-shrink: 0;
    color: var(--ink-faint);
}

.essays-search-btn:hover svg {
    color: var(--ink-soft);
}

/* ─── Tag filters ─── */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.tag-btn {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.tag-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.tag-btn.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-dark);
}

/* ─── Post cards (list style) ─── */
.post-card {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .post-card {
        grid-template-columns: 1fr 168px;
        gap: 40px;
    }
}

.post-card:hover {
    color: var(--ink);
}

.post-card-tag {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--coral);
    margin: 0;
}

.post-card-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 8px 0 0;
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .post-card-title {
        font-size: 1.5rem;
    }
}

.post-card:hover .post-card-title {
    color: var(--coral-deep);
}

.post-card-excerpt {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.625;
    color: var(--ink-soft);
    margin: 8px 0 0;
    max-width: 58ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
}

.post-card-thumb {
    flex-shrink: 0;
}

.post-card-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}

@media (min-width: 1280px) {
    .post-card {
        grid-template-columns: 1fr auto;
        align-items: stretch;
    }
    .post-card-thumb {
        height: 100%;
        max-width: 360px;
    }
    .post-card-img {
        aspect-ratio: 16 / 9;
        width: auto;
        height: 100%;
    }
}

.post-card:hover .post-card-img {
    opacity: 0.95;
}

.posts {
    padding: 24px 0 48px;
    view-transition-name: posts-list;
}

.featured {
    display: grid;
    gap: 32px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
    .featured {
        grid-template-columns: 1.12fr 0.88fr;
        align-items: center;
        gap: 48px;
    }
}

main p.featured-label {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--coral);
    margin: 0;
}

.featured-title {
    margin: 16px 0 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink);
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 3.1rem;
    }
}

.featured-title a {
    color: var(--ink);
    transition: color 0.2s;
}

.featured-title a:hover {
    color: var(--coral-deep);
}

.featured-dek {
    margin: 20px 0 0;
    max-width: 46ch;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.25rem;
    line-height: 1.625;
    color: var(--ink-soft);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink-faint);
}

.featured-author {
    font-weight: 700;
    color: var(--ink-soft);
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--ink);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    transition: gap 0.2s;
}

.featured-cta:hover {
    color: var(--coral-deep);
    border-bottom-color: var(--coral-deep);
}

.featured-cta:hover svg {
    transform: translateX(4px);
}

.featured-cta svg {
    transition: transform 0.2s;
}

.featured-image-link {
    order: -1;
    display: block;
    transition: opacity 0.2s;
}

@media (min-width: 768px) {
    .featured-image-link {
        order: 0;
    }
}

.featured-image-link:hover {
    opacity: 0.95;
}

.featured-image {
    aspect-ratio: 5 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ─── Gratitude List ─── */
.gratitude {
    margin-top: 3.5rem;
    border: 1px solid var(--line);
    background: var(--surface-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gratitude-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .gratitude-grid {
        grid-template-columns: 1fr 0.9fr;
        align-items: center;
        gap: 3rem;
        padding: 3rem;
    }
}

.gratitude-eyebrow {
    margin: 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--coral);
}

.gratitude-title {
    margin: 12px 0 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

@media (min-width: 768px) {
    .gratitude-title {
        font-size: 2.25rem;
    }
}

.gratitude-dek {
    margin: 16px 0 0;
    max-width: 46ch;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--ink-soft);
}

.gratitude-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 12px 24px;
    background: var(--ink);
    color: var(--on-dark);
    border-radius: var(--radius-pill);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: background 0.2s;
}

.gratitude-cta:hover {
    background: var(--coral-deep);
    color: var(--on-dark);
}

.gratitude-cta svg {
    transition: transform 0.2s;
}

.gratitude-cta:hover svg {
    transform: translateX(4px);
}

.gratitude-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
}

.gratitude-card-date {
    margin: 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
}

.gratitude-card-body {
    counter-reset: grat;
    margin: 16px 0 0;
}

.gratitude-card-body h3 {
    counter-increment: grat;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.gratitude-card-body h3:last-child {
    border-bottom: none;
}

.gratitude-card-body h3::before {
    content: counter(grat);
    flex: 0 0 20px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
}

/* ponytail: card shows the post's h3 theme headings only (numbered); paragraphs stripped client-side in index.hbs; full text on /gratitude/ */

.post-comments {
    margin-top: 3rem;
}

.gratitude-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px auto 0;
}

.gratitude-date {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ponytail: override square .post-share-btn so the gratitude share button fits icon + label; scoped to .gratitude-date-row for specificity over base .post-share-btn */
.gratitude-date-row .gratitude-share-btn {
    width: auto;
    padding: 0 16px;
    gap: 8px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gratitude-scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--ink);
    color: var(--on-dark);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s;
}

.gratitude-scroll-cta:hover {
    background: var(--coral-deep);
    color: #fff;
}

.gratitude-scroll-cta svg {
    transition: transform 0.2s;
}

.gratitude-scroll-cta:hover svg {
    transform: translateY(3px);
}

.post-view.gratitude-view {
    padding-top: 0;
}

.gratitude-view .post-hero-image {
    max-width: none;
    margin: 28px 0 0;
}

/* ponytail: scoped h3 styling for gratitude posts — matches .featured-label look (12px uppercase tracked coral label), auto-numbered with CSS counters */
.gratitude-view .post-content {
    counter-reset: grat-h3;
}

.gratitude-view .post-content h3 {
    counter-increment: grat-h3;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-transform: none;
    color: #12100E;
}

.gratitude-view .post-content h3::before {
    content: counter(grat-h3) ". ";
    color: #DD6B55;
    font-size: 1.45rem; /* Match parent size */
    font-weight: 700;
    line-height: inherit;
    font-variant-numeric: tabular-nums;
}

/* ponytail: strip Koenig toggle border (cards.min.css uses inset box-shadow) + darken icon for a11y; scoped to gratitude so other pages keep default look */
.gratitude-view .kg-toggle-card {
    box-shadow: none;
}

.gratitude-view .kg-toggle-heading svg {
    color: var(--ink-soft);
}

.gratitude-archive {
    max-width: 680px;
    margin: 4rem auto 0;
    border-top: 1px solid var(--line);
    padding-top: 2.5rem;
}

.gratitude-archive-title {
    margin: 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
}

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

.gratitude-archive-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.gratitude-archive-link:hover {
    color: var(--coral-deep);
}

/* ─── Browse by Topic ─── */
.browse-topics {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 3.5rem;
}

.browse-topics-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.browse-topics-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

@media (min-width: 768px) {
    .browse-topics-title {
        font-size: 1.875rem;
    }
}

.browse-topics-all {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.375rem;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.browse-topics-all:hover {
    color: var(--ink);
}

.browse-topics-all svg {
    transition: transform 0.2s;
}

.browse-topics-all:hover svg {
    transform: translateX(4px);
}

.browse-topics-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 3rem;
}

@media (min-width: 640px) {
    .browse-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .browse-topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.browse-topics-link {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    transition: border-color 0.2s;
}

.browse-topics-link:hover {
    border-color: var(--ink);
}

.browse-topics-num {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    width: 1.5rem;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
}

.browse-topics-name {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    transition: color 0.2s;
}

.browse-topics-link:hover .browse-topics-name {
    color: var(--coral-deep);
}

.post-card {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card-image {
    display: block;
    margin-bottom: 16px;
}

.post-card-image img {
    border-radius: var(--radius-sm);
    width: 100%;
    object-fit: cover;
}

.post-card-content h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
}

.post-card-content h2 a {
    color: var(--ink);
}

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

.post-card-content p {
    color: var(--ink-soft);
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
}

.post-card-content time {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Single post ─── */
.post {
    padding: 48px 0 40px;
}

.page.post {
    padding-top: 0;
}

.post-header {
    margin-bottom: 36px;
}

.post-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 700;
}

.page .post-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 16px 0 12px;
}

@media (min-width: 768px) {
    .page .post-header h1 {
        font-size: 2.5rem;
    }
}

.post-header time,
.post-header .author {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-header .tags {
    margin-top: 8px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-soft);
}

.post-image {
    margin-bottom: 36px;
}

.post-image img {
    border-radius: var(--radius-md);
    width: 100%;
}

.post-content h2 {
    font-size: 30px;
    margin: 48px 0 14px;
    font-weight: 600;
}

.post-content h3 {
    font-size: 22px;
    margin: 36px 0 10px;
    font-weight: 600;
}

.post-content p {
    margin: 0 0 22px;
}

.post-content blockquote {
    margin: 28px 0;
    padding: 0 0 0 22px;
    border-left: 3px solid var(--coral);
    color: var(--ink-soft);
    font-style: italic;
}

.post-content blockquote p {
    color: var(--ink-soft);
}

.post-content ul,
.post-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 4px;
}

.post-content img {
    border-radius: 6px;
}

.post-content code {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 15px;
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--coral);
}

.post-content pre {
    overflow-x: auto;
}

.post-content pre code {
    display: block;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 6px;
    line-height: 1.6;
    color: var(--ink);
}

/* ─── Post nav ─── */
.post-nav {
    display: flex;
    justify-content: space-between;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
}

.post-nav a {
    color: var(--ink-soft);
}

.post-nav a:hover {
    color: var(--coral);
}

/* ─── Archive header ─── */
.archive-header {
    padding: 0 0 24px;
}

.archive-header h1 {
    font-size: 34px;
    margin: 0 0 10px;
    font-weight: 700;
}

.archive-header p {
    color: var(--ink-soft);
    margin: 0 0 8px;
}

.author-meta {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
}

.author-meta a {
    color: var(--ink-soft);
    margin-right: 14px;
}

.author-meta a:hover {
    color: var(--coral);
}

/* ─── Error page ─── */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 80px;
    margin: 0;
    font-weight: 700;
}

.error-page p {
    color: var(--ink-soft);
    margin: 8px 0 24px;
    font-size: 18px;
}

.error-page a {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
}

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    background: var(--surface);
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .footer-inner {
        padding: 0 56px;
    }
}

/* ── Signup band ── */
.footer-signup {
    display: grid;
    gap: 40px;
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
    .footer-signup {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 80px 0;
    }
}

.footer-quote {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

@media (min-width: 768px) {
    .footer-quote {
        font-size: 1.7rem;
    }
}

.footer-attribution {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
}

.footer-subscribe-btn {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 6px;
    background: var(--coral);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-dark);
    transition: background 0.2s;
}

.footer-subscribe-btn:hover {
    background: var(--coral-deep);
    color: var(--on-dark);
}

.footer-subscribe-btn:hover span,
.footer-subscribe-btn:hover svg {
    color: inherit;
}

/* ── Nav + Contact ── */
.footer-nav-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px 0;
}

@media (min-width: 640px) {
    .footer-nav-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 32px;
}

.footer-nav a {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--coral-deep);
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-contact-btn {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--ink);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
}

.footer-contact-btn:hover {
    background: var(--ink);
    color: var(--on-dark);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social a {
    color: var(--ink-soft);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--ink);
}

/* ── Copyright ── */
.footer-copyright {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}

.footer-copyright p {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
    margin: 0;
}

/* ─── Topics page (page-topics.hbs) ─── */

.topic-page-header {
    margin-bottom: 56px;
}

.topic-page-header h1 {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .topic-page-header h1 {
        font-size: 2.5rem;
    }
}

.topic-page-header p {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.625;
    color: var(--ink-soft);
    max-width: 58ch;
    margin: 0;
}

/* ── Topic section ── */
.topic-section {
    padding: 40px 0;
    margin-top: 8px;
}

.topic-section + .topic-section {
    border-top: 1px solid var(--line);
}

.topic-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.topic-name {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.topic-link {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: color 0.2s;
}

.topic-link:hover {
    color: var(--coral-deep);
}

/* ── Topic post grid ── */
.topic-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .topic-posts {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tp-card-link {
    display: block;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.tp-card-link:hover {
    color: var(--coral-deep);
}

.tp-card-img-wrap {
    margin-bottom: 12px;
}

.tp-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}

.tp-card-link:hover .tp-card-img {
    opacity: 0.92;
}

.tp-card-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}

@media (min-width: 768px) {
    .tp-card-title {
        font-size: 1.05rem;
    }
}

.tp-card-date {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-faint);
}

/* ─── Pagination ─── */
.pagination {
    text-align: center;
    padding: 24px 0 48px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
}

.pagination a {
    color: var(--ink-soft);
    margin: 0 10px;
}

.pagination a:hover {
    color: var(--coral);
}

/* ─── Single post — Medium-style layout ─── */
.post-view {
    padding: 40px 0 0;
}

/* back link */
.post-back-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.post-back:hover {
    color: var(--ink);
}

/* hero header (above image) */
.post-hero {
    max-width: 720px;
    margin: 32px auto 0;
}

.post-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    background: var(--surface-warm);
    color: var(--ink-soft);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.post-tag-pill:hover {
    background: var(--line-strong);
    color: var(--ink);
}

.post-title-hero {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    margin: 20px 0 0;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}

@media (min-width: 768px) {
    .post-title-hero {
        font-size: 3rem;
    }
}

.post-dek {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    margin: 20px 0 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

@media (min-width: 768px) {
    .post-dek {
        font-size: 1.5rem;
    }
}

/* byline */
.post-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.post-byline-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    object-fit: cover;
    flex-shrink: 0;
}

.post-byline-name {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.post-byline-meta {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
}

/* hero image (below header) */
.post-hero-image {
    max-width: 920px;
    margin: 40px auto 0;
}

.post-hero-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* body — narrow column */
.post-body {
    max-width: 680px;
    margin: 48px auto;
}

/* footer row — tags + share */
.post-foot {
    max-width: 680px;
    margin: 56px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .post-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.post-tags-outline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag-pill-outline {
    display: inline-flex;
    align-items: center;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.post-tag-pill-outline:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.post-share-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ─── Keep reading / related ─── */
.related {
    margin-top: 64px;
    border-top: 1px solid var(--line);
}

.related-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 64px 0;
}

.related-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

@media (min-width: 768px) {
    .related-title {
        font-size: 1.875rem;
    }
}

.related-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
    }
}

.related-card {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
    gap: 20px;
    color: var(--ink);
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .related-card {
        grid-template-columns: 1fr 120px;
        gap: 20px;
    }
}

.related-card:hover {
    color: var(--ink);
}

.related-card-cat {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--coral);
    margin: 0;
}

.related-card-title {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    margin: 8px 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color 0.2s;
}

.related-card:hover .related-card-title {
    color: var(--coral-deep);
}

.related-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
}

.related-card-cta svg {
    transition: transform 0.2s;
}

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

.related-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ponytail: .post-view overrides default .post padding so old .post rules don't collide */