/* ==========================================================================
   CROWNWELL PRESS -- Master Stylesheet
   crownwellpress.com | Heritage in Print.

   A light, prestigious, editorial design system for a Christian publishing house.
   White backgrounds with black headers, footers, and gold accents.
   Built mobile-first with breakpoints at 768px and 1200px.
   ========================================================================== */


/* ==========================================================================
   0. GOOGLE FONTS
   ========================================================================== */

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


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-ink-black:      #161616;
    --color-parchment:      #F4F1E8;
    --color-deep-navy:      #1a1a1a;
    --color-antique-gold:   #B68A2C;
    --color-oxide-red:      #8E3B2E;

    /* Functional Colors -- Light theme: white backgrounds, black text, black header/footer */
    --color-bg-primary:     #FFFFFF;
    --color-bg-secondary:   #F7F5F0;
    --color-bg-card:        #FFFFFF;
    --color-bg-input:       #FFFFFF;
    --color-text-primary:   #161616;
    --color-text-body:      #3a3a3a;
    --color-text-muted:     #6b6b6b;
    --color-text-dark:      #161616;
    --color-border:         rgba(182, 138, 44, 0.30);
    --color-border-hover:   #B68A2C;
    --color-link:           #96710F;
    --color-link-hover:     #B68A2C;
    --color-overlay:        rgba(22, 22, 22, 0.85);

    /* Dark surface colors (header, footer, hero) */
    --color-surface-dark:   #161616;
    --color-text-on-dark:   #F4F1E8;
    --color-text-body-on-dark: #d4d0c8;
    --color-text-muted-on-dark: #9a9689;

    /* Typography */
    --font-heading:         'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-body:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Type Scale (Major Third -- 1.25) */
    --text-xs:              0.75rem;    /* 12px */
    --text-sm:              0.875rem;   /* 14px */
    --text-base:            1rem;       /* 16px */
    --text-md:              1.125rem;   /* 18px */
    --text-lg:              1.25rem;    /* 20px */
    --text-xl:              1.5rem;     /* 24px */
    --text-2xl:             1.875rem;   /* 30px */
    --text-3xl:             2.25rem;    /* 36px */
    --text-4xl:             3rem;       /* 48px */
    --text-5xl:             3.75rem;    /* 60px */

    /* Spacing Scale */
    --space-xs:             0.25rem;    /* 4px */
    --space-sm:             0.5rem;     /* 8px */
    --space-md:             1rem;       /* 16px */
    --space-lg:             1.5rem;     /* 24px */
    --space-xl:             2rem;       /* 32px */
    --space-2xl:            3rem;       /* 48px */
    --space-3xl:            4rem;       /* 64px */
    --space-4xl:            5rem;       /* 80px */
    --space-5xl:            6rem;       /* 96px */

    /* Layout */
    --container-max:        1200px;
    --container-narrow:     800px;
    --container-wide:       1400px;
    --gutter:               1.5rem;

    /* Borders */
    --border-thin:          1px solid var(--color-antique-gold);
    --border-subtle:        1px solid var(--color-border);
    --border-muted:         1px solid rgba(22, 22, 22, 0.10);

    /* Transitions */
    --transition-fast:      0.15s ease;
    --transition-base:      0.3s ease;
    --transition-slow:      0.5s ease;

    /* Shadows */
    --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg:            0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-gold-glow:     0 0 20px rgba(182, 138, 44, 0.15);

    /* Z-Index Scale */
    --z-dropdown:           100;
    --z-sticky:             200;
    --z-header:             300;
    --z-overlay:            400;
    --z-modal:              500;
}


/* ==========================================================================
   2. CSS RESET / NORMALIZE
   ========================================================================== */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: 1.2;
}

p {
    overflow-wrap: break-word;
}

fieldset {
    border: none;
}

/* Remove default search input styling */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}


