:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --ink: #121826;
    --muted: #5f6b7a;
    --line: #e2eaf5;
    --rose: #0d6efd;
    --rose-dark: #084298;
    --teal: #0b5ed7;
    --gold: #1d4ed8;
    --shadow: 0 24px 70px rgba(15, 37, 68, 0.1);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 0.9rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(226, 234, 245, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.site-header {
    flex-wrap: wrap;
}

.site-header .category-strip {
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 760;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: var(--surface);
    font-size: 0.82rem;
}

.top-nav {
    display: flex;
    gap: clamp(0.8rem, 2.4vw, 1.8rem);
    color: var(--muted);
    font-size: 0.96rem;
}

.top-nav a:hover,
.top-nav a:focus {
    color: var(--rose-dark);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #f7f4f1;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.86) 42%, rgba(251, 250, 248, 0.28) 74%),
        url("../img/hero-love-note.png") center right / cover no-repeat;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    width: min(1180px, calc(100% - 2rem));
    min-height: 620px;
    margin: 0 auto;
    padding: clamp(2rem, 7vw, 5rem) 0;
}

.editorial-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.hero-copy {
    max-width: 610px;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

h1 {
    max-width: 11ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 12vw, 9.5rem);
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 5vw, 4.8rem);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.hero-copy p:not(.eyebrow) {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    border: 1px solid rgba(231, 224, 221, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.45rem 0.72rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-stats strong {
    color: var(--ink);
}

.hero-actions {
    margin-top: 1.3rem;
}

.featured-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.mini-phrase {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.mini-phrase:first-of-type {
    border-top: 0;
}

.mini-phrase span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.35;
}

.mini-phrase small {
    color: var(--teal);
    font-weight: 780;
}

.generator {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.form-grid label:first-child {
    grid-column: 1 / -1;
}

.form-grid.compact label:first-child {
    grid-column: auto;
}

label span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 0 0.85rem;
}

input:focus,
select:focus {
    border-color: var(--rose);
    outline: 3px solid rgba(13, 110, 253, 0.16);
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
    border: 0;
    background: #0d6efd;
    color: var(--surface);
    padding: 0.8rem 1.1rem;
    font-weight: 780;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.secondary-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 0.7rem 1rem;
    font-weight: 720;
}

.text-button {
    min-height: 38px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--rose-dark);
    font-weight: 760;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 8px;
    background: #ffffff;
    border-color: rgba(13, 110, 253, 0.18);
    color: #0b5ed7;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    font-weight: 800;
}

.like-button strong {
    display: inline-grid;
    place-items: center;
    min-width: 1.6rem;
    min-height: 1.6rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #084298;
    font-size: 0.78rem;
}

.like-button.is-liked,
.like-button:disabled {
    border-color: rgba(13, 110, 253, 0.28);
    background: #eef6ff;
    color: #084298;
    opacity: 1;
}

.generator-result {
    display: block;
    min-height: 116px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.35;
}

.muted,
.empty-state {
    color: var(--muted);
}

.list-count {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.setup-message {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.setup-message.ok {
    background: #eef6ff;
    color: #084298;
}

.setup-message.bad {
    background: #fff0f1;
    color: var(--rose-dark);
}

.image-lab {
    display: grid;
    gap: 0.9rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.image-preview img {
    display: block;
    width: min(100%, 320px);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.image-preview a {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--teal);
    font-weight: 760;
}

.section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section > h1,
.section-heading h1 {
    max-width: 12ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.04;
}

.section-heading p.muted {
    max-width: 42rem;
    margin: 1rem 0 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.with-search {
    align-items: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.category-card,
.phrase-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.category-card {
    display: grid;
    min-height: 142px;
    align-content: space-between;
    padding: 1.1rem;
}

.category-card span {
    font-size: 1.24rem;
    font-weight: 820;
}

.category-card small {
    color: var(--muted);
    font-size: 0.95rem;
}

.category-card.is-active {
    border-color: rgba(31, 117, 104, 0.4);
    box-shadow: inset 0 0 0 1px rgba(31, 117, 104, 0.18);
}

.phrases-band {
    border-top: 1px solid var(--line);
}

.search-form {
    display: flex;
    gap: 0.7rem;
    min-width: min(100%, 390px);
}

.search-form label {
    flex: 1;
}

.phrase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.phrase-grid.expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2rem;
}

.pagination-link,
.pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 780;
}

.pagination-link {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0 0.85rem;
}

.pagination-link:hover {
    border-color: rgba(13, 110, 253, 0.42);
    color: var(--rose-dark);
}

.pagination-link.is-current {
    border-color: #0d6efd;
    background: #0d6efd;
    color: var(--surface);
}

.pagination-gap {
    color: var(--muted);
}

.phrase-card {
    display: grid;
    gap: 1.1rem;
    align-content: space-between;
    min-height: 220px;
    padding: 1.15rem;
}

.guide-band,
.faq-section {
    border-top: 1px solid var(--line);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guide-card,
.collection-block,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1.15rem;
}

.guide-card h3,
.collection-head h3,
.faq-item h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.guide-card p,
.faq-item p {
    margin: 0.7rem 0 0;
    color: var(--muted);
}

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

.collection-block {
    display: grid;
    gap: 0.8rem;
}

.collection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.collection-head a {
    color: var(--rose-dark);
    font-weight: 780;
}

.collection-phrase {
    display: block;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.35;
}

.creator-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 520px);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: start;
    border-top: 1px solid var(--line);
}

.creator-copy {
    position: sticky;
    top: 96px;
}

.creator-copy h2 {
    max-width: 9ch;
}

.creator-layout {
    min-width: 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.blog-index > p.muted {
    max-width: 720px;
    font-size: 1.08rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.blog-card {
    display: grid;
    align-content: space-between;
    gap: 0.9rem;
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1.15rem;
}

.blog-card h2,
.blog-card h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.18;
}

.blog-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
    gap: clamp(1.5rem, 5vw, 3rem);
    align-items: start;
}

.article-content {
    min-width: 0;
}

.article-content h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 8vw, 6rem);
}

.article-lead {
    color: var(--muted);
    font-size: 1.22rem;
}

.article-list-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.article-list-section h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 5vw, 4rem);
}

