/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --bg-void: #030407;
    --accent-glow: #D4AF37;
    --text-bright: #F5E6DA;
    --text-dim: #A88160;
    --border-light: rgba(212, 175, 55, 0.15);

    --font-display: 'Fraunces', serif;
    --font-body: 'Satoshi', sans-serif;

    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: initial;
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    /* WebGL handles bg */
    color: var(--text-bright);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-glow);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    will-change: transform;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    will-change: transform;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: var(--accent-glow);
    background-color: rgba(212, 175, 55, 0.15);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background-color: var(--bg-void);
    /* Fallback */
}
/* Opt-in fade: the canvas is visible by default (so any page that doesn't
   wire up the .is-ready toggle still shows its background). Only pages that
   add BOTH .fade-in (immediately) and later .is-ready (when the scene is
   built) get the smooth fade. This avoids a page's background silently
   staying invisible if its scene JS never adds the ready class. */
#webgl-canvas.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
#webgl-canvas.fade-in.is-ready {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

/* Prevent font descender / swash cutoffs in overflow-hidden wrappers */
.text-row {
    padding-bottom: 0.3em;
    margin-bottom: -0.3em;
    padding-right: 0.15em;
    margin-right: -0.15em;
}

/* =========================================
   LAYOUT & COMPONENTS
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(3, 4, 7, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* WordPress core injects `html { margin-top: 32px !important; }` (see
   wp_admin_bar_render() in wp-includes/admin-bar.php) whenever the admin
   bar is showing. That margin shifts the whole viewport's rendering
   origin down, which drags our position:fixed navbar down with it too
   (fixed positioning is normally viewport-relative, but a margin on the
   root <html> element itself still offsets it). Counteract it directly
   with the same !important specificity, since WP's own inline <style>
   block also uses !important and loads after this stylesheet. */
html {
    margin-top: 0 !important;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.menu-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-solid {
    background-color: var(--accent-glow);
    color: #000;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.btn-solid:hover {
    background-color: #FFF;
}

/* Buttons */
.btn-outline {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-bright);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--text-bright);
    color: var(--bg-void);
}

.btn-text {
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--text-bright);
}

/* =========================================
   SECTIONS
   ========================================= */

/* Hero */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10vh;
}

/* Scrim for home page to ensure text pops */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 30% 50%, rgba(3, 4, 7, 0.6) 0%, rgba(3, 4, 7, 0) 60%);
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero-container {
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
}

.hero-badge {
    display: flex;
    gap: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    border-left: 2px solid var(--accent-glow);
    padding-left: 1rem;
}

.hero-title {
    font-size: clamp(4rem, 9vw, 9rem);
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    letter-spacing: -0.02em;
}


.hero-cta {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Section header — shared by home + rings */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.1;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.placeholder-wrapper {
    aspect-ratio: 3/4;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 1;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card:hover .placeholder-wrapper {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.placeholder-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    /* slightly brighter so it pops over the image */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    background: rgba(3, 4, 7, 0.65);
    padding: 0.4rem 0.8rem;
    border-radius: 1px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.product-meta h4 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.product-meta .price {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Footer — shared shell (home layout lives in home.css) */
.footer {
    padding: 8rem 0 2.5rem;
    background-color: var(--bg-void);
    position: relative;
    z-index: 10;
    border-top: none;
    overflow: hidden;
}

/* Hairline + soft gold glow along the top edge */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-glow) 50%,
            transparent);
    opacity: 0.5;
}

.footer::after {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 360px;
    background: radial-gradient(ellipse at center,
            rgba(212, 175, 55, 0.06),
            transparent 70%);
    pointer-events: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2.25rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.footer-bottom>p:first-child {
    text-transform: uppercase;
}

/* Compact legal / support links in footer bottom bar */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    justify-content: center;
}

.footer-legal-links a {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-legal-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--accent-glow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-legal-links a:hover {
    color: var(--text-bright);
}

.footer-legal-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* "SOLID 925." end badge */
.footer-bottom .tagline {
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {

    .menu-links,
    .cursor,
    .cursor-follower {
        display: none;
    }

    * {
        cursor: auto;
    }

    .hero-title {
        font-size: 4rem;
    }
}


/* =========================================
   HUB "COMING SOON" OVERLAY
   Shared by the four "Shop By" hub templates
   (Gifting/Event/Mood/Statement). Frosts the
   tag-driven product grid behind a coming-soon
   panel until each hub's products are live.
   Markup: a .jynn-hub-soon element appended
   inside .jynn-cat-grid-section.
   ========================================= */
.jynn-cat-grid-section {
    position: relative;
}

.jynn-hub-soon {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(3rem, 14vh, 10rem) 1.5rem;
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
    background: radial-gradient(120% 80% at 50% 0%, rgba(3, 4, 7, 0.5) 0%, rgba(3, 4, 7, 0.78) 100%);
    text-align: center;
}

.jynn-hub-soon__panel {
    position: sticky;
    top: 30vh;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.75rem 2.25rem;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    background: rgba(3, 4, 7, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.jynn-hub-soon__badge {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--accent-glow);
    padding-left: 0.42em; /* offset trailing letter-spacing so text stays optically centred */
}

.jynn-hub-soon__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-bright);
}

.jynn-hub-soon__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 24rem;
}