/* ==========================================================================
   3. GLOBAL STYLES
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-body);
    background-color: var(--color-bg-primary);
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6,
.heading {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
}

h1, .h1 {
    font-size: var(--text-3xl);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

h2, .h2 {
    font-size: var(--text-2xl);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

h3, .h3 {
    font-size: var(--text-xl);
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

h4, .h4 {
    font-size: var(--text-lg);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h5, .h5 {
    font-size: var(--text-md);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

h6, .h6 {
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    h1, .h1 { font-size: var(--text-4xl); }
    h2, .h2 { font-size: var(--text-3xl); }
    h3, .h3 { font-size: var(--text-2xl); }
    h4, .h4 { font-size: var(--text-xl); }
}

@media (min-width: 1200px) {
    h1, .h1 { font-size: var(--text-5xl); }
    h2, .h2 { font-size: var(--text-4xl); }
}

/* --- Body Text --- */

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-body);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-md);
    line-height: 1.8;
    color: var(--color-text-primary);
}

@media (min-width: 768px) {
    .lead {
        font-size: var(--text-lg);
    }
}

small, .text-sm {
    font-size: var(--text-sm);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* --- Links --- */

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-base), border-color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-antique-gold);
    outline-offset: 3px;
}

/* --- Lists --- */

.content-list ul,
.content-list ol {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.content-list ul {
    list-style-type: disc;
}

.content-list ol {
    list-style-type: decimal;
}

.content-list li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

/* --- Blockquotes --- */

blockquote {
    border-left: 2px solid var(--color-antique-gold);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-style: italic;
    color: var(--color-text-primary);
    background-color: rgba(182, 138, 44, 0.06);
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Horizontal Rules --- */

hr {
    border: none;
    height: 1px;
    background-color: rgba(22, 22, 22, 0.10);
    margin: var(--space-2xl) 0;
}

hr.gold-rule {
    background-color: var(--color-antique-gold);
}

hr.gold-rule-subtle {
    background-color: var(--color-border);
}

/* --- Selection --- */

::selection {
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
}


/* ==========================================================================
   4. LAYOUT: CONTAINER AND GRID
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container-wide {
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* --- CSS Grid: Catalog / Card Layouts --- */

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

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

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

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

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

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

/* --- Flex Utilities --- */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

.flex-between {
    align-items: center;
    justify-content: space-between;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }


/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background-color: var(--color-surface-dark);
    border-bottom: 1px solid var(--color-antique-gold);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* --- Logo --- */

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo img,
.site-logo svg {
    height: 36px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-on-dark);
    line-height: 1;
}

.site-logo-text:hover {
    color: var(--color-text-on-dark);
}

/* --- Desktop Navigation --- */

.nav-main {
    display: none;
}

.nav-main ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-main a {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-body-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-antique-gold);
    transition: width var(--transition-base);
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--color-text-on-dark);
    text-decoration: none;
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

@media (min-width: 768px) {
    .nav-main {
        display: block;
    }

    .nav-toggle {
        display: none;
    }
}

/* --- Hamburger Menu Toggle (Mobile) --- */

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--color-text-on-dark);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle span:nth-child(1) { margin-bottom: 6px; }
.nav-toggle span:nth-child(3) { margin-top: 6px; }

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Navigation Drawer --- */

.nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-overlay);
    background-color: var(--color-surface-dark);
    padding: var(--space-2xl) var(--gutter);
    overflow-y: auto;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-mobile a {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--color-text-body-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.08);
    display: block;
    transition: color var(--transition-base);
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--color-antique-gold);
    text-decoration: none;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: var(--space-4xl) var(--gutter);
    background-color: var(--color-surface-dark);
    overflow: hidden;
}

.hero-full {
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-narrow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-text-on-dark);
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

/* Thin gold rules flanking the tagline */
.hero-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-style: italic;
    color: var(--color-text-muted-on-dark);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
    position: relative;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background-color: var(--color-antique-gold);
    margin: 0 auto;
}

.hero-tagline::before {
    margin-bottom: var(--space-lg);
}

.hero-tagline::after {
    margin-top: var(--space-lg);
}

.hero-description {
    font-size: var(--text-base);
    color: var(--color-text-body-on-dark);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

/* Hero buttons (on dark background) */
.hero .btn-secondary {
    color: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
}

.hero .btn-secondary:hover {
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
}

/* Hero with background image overlay */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
}