.article-quote-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.quote-explainer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1rem;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.quote-number {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #0b5ed7;
    font-weight: 850;
}

.quote-explainer h3 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.28;
}

.quote-explainer p {
    margin: 0;
    color: var(--muted);
}

.article-content section {
    margin-top: 2rem;
}

.article-content section h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.article-content section p {
    color: var(--muted);
    font-size: 1.07rem;
}

.article-content > p:not(.eyebrow):not(.article-lead) {
    color: var(--muted);
    font-size: 1.08rem;
}

.article-phrases,
.sidebar-box {
    display: grid;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1rem;
}

.article-phrases {
    margin-top: 2rem;
}

.article-phrases a {
    display: block;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.35;
}

.article-phrases a:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.article-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1rem;
}

.sidebar-link {
    display: block;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-weight: 780;
}

.phrase-card p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.35;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--teal);
    font-weight: 760;
}

.phrase-detail {
    display: grid;
    gap: 1.4rem;
    max-width: 920px;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.phrase-detail h1 {
    max-width: 20ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.08;
}

.related-categories {
    margin-top: clamp(2.5rem, 7vw, 5rem);
}

.category-guide-block {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: clamp(2rem, 6vw, 4rem);
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.category-guide-block h2 {
    max-width: 12ch;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.category-guide-block p {
    color: var(--muted);
}

.phrase-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 780;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem clamp(1rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--teal);
    font-weight: 760;
}

.content-page {
    max-width: 860px;
}

.content-page h1 {
    max-width: 12ch;
}

.content-page p {
    color: var(--muted);
    font-size: 1.08rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-media {
        background:
            linear-gradient(180deg, rgba(251, 250, 248, 0.96) 0%, rgba(251, 250, 248, 0.86) 54%, rgba(251, 250, 248, 0.72) 100%),
            url("../img/hero-love-note.png") center top / cover no-repeat;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 2rem;
    }

    .category-grid,
    .phrase-grid,
    .phrase-grid.expanded,
    .guide-grid,
    .collection-grid,
    .category-guide-block,
    .creator-section,
    .faq-list,
    .blog-grid,
    .article-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .creator-copy,
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .top-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    h1 {
        font-size: clamp(3.4rem, 18vw, 5rem);
    }

    .form-grid,
    .category-grid,
    .phrase-grid,
    .phrase-grid.expanded,
    .guide-grid,
    .collection-grid,
    .category-guide-block,
    .creator-section,
    .faq-list,
    .blog-grid,
    .article-layout,
    .section-heading,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

    .featured-panel {
        padding: 1rem;
    }

    .quote-explainer {
        grid-template-columns: 1fr;
    }

    .quote-number {
        grid-row: auto;
    }
}

/* White Bootstrap-friendly redesign */
.site-v2 {
    --bs-body-bg: #ffffff;
    --bs-body-color: #121826;
    background: #ffffff;
    color: #121826;
}

.site-v2 a {
    text-decoration: none;
}

.site-v2 .btn-dark,
.btn-dark {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0b5ed7;
    --bs-btn-active-bg: #084298;
    --bs-btn-active-border-color: #084298;
}

.site-v2 .btn-outline-dark,
.btn-outline-dark {
    --bs-btn-color: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0d6efd;
    --bs-btn-hover-border-color: #0d6efd;
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #eceef2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.brand-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #121826;
    font-weight: 800;
}

.main-links,
.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.main-links a,
.category-strip a {
    border-radius: 999px;
    color: #40424a;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.45rem 0.78rem;
}

.main-links a:hover,
.category-strip a:hover {
    background: #eef6ff;
    color: #084298;
}

.category-strip {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f0f1f4;
}

.category-strip a {
    border: 1px solid #eceef2;
    background: #ffffff;
    color: #5b5f68;
}

.hero-v2,
.content-section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-v2 {
    border-bottom: 1px solid #eceef2;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent 34rem),
        #ffffff;
}

.hero-v2 h1 {
    max-width: 12ch;
    color: #121826;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 8vw, 7.6rem);
    line-height: 0.98;
}

.lead-copy {
    max-width: 42rem;
    margin-top: 1.25rem;
    color: #5b5f68;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.metric-row span {
    border: 1px solid #eceef2;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.55rem 0.85rem;
    color: #5b5f68;
    font-weight: 700;
}

.metric-row strong {
    color: #121826;
}

.hero-card-v2 {
    overflow: hidden;
    border: 1px solid #eceef2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(17, 18, 23, 0.08);
}

.hero-card-v2 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-card-content {
    padding: 1.2rem;
}

.hero-card-content p:not(.eyebrow) {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.35;
}

.hero-card-content a,
.phrase-card-v2 a,
.blog-card-v2 a,
.resource-card-v2 a,
.footer-v2 a {
    color: #0b5ed7;
    font-weight: 800;
}

.content-section {
    border-bottom: 1px solid #f0f1f4;
}

.soft-section {
    background: #fafafa;
}

.section-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 1.25rem;
    align-items: end;
    margin-bottom: 1.7rem;
}

.section-title-row h2 {
    max-width: 13ch;
    color: #121826;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.section-title-row p {
    color: #5b5f68;
}

.category-card-v2,
.phrase-card-v2,
.blog-card-v2,
.resource-card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eceef2;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.15rem;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-card-v2:hover,
.phrase-card-v2:hover,
.blog-card-v2:hover,
.resource-card-v2:hover {
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 14px 34px rgba(17, 18, 23, 0.06);
    transform: translateY(-2px);
}

.category-card-v2 span,
.resource-card-v2 h3 {
    color: #121826;
    font-size: 1.18rem;
    font-weight: 850;
}

.category-card-v2 small,
.resource-card-v2 small {
    margin-top: 0.65rem;
    color: #656a73;
    font-size: 0.95rem;
    line-height: 1.48;
}

.category-card-v2 em {
    margin-top: auto;
    padding-top: 0.85rem;
    color: #0b5ed7;
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 850;
}

.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid-v2 article,
.inventory-grid-v2 a {
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem;
}

.stats-grid-v2 strong {
    display: block;
    color: #0d6efd;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.stats-grid-v2 span {
    display: block;
    margin-top: 0.55rem;
    color: #5f6b7a;
    font-weight: 750;
}

.inventory-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.inventory-grid-v2 a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}

