/* ==========================================================
   SUGi Hair, collections page
   Ivory, metallic gold lettering, ultra-luxury minimalism.
   Matches the home page; this file is self-contained.
   ========================================================== */

:root {
    --ivory: #F8F4EA;
    --ivory-deep: #F0E9D8;
    --ink: #3A3128;
    --ink-soft: #5B5043;

    /* Gold, from darkest to lightest */
    --gold-deep: #6E5222;
    --gold-text: #7A5B22;   /* solid gold for small text, 5:1 on ivory */
    --gold-mid: #94702A;
    --gold-light: #C9A64F;

    --line: rgba(122, 91, 34, 0.28);

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(1.5rem, 6vw, 6rem);
    --header-height: 5rem;
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.1;
}

p {
    margin: 0 0 1.25rem;
}

img {
    display: block;
    max-width: 100%;
}

/* Missing photos are hidden by the page so the placeholder shows cleanly. */
img[hidden] {
    display: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 4px;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: 0.6rem 1rem;
    background: var(--ivory);
    color: var(--gold-deep);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Metallic gold lettering ---------- */

.gold-text {
    width: fit-content;
    color: var(--gold-text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .gold-text {
        background-image: linear-gradient(
            100deg,
            var(--gold-deep) 0%,
            var(--gold-mid) 35%,
            var(--gold-light) 50%,
            var(--gold-mid) 65%,
            var(--gold-deep) 100%
        );
        background-size: 100% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* One sheen across the page title on load, then it rests. */
.sheen {
    background-size: 260% 100%;
    background-position: 25% 0;
    animation: sheen 3s ease-out 0.3s both;
}

@keyframes sheen {
    from { background-position: 100% 0; }
    to   { background-position: 25% 0; }
}

/* ---------- Shared type ---------- */

.eyebrow {
    margin: 0 0 1.25rem;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--gold-text);
}

.lede {
    max-width: 34rem;
    color: var(--ink-soft);
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
    padding: 0 var(--gutter);
    background: rgba(248, 244, 234, 0.94);
    border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
    .header {
        background: rgba(248, 244, 234, 0.82);
        backdrop-filter: blur(8px);
    }
}

.logo {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: 0.1em;
    line-height: 1;
    text-decoration: none;
}

.header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem clamp(1.25rem, 3vw, 2.75rem);
}

.header nav a {
    position: relative;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--gold-text);
    text-decoration: none;
}

.header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.header nav a:hover::after,
.header nav a:focus-visible::after,
.header nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- Sections ---------- */

main > section {
    padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}

/* Page title */

.page-intro {
    padding-bottom: 0;
    text-align: center;
}

.page-intro h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: -0.01em;
}

.page-intro .gold-text {
    margin: 0 auto 1.75rem;
}

.page-intro .lede {
    margin-inline: auto;
    margin-bottom: 0;
}

/* ---------- Frames (image slots) ----------
   The soft ivory-gold gradient shows until a photo is added. */

.frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #F3ECDA 0%, #E7DABC 100%);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Products ---------- */

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    max-width: 78rem;
    margin: 0 auto;
}

.product {
    text-align: center;
}

.product h2 {
    margin: 1.75rem auto 0.6rem;
    font-size: 1.65rem;
    font-weight: 500;
}

.product p {
    max-width: 22rem;
    margin-inline: auto;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.product .ritual-note {
    margin: 1.25rem auto 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.ritual-note a {
    color: var(--gold-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.ritual-note a:hover {
    color: var(--gold-deep);
}

/* ---------- Footer ---------- */

.footer {
    padding: clamp(4rem, 8vw, 6rem) var(--gutter) 3rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-soft);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-logo {
    margin: 0 auto 1rem;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.contact-link {
    color: var(--gold-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.contact-link:hover {
    color: var(--gold-deep);
}

.footer small {
    display: block;
    margin-top: 2.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

/* ---------- Tablet and below ---------- */

@media (max-width: 900px) {

    .products {
        grid-template-columns: 1fr;
        max-width: 26rem;
    }
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {

    :root {
        --header-height: 6.5rem;
    }

    .header {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding-block: 0.9rem;
    }

    .header nav {
        justify-content: center;
        gap: 0.1rem 1.4rem;
    }

    .header nav a {
        font-size: 0.8rem;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .sheen {
        animation: none;
    }

    .header nav a::after {
        transition: none;
    }
}
