﻿/* GOTTA v2 — shared inner page styles
 *
 * Design baseline: story.html. Match its rhythm when building/auditing any
 * other inner page:
 *  - Section padding: clamp(4rem, 8vw, 7rem) vertical via .page-section
 *  - Page hero padding: clamp(8rem, 15vw, 11rem) top, clamp(4rem, 7vw, 6rem) bottom
 *  - Section dividers: 1px hairline `rgba(201,165,104,0.12)` (no thick rules)
 *  - H1/H2 italic accent line via <em>, font-weight 400 display
 *  - Eyebrow label: uppercase mono micro 0.65–0.7rem, 0.28em letter-spacing, gold
 *  - Splits: 50/50 or asymmetric 5fr/7fr; collapse to 1col at ≤768px
 *  - Stat strips: display-font numerals, 3-col on desktop, hairline dividers
 *  - No inline `style="..."` for layout/typography (CTAs may have one-off
 *    `margin-top` overrides; that's fine).
 */

body {
    background: var(--color-onyx);
    color: var(--color-ivory);
}

.page-inner {
    background: var(--color-onyx);
    color: var(--color-ivory);
    min-height: 100svh;
}

/* ── Page hero ── */
.page-hero {
    background: var(--color-onyx);
    padding: clamp(8rem, 15vw, 11rem) var(--gutter) clamp(4rem, 7vw, 6rem);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(201,165,104,0.12);
}

/* Atmospheric glow on hero for depth */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 65% at 25% 60%, rgba(201,165,104,0.07), transparent 65%);
    pointer-events: none;
}

.page-hero__eyebrow {
    display: block;
    font-family: var(--ff-text);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-crown-gold);
    margin-bottom: 2rem;
}

.page-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(4rem, 7vw + 1.5rem, 8rem);
    font-weight: 400;
    line-height: 0.98;
    color: var(--color-ivory);
    margin: 0 0 2rem;
    max-width: 14ch;
    letter-spacing: -0.01em;
}

.page-hero__title em {
    font-style: italic;
    color: var(--color-crown-gold);
}

/* Sub under hero title */
.page-hero__sub {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.9rem);
    color: rgba(246,241,232,0.6);
    max-width: 48ch;
    line-height: 1.5;
    margin: 0;
}

/* ── Content sections ── */
.page-section {
    padding: clamp(4rem, 8vw, 7rem) var(--gutter);
    max-width: var(--content-max);
    margin: 0 auto;
}

.page-section--medium  { max-width: 1200px; }
.page-section--narrow  { max-width: 900px; }
.page-section--reading { max-width: 760px; }
.page-section--form    { max-width: 680px; }
.page-section--wide    { max-width: 1440px; }

/* Opener — first section on a page that replaces a `.page-hero` block.
   Gives the page proper top breathing room without a slogan-hero card. */
.page-section--opener {
    padding-top: clamp(7rem, 13vw, 10rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(201, 165, 104, 0.12);
    position: relative;
}

.page-section--alt {
    background: rgba(201,165,104,0.04);
    border-top: 1px solid rgba(201,165,104,0.1);
    border-bottom: 1px solid rgba(201,165,104,0.1);
}

/* Section eyebrow */
.page-section__label {
    font-family: var(--ff-text);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-crown-gold);
    display: block;
    margin-bottom: 1.5rem;
}

/* Section heading — large, unhurried */
.page-section__title {
    font-family: var(--ff-display);
    font-size: clamp(2.75rem, 4.5vw + 1rem, 5rem);
    font-weight: 400;
    line-height: 1.06;
    margin: 0 0 2rem;
    color: var(--color-ivory);
    letter-spacing: -0.01em;
}

.page-section__title em { font-style: italic; color: var(--color-crown-gold); }

/* Body text — Warped reference is ~18-20px, generous line-height */
.page-section__body {
    font-family: var(--ff-text);
    font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.3rem);
    line-height: 1.85;
    max-width: 58ch;
    color: rgba(246,241,232,0.82);
}