.inventory-grid-v2 span {
    color: #121826;
    font-weight: 800;
}

.inventory-grid-v2 strong {
    color: #0d6efd;
    font-size: 1.35rem;
}

.inventory-grid-v2 small {
    grid-column: 1 / -1;
    color: #5f6b7a;
    font-weight: 700;
}

.resource-card-v2 {
    gap: 0.75rem;
    min-height: 290px;
}

.resource-card-v2 h3 {
    margin: 0;
    line-height: 1.2;
}

.resource-card-v2 p {
    margin: 0;
    color: #5f6b7a;
}

.resource-card-v2 small {
    display: block;
    color: #315b8f;
    font-weight: 750;
}

.resource-card-v2 a {
    margin-top: auto;
}

.phrase-card-v2 {
    min-height: 240px;
    justify-content: space-between;
}

.phrase-card-v2 p {
    margin: 0;
    color: #121826;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.38;
}

.phrase-card-v2 div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.phrase-card-v2 span,
.blog-card-v2 small {
    color: #656a73;
    font-size: 0.82rem;
    font-weight: 800;
}

.search-form-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.search-form-v2 input {
    border: 1px solid #dfe2e7;
    border-radius: 12px;
    min-height: 48px;
    padding: 0 1rem;
}

.blog-card-v2 {
    gap: 0.85rem;
    min-height: 260px;
}

