/* style.css - eInkCollections.com
   Design tokens are injected as CSS custom properties via site_tokens_css().
   Palette: warm ivory bg, near-black ink text, warm gray borders. */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fdfcfa);
    color: var(--color-text, #1c1917);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--color-accent, #1c1917);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #000);
}

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

/* ── Header ─────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-bg, #fdfcfa);
    border-bottom: 1px solid var(--color-border, #e4dfd8);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo a {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--color-text, #1c1917);
    display: flex;
    align-items: baseline;
    gap: 0;
}

.site-logo .logo-main {
    color: var(--color-text, #1c1917);
}

.site-logo .logo-tld {
    color: var(--color-text-muted, #78716c);
    font-weight: 200;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #1c1917);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-text-muted, #78716c);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.7em;
    opacity: 0.6;
}

/* Dropdown hover gap fix: transparent bridge covers the gap between trigger and menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg, #fdfcfa);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    padding: 0.5rem 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    box-shadow: var(--shadow-card);
    z-index: 200;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown.is-dropdown-open .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    font-size: 0.845rem;
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.nav-dropdown li a:hover {
    background: var(--color-surface, #f5f3ef);
    color: var(--color-text, #1c1917);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.25rem;
    margin-left: auto;
}

.nav-hamburger__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger__bars span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text, #1c1917);
    border-radius: 2px;
    transition: transform 0.2s;
}

.nav-hamburger__label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text, #1c1917);
    line-height: 1;
    text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

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

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--color-text-muted, #78716c);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.breadcrumbs__item a {
    color: var(--color-text-muted, #78716c);
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    color: var(--color-text, #1c1917);
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #1c1917);
}

/* ── Sidebar blocks ──────────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted, #78716c);
}

.sidebar-block__body {
    font-size: 0.875rem;
    color: var(--color-text-muted, #78716c);
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-block__links a {
    font-size: 0.85rem;
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.sidebar-block__links a:hover {
    text-decoration: underline;
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #1c1917);
    color: var(--color-ink-light, #fdfcfa);
    text-decoration: none;
    border-radius: var(--radius-small, 3px);
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-small, 3px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.btn--lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
}

.btn--dark {
    background: var(--color-accent, #1c1917);
    color: var(--color-ink-light, #fdfcfa);
    border-color: var(--color-accent, #1c1917);
}

.btn--dark:hover {
    background: var(--color-accent-strong, #000);
    color: var(--color-ink-light, #fdfcfa);
    border-color: var(--color-accent-strong, #000);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-accent, #1c1917);
    border-color: var(--color-accent, #1c1917);
}

.btn--outline-dark:hover {
    background: var(--color-accent, #1c1917);
    color: var(--color-ink-light, #fdfcfa);
}

.btn--light {
    background: var(--color-ink-light, #fdfcfa);
    color: var(--color-accent, #1c1917);
    border-color: var(--color-ink-light, #fdfcfa);
}

.btn--light:hover {
    background: #fff;
    color: var(--color-accent-strong, #000);
}

.btn--primary {
    background: var(--color-accent, #1c1917);
    color: var(--color-ink-light, #fdfcfa);
    border-color: var(--color-accent, #1c1917);
}

.btn--primary:hover {
    background: var(--color-accent-strong, #000);
    color: var(--color-ink-light, #fdfcfa);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
    background: var(--color-bg, #fdfcfa);
    border-bottom: 1px solid var(--color-border, #e4dfd8);
}

.hero__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 520px;
}

.hero__headline {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--color-text, #1c1917);
}

.hero__sub {
    font-size: 1rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 480px;
}

.hero__ctas {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__frame {
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    box-shadow: var(--shadow-card), 6px 6px 0 var(--color-panel, #edeae4);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__art-placeholder {
    width: 65%;
    height: 65%;
    background: linear-gradient(145deg, var(--color-panel, #edeae4) 0%, var(--color-surface, #f5f3ef) 100%);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: 2px;
}

/* ── Home Sections ──────────────────────────────────────────────────────────── */

.home-section {
    width: 100%;
}

.home-section__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.home-section__inner--centered {
    text-align: center;
}

.home-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.home-section__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    color: var(--color-text, #1c1917);
}

.home-section__heading--centered {
    text-align: center;
    margin-bottom: 1rem;
}