.page-section__body + .page-section__body { margin-top: 1.5rem; }
.page-section__body--lead { max-width: 52ch; margin-bottom: 2rem; }

/* Centered page-section intros (e.g. lab.html's education hub) — the title
   has no max-width so its text centers across the section, but body blocks
   are max-width-constrained and stay left-anchored unless we auto-center
   them. Without this, title and body sit on different horizontal axes.
   text-wrap: balance also prevents the trailing line from orphaning one
   or two words ("...behind every tin." → "every tin." alone). */
.page-section[style*="text-align:center"] .page-section__body,
.page-section[style*="text-align: center"] .page-section__body {
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* ── Editorial utilities (used across press/team/wholesale/list) ── */

/* Back-to-Story breadcrumb link */
.page-back-link {
    display: inline-block;
    font-family: var(--ff-text);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-crown-gold);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    margin-bottom: 1.5rem;
    transition: letter-spacing 0.25s var(--ease-quiet);
}
.page-back-link:hover,
.page-back-link:focus-visible { letter-spacing: 0.26em; }

/* Compliance / fine-print copy under a form (21+, STOP to unsubscribe, etc.) */
.page-form-fine {
    font-family: var(--ff-text);
    font-size: 0.78rem;
    color: rgba(140, 138, 132, 0.7);
    line-height: 1.55;
    margin: 1.5rem 0 0;
    letter-spacing: 0.02em;
}
.page-form-fine strong { color: rgba(246, 241, 232, 0.85); font-weight: 600; }
.page-form-fine a {
    color: rgba(201, 165, 104, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 165, 104, 0.35);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.page-form-fine a:hover,
.page-form-fine a:focus-visible {
    color: var(--color-crown-gold);
    border-bottom-color: var(--color-crown-gold);
}

/* "This is mock content for design preview" callout */
.page-mock-notice {
    font-family: var(--ff-text);
    font-style: italic;
    font-size: 0.72rem;
    color: rgba(246,241,232,0.4);
    margin-top: 2rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Inline gold link inside body copy (mailto, footnote refs, etc.) */
.page-link-gold {
    color: var(--color-crown-gold);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
}
.page-link-gold:hover,
.page-link-gold:focus-visible { opacity: 0.8; }

/* Editorial mailto / large display link */
.page-mail-cta {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.6rem);
    color: var(--color-crown-gold);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    margin-top: 0.5rem;
    transition: letter-spacing 0.25s;
}
.page-mail-cta:hover,
.page-mail-cta:focus-visible { letter-spacing: 0.02em; }

/* Tail CTA row — paired "where to next" links at the bottom of a page.
   Use at the foot of pages that would otherwise dead-end. Two or three
   gold mono links, hairline-bordered, hover expands letter-spacing. */
.cta-row {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    text-align: center;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-row a {
    font-family: var(--ff-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-crown-gold);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: letter-spacing 0.25s var(--ease-quiet, ease);
}
.cta-row a:hover,
.cta-row a:focus-visible { letter-spacing: 0.28em; }

/* Hero wrapper inside .page-hero — caps width so editorial heros don't
   stretch on ultra-wide screens. Avoids the inline `style="max-width:..."`
   pattern. */
.page-hero__wrap {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Rule ── */
.page-rule {
    border: 0;
    border-top: 1px solid rgba(201,165,104,0.12);
    margin: 0;
}

/* ── Two-column split ── */
.page-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
}

.page-split--wide-left  { grid-template-columns: 1.5fr 1fr; }
.page-split--wide-right { grid-template-columns: 1fr 1.5fr; }

@media (max-width: 880px) {
    .page-split,
    .page-split--wide-left,
    .page-split--wide-right { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Editorial photo layouts (Warped-style asymmetric) ── */

/* Large photo that bleeds right, smaller one offset left */
.page-photo-pair {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: end;
    padding: 0 var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
}

.page-photo-pair img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.page-photo-pair img:first-child {
    aspect-ratio: 3/4;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.page-photo-pair img:last-child {
    aspect-ratio: 4/5;
}

/* Full-bleed editorial photo */
.page-photo-full {
    width: 100%;
    height: clamp(360px, 55vh, 620px);
    overflow: hidden;
}

.page-photo-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Single photo, right-aligned, 60% width */
.page-photo-right {
    display: flex;
    justify-content: flex-end;
    padding: 0 var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
}

.page-photo-right img {
    width: 62%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ── CTA button ── */
.page-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--ff-text);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1.1rem 2.75rem;
    border: 1px solid var(--color-crown-gold);
    color: var(--color-crown-gold);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 2.5rem;
}
.page-cta:hover { background: var(--color-crown-gold); color: var(--color-onyx); }

/* ── Pull quote — editorial ── */
.page-pull {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(4rem,8vw,7rem) var(--gutter);
    border-left: 2px solid var(--color-crown-gold);
    padding-left: clamp(3rem,5vw,6rem);
}

.page-pull blockquote {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.6rem, 2.5vw + 0.9rem, 3rem);
    line-height: 1.3;
    color: var(--color-ivory);
    margin: 0;
}

/* ── Page footer ── */
.page-footer {
    background: var(--color-onyx);
    border-top: 1px solid rgba(201,165,104,0.12);
    padding: 3rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-footer__brand {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-crown-gold);
    text-decoration: none;
}

.page-footer__nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-footer__nav a {
    font-family: var(--ff-text);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fog);
    text-decoration: none;
    transition: color 0.2s;
}
.page-footer__nav a:hover { color: var(--color-crown-gold); }

.page-footer__legal {
    width: 100%;
    font-family: var(--ff-text);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: rgba(140,138,132,0.45);
    line-height: 1.6;
    border-top: 1px solid rgba(201,165,104,0.08);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

/* ── Nav header: moods page override ── */
.page-moods .header__logo { mix-blend-mode: multiply; }

/* ── Marble tile (shared across pages) ── */
.marble-tile {
    --marble-base: var(--color-onyx);
    --marble-vein: var(--color-crown-gold);
    position: relative;
    aspect-ratio: 1 / 1.15;
    background: radial-gradient(ellipse at 30% 25%, color-mix(in srgb, var(--marble-base) 70%, white 8%), var(--marble-base) 60%);
    overflow: hidden;
    border-radius: 0;
    isolation: isolate;
    outline: 1px solid rgba(201,165,104,0.18);
}
.marble-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 70% 80%, color-mix(in srgb, var(--marble-base) 60%, black 30%), transparent 70%),
                radial-gradient(ellipse 50% 30% at 20% 70%, color-mix(in srgb, var(--marble-base) 50%, white 12%), transparent 70%);
    mix-blend-mode: overlay;
    opacity: 0.65;
    pointer-events: none;
}
.marble-tile__veining {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 38%, color-mix(in srgb, var(--marble-vein) 80%, transparent) 39%, transparent 40%),
        linear-gradient(96deg,  transparent 62%, color-mix(in srgb, var(--marble-vein) 60%, transparent) 63%, transparent 64%),
        linear-gradient(140deg, transparent 78%, color-mix(in srgb, var(--marble-vein) 35%, transparent) 79%, transparent 80%);
    opacity: 0.55;
    filter: blur(0.4px);
    pointer-events: none;
}
.marble-tile__cap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 38%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        color-mix(in srgb, var(--color-crown-gold) 90%, white 25%),
        var(--color-crown-gold) 55%,
        color-mix(in srgb, var(--color-crown-gold) 70%, black 25%) 100%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-crown-gold) 50%, black 20%),
                0 6px 24px rgba(0,0,0,0.35);
    z-index: 2;
}