.blog-card-v2 h3 {
    margin: 0;
    color: #121826;
    font-size: 1.22rem;
    line-height: 1.22;
}

.blog-card-v2 p {
    color: #5b5f68;
}

.image-gallery-v2 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.image-gallery-v2 figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid #eceef2;
    border-radius: 16px;
    background: #ffffff;
}

.image-gallery-v2 img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-gallery-v2 figcaption {
    padding: 0.75rem;
    color: #656a73;
    font-size: 0.78rem;
    font-weight: 800;
}

.creator-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 560px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.creator-shell h2 {
    max-width: 9ch;
}

.creator-shell p {
    max-width: 34rem;
    color: #5b5f68;
}

.generator-v2 {
    border: 1px solid #eceef2;
    box-shadow: 0 18px 50px rgba(17, 18, 23, 0.08);
}

.footer-v2 {
    background: #0b1f3a;
    color: #ffffff;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.footer-v2 .brand-v2,
.footer-v2 h3 {
    color: #ffffff;
}

.footer-v2 p {
    margin-top: 1rem;
    color: #c7cbd2;
}

.footer-category-grid,
.footer-links-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-category-grid a,
.footer-links-v2 a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    color: #ffffff;
    font-size: 0.88rem;
}

@media (max-width: 1199px) {
    .image-gallery-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid-v2,
    .inventory-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .site-top {
        position: static;
    }

    .section-title-row,
    .creator-shell {
        grid-template-columns: 1fr;
    }

    .hero-v2 h1,
    .section-title-row h2,
    .creator-shell h2 {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .main-links,
    .category-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }

    .hero-v2,
    .content-section {
        padding: 2.6rem 0;
    }

    .search-form-v2 {
        grid-template-columns: 1fr;
    }

    .image-gallery-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid-v2,
    .inventory-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Editorial blog redesign */
.site-header,
.site-top {
    border-bottom: 1px solid #dbeafe;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 28px rgba(15, 37, 68, 0.06);
}

.brand,
.brand-v2 {
    gap: 0.75rem;
    color: #0f172a;
    font-weight: 900;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.site-logo img {
    display: block;
    width: min(260px, 64vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.site-header .site-logo img {
    width: min(230px, 58vw);
}

.site-top .site-logo img {
    width: min(285px, 68vw);
}

.sidebar-brand {
    width: 100%;
    justify-content: center;
}

.sidebar-brand img {
    width: min(220px, 100%);
}

.footer-logo img {
    width: min(245px, 70vw);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
    color: #ffffff;
    font-weight: 950;
    letter-spacing: 0;
}

.sidebar-brand {
    align-items: flex-start;
}

.sidebar-brand span:last-child {
    display: grid;
    gap: 0.1rem;
}

.sidebar-brand strong {
    line-height: 1.1;
}

.sidebar-brand small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.main-links a,
.top-nav a,
.category-strip a {
    border-radius: 999px;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.main-links a:hover,
.top-nav a:hover,
.category-strip a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.header-category-dropdown {
    position: relative;
    width: fit-content;
    margin-top: 0.85rem;
}

.header-category-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.48rem 0.9rem;
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
    list-style: none;
}

.header-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.header-category-dropdown summary::after {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.header-category-dropdown[open] summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.header-category-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0.35rem;
    width: min(560px, calc(100vw - 2rem));
    max-height: min(440px, calc(100vh - 130px));
    overflow-y: auto;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: 0 22px 50px rgba(15, 37, 68, 0.16);
}

.header-category-panel a {
    display: flex;
    align-items: center;
    min-height: 40px;
    border-radius: 8px;
    color: #334155;
    padding: 0.5rem 0.65rem;
    font-weight: 780;
}

.header-category-panel a:hover,
.header-category-panel a.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.site-header .header-category-dropdown {
    margin-left: auto;
    margin-top: 0;
}

.hero-v2 {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(239, 246, 255, 0.52) 100%),
        url("https://images.unsplash.com/photo-1773845596392-9bee41871b93?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.hero-card-v2,
.category-card-v2,
.phrase-card-v2,
.blog-card-v2,
.resource-card-v2,
.editorial-post-card,
.sidebar-widget {
    border-radius: 10px;
}

.editorial-layout {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    padding-top: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.editorial-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 1rem;
}

.editorial-main {
    min-width: 0;
}

.editorial-main .content-section {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.editorial-main .content-section:first-child {
    padding-top: 0;
}

.editorial-main .content-section > .container-xl {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.sidebar-widget {
    border: 1px solid #dbeafe;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 14px 34px rgba(15, 37, 68, 0.05);
}

.sidebar-widget h2 {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.sidebar-category-list,
.sidebar-link-list {
    display: grid;
    gap: 0.35rem;
}

.sidebar-category-list a,
.sidebar-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    border-radius: 8px;
    color: #334155;
    padding: 0.48rem 0.62rem;
    font-weight: 750;
}

.sidebar-category-list a:hover,
.sidebar-link-list a:hover,
.sidebar-category-list a.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-cloud a {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.38rem 0.58rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.editorial-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.editorial-post-card {
    overflow: hidden;
    border: 1px solid #dbeafe;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 37, 68, 0.05);
}

.editorial-post-card img,
.blog-card-image img,
.article-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.editorial-post-card img {
    aspect-ratio: 16 / 9;
}

.editorial-post-card > div {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.editorial-post-card h2 {
    margin: 0;
    color: #0f172a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.16;
}

.editorial-post-card p:not(.eyebrow) {
    margin: 0;
    color: #5f6b7a;
}

.blog-card-image {
    display: block;
    overflow: hidden;
    margin: -1.15rem -1.15rem 0.2rem;
    border-bottom: 1px solid #e2eaf5;
}

.blog-card-image img {
    aspect-ratio: 16 / 9;
}

.article-hero-image {
    overflow: hidden;
    margin: 0 0 1.35rem;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
}

.article-hero-image img {
    aspect-ratio: 16 / 8;
}

.site-footer,
.footer-v2 {
    border-top: 1px solid #dbeafe;
}

.site-footer {
    align-items: center;
    background: #ffffff;
}

.footer-v2 {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    color: #0f172a;
}

.footer-v2 .brand-v2,
.footer-v2 h3 {
    color: #0f172a;
}

.footer-v2 p {
    color: #475569;
}

@media (max-width: 991px) {
    .site-header .header-category-dropdown,
    .header-category-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .header-category-dropdown summary {
        justify-content: center;
        width: 100%;
    }

    .header-category-panel {
        position: static;
        width: 100%;
        margin-top: 0.65rem;
        box-shadow: 0 14px 34px rgba(15, 37, 68, 0.1);
    }

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

    .editorial-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 575px) {
    .site-header,
    .site-top {
        text-align: center;
    }

    .brand,
    .brand-v2,
    .site-logo {
        justify-content: center;
    }

    .site-header .site-logo img,
    .site-top .site-logo img {
        width: min(245px, 82vw);
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .sidebar-category-list {
        grid-template-columns: 1fr;
    }

    .editorial-layout {
        padding-top: 1rem;
    }
}