/* ==========================================================================
   7. SECTIONS
   ========================================================================== */

.section {
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-4xl) 0;
    }
}

@media (min-width: 1200px) {
    .section {
        padding: var(--space-5xl) 0;
    }
}

/* White primary background */
.section-dark {
    background-color: var(--color-bg-primary);
}

/* Slightly warm alternate background */
.section-navy {
    background-color: var(--color-bg-secondary);
}

/* Parchment section (subtle warmth) */
.section-light {
    background-color: var(--color-parchment);
    color: var(--color-text-dark);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--color-ink-black);
}

.section-light p {
    color: #3a3a3a;
}

.section-light a {
    color: var(--color-link);
}

.section-light a:hover {
    color: var(--color-antique-gold);
}

/* Dark section (for hero, dramatic blocks) */
.section-inverted {
    background-color: var(--color-surface-dark);
    color: var(--color-text-on-dark);
}

.section-inverted h1,
.section-inverted h2,
.section-inverted h3,
.section-inverted h4,
.section-inverted h5,
.section-inverted h6 {
    color: var(--color-text-on-dark);
}

.section-inverted p {
    color: var(--color-text-body-on-dark);
}

.section-inverted a {
    color: var(--color-antique-gold);
}

.section-inverted a:hover {
    color: #d4a83a;
}

/* Section header with decorative rule */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Gold ornamental divider beneath section titles */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-antique-gold);
    margin: var(--space-lg) auto 0;
}


/* ==========================================================================
   8. BOOK CARDS
   ========================================================================== */

.book-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(22, 22, 22, 0.10);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.book-card:hover {
    border-color: var(--color-antique-gold);
    box-shadow: var(--shadow-gold-glow);
}

.book-card a {
    display: block;
    text-decoration: none;
}

.book-card a:hover {
    text-decoration: none;
}

.book-card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: var(--color-surface-dark);
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.book-card:hover .book-card-cover img {
    transform: scale(1.03);
}

/* Badge for new releases, preorder, etc. */
.book-card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
}

.book-card-badge-red {
    background-color: var(--color-oxide-red);
    color: var(--color-parchment);
}

.book-card-body {
    padding: var(--space-lg);
}

.book-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.book-card-author {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.book-card-price {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-antique-gold);
}

.book-card-format {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-xs);
}


/* ==========================================================================
   9. AUTHOR CARDS
   ========================================================================== */

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--color-bg-card);
    border: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.author-card:hover {
    border-color: var(--color-border);
}

.author-card-portrait {
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
}

.author-card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter var(--transition-base);
}

.author-card:hover .author-card-portrait img {
    filter: grayscale(0%);
}

.author-card-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xs);
}

.author-card-dates {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.author-card-bio {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    line-height: 1.7;
}

.author-card-count {
    margin-top: var(--space-md);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-antique-gold);
}


/* ==========================================================================
   10. BLOG POST CARDS
   ========================================================================== */

.post-card {
    background-color: var(--color-bg-card);
    border: 1px solid transparent;
    padding: var(--space-xl);
    transition: border-color var(--transition-base);
}

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

.post-card-date {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-antique-gold);
    margin-bottom: var(--space-md);
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.post-card-title a {
    color: var(--color-text-primary);
}

.post-card-title a:hover {
    color: var(--color-antique-gold);
    text-decoration: none;
}

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.post-card-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Featured post (larger) */
.post-card-featured {
    padding: var(--space-2xl);
    border-left: 2px solid var(--color-antique-gold);
}

.post-card-featured .post-card-title {
    font-size: var(--text-2xl);
}


/* ==========================================================================
   11. BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 14px 32px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-base);
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-antique-gold);
    outline-offset: 3px;
}

/* Primary: gold background, dark text */
.btn-primary {
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
    border-color: var(--color-antique-gold);
}

.btn-primary:hover {
    background-color: var(--color-link-hover);
    border-color: var(--color-link-hover);
    color: var(--color-ink-black);
}

/* Secondary: outlined gold, transparent background */
.btn-secondary {
    background-color: transparent;
    color: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
}

