/* ============================================================
   PATRICIA PADRÓN — minimalist editorial fashion homepage
   Self-contained: zero dependency on hub.css / Bootstrap / Skote.
   All classes prefixed `pp-`. Plain HTML/CSS/JS, no build step.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');

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

:root {
    --pp-bg:       #F4F2EF;   /* warm off-white page */
    --pp-surface:  #FFFFFF;   /* cards / tiles */
    --pp-ink:      #16140F;   /* near-black text */
    --pp-muted:    #8C8980;   /* secondary text / captions */
    --pp-line:     #E2DED7;   /* hairline borders */
    --pp-ease:     360ms cubic-bezier(0.22, 0.61, 0.36, 1);

    --pp-pad:      52px;      /* desktop horizontal gutter */
    --pp-max:      1240px;    /* content max-width */
}

html {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    background: var(--pp-bg);
    color: var(--pp-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body { overflow-x: hidden; }

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

a { color: inherit; }

/* Shared eyebrow / hairline label */
.pp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pp-muted);
}
.pp-eyebrow--light { color: rgba(255,255,255,0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.28); }

/* Quiet underline-grow link */
.pp-link {
    display: inline-block;
    margin-top: 26px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pp-ink);
    position: relative;
}
.pp-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 100%; height: 1px;
    background: var(--pp-ink);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--pp-ease);
}
.pp-link:hover::after { transform: scaleX(0.4); }

/* ── NAV ─────────────────────────────────────────────────── */

/* Header + hero share the first screen; the hero fills whatever's left. */
.pp-top {
    height: 100svh;
    display: flex;
    flex-direction: column;
}

.pp-nav {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px var(--pp-pad);
    background: var(--pp-bg);
}

.pp-nav__cluster {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.pp-nav__cluster--right { justify-content: flex-end; }

.pp-nav__cluster a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pp-ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}
.pp-nav__cluster a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--pp-ease);
}
.pp-nav__cluster a:hover::after { transform: scaleX(1); }
.pp-nav__cart { color: var(--pp-muted) !important; }

.pp-nav__brand { justify-self: center; line-height: 0; }
.pp-nav__brand img { width: clamp(220px, 34vw, 520px); height: auto; }

.pp-nav__toggle {
    display: none;
    justify-self: end;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
}
.pp-nav__toggle span {
    display: block; width: 22px; height: 1.5px; background: var(--pp-ink);
    transition: transform var(--pp-ease), opacity var(--pp-ease);
}
.pp-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.pp-nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu */
.pp-mobile-menu {
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    padding: 8px var(--pp-pad) 28px;
    background: var(--pp-bg);
    border-bottom: 1px solid var(--pp-line);
}
.pp-mobile-menu[hidden] { display: none; }
.pp-mobile-menu.is-open { display: flex; }
.pp-mobile-menu a {
    padding: 12px 0;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--pp-ink);
    border-bottom: 1px solid var(--pp-line);
}
.pp-mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ─────────────────────────────────────────────────── */

.pp-hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}
.pp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}
.pp-hero__caption {
    position: absolute;
    left: var(--pp-pad);
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pp-hero__line {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 1px 18px rgba(0,0,0,0.3);
}

/* ── SIGNATURE INTRO ──────────────────────────────────────── */

.pp-intro {
    max-width: 680px;
    margin: clamp(72px, 11vw, 140px) auto clamp(56px, 8vw, 96px);
    padding: 0 var(--pp-pad);
    text-align: center;
}
.pp-intro__title {
    margin: 18px 0 22px;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 300;
    letter-spacing: 0.005em;
    line-height: 1.15;
}
.pp-intro__text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: #4a473f;
}

/* ── SIGNATURE GRID (editorial + 2×2 products) ────────────── */

