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

/* ── Skip to main content ────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -48px;
    left: 0;
    background: #1A1612;
    color: #F7F3ED;
    padding: 8px 20px;
    z-index: 99999;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── Screen-reader only utility ──────────────────────────────────────────── */
.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;
}

/* ── Global Reset ───────────────────────────────────────────────────────── */
html, body { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path d="M0,0 L0,10 L8,5 Z" fill="%231A1612"/></svg>') 0 0, auto; }

/* ── Google Translate – suppress injected toolbar & tooltips ──────────────── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-menu-value:focus,
.goog-te-gadget { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; box-shadow: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/**
 * global.css — Shared component styles
 * Covers: navbar, hamburger, mobile-menu, cart sidebar/overlay, footer
 * Applies to all pages via <link rel="stylesheet" href="assets/css/global.css">
 *
 * NOTE: ::selection and scrollbar styles live in typo.css — not repeated here.
 *
 * Palette V5 · Final
 *   Base        #F7F3ED  Parchment
 *   Background  #EDE8DF  Off-white
 *   Surface     #EDE8DF  Warm linen
 *   Card        #E2D8C6  Card linen  (cards only)
 *   Highlight   #F6EBC8  Gold light
 *   Accent      #CFA246  Gold          — dark bg only (7.8:1 on #1A1612)
 *   Gold-text   #7F5F10  Dark amber    — light bg text (5.39:1 on #F7F3ED) WCAG AA
 *   Action      #B85C38  Terracotta
 *   Hover       #A34E2E  Terracotta dark
 *   Relief      #6B5E4F  Warm taupe (text/labels only)
 *   Main text   #1A1612
 *   Secondary   #4A3A33
 *   Depth       #2C1F1A  /  #2B2B2B
 */

/* ── Design tokens ───────────────────────────────────────────────────────── */

:root {
    /* Layout */
    --nav-height: 120px; /* logo (80px) + padding (1.25rem × 2 = 40px) */

    /* Backgrounds */
    --bg-base:       #F7F3ED;
    --bg-main:       #F7F3ED;
    --bg-surface:    #EDE8DF;
    --bg-card:       #EDE8DF;
    --bg-highlight:  #F0E8D0;

    /* Text */
    --text-main:     #1A1612;
    --text-secondary:#4A3A33;
    --text-relief:   #6B5E4F;

    /* Accent */
    --accent-gold:        #CFA246;  /* dark backgrounds only — 7.8:1 on #1A1612 */
    --accent-gold-text:   #7F5F10;  /* light backgrounds — 5.39:1 on #F7F3ED  WCAG AA */
    --accent-primary:     #B85C38;
    --accent-hover:       #A34E2E;

    /* Links */
    --link-color:    #7F5F10;

    /* Depth */
    --depth-dark:    #2C1F1A;
    --depth-charcoal:#2B2B2B;
}

/* ── Fixed-position guards ───────────────────────────────────────────────
   Per-page inline styles use `body > * { position: relative; z-index: 1 }`
   (specificity 1,0,0,1) which overrides class rules. !important defeats it.  */
.navbar         { position: fixed !important; z-index: 14700 !important; }
.mobile-menu    { position: fixed !important; z-index: 15500 !important; }
.sline-stage    { position: fixed !important; z-index:   199 !important; }
.cart-sidebar   { position: fixed !important; z-index: 14600 !important; }
.cart-overlay   { position: fixed !important; z-index: 14550 !important; }
#c-dot          { position: fixed !important; z-index: 99999 !important; }
#c-ring         { position: fixed !important; z-index: 99999 !important; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    padding: 1.25rem 5%;
    box-sizing: border-box;          /* padding included in 100vw — stops right-side overflow */
    position: fixed !important;
    top: 0 !important; left: 0;
    width: 100%;
    background: rgba(247,243,237,0.92);
    z-index: 14500;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(207,162,70,0.18);
    overflow: visible;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */

.logo {
    height: 80px;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ── Nav Brand (centre wordmark) ─────────────────────────────────────────── */

.nav-brand {
    flex: 1 !important;
    text-align: center !important;
    padding: 0 20px !important;
}
.nav-brand .name {
    display: block !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1A1612 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    font-family: var(--font-accent) !important;
    font-style: normal !important;
}
.nav-brand .sub {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    color: #4A3A33 !important;
    text-transform: none !important;
    font-family: var(--font-accent) !important;
    margin-top: 4px !important;
}

/* ── Nav Links ───────────────────────────────────────────────────────────── */

.nav-links-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
    flex-shrink: 0; /* never compress — prevents nav items being cut off */
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #4A3A33;
    text-decoration: none;
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
/* Top-level nav items — no underline indicator. Active / hover state
   communicated via color shift + slight letter-spacing expansion. */
.nav-links > li > a {
    padding-bottom: 2px;
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #CFA246; letter-spacing: 0.04em; }

/* ── Global back navigation ───────────────────────────────────────────────── */

.global-back-bar,
.essay-back {
    position: sticky !important;
    top: var(--nav-height, 120px) !important;
    z-index: 12000 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 14px 5vw !important;
    background: rgba(247, 243, 237, 0.94) !important;
    border-bottom: 1px solid rgba(26, 22, 18, 0.1) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.global-back-link,
.essay-back a,
.nav-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    color: #4A3A33 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: color 0.2s ease !important;
}

.global-back-link:hover,
.essay-back a:hover,
.nav-back:hover {
    color: #CFA246 !important;
}

.global-back-link svg,
.essay-back a svg,
.nav-back svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.global-back-link:hover svg,
.essay-back a:hover svg,
.nav-back:hover svg {
    transform: translateX(-3px) !important;
}

.global-back-meta,
.essay-back .crumb {
    color: #6F7A82 !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}


@media (max-width: 700px) {
    .global-back-bar,
    .essay-back {
        top: var(--nav-height, 120px) !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* Legacy standalone back button (assets, registration, generated contexts) */

.page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 5vw 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #1A1612;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.page-back-btn:hover { color: #1A1612; }
.page-back-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.page-back-btn:hover svg { transform: translateX(-3px); }

/* On assets page the shell has its own padding context */
.assets-main .page-back-btn { padding: 20px 32px; }

/* ── Nav hover dropdowns (Work / Practice) ──────────────────────────────── */

.nav-has-dropdown {
    position: relative;
}

/* Dropdown — subtle frosted card */
.nav-dropdown {
    position: absolute;
    top: 100%;           /* flush to parent — no dead-zone gap */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    list-style: none;
    margin: 0;
    padding: 16px 0 10px; /* top padding replaces the old 6px gap visually */
    background: rgba(247, 243, 237, 0.97);
    border: 1px solid rgba(207, 162, 70, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(26, 22, 18, 0.1);
    min-width: 150px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* delay hiding by 200ms — gives mouse time to travel into the dropdown */
    transition: opacity 0.18s ease 0.2s, transform 0.18s ease 0.2s, visibility 0s 0.38s;
}

/* Show on hover — no delay on open */
.nav-has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.2s ease, visibility 0s;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #4A3A33 !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap;
    text-align: center;
    transition: color 0.15s, background 0.15s;
}
.nav-dropdown li a:hover  {
    color: #CFA246 !important;
    background: rgba(207,162,70,0.06);
}
.nav-dropdown li a.active { color: #CFA246 !important; }

/* Subtle separator between items */
.nav-dropdown li + li {
    border-top: 1px solid rgba(26,22,18,0.06);
}

/* Parent link highlights gold when a dropdown child is the active page */
.nav-has-dropdown > a.active { color: #CFA246 !important; }

/* ── Mobile nav accordion ────────────────────────────────────────────────── */
.mobile-nav-group { width: 100%; text-align: center; }
.mobile-nav-parent {
    background: none; border: none;
    color: #1A1612;
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 3.2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 0;
    transition: color 0.3s;
}
.mobile-nav-parent:hover { color: #CFA246; }
.mobile-nav-chevron {
    font-size: 0.7em;
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}
.mobile-nav-parent.open .mobile-nav-chevron { transform: rotate(180deg); }
.mobile-nav-children {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0 0.5rem;
}
.mobile-nav-children.open { display: flex; }
.mobile-nav-children a {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
    letter-spacing: 3.2px !important;
    font-weight: 400 !important;
    color: #4A3A33 !important;
    text-decoration: none;
    transition: color 0.25s;
}
.mobile-nav-children a:hover { color: #CFA246 !important; }

/* ── Nav Cart icon (.nav-cart variant — used on most pages) ──────────────── */

.nav-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
    color: #CFA246;
}
.nav-cart:hover { opacity: 0.7; }
.nav-cart svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.nav-cart .cart-count {
    position: absolute;
    top: -2px; right: -6px;
    background: #B85C38;
    color: #F7F3ED;
    font-size: 0.875rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.nav-cart .cart-count:empty,
.nav-cart .cart-count.zero { display: none; }

/* ── Cart icon (.cart-icon variant — used on index.html / shop.html) ─────── */

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    background: none;
    border: none;
    color: inherit;
}
.cart-icon svg {
    width: 18px; height: 18px;
    fill: #CFA246;
    transition: 0.3s;
}
.cart-icon:hover svg { fill: #CFA246; }

/* Standalone .cart-count used by .cart-icon (slightly different position) */
.cart-icon .cart-count {
    position: absolute;
    top: -5px; right: -5px;
    background: #B85C38;
    color: #F7F3ED;
    font-size: 0.875rem;
    font-weight: 900;
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-icon .cart-count.zero { display: none; }

/* ── Keyboard focus styles ───────────────────────────────────────────────── */

.hamburger:focus-visible,
.nav-cart:focus-visible,
.cart-icon:focus-visible,
.close-cart:focus-visible,
.nav-links a:focus-visible,
.sf-nav a:focus-visible,
.sf-contact-btn:focus-visible,
.sf-social a:focus-visible,
.mobile-menu a:focus-visible {
    outline: 2px solid #7F5F10;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ── Card & link focus rings (WCAG 2.4.7) ───────────────────────────────── */
.funnel-card:focus-visible,
.work-link:focus-visible,
.shop-preview-card:focus-visible,
.manifesto-link:focus-visible,
.gallery-explore-link:focus-visible,
.shop-view-all:focus-visible,
.direct-btn:focus-visible,
.global-back-link:focus-visible,
.pnav-prev:focus-visible,
.pnav-next:focus-visible,
.pnav-index:focus-visible {
    outline: 2px solid #7F5F10;
    outline-offset: 6px;
    border-radius: 3px;
}

/* ── Hamburger ───────────────────────────────────────────────────────────── */

.hamburger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}
.hamburger span {
    width: 100%; height: 2px;
    background: #1A1612;
    transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

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

.mobile-menu {
    position: fixed !important;
    top: 0 !important; left: 0;
    width: 100%; height: 100vh;
    background: #F7F3ED;
    z-index: 15500;
    display: flex;
    flex-direction: column;
    /* start from top so expanding sub-menus push down, not off-screen */
    justify-content: center;
    align-items: center;
    gap: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    /* top pad clears the close button; bottom pad adds breathing room */
    padding: 90px 24px 50px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}
.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}
.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A1612;
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1;
    padding: 8px;
    transition: color 0.3s ease;
    font-family: var(--font-accent);
}
.mobile-menu-close:hover { color: #CFA246; }
.mobile-menu a {
    font-size: 2.5rem;
    font-weight: 200;
    text-decoration: none !important;
    color: #1A1612 !important;
    text-transform: uppercase;
    letter-spacing: 3.2px;
}

/* ── Cart Sidebar ────────────────────────────────────────────────────────── */

.cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 450px; height: 100vh;
    background: #EDE8DF;
    z-index: 14600;
    /* translateX(100%) = exactly one sidebar-width off-screen — no bleed regardless of overflow settings */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1),
                box-shadow 0.5s;
    padding: 40px;
    padding-top: calc(var(--nav-height, 120px) + 20px);
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border-radius: 12px 0 0 12px;
}
.cart-sidebar.open {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #8B7B6B;
    padding-bottom: 20px;
}
.cart-header h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3.2px;
    text-transform: uppercase;
    color: #1A1612;
}
.close-cart {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #4A3A33;
    background: none;
    border: none;
    padding: 12px 16px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-items-list { flex-grow: 1; overflow-y: auto; }

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    gap: 14px;
    text-align: center;
    padding: 40px 20px;
}
.cart-empty svg {
    width: 36px; height: 36px;
    stroke: #5C4A3F;
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cart-empty-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #4A3A33;
}
.cart-empty-sub {
    font-size: 0.875rem;
    color: #1A1612;
    letter-spacing: 1px;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}
.cart-item img {
    width: 70px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #C85540;
}
.cart-item h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1612;
    margin-bottom: 5px;
}
.cart-item p {
    font-size: 0.875rem;
    color: #5C4A3F;
}
.remove-item {
    font-size: 0.875rem;
    color: #B85C38;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}
.remove-item:hover { color: #A34E2E; }

.cart-footer {
    border-top: 1px solid #8B7B6B;
    padding-top: 30px;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #1A1612;
}
.checkout-btn {
    width: 100%;
    padding: 20px;
    background: #B85C38;
    color: #F7F3ED;
    border: none;
    font-family: var(--font-accent) !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.2px;
    cursor: pointer;
    transition: background 0.25s ease, letter-spacing 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
    text-decoration: none;
}
.checkout-btn:hover {
    background: #A34E2E;
    letter-spacing: 4px;
    transform: translateY(-2px);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15), 0 4px 12px rgba(184,92,56,0.25);
}

/* ── Cart Overlay ────────────────────────────────────────────────────────── */

.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(26, 22, 18, 0.6);
    z-index: 14550;
    display: none;
    backdrop-filter: blur(5px);
}
.cart-overlay.active { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   Site Footer — editorial / no boxiness
   Same HTML as before; only the visual treatment changed:
     · No hard horizontal dividers between sections (removed border-top on
       footer + border-bottom on body and CTA)
     · Tagline in Cormorant italic instead of dense uppercase
     · Category labels (PAGES / LEGAL / FIELD NOTES) stay small-caps but
       at gentler 2 px letter-spacing — recognisable as section labels
       without screaming
     · Nav links use sentence case, no letter-spacing, gold accent on
       hover with a thin underline
     · Newsletter input is an underline, not a boxed border
     · Submit button = bare arrow in gold, no fill
     · Brand gold (#CFA246) used consistently — terracotta orange dropped
     · Homepage CTA: heading scaled down from 9rem all-caps black to
       Cormorant italic editorial. Filled orange button replaced with a
       gold-link CTA matching .btn-clean
     · Copyright + social: sentence case, smaller weight, gold on hover
   Accessibility contrast preserved (#4A3A33 on cream = 7:1 PASS).
   ════════════════════════════════════════════════════════════════════════════ */

.site-footer {
    background: rgba(247, 243, 237, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-main) !important;
    position: relative;
    z-index: 2;
}

/* — Homepage CTA section (kept editorial, dropped 9rem black heading) — */
.sf-cta {
    padding: clamp(56px, 9vh, 110px) 5vw clamp(32px, 5vh, 64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 880px;
}
.sf-cta-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6B5E4F;
}
.sf-heading {
    font-family: var(--font-accent) !important;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
    color: #1A1612;
    margin: 0;
    max-width: 16ch;
}
.sf-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #CFA246;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    border: none;
    padding: 12px 0;
    min-height: 44px;
    border-radius: 0;
    transition: color 0.25s ease, gap 0.25s ease, letter-spacing 0.25s ease;
    margin-top: 12px;
}
.sf-contact-btn:hover,
.sf-contact-btn:focus-visible {
    color: #1A1612;
    gap: 16px;
    letter-spacing: 3px;
    outline: none;
}

/* — Body grid — */
.sf-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 64px;
    padding: clamp(56px, 8vh, 88px) 5vw clamp(32px, 5vh, 56px);
}
.sf-logo-link { display: block; margin-bottom: 18px; line-height: 0; }
.sf-logo { height: 48px; width: auto; opacity: 0.78; display: block; transition: opacity 0.4s ease; }
.sf-logo-link:hover .sf-logo { opacity: 1; }

.sf-tagline {
    font-family: var(--font-accent), Georgia, serif !important;
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: #4A3A33;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin: 0;
    max-width: 28ch;
}

.sf-nav-label {
    display: block;
    font-family: var(--font-main) !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #6B5E4F;
    margin-bottom: 18px;
}

.sf-nav,
.sf-legal { display: flex; flex-direction: column; gap: 10px; }
.sf-nav a,
.sf-legal a {
    font-family: var(--font-main) !important;
    font-size: 0.92rem;
    font-weight: 400;
    color: #1A1612;
    text-decoration: none;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    transition: color 0.25s ease;
}
.sf-nav a:hover,
.sf-legal a:hover {
    color: #CFA246;
}

.sf-newsletter-col p {
    font-family: var(--font-main) !important;
    font-size: 0.88rem;
    font-weight: 400;
    color: #4A3A33;
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 320px;
}

/* Newsletter input — soft warm tint instead of border or underline.
   Tint is barely-there at rest (3% black) and warms to gold-tinted
   on focus. Reads as 'a field to type in' without becoming a box. */
.sf-form {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 0;
    max-width: 320px;
    background: rgba(26, 22, 18, 0.035);
    padding: 0 4px 0 10px;
    transition: background 0.25s ease;
    overflow: visible;
}
.sf-form:focus-within { background: rgba(207, 162, 70, 0.10); }
.sf-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #1A1612;
    font-family: var(--font-main) !important;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 12px 0;
    outline: none;
}
.sf-form input::placeholder { color: rgba(74, 58, 51, 0.5); }
.sf-form button {
    background: transparent;
    border: none;
    color: #CFA246;
    padding: 8px 8px 8px 12px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    font-family: var(--font-main) !important;
    line-height: 1;
}
.sf-form button:hover,
.sf-form button:focus-visible {
    color: #1A1612;
    transform: translateX(4px);
    outline: none;
}
.sf-form-ok {
    display: none;
    font-family: var(--font-accent), Georgia, serif !important;
    font-style: italic;
    font-weight: 300;
    font-size: 0.92rem;
    letter-spacing: 0;
    text-transform: none;
    color: #CFA246;
    margin-top: 12px;
}

/* — Bottom bar — */
.sf-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5vw 32px;
    gap: 20px;
    flex-wrap: wrap;
}
.sf-copy {
    font-family: var(--font-main) !important;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(74, 58, 51, 0.65);
}
.sf-social { display: flex; gap: 22px; flex-wrap: wrap; }
.sf-social a {
    font-family: var(--font-main) !important;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #4A3A33;
    text-decoration: none;
    transition: color 0.25s ease;
}
.sf-social a:hover { color: #CFA246; }

/* — Responsive — */
@media (max-width: 900px) {
    .sf-body { grid-template-columns: 1fr 1fr; gap: 44px; }
    .sf-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
    .sf-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 5vw 32px; }
    .sf-brand { grid-column: span 1; }
    .sf-base { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 28px; }
    .sf-social { gap: 14px; }
    .sf-contact-btn { width: auto; }
    /* iOS auto-zoom prevention: inputs must be ≥16px on mobile */
    .sf-form input { font-size: 1rem; }
}


/* ── Responsive — shared breakpoints ────────────────────────────────────── */

@media (max-width: 1200px) {
    :root { --nav-height: 100px; } /* logo 60px + 40px padding */

    /* Nav */
    .nav-links     { display: none; }
    .hamburger     { display: flex; }
    .logo          { height: 60px; }
    .nav-brand     { flex: 1 !important; text-align: center !important; }
    .nav-brand .name { font-size: 1.125rem !important; letter-spacing: 1.6px !important; }
    .nav-brand .sub  { display: none !important; }
    .nav-cart,
    .navbar .cart-icon { display: none !important; }

    /* Cart sidebar — full-width on mobile */
    .cart-sidebar           { width: 100%; right: 0; transform: translateX(100%); }
    .cart-sidebar.open      { transform: translateX(0); }

    /* Footer links stack */
    .footer-links { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
    :root { --nav-height: 85px; }  /* logo 45px + 40px padding */
    .logo { height: 45px; }
    .nav-brand .name { font-size: 1rem !important; letter-spacing: 1px !important; }
}

@media (max-width: 768px) {
    /* Tablet adjustments */
    .nav-brand .name { font-size: 1rem !important; letter-spacing: 1.5px !important; }
    .nav-links a { font-size: 0.875rem; }
    .footer-links { gap: 15px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   Applies globally across all pages.
   Rules are !important to override page-level <style> blocks.
   font-family, font-weight, and color are never altered here.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Base body ───────────────────────────────────────────────────────────── */

/* Force --bg-main as the viewport foundation — overrides every inline <style>
   block that sets body { background: transparent }.
   html is the only element inline <style> blocks cannot reach.           */
html {
  background: #F7F3ED !important;
}

body {
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  background: transparent;      /* let html show through */
  padding-top: var(--nav-height) !important; /* offset below fixed navbar; wins over per-page body rules */
}

/* ── Layer all body content above background ─────────────────────────────── */
body > * {
  position: relative;
  z-index: 1;
}

/* ── Navbar-clearance neutraliser ────────────────────────────────────────────
   body now provides the full --nav-height offset via padding-top above.
   Per-page hero sections used calc(var(--nav-height) + Xpx) to achieve the
   same effect; that calc now double-counts the offset.  Replacing it with a
   flat breathing-room value (24 px) here — in global.css, before inline
   <style> blocks — uses !important so it wins over the non-!important
   per-page shorthand padding declarations.
   ────────────────────────────────────────────────────────────────────────── */
body .hero,
body .work-hero, body .mobile-page-title,
body .about-hero,
body .workshop-hero,
body .shop-hero,
body .contact-section,
body .studio-header,
body .checkout-wrap,
body .success-wrap, body .fail-wrap,
body .mem-wrap,     body .reg-wrap,
body .assets-hero,
body .essay-hero,
body .reader-hero {
  /* body padding-top provides the navbar offset; sections need only breathing room.
     `body .class` specificity (0,1,0,1) beats inline `.class !important` (0,1,0,0) */
  padding-top: 24px !important;
  margin-top: 0 !important;
}

/* index.html fullscreen hero: subtract navbar height so the section fills
   exactly the visible viewport (not viewport + navbar-height overflow).    */
.hero-split {
  height:      calc(100vh - var(--nav-height)) !important;
  padding-top: 24px !important;
  margin-top:  0;
}
@media (max-width: 1100px) {
  .hero-split {
    height:     auto !important;
    min-height: 0 !important;
  }
}

/* ── Section headers & list labels — uppercase run-in labels ─────────────── */
.section-header,
.list-label {
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem) !important;
  letter-spacing: 2.4px !important;
}

/* ── Editorial body copy — bio, process paragraphs, listing items ─────────── */
.bio-text,
.process-step p,
.list-items {
  font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
  line-height: 1.75 !important;
}

/* ── Process step headings ───────────────────────────────────────────────── */
.process-step h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
}

/* ── Project card captions ───────────────────────────────────────────────── */
.project-info h4 {
  font-size: clamp(0.875rem, 1.2vw, 1rem) !important;
  letter-spacing: 1.6px !important;
}
.project-info p {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem) !important;
}

/* ── Step numbers ────────────────────────────────────────────────────────── */
.step-num {
  font-size: 0.875rem !important;
}

/* ── Hero headings on all pages except index.html ────────────────────────── */
/* index.html uses its own hero classes — .hero-content h1 does not appear there */
.hero-content h1 {
  font-size: clamp(4.2969rem, 5vw, 7.8125rem) !important;
  line-height: 0.9 !important;
}

/* ── Responsive overrides ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-header,
  .list-label {
    font-size: 0.875rem !important;
    letter-spacing: 1.6px !important;
  }

  .bio-text,
  .process-step p,
  .list-items {
    font-size: 1rem !important;
  }

  .process-step h2 {
    font-size: 1.125rem !important;
  }

  .project-info h4,
  .project-info p {
    font-size: 0.875rem !important;
  }

  .hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 6rem) !important;
  }
}

/* ── Back to top ─────────────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(207,162,70,0.4);
    background: #F7F3ED;
    color: #1A1612;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    outline: none;
    border-radius: 6px;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    color: #F7F3ED;
    border-color: #CFA246;
    background: #CFA246;
}

/* ------------------------------------------------------------------
   Global typography direction
   Main: Inter (UI chrome, labels, buttons)
   Accent: Instrument Serif (editorial italics, pull quotes)
   Heading: Cormorant Garamond (display headings)
------------------------------------------------------------------- */
:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;  /* italic quotes & editorial flourishes */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Type scale — 10 steps: micro · small · body · body-lg · h6 · h5 · h4 · h3 · h2 · h1 */
    --type-micro:   0.75rem;                           /* 12px — metadata, tags */
    --type-small:   0.875rem;                          /* 14px — labels, captions, UI chrome */
    --type-body:    1rem;                              /* 16px — body copy */
    --type-body-lg: 1.125rem;                          /* 18px — lead text, subtitles */
    --type-h6:      0.75rem;                           /* 12px */
    --type-h5:      0.875rem;                          /* 14px */
    --type-h4:      clamp(1.125rem, 2vw, 1.375rem);   /* 18–22px */
    --type-h3:      clamp(1.375rem, 2.8vw, 1.75rem);  /* 22–28px */
    --type-h2:      clamp(2rem, 4.4vw, 2.5rem);       /* 32–40px */
    --type-h1:      clamp(5.5rem, 8vw, 10rem);        /* 88–160px — display scale */
    --tracking-heading: 0.16px;
    --tracking-body: 0.05px;
}

html {
    font-size: 100% !important;
}

body,
input,
textarea,
select {
    font-family: var(--font-body), Georgia, serif;
}

button,
.btn,
[role="button"],
label {
    font-family: var(--font-main);
}

body {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    letter-spacing: var(--tracking-body) !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.page-title,
.shop-hero h1,
.work-hero h1,
.workshop-hero h1,
.assets-hero h1,
.studio-header h1,
.essay-hero h1,
.success-wrap h1,
.fail-wrap h1,
.mem-title {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    letter-spacing: var(--tracking-heading) !important;
    text-transform: none !important;
}

/* Heading sizes — variables drive defaults; component rules override via specificity */
h1 { font-size: var(--type-h1); line-height: 1.05; }
h2 { font-size: var(--type-h2); line-height: 1.1;  }
h3 { font-size: var(--type-h3); line-height: 1.2;  }
h4 { font-size: var(--type-h4); line-height: 1.2; font-weight: 500; }
h5 { font-size: var(--type-h5); line-height: 1.3; font-weight: 500; }
h6 { font-size: var(--type-h6); line-height: 1.4; font-weight: 500; }

p,
li,
.bio-text,
.process-step p,
.list-items,
.listing-row .list-value,
.bio-paragraph,
.reader-body,
.reader-body p,
.about-body p,
.workshop-body p,
.modal-description,
.jdt-focus,
.product-specs,
.essay-body p,
.concept .c-excerpt,
.note-card .n-body {
    font-family: var(--font-body), Georgia, serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: var(--tracking-body) !important;
}

em,
i,
blockquote,
.pull-quote blockquote,
.testimonial blockquote,
.about-manifesto p,
.reader-body blockquote,
.essay-hero h1 em,
.studio-header h1 span,
.hero-light {
    font-family: var(--font-body), Georgia, serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
    letter-spacing: var(--tracking-body) !important;
}

.nav-brand .name,
.nav-links a,
.nav-dropdown li a,
.mobile-menu a,
.section-header,
.list-label,
.hero-spacer,
.parallax-text,
.scroll-cue span,
.tag,
.cat,
.category,
.label,
.price,
.product-price,
.product-title,
.zone-label,
.cf-num,
.card-float .cf-loc,
.card-float .cf-cluster,
.action-btn,
.buy-now-btn,
.btn,
button {
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 500 !important;
}

.section-header,
.list-label,
.hero-spacer,
.parallax-text,
.scroll-cue span,
.tag,
.cat,
.category,
.label,
.nav-dropdown li a {
    font-size: 0.875rem !important;
    letter-spacing: var(--tracking-heading) !important;
    text-transform: uppercase !important;
}

.nav-links a,
.mobile-menu a,
.btn,
button,
.action-btn,
.buy-now-btn {
    letter-spacing: 0.05px !important;
}

strong,
b,
.step-num,
.product-title,
.nav-cart {
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    :root {
        --type-h1: clamp(2rem, 10vw, 3rem);
        --type-h2: clamp(1.5rem,  6vw, 2rem);
        --type-h3: clamp(1rem,    4vw, 1.5rem);
        --type-h4: clamp(1rem,  3.5vw, 1.25rem);
        --type-h5: 0.875rem;
        --type-h6: 0.75rem;
    }
}
@media (max-width: 640px) {
    .back-to-top { bottom: 24px; right: 20px; width: 44px; height: 44px; }
}

/* ── Component overrides — must follow TYPOGRAPHY SYSTEM to win !important cascade ── */

/* Essence box — Instrument Serif italic with brand accent colour */
.essence-box p {
    font-family: var(--font-accent), Georgia, serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #E86A4A;
}

/* ══════════════════════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   Pill-shaped sun / moon button injected by theme.js into .nav-links-container
   ══════════════════════════════════════════════════════════════════════════════ */

#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(110, 123, 67, 0.4);
    background: transparent;
    color: #E86A4A;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    outline: none;
    position: relative;
    z-index: 1;
}
#theme-toggle:hover {
    color: #4A3A33;
    border-color: rgba(110, 123, 67, 0.8);
    background: rgba(110, 123, 67, 0.1);
}
#theme-toggle svg {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}

/* ── Toggle buttons — ensure visibility on all screen sizes ──────────────── */
#theme-toggle {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}


/* ── Mobile menu (all pages) ─────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTRAST & VISUAL WEIGHT IMPROVEMENTS (2026 Audit)
   Enhanced readability and button visibility
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Improved Button Styling ────────────────────────────────────────────────── */

button, .btn, a.btn, [role="button"] {
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

/* CTA links — no underline. Color + letter-spacing expansion on hover
   carries the affordance instead. (Previously a 2 px terracotta border-
   bottom that turned dark on hover.) */
a.hero-cta, a.cta-link, .action-btn {
    position: relative;
    text-decoration: none;
    color: #7F5F10;
    transition: color 0.3s ease, letter-spacing 0.3s ease, gap 0.3s ease;
}

a.hero-cta:hover, a.cta-link:hover, .action-btn:hover {
    color: #1A1612;
    letter-spacing: 0.06em;
}

/* ── Improved Label & Caption Visibility ────────────────────────────── */

.wi-cap-cat, .label, label, .tag, .category, [class*="label"] {
    letter-spacing: 1px;
    font-weight: 600;
}

/* Work filter buttons — no underline. Color + slight letter-spacing
   expansion communicates the active state. */
.wi-filter {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.wi-filter:hover {
    color: #1A1612;
    letter-spacing: 3.2px;
}

.wi-filter.active {
    color: #1A1612;
    font-weight: 800;
    letter-spacing: 3.2px;
}

/* Product purchase buttons
   Keep shop card actions compact after global typography/button overrides. */
.product-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.product-actions .action-btn,
.modal-actions .action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(26, 22, 18, 0.28) !important;
    background: transparent !important;
    color: #1A1612 !important;
    font-family: var(--font-main) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.product-actions .action-btn:hover,
.modal-actions .action-btn:hover {
    padding: 0 14px !important;
    border-color: #1A1612 !important;
    background: rgba(26, 22, 18, 0.06) !important;
    color: #1A1612 !important;
}

.product-actions .buy-now-btn,
.modal-actions .buy-now-btn {
    background: #B85C38 !important;
    border-color: #B85C38 !important;
    color: #F7F3ED !important;
}

.product-actions .buy-now-btn:hover,
.modal-actions .buy-now-btn:hover {
    background: #A34E2E !important;
    border-color: #A34E2E !important;
    color: #F7F3ED !important;
}

.product-actions .action-btn svg,
.modal-actions .action-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
}

/* Strict site font contract: Inter (UI chrome), Instrument Serif (editorial italics), Cormorant Garamond (display headings) */
* {
    font-family: inherit;
}

/* Ensure special characters (dashes, bullets, arrows, symbols) render with fallback support */
body, p, span, div, a, li, button, label, input, textarea {
    font-feature-settings: 'liga' 1, 'kern' 1;
}

/* Special characters and symbols - ensure system font fallback */
::before, ::after {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif !important;
}

/* Fallback for any element that might contain special Unicode characters */
.description, .meta, .caption, .attribution, .subtitle, [class*="text"], [class*="label"], [class*="title"] {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

body {
    font-family: var(--font-body), Georgia, serif !important;
}

/* Display / editorial headings — Cormorant Garamond */
h1, h2, h3, h4, h5, h6,
.hero-title,
.page-title {
    font-family: var(--font-heading) !important;
}

/* UI chrome — Inter */
button,
.btn,
[role="button"],
label,
.nav-links a,
.tag,
.category,
.price {
    font-family: var(--font-main) !important;
}

button,
input,
textarea,
select,
.action-btn,
.buy-now-btn {
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif !important;
}

em,
i,
blockquote,
blockquote *,
.pull-quote blockquote,
.testimonial blockquote,
.about-manifesto p,
.reader-body blockquote,
.essay-hero h1 em,
.studio-header h1 span,
.hero-light,
.accent,
[data-font="accent"] {
    font-family: var(--font-body), Georgia, serif !important;
    font-style: italic;
}

/* ── Enhanced Form Input Focus States ───────────────────────────────── */

input, textarea, select {
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Canonical focus rule — single source of truth. Do not duplicate below. */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #CFA246;
}

input::placeholder, textarea::placeholder {
    color: rgba(123, 95, 79, 0.6);
    font-weight: 400;
}

/* ── Icon + Text Pattern ───────────────────────────────────────────── */

.icon-text, [class*="icon"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL CONTRAST AUDIT FIXES (2026)
   Ensures WCAG AA compliance across all pages
   ══════════════════════════════════════════════════════════════════════════════ */

/* Improve section label visibility */
.section-header,
.list-label,
.zone-label {
  color: #4A3A33 !important;
  font-weight: 600 !important;
}

/* Improve secondary text on light backgrounds */
.essence-box p {
  color: #6B4F45 !important;
}

/* Cart and sidebar text improvements */
.cart-item p,
.sf-newsletter-col p,
label,
[class*="placeholder"],
[class*="hint"] {
  color: #5C4A3F !important;
}

/* Improve form labels and helper text */
label,
.form-label,
.field-label {
  color: #4A3A33 !important;
  font-weight: 600 !important;
}

/* Darker placeholder text — #8B7B6B×0.8 = 2.69:1 FAIL → #6B5B52 = 4.71:1 PASS */
input::placeholder,
textarea::placeholder,
.placeholder {
  color: #6B5B52 !important;
  opacity: 1 !important;
}

/* Improve button text readability */
.action-btn,
.buy-now-btn,
button,
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

/* Ensure strong contrast on borders */
input,
textarea,
select,
[class*="input"],
[class*="field"] {
  border-color: rgba(26, 22, 18, 0.2) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Duplicate focus rule removed — see canonical rule above. */

/* Raw text links — no underline. Gold colour + weight bump on hover
   carries the affordance instead. WCAG note: relying on colour alone
   for link affordance is a soft accessibility risk; the gold (#7F5F10)
   is intentionally distinct from body text (#1A1612) and the weight
   shift on :hover/:focus provides a second visual channel. */
a:not([class]) {
  color: #7F5F10;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, font-weight 0.2s ease;
}
a:not([class]):hover,
a:not([class]):focus-visible {
  color: #1A1612;
  font-weight: 600;
}

a:not([class]):visited {
  color: #7F5F10;
}

a:not([class]):hover,
a:not([class]):focus {
  color: #CFA246;
  text-decoration-color: #CFA246;
  text-decoration-thickness: 2px;
}

/* Ensure all text meets minimum 4.5:1 contrast ratio */
.secondary-text,
.subtitle,
.caption,
.meta,
[class*="secondary"],
[class*="muted"] {
  color: #5C4A3F !important;
  font-weight: 500 !important;
}

/* ── Soft chamfered edges on gallery image containers ───────────────────────
   Rounded corners (border-radius) give a clean chamfered look.
   overflow:hidden clips the image to the rounded frame.
   ─────────────────────────────────────────────────────────────────────────── */
.img-wrap,
.shop-preview-card .img-wrap,
.about-portrait,
.reel-thumb,
.glimpse {
    border-radius: 10px;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PALETTE V5 — Component colour overrides
   Applies the new warm-parchment / gold / terracotta / slate-blue system
   to shared components across all pages.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero elements (index.html) ──────────────────────────────────────────── */
.hero-spacer        { color: #4A3A33; }
.hero-title         { color: #1A1612; }
.hero-title .script { color: #B85C38; }
.parallax-text      { color: #4A3A33; }
.scroll-cue span    { color: #4A3A33; }
.scroll-cue svg     { stroke: #CFA246; }
.scroll-bg-text     { color: #1A1612; opacity: 0.025; }

/* ── About manifesto ─────────────────────────────────────────────────────── */
.about-manifesto p      { color: #1A1612; }
.about-manifesto p em   { color: #B85C38; }
.manifesto-link         { color: #7F5F10; transition: color 0.25s ease, letter-spacing 0.25s ease; }
.manifesto-link:hover   { color: #CFA246; letter-spacing: 0.04em; }

/* ── Pinned / gallery intro ──────────────────────────────────────────────── */
.pinned-section         { border-top: 1px solid rgba(207,162,70,0.18); }
.gallery-intro h2       { color: #1A1612; }
.gallery-explore-link   { color: #7F5F10; transition: color 0.25s ease, letter-spacing 0.25s ease; }
.gallery-explore-link:hover { color: #CFA246; letter-spacing: 0.04em; }

/* ── Shop preview (index.html) ───────────────────────────────────────────── */
.shop-preview           { border-top: 1px solid rgba(207,162,70,0.18); }
.shop-preview-head h2   { color: #1A1612; }
.shop-preview-head p    { color: #4A3A33; }
.shop-view-all          { color: #7F5F10; transition: color 0.25s ease, letter-spacing 0.25s ease; }
.shop-view-all:hover    { color: #CFA246; letter-spacing: 0.04em; }
.shop-preview-card .img-wrap { background: #EDE8DF; }
.shop-preview-card .cat { color: #4A3A33; }
.shop-preview-card .price { color: #B85C38; }
.shop-preview-card h3   { color: #1A1612; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials           { border-top: 1px solid rgba(207,162,70,0.18); }
.testimonials-head h2   { color: #1A1612; }
.testimonials-head p    { color: #4A3A33; }
.testimonial::before    { color: #CFA246; }
.testimonial blockquote {
    color: #1A1612;
    border-left: 2px solid rgba(207,162,70,0.35);
}

/* ── Pull quote ──────────────────────────────────────────────────────────── */
.pull-quote             { border-top: 1px solid rgba(207,162,70,0.18); }
.pull-quote blockquote  { color: #1A1612; }
.pull-quote blockquote::before { color: rgba(207,162,70,0.2); }
.pull-quote .attribution { color: #4A3A33; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
    background: #B85C38;
    color: #F7F3ED;
    border: none;
}
.btn-primary:hover { background: #A34E2E; }

.btn-outline {
    color: #7F5F10;
    border: 1px solid #7F5F10;
    background: transparent;
}
.btn-outline:hover {
    background: #7F5F10;
    color: #F7F3ED;
}

.btn-gold {
    background: #CFA246;
    color: #F7F3ED;
    border: none;
}
.btn-gold:hover { background: #B8902E; }

/* ══════════════════════════════════════════════════════════════════════════════
   WCAG AA CONTRAST FIX — 2026 AUDIT
   #CFA246 gold achieves only 2.15:1 on #F7F3ED (light bg) — FAIL.
   All gold TEXT on light backgrounds must use --accent-gold-text (#7F5F10 = 5.39:1).
   #CFA246 remains correct on dark backgrounds (7.8:1 on #1A1612).
   ══════════════════════════════════════════════════════════════════════════════ */

/* Nav active states — colour-only indicator (underline removed). */
.nav-links > li > a.active,
.nav-dropdown li a.active,
.nav-has-dropdown > a.active {
    color: var(--accent-gold-text) !important;
}

/* Cart icon fill on light navbar */
.nav-cart svg { fill: var(--accent-gold-text); }
.cart-icon:hover svg { fill: var(--accent-gold-text); }
.cart-count { color: var(--accent-gold-text); }

/* Duplicate focus rule removed — see canonical rule above. */

/* Hover links that turn gold on light backgrounds */
.manifesto-link:hover,
.gallery-explore-link:hover,
.shop-view-all:hover,
.sf-nav a:hover,
.sf-social a:hover,
.mobile-nav-parent:hover,
.mobile-nav-children a:hover,
.mobile-menu-close:hover {
    color: var(--accent-gold-text) !important;
}

/* Testimonial quote mark */
.testimonial::before { color: var(--accent-gold-text); }

/* Scroll cue arrow — on light bg */
.scroll-cue svg { stroke: var(--accent-gold-text); }


/* ════════════════════════════════════════════════════════════════════════════
   GLOBAL "CLEAN" BUTTON SYSTEM — ported from the workshops page redesign.
   Opt-in via class names so no existing button styling changes.

   Three tiers, in order of weight (subtle → loud):

     .btn-clean          Link-style. Gold text + thin gold underline.
                         No fill, no box. Workshops' .tier-btn vibe.
                         Use for secondary CTAs, "View", "Read more", etc.

     .btn-outline        Transparent + 1px border, big letter-spacing,
                         uppercase, padded. Workshops' .wcta-btn vibe.
                         Use for primary CTAs on light backgrounds.
                         Add .btn-on-dark for hero / dark sections.

     .btn-solid          Solid gold fill, dark text, no border.
                         Workshops' .tier-notify-btn vibe. Use sparingly —
                         most pages should prefer .btn-clean or .btn-outline.

   All three respect prefers-reduced-motion via transitions that only animate
   colour / opacity / border, never transforms.

   To apply on a page, just swap the existing button class:
       <button class="btn-clean">View Format</button>
       <a class="btn-outline" href="#book">Reserve a Seat</a>
       <a class="btn-outline btn-on-dark" href="#book">Reserve a Seat</a>
       <button class="btn-solid">Notify Me</button>
   ════════════════════════════════════════════════════════════════════════════ */

.btn-clean {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #CFA246;
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease, letter-spacing 0.25s ease;
}
.btn-clean:hover,
.btn-clean:focus-visible {
    color: #1A1612;
    gap: 12px;
    letter-spacing: 0.13em;
    outline: none;
}
.btn-clean:active { color: #1A1612; }
.btn-clean[disabled],
.btn-clean.disabled { opacity: 0.35; pointer-events: none; }


.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: 1px solid rgba(26, 22, 18, 0.4);
    color: #1A1612;
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8625rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 20px 44px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(26, 22, 18, 0.04);
    border-color: #1A1612;
    gap: 24px;
    outline: none;
}
.btn-outline.btn-on-dark {
    color: #F7F3ED;
    border-color: rgba(252, 250, 246, 0.35);
}
.btn-outline.btn-on-dark:hover,
.btn-outline.btn-on-dark:focus-visible {
    background: rgba(252, 250, 246, 0.08);
    border-color: #F7F3ED;
}
.btn-outline[disabled],
.btn-outline.disabled { opacity: 0.35; pointer-events: none; }


.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #CFA246;
    color: #1A1612;
    border: none;
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-solid:hover,
.btn-solid:focus-visible {
    background: #b8883a;
    outline: none;
}
.btn-solid[disabled],
.btn-solid.disabled { opacity: 0.4; pointer-events: none; }


/* Compact size modifier for any of the three tiers */
.btn-clean.btn-sm,
.btn-outline.btn-sm,
.btn-solid.btn-sm {
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.btn-outline.btn-sm { padding: 12px 24px; }
.btn-solid.btn-sm   { padding: 10px 20px; }


/* Mobile — outline button stretches full-width by default for thumb reach */
@media (max-width: 600px) {
    .btn-outline { width: 100%; justify-content: center; }
}