.btn-secondary:hover {
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
}

/* Ghost: text only, gold underline on hover */
.btn-ghost {
    background-color: transparent;
    color: var(--color-antique-gold);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-antique-gold);
    transition: width var(--transition-base);
}

.btn-ghost:hover {
    color: var(--color-link-hover);
}

.btn-ghost:hover::after {
    width: 100%;
}

/* Dark button for light sections */
.btn-dark {
    background-color: var(--color-ink-black);
    color: var(--color-parchment);
    border-color: var(--color-ink-black);
}

.btn-dark:hover {
    background-color: var(--color-deep-navy);
    border-color: var(--color-deep-navy);
    color: var(--color-parchment);
}

/* Small and large variants */
.btn-sm {
    font-size: 0.65rem;
    padding: 10px 20px;
}

.btn-lg {
    font-size: var(--text-sm);
    padding: 18px 44px;
}

/* Full width */
.btn-block {
    display: block;
    width: 100%;
}


/* ==========================================================================
   12. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-input);
    border: 1px solid rgba(22, 22, 22, 0.15);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-antique-gold);
    box-shadow: 0 0 0 2px rgba(182, 138, 44, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Custom select arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B68A2C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--color-antique-gold);
}

.form-check label {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    cursor: pointer;
}

/* Form helper text */
.form-help {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Form on light backgrounds */
.section-light .form-input,
.section-light .form-textarea,
.section-light .form-select {
    background-color: #ffffff;
    color: var(--color-ink-black);
    border-color: #d4d0c8;
}

.section-light .form-input:focus,
.section-light .form-textarea:focus,
.section-light .form-select:focus {
    border-color: var(--color-antique-gold);
    box-shadow: 0 0 0 2px rgba(182, 138, 44, 0.2);
}

/* Inline form (newsletter signup) */
.form-inline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .form-inline {
        flex-direction: row;
    }

    .form-inline .form-input {
        flex: 1;
    }

    .form-inline .btn {
        white-space: nowrap;
    }
}


/* ==========================================================================
   13. TABLES
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-xl);
}

.table {
    width: 100%;
    font-size: var(--text-sm);
    border-collapse: collapse;
}

.table thead th {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-antique-gold);
    background-color: rgba(182, 138, 44, 0.06);
}

.table tbody td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: var(--border-muted);
    color: var(--color-text-body);
    vertical-align: top;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(182, 138, 44, 0.04);
}

/* Striped variant */
.table-striped tbody tr:nth-child(even) {
    background-color: rgba(22, 22, 22, 0.03);
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-surface-dark);
    border-top: 1px solid var(--color-antique-gold);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
    color: var(--color-text-body-on-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-on-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.footer-brand-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-antique-gold);
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--color-text-muted-on-dark);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-lg);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted-on-dark);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-antique-gold);
    text-decoration: none;
}

/* Footer newsletter */
.footer-newsletter {
    margin-top: var(--space-lg);
}

/* Footer form inputs need dark background styling */
.site-footer .form-input,
.site-footer .form-textarea,
.site-footer .form-select {
    background-color: #1e1e1e;
    color: var(--color-text-on-dark);
    border-color: rgba(244, 241, 232, 0.12);
}

.site-footer .form-input::placeholder,
.site-footer .form-textarea::placeholder {
    color: var(--color-text-muted-on-dark);
}

.footer-newsletter p {
    font-size: var(--text-sm);
    color: var(--color-text-muted-on-dark);
    margin-bottom: var(--space-md);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(244, 241, 232, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-muted-on-dark);
    letter-spacing: 0.04em;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: var(--text-xs);
    color: var(--color-text-muted-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-bottom-links a:hover {
    color: var(--color-antique-gold);
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* ==========================================================================
   15. DECORATIVE ELEMENTS
   ========================================================================== */

/* Ornamental divider using EM dashes */
.ornament {
    display: block;
    text-align: center;
    color: var(--color-antique-gold);
    font-size: var(--text-lg);
    letter-spacing: 0.3em;
    margin: var(--space-2xl) 0;
    user-select: none;
}

.ornament::before {
    content: '\2014\2002\2726\2002\2014';
}

/* Thin gold decorative line */
.gold-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-antique-gold);
    border: none;
}

.gold-line-center {
    margin-left: auto;
    margin-right: auto;
}

.gold-line-wide {
    width: 120px;
}

.gold-line-full {
    width: 100%;
}

/* Decorative initial cap (for articles/blog posts) */
.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.08em;
    margin-top: 0.05em;
    color: var(--color-antique-gold);
}