.home-section__intro {
    color: var(--color-text-muted, #78716c);
    max-width: 680px;
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
}

.home-section__intro--centered {
    text-align: center;
}

.home-section__all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted, #78716c);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-section__all:hover {
    color: var(--color-text, #1c1917);
}

.home-section__cta-row {
    text-align: center;
    margin-top: 2.5rem;
}

/* Why section */
.home-section--why {
    background: var(--color-surface, #f5f3ef);
    border-top: 1px solid var(--color-border, #e4dfd8);
    border-bottom: 1px solid var(--color-border, #e4dfd8);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}

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

.why-point__icon {
    width: 48px;
    height: 48px;
    background: var(--color-panel, #edeae4);
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 1px solid var(--color-border, #e4dfd8);
}

.why-point__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--color-text, #1c1917);
}

.why-point__text {
    font-size: 0.9rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.6;
    margin: 0;
}

/* Format section */
.home-section--formats {
    background: var(--color-bg, #fdfcfa);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.format-block {
    padding: 1.75rem;
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    text-align: center;
}

.format-block__icon {
    width: 40px;
    height: 40px;
    background: var(--color-panel, #edeae4);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.format-block__heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-text, #1c1917);
}

.format-block__text {
    font-size: 0.875rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.6;
    margin: 0;
}

/* Licensing section */
.home-section--licensing {
    background: var(--color-surface, #f5f3ef);
    border-top: 1px solid var(--color-border, #e4dfd8);
}

.licensing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.licensing-split__text .home-section__heading {
    margin-bottom: 1rem;
}

.licensing-split__text p {
    color: var(--color-text-muted, #78716c);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.licensing-placeholder {
    background: var(--color-panel, #edeae4);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    aspect-ratio: 4/3;
}

/* Dark CTA section */
.home-section--cta-dark {
    background: var(--color-surface-strong, #1c1917);
}

.home-cta-dark__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 200;
    letter-spacing: -0.025em;
    color: var(--color-ink-light, #fdfcfa);
    margin: 0 0 0.75rem;
}

.home-cta-dark__body {
    color: rgba(253, 252, 250, 0.65);
    margin: 0 0 2rem;
    font-size: 1rem;
}

/* Guides section */
.home-section--guides {
    background: var(--color-bg, #fdfcfa);
    border-top: 1px solid var(--color-border, #e4dfd8);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.guide-card {
    padding: 1.5rem;
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
}

.guide-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.guide-card__title a {
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.guide-card__title a:hover {
    text-decoration: underline;
}

.guide-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

.guide-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--color-text-muted, #78716c);
}

.guide-card__cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.guide-card__cta:hover {
    text-decoration: underline;
}

/* ── Index pages ─────────────────────────────────────────────────────────────── */

.page-section {
    width: 100%;
}

.page-section__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.index-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border, #e4dfd8);
    padding-bottom: 1.5rem;
}

.index-header__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 200;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.index-header__desc {
    color: var(--color-text-muted, #78716c);
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Full grid variants */
.collections-grid--full {
    grid-template-columns: repeat(3, 1fr);
}

.guides-grid--full {
    grid-template-columns: repeat(1, 1fr);
    max-width: 800px;
}

.guide-card--list {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1.5rem;
    align-items: start;
}

.guide-card--list .guide-card__title {
    grid-column: 1;
}

.guide-card--list .guide-card__excerpt {
    grid-column: 1;
}

.guide-card--list .guide-card__meta {
    grid-column: 1 / -1;
}

/* ── Collection cards ────────────────────────────────────────────────────────── */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.collections-grid--small {
    grid-template-columns: repeat(3, 1fr);
}

.collection-card {
    background: var(--color-bg, #fdfcfa);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-medium, 6px);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.collection-card:hover {
    box-shadow: var(--shadow-card-hover, 0 6px 24px rgba(0,0,0,0.10));
    transform: translateY(-2px);
}

.collection-card__thumb-link {
    display: block;
}

.collection-card__thumb {
    background: var(--color-surface, #f5f3ef);
    width: 100%;
}

.collection-card__thumb-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, var(--color-panel, #edeae4) 0%, var(--color-surface, #f5f3ef) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-card__thumb-placeholder::before {
    content: '';
    display: block;
    width: 50%;
    height: 60%;
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: 1px;
    opacity: 0.6;
}

.collection-card__body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.collection-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.collection-card__title a {
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.collection-card__title a:hover {
    text-decoration: underline;
}

.collection-card__excerpt {
    font-size: 0.82rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.collection-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text, #1c1917);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.collection-card__cta:hover {
    text-decoration: underline;
}

/* ── Collection page ─────────────────────────────────────────────────────────── */

.collection-page {}

.collection-header {
    margin-bottom: 2rem;
}

.collection-title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 200;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.collection-lead {
    font-size: 1.05rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.7;
    margin: 0 0 1.25rem;
    max-width: 640px;
}

.format-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.format-chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted, #78716c);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.collection-gallery {
    margin-bottom: 2.5rem;
}

.collection-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery-thumb-placeholder {
    background: var(--color-surface, #f5f3ef);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-small, 3px);
    aspect-ratio: 1;
    transition: opacity 0.15s;
    cursor: pointer;
}

.gallery-thumb-placeholder:hover {
    opacity: 0.75;
}

.collection-body {
    margin-bottom: 2.5rem;
}

.collection-subjects,
.collection-use-cases {
    margin-bottom: 2rem;
}

.collection-subjects h2,
.collection-use-cases h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.subject-list,
.use-case-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
}

.subject-list li,
.use-case-list li {
    font-size: 0.875rem;
    color: var(--color-text-muted, #78716c);
    padding: 0.25rem 0.6rem;
    background: var(--color-surface, #f5f3ef);
    border-radius: var(--radius-small, 3px);
    border: 1px solid var(--color-border, #e4dfd8);
}

.collection-cta-block {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border, #e4dfd8);
    border-bottom: 1px solid var(--color-border, #e4dfd8);
    margin-bottom: 2.5rem;
}

.related-collections {
    margin-bottom: 2.5rem;
}

.related-collections__heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--color-text, #1c1917);
}

/* ── Article body ────────────────────────────────────────────────────────────── */

.article-page {}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 200;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.article-lead {
    font-size: 1.05rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.article-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted, #78716c);
}

.article-body h2 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 2rem 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.article-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text, #1c1917);
}

.article-body p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.article-body li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.article-body a {
    color: var(--color-text, #1c1917);
}

.article-body strong {
    font-weight: 700;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */

.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e4dfd8);
}

.faq-section__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    color: var(--color-text, #1c1917);
}

.faq-list {
    margin: 0;
    padding: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text, #1c1917);
    margin: 0 0 0.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border, #e4dfd8);
}

.faq-question:first-child {
    padding-top: 0;
    border-top: none;
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.65;
    margin: 0 0 0.75rem;
    padding-left: 0;
}

/* ── Default/page content ────────────────────────────────────────────────────── */

.page-content__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border, #e4dfd8);
}

.page-content__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 200;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
    color: var(--color-text, #1c1917);
}

.page-content__lead {
    font-size: 1.05rem;
    color: var(--color-text-muted, #78716c);
    line-height: 1.7;
    margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border, #e4dfd8);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--color-surface, #f5f3ef);
}

.site-footer__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.site-footer__brand {
    flex: 0 0 220px;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.site-footer__brand-name a {
    color: var(--color-text, #1c1917);
    text-decoration: none;
}

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #78716c);
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-footer__contact a {
    color: var(--color-text-muted, #78716c);
    font-size: 0.82rem;
}

.site-footer__nav {
    flex: 1 1 140px;
}

.site-footer__col-heading {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted, #78716c);
    margin-bottom: 0.85rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__links a {
    color: var(--color-text, #1c1917);
    text-decoration: none;
    font-size: 0.85rem;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border, #e4dfd8);
    padding-top: 1rem;
    font-size: 0.78rem;
    color: var(--color-text-muted, #78716c);
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-border, #e4dfd8);
    font-family: var(--font-display, system-ui, sans-serif);
    letter-spacing: -0.04em;
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted, #78716c);
}

.error-page .btn + .btn {
    margin-left: 0.75rem;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #78716c);
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .collections-grid,
    .collections-grid--full,
    .collections-grid--small {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .licensing-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .licensing-split__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: var(--color-bg, #fdfcfa);
        border-bottom: 1px solid var(--color-border, #e4dfd8);
        padding: 1rem 1.5rem;
        z-index: 99;
        max-height: calc(100vh - var(--header-height, 64px));
        overflow-y: auto;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-nav__item {
        width: 100%;
        border-bottom: 1px solid var(--color-border, #e4dfd8);
    }

    .site-nav__item:last-child {
        border-bottom: none;
    }

    .site-nav__list a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        display: none;
    }

    .nav-dropdown::before {
        display: none;
    }

    .site-nav__item--has-dropdown.is-dropdown-open .nav-dropdown {
        display: block;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav__item--has-dropdown.is-dropdown-open:hover .nav-dropdown {
        display: block;
    }

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

    .content-sidebar {
        position: static;
    }

    /* Hero mobile */
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        text-align: center;
        min-height: auto;
        gap: 2rem;
    }

    .hero__sub {
        max-width: 100%;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__media {
        order: -1;
    }

    .hero__frame {
        max-width: 240px;
        aspect-ratio: 1;
    }

    /* Home sections mobile */
    .home-section__inner {
        padding: 3rem 1.5rem;
    }

    .home-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .collections-grid,
    .collections-grid--full,
    .collections-grid--small {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .format-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Gallery mobile */
    .collection-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer mobile: single column, 2x text size */
    .site-footer__top {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__brand {
        flex: none;
    }

    .site-footer__brand-name {
        font-size: 1.5rem;
    }

    .site-footer__tagline,
    .site-footer__contact a {
        font-size: 1rem;
    }

    .site-footer__col-heading {
        font-size: 0.9rem;
    }

    .site-footer__links a {
        font-size: 1.1rem;
    }

    .page-section__inner {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .collections-grid,
    .collections-grid--full,
    .collections-grid--small {
        grid-template-columns: 1fr;
    }

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

    .hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .collection-cta-block {
        flex-direction: column;
    }

    .error-page .btn + .btn {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}
