/* ============================================================
   VOID© — shared editorial page system
   Used by the style-guide pages and the guides hub so they read
   as part of the house, not as bare SEO pages.
   Palette + type mirror index.html: black / charcoal / off-white
   with restrained metallic-gold accents.
   ============================================================ */

:root {
    --void-black: #080808;
    --void-white: #f5f2ec;
    --void-accent: #c7a96c;
    --void-gold-soft: #d8c08a;
    --void-gold-line: rgba(199, 169, 108, 0.22);
    --void-text: rgba(245, 242, 236, 0.76);
    --void-text-muted: rgba(245, 242, 236, 0.58);
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
    --void-measure: 68ch;
}

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

html {
    background: var(--void-black);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 169, 108, 0.5) #060606;
}

body {
    min-height: 100dvh;
    background: var(--void-black);
    color: var(--void-text);
    font-family: 'Jost', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Cinematic depth: one soft warm pool from above plus a fine static grain.
   Fixed + non-animated so it costs nothing to scroll. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 62% at 50% -8%, rgba(199, 169, 108, 0.07), transparent 62%),
        radial-gradient(80% 50% at 82% 8%, rgba(20, 18, 14, 0.6), transparent 70%),
        linear-gradient(180deg, #0a0a0b 0%, #070707 55%, #050505 100%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.028) 0.5px, transparent 0.6px);
    background-size: 3px 3px;
}

::selection {
    background: rgba(199, 169, 108, 0.28);
    color: #fff7e8;
}

:focus-visible {
    outline: 1px solid rgba(199, 169, 108, 0.78);
    outline-offset: 3px;
}

/* ---------- Masthead ---------- */
.void-page-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3.4vw, 2.2rem) clamp(1.25rem, 5vw, 3rem);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--void-gold-line) 26%, var(--void-gold-line) 74%, transparent 100%) 1;
}

.void-page-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--void-white);
    text-decoration: none;
    transition: text-shadow 0.4s var(--ease-lux);
}

.void-page-logo:hover {
    text-shadow: 0 0 24px rgba(245, 232, 202, 0.4), 0 0 46px rgba(199, 169, 108, 0.22);
}

.void-page-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 1.9rem);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.void-page-nav a {
    color: var(--void-text-muted);
    text-decoration: none;
    transition: color 0.35s var(--ease-lux);
}

.void-page-nav a:hover {
    color: var(--void-white);
}

/* ---------- Editorial body ---------- */
.wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.void-eyebrow {
    display: block;
    margin-bottom: 1.15rem;
    color: var(--void-accent);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

h1 {
    max-width: 20ch;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 3.9rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0.01em;
    color: var(--void-white);
    text-wrap: balance;
}

h2 {
    margin: clamp(2.8rem, 5vw, 3.8rem) 0 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--void-white);
    text-wrap: balance;
}

/* Restrained editorial mark: a short gold rule above each section head. */
h2::before {
    content: '';
    display: block;
    width: 2.2rem;
    height: 1px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(199, 169, 108, 0.85), transparent);
}

p {
    max-width: var(--void-measure);
    margin-bottom: 1.15rem;
    color: var(--void-text);
    line-height: 1.85;
}

ul {
    max-width: var(--void-measure);
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--void-text);
    line-height: 1.8;
}

/* Small gold marker instead of a default bullet. */
li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 0.5rem;
    height: 1px;
    background: rgba(199, 169, 108, 0.7);
}

.lede {
    max-width: 62ch;
    margin-top: 1.5rem;
    color: rgba(245, 242, 236, 0.82);
    font-size: clamp(1.02rem, 1.9vw, 1.16rem);
    line-height: 1.78;
}

a {
    color: var(--void-gold-soft);
    text-decoration: none;
}

/* Editorial underline that sweeps in on hover — no default underlines. */
p a,
.void-page-foot a {
    background-image: linear-gradient(var(--void-accent), var(--void-accent));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: color 0.35s var(--ease-lux), background-size 0.45s var(--ease-lux);
}