/* Gold top border accent */
.gold-top-border {
    border-top: 1px solid var(--color-antique-gold);
    padding-top: var(--space-lg);
}

/* Subtle gold glow box */
.gold-glow {
    box-shadow: var(--shadow-gold-glow);
}

/* Vertical gold line (for sidebars/pull quotes) */
.gold-sidebar {
    border-left: 2px solid var(--color-antique-gold);
    padding-left: var(--space-xl);
}


/* ==========================================================================
   16. BOOK DETAIL PAGE
   ========================================================================== */

.book-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 768px) {
    .book-detail {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-3xl);
    }
}

.book-detail-cover {
    position: relative;
}

.book-detail-cover img {
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.book-detail-info {
    padding-top: var(--space-md);
}

.book-detail-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .book-detail-title {
        font-size: var(--text-3xl);
    }
}

.book-detail-author {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.book-detail-price {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-antique-gold);
    margin-bottom: var(--space-sm);
}

.book-detail-format-select {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.format-option {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border: 1px solid rgba(22, 22, 22, 0.15);
    color: var(--color-text-muted);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.format-option:hover,
.format-option.active {
    border-color: var(--color-antique-gold);
    color: var(--color-antique-gold);
}

.book-detail-description {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-muted);
}

.book-detail-description p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Book specifications table */
.book-specs {
    margin-top: var(--space-xl);
}

.book-specs dt {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.book-specs dd {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-muted);
}

.book-specs dd:last-child {
    border-bottom: none;
}


/* ==========================================================================
   17. ABOUT / CONTENT PAGES
   ========================================================================== */

.page-header {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    background-color: var(--color-bg-secondary);
}

@media (min-width: 768px) {
    .page-header {
        padding: var(--space-4xl) 0 var(--space-3xl);
    }
}

.page-header h1 {
    margin-bottom: var(--space-md);
}

.page-header .lead {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Centered long-form content */
.prose {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.prose p {
    font-size: var(--text-base);
    line-height: 1.85;
    margin-bottom: var(--space-lg);
}

.prose h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.prose h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.prose ul,
.prose ol {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.prose img {
    margin: var(--space-2xl) 0;
}

.prose blockquote {
    margin: var(--space-2xl) 0;
}


/* ==========================================================================
   18. CATALOG PAGE
   ========================================================================== */

/* Catalog filter/sort bar */
.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: var(--border-muted);
}

@media (min-width: 768px) {
    .catalog-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-btn {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid rgba(22, 22, 22, 0.12);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.catalog-sort label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.catalog-sort .form-select {
    width: auto;
    min-width: 180px;
    padding: 8px 40px 8px 12px;
    font-size: var(--text-sm);
}

/* Catalog result count */
.catalog-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.catalog-count strong {
    color: var(--color-text-primary);
}


/* ==========================================================================
   19. SUBMISSIONS PAGE
   ========================================================================== */

.submissions-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .submissions-info {
        grid-template-columns: 1fr 1fr;
    }
}

.info-panel {
    background-color: var(--color-bg-card);
    padding: var(--space-xl);
    border-left: 2px solid var(--color-antique-gold);
}

.info-panel h3 {
    margin-bottom: var(--space-md);
}

.info-panel p {
    font-size: var(--text-sm);
    line-height: 1.8;
}

.info-panel ul {
    list-style: disc;
    margin-left: var(--space-lg);
}

.info-panel li {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}


/* ==========================================================================
   20. MEDIA KIT / PRESS PAGE
   ========================================================================== */

.press-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.press-card {
    background-color: var(--color-bg-card);
    padding: var(--space-xl);
    border: var(--border-muted);
    transition: border-color var(--transition-base);
}

.press-card:hover {
    border-color: var(--color-border);
}

.press-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.press-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}


/* ==========================================================================
   21. STORE / CART INTEGRATION
   ========================================================================== */

/* Cart counter badge in header */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text-body);
    transition: color var(--transition-base);
}

.cart-link:hover {
    color: var(--color-text-primary);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-antique-gold);
    color: var(--color-ink-black);
    line-height: 1;
}