.pp-feature {
    max-width: var(--pp-max);
    margin: 0 auto clamp(80px, 11vw, 150px);
    padding: 0 var(--pp-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: stretch;
}
.pp-feature__col { display: flex; flex-direction: column; }
.pp-feature__caption {
    margin-top: auto;   /* push caption to bottom — aligns with the 4th product */
    padding-top: 30px;
}
.pp-feature__title {
    font-size: clamp(18px, 1.9vw, 22px);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.pp-feature__subtitle {
    margin-top: 9px;
    max-width: 40ch;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--pp-muted);
}
.pp-feature__media { overflow: hidden; }
.pp-feature__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.pp-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 2.6vw, 36px);
}

/* ── PRODUCT SWATCH TILE (reusable) ───────────────────────── */

.pp-product { display: flex; flex-direction: column; }
.pp-product__swatch {
    aspect-ratio: 4 / 5;
    background: var(--swatch, var(--pp-line));
}

.pp-product__name {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.pp-product__price {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 300;
    color: var(--pp-muted);
    font-variant-numeric: tabular-nums;
}

/* ── EDITORIAL BREAK ──────────────────────────────────────── */

.pp-editorial {
    position: relative;
    width: 100%;
    margin-bottom: clamp(80px, 11vw, 150px);
}
.pp-editorial__img {
    width: 100%;
    height: clamp(420px, 64vh, 760px);
    object-fit: cover;
    object-position: center 35%;
}
.pp-editorial__caption {
    position: absolute;
    left: var(--pp-pad);
    bottom: 36px;
}

/* ── LAB COLLECTION ───────────────────────────────────────── */

.pp-lab {
    max-width: var(--pp-max);
    margin: 0 auto;   /* the break is owned by .pp-footer's top padding */
    padding: 0 var(--pp-pad);
    text-align: center;
}
.pp-lab__title {
    margin: 16px 0 18px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.15;
}
.pp-lab__text {
    max-width: 600px;
    margin: 0 auto clamp(44px, 6vw, 72px);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: #4a473f;
}
.pp-lab__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.6vw, 36px);
    text-align: left;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.pp-footer {
    /* The break above the footer is whitespace, not a line. */
    padding: clamp(200px, 30vw, 460px) var(--pp-pad) 40px;
    text-align: center;
}
.pp-footer__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    list-style: none;
    margin-bottom: clamp(56px, 8vw, 110px);
}
.pp-footer__nav a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pp-muted);
    text-decoration: none;
    transition: color var(--pp-ease);
}
.pp-footer__nav a:hover { color: var(--pp-ink); }

/* Wordmark breaks out of the footer padding to sit edge to edge. */
.pp-footer__wordmark {
    display: block;
    width: calc(100% + 2 * var(--pp-pad));
    max-width: none;
    margin: 0 0 0 calc(-1 * var(--pp-pad));
    height: auto;
}

/* ── FOCUS / ACCESSIBILITY ────────────────────────────────── */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--pp-ink);
    outline-offset: 3px;
    border-radius: 1px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    :root { --pp-pad: 36px; }
    .pp-feature {
        grid-template-columns: 1fr;
        gap: clamp(32px, 6vw, 56px);
    }
    .pp-feature__col { max-width: 560px; margin: 0 auto; width: 100%; }
    .pp-feature__caption { margin-top: 0; }
    .pp-feature__grid { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    :root { --pp-pad: 24px; }

    .pp-nav { grid-template-columns: auto 1fr auto; }
    .pp-nav__cluster { display: none; }
    .pp-nav__brand { justify-self: start; }
    .pp-nav__toggle { display: flex; }

    .pp-lab__grid { grid-template-columns: 1fr 1fr; }

    .pp-hero__caption { left: var(--pp-pad); bottom: 28px; }
    .pp-editorial__caption { left: var(--pp-pad); }
}

@media (max-width: 480px) {
    .pp-feature__grid { grid-template-columns: 1fr 1fr; }
    .pp-lab__grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .pp-footer__fine { justify-content: center; text-align: center; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