p a:hover,
p a:focus-visible,
.void-page-foot a:hover,
.void-page-foot a:focus-visible {
    color: var(--void-white);
    background-size: 100% 1px;
}

/* ---------- Guides hub grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin-top: clamp(2.6rem, 5vw, 3.6rem);
}

.card {
    position: relative;
    padding: clamp(1.4rem, 2.6vw, 1.9rem);
    border: 1px solid rgba(199, 169, 108, 0.12);
    background: linear-gradient(180deg, rgba(20, 20, 22, 0.85), rgba(8, 8, 8, 0.96));
    box-shadow: inset 0 1px 0 rgba(245, 242, 236, 0.03), 0 10px 28px rgba(0, 0, 0, 0.32);
    transition: transform 0.6s var(--ease-lux), border-color 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
}

/* Gold hairline that ignites along the top edge on hover */
.card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 192, 138, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-lux), left 0.6s var(--ease-lux), right 0.6s var(--ease-lux);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 169, 108, 0.4);
    box-shadow: inset 0 1px 0 rgba(245, 242, 236, 0.05), 0 24px 52px rgba(0, 0, 0, 0.55), 0 0 32px rgba(199, 169, 108, 0.07);
}

.card:hover::before {
    opacity: 1;
    left: 0;
    right: 0;
}

.card h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.18rem, 2.2vw, 1.4rem);
}

.card h2::before {
    display: none;
}

.card h2 a {
    color: var(--void-white);
    transition: color 0.35s var(--ease-lux);
}

.card:hover h2 a {
    color: var(--void-gold-soft);
}

/* Whole card is the click target, so the heading link covers it. */
.card h2 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.card p {
    max-width: none;
    margin: 0;
    color: var(--void-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.void-page-foot {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 2.6rem) clamp(1.25rem, 5vw, 3rem) clamp(2.6rem, 5vw, 3.4rem);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--void-gold-line) 30%, var(--void-gold-line) 70%, transparent 100%) 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--void-text-muted);
    letter-spacing: 0.06em;
}

.void-page-foot p {
    max-width: none;
    margin: 0;
    color: var(--void-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.void-page-foot-links {
    display: flex;
    gap: clamp(0.9rem, 2.4vw, 1.6rem);
    flex-wrap: wrap;
}

.void-page-foot a {
    color: var(--void-text-muted);
}

/* Continue-reading row at the end of a guide. */
.void-guide-next {
    max-width: none;
    margin-top: clamp(2.8rem, 5vw, 3.6rem);
    padding-top: clamp(1.4rem, 3vw, 1.9rem);
    border-top: 1px solid rgba(199, 169, 108, 0.14);
    color: var(--void-text-muted);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

/* Legacy hook from the original pages — kept so existing markup still lays out. */
.top {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: clamp(2.4rem, 5vw, 3.2rem);
}

/* Primary action, matching the house button language. */
.void-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.1rem;
    border: 1px solid var(--void-accent);
    background: transparent;
    color: var(--void-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    background-image: none;
    transition: background 0.4s var(--ease-lux), color 0.4s var(--ease-lux), box-shadow 0.45s var(--ease-lux), transform 0.45s var(--ease-lux);
}

.void-cta:hover,
.void-cta:focus-visible {
    background: linear-gradient(135deg, #e7d4a6 0%, #c7a96c 46%, #9c7c46 100%);
    color: #090909;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(199, 169, 108, 0.18);
}

.void-cta:active {
    transform: translateY(0);
}

.brand-copyright {
    display: inline-block;
    margin-left: 0.06em;
    font-size: 0.44em;
    line-height: 0;
    letter-spacing: 0;
    vertical-align: super;
    transform: translateY(-0.2em);
}

/* ---------- Motion + small screens ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 600px) {
    .void-page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .void-page-nav {
        gap: 1.1rem;
        font-size: 0.62rem;
    }

    .void-page-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .void-cta {
        width: 100%;
    }
}