/* Add to cart section */
.add-to-cart {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .add-to-cart {
        flex-direction: row;
        align-items: center;
    }
}

/* Quantity input */
.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid rgba(22, 22, 22, 0.15);
}

.qty-input button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-md);
    color: var(--color-text-body);
    transition: color var(--transition-base);
}

.qty-input button:hover {
    color: var(--color-antique-gold);
}

.qty-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    background-color: transparent;
    border: none;
    border-left: 1px solid rgba(22, 22, 22, 0.15);
    border-right: 1px solid rgba(22, 22, 22, 0.15);
}


/* ==========================================================================
   22. 404 PAGE
   ========================================================================== */

.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: var(--space-4xl) var(--gutter);
}

.page-404-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 400;
    color: rgba(182, 138, 44, 0.15);
    line-height: 1;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .page-404-code {
        font-size: 12rem;
    }
}

.page-404 h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.page-404 p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}


/* ==========================================================================
   23. ANIMATIONS
   ========================================================================== */

/* Fade in from below (applied via JS on scroll) */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in (no motion) */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
}

/* Staggered children animation */
.stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-in,
    .stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================================================
   24. UTILITY CLASSES
   ========================================================================== */

/* --- Text Alignment --- */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* --- Text Colors --- */
.text-primary   { color: var(--color-text-primary); }
.text-body      { color: var(--color-text-body); }
.text-muted     { color: var(--color-text-muted); }
.text-gold      { color: var(--color-antique-gold); }
.text-dark      { color: var(--color-text-dark); }

/* --- Text Styles --- */
.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-italic {
    font-style: italic;
}

.text-serif {
    font-family: var(--font-heading);
}

.text-small-caps {
    font-variant: small-caps;
    letter-spacing: 0.06em;
}

/* --- Font Sizes --- */
.text-size-xs  { font-size: var(--text-xs); }
.text-size-sm  { font-size: var(--text-sm); }
.text-size-base { font-size: var(--text-base); }
.text-size-md  { font-size: var(--text-md); }
.text-size-lg  { font-size: var(--text-lg); }
.text-size-xl  { font-size: var(--text-xl); }
.text-size-2xl { font-size: var(--text-2xl); }

/* --- Background Colors --- */
.bg-black   { background-color: var(--color-surface-dark); }
.bg-white   { background-color: var(--color-bg-primary); }
.bg-warm    { background-color: var(--color-bg-secondary); }
.bg-parchment { background-color: var(--color-parchment); }

/* --- Spacing --- */

/* Margin */
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.pt-0  { padding-top: 0; }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-0  { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

.p-md  { padding: var(--space-md); }
.p-lg  { padding: var(--space-lg); }
.p-xl  { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

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

.hidden {
    display: none !important;
}

.visible-mobile {
    display: block;
}

.visible-desktop {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }

    .visible-mobile {
        display: none;
    }

    .visible-desktop {
        display: block;
    }
}

/* --- Overflow --- */
.overflow-hidden {
    overflow: hidden;
}

/* --- Width Constraints --- */
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-default { max-width: var(--container-max); }
.max-w-wide { max-width: var(--container-wide); }
.w-full { width: 100%; }

/* --- Image Utilities --- */
.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
}

.img-grayscale {
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.img-grayscale:hover {
    filter: grayscale(0%);
}


/* ==========================================================================
   25. PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .site-header,
    .site-footer,
    .nav-toggle,
    .nav-mobile,
    .btn,
    .cart-link {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
        max-width: 100%;
    }

    p, blockquote {
        orphans: 3;
        widows: 3;
    }
}
