@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------
   TOKENS
--------------------------------------------------- */
:root {
    --bg: #faf8f4;
    --bg-alt: #f1eae0;
    --ink: #211d1a;
    --ink-muted: #8c8275;
    --accent: #6b2a20;
    --accent-deep: #3d160f;
    --cream: #f3ede2;
    --line: #e2d9cb;
    --white: #ffffff;

    --serif: 'Fraunces', serif;
    --sans: 'Inter', sans-serif;
    --logo-font: 'Archivo Black', sans-serif;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.75rem;
    --space-4: 2.75rem;
    --space-5: 4.5rem;
    --space-6: 7rem;

    --max: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 6%;
    max-width: var(--max);
    margin: 0 auto;
}

.logo img {
    height: 30px;
    width: auto;
}

nav {
    display: flex;
    gap: var(--space-4);
}

nav a {
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding-bottom: 3px;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

/* ---------------------------------------------------
   HERO
--------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-5);
    padding: var(--space-4) 6% var(--space-6);
    max-width: var(--max);
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    max-width: 460px;
}

.hero-image,
.product-image {
    position: relative;
    height: 640px;
    background: linear-gradient(160deg, #eee3d2 0%, #f4ece0 55%, #e9ddc9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image::before,
.product-image::before {
    content: '';
    position: absolute;
    inset: var(--space-2);
    border: 1px solid rgba(33, 29, 26, 0.12);
    pointer-events: none;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-gallery .product-image {
    height: 560px;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.thumbnail {
    height: 110px;
    padding: 0;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #eee3d2 0%, #f4ece0 55%, #e9ddc9 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.thumbnail .image-placeholder {
    font-size: 0.85rem;
}

.thumbnail:hover,
.thumbnail:focus-visible {
    border-color: var(--ink-muted);
}

.thumbnail.active {
    border-color: var(--accent);
}

.image-placeholder {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-align: center;
    padding: 0 var(--space-3);
}

.brand {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 500;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--ink);
}

h1 {
    font-size: 4.4rem;
    line-height: 1.05;
    margin: var(--space-2) 0;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.hero p:not(.brand):not(.price):not(.limited) {
    color: var(--ink-muted);
    font-size: 1.05rem;
    max-width: 380px;
}

.price {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin: var(--space-3) 0;
    color: var(--ink);
}

.shipping-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: -0.75rem;
    margin-bottom: var(--space-2);
}

.button {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    padding: 1.05em 2.6em;
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    transition: background 0.3s ease, color 0.3s ease;
}

.button:hover,
.button:focus-visible {
    background: transparent;
    color: var(--ink);
}

.limited {
    margin-top: var(--space-4);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
    max-width: 320px;
}

/* ---------------------------------------------------
   STORY + ABOUT + CONTACT
--------------------------------------------------- */
.story,
.about,
.contact {
    padding: var(--space-6) 20%;
    text-align: center;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: 2.6rem;
    font-weight: 300;
    margin-bottom: var(--space-3);
}

.story p,
.about p {
    margin-bottom: var(--space-2);
    color: var(--ink-muted);
    font-size: 1.02rem;
}

.about {
    background: var(--accent-deep);
    border-top: none;
}

.about h2 {
    font-family: var(--logo-font);
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-4);
    color: var(--cream);
}

.about p {
    color: rgba(243, 237, 226, 0.72);
}

.contact h2 {
    font-family: var(--sans);
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.contact p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.contact p + p {
    margin-top: var(--space-1);
}

.contact a {
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.contact a:hover,
.contact a:focus-visible {
    color: var(--accent);
}

/* fade-in on scroll */
.fade-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------
   PRODUCT PAGE
--------------------------------------------------- */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    padding: var(--space-4) 6% var(--space-5);
    max-width: var(--max);
    margin: 0 auto;
    align-items: center;
}

.product-info h1 {
    font-size: 3.6rem;
}

.description {
    max-width: 430px;
    margin: var(--space-3) 0 var(--space-4);
    color: var(--ink-muted);
}

.product-info h3 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-muted);
}

/* COLORS */
.colors {
    display: flex;
    gap: var(--space-2);
}

.color {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    cursor: pointer;
    padding: 0;
    position: relative;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.25s ease;
}

.color:hover,
.color:focus-visible {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink-muted);
}

.color.selected {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent);
}

.stock-note {
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--ink-muted);
    max-width: 380px;
}

.black { background: #171310; }
.blue { background: #1c2a3f; }
.green { background: #55654c; }
.purple { background: #5d4960; }

/* SIZES */
.sizes {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.sizes button {
    background: transparent;
    border: 1px solid var(--line);
    padding: 0.85em 1.4em;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.sizes button:hover,
.sizes button:focus-visible {
    border-color: var(--ink);
}

.sizes button.selected {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.size-chart {
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.9;
}

/* PRODUCT BUTTON */
.add-button {
    margin-top: var(--space-4);
    width: 100%;
    padding: 1.1em;
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.add-button:hover,
.add-button:focus-visible {
    background: transparent;
    color: var(--ink);
}

.order-note {
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--ink-muted);
    max-width: 380px;
}

.order-confirmation {
    margin-top: var(--space-2);
    font-size: 0.85rem;
    color: var(--accent);
    max-width: 380px;
}

/* PRODUCT DETAILS / SHIPPING / FAQ */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    padding: var(--space-6) 12%;
    background: var(--bg-alt);
}

.product-details h2 {
    font-size: 1.9rem;
    margin-bottom: var(--space-2);
}

.product-details p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.product-details strong {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.shipping,
.faq {
    padding: var(--space-6) 18%;
    border-top: 1px solid var(--line);
}

.shipping h2,
.faq h2 {
    font-size: 1.9rem;
    margin-bottom: var(--space-3);
}

.shipping p,
.faq p {
    color: var(--ink-muted);
    font-size: 0.98rem;
}

.faq strong {
    color: var(--ink);
    font-weight: 500;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer {
    text-align: center;
    padding: var(--space-4);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
}

footer a {
    color: var(--ink-muted);
    margin-left: var(--space-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover,
footer a:focus-visible {
    color: var(--accent);
}

/* ---------------------------------------------------
   TERMS PAGE
--------------------------------------------------- */
.terms {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-5) 6% var(--space-6);
}

.terms-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.terms-intro {
    color: var(--ink-muted);
    font-size: 1.02rem;
    margin-bottom: var(--space-5);
    max-width: 560px;
}

.terms-block {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--line);
}

.terms-block h2 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.terms-block p {
    color: var(--ink-muted);
    font-size: 0.98rem;
    max-width: 560px;
}

.terms-block a {
    color: var(--accent);
}

.terms-note {
    margin-top: var(--space-2);
    font-size: 0.85rem;
    font-style: italic;
}

.accent-italic {
    font-style: italic;
    color: var(--accent);
}

/* ---------------------------------------------------
   TRUST BADGES
--------------------------------------------------- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--space-4) 6%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-badge {
    text-align: center;
}

.trust-badge .icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0 auto var(--space-1);
    color: var(--accent);
}

.trust-badge .icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
}

.trust-badge strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3em;
}

.trust-badge span {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

/* ---------------------------------------------------
   PHOTO GRID (shop the drop)
--------------------------------------------------- */
.photo-grid-section {
    padding: var(--space-5) 6%;
    max-width: var(--max);
    margin: 0 auto;
}

.photo-grid-heading {
    text-align: center;
    margin-bottom: var(--space-4);
}

.photo-grid-heading h2 {
    font-size: 2.4rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-2);
    height: 560px;
}

.photo-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #eee3d2 0%, #f4ece0 55%, #e9ddc9 100%);
}

.photo-grid a:first-child {
    grid-row: 1 / 3;
}

.photo-grid .image-placeholder {
    font-size: 1.1rem;
}

.photo-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(33, 29, 26, 0);
    transition: background 0.3s ease;
}

.photo-grid a:hover::after {
    background: rgba(33, 29, 26, 0.04);
}

/* ---------------------------------------------------
   INSTAGRAM GRID
--------------------------------------------------- */
.social-grid-section {
    padding: var(--space-6) 6%;
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}

.social-grid-section h2 {
    font-size: 2.4rem;
    margin-bottom: var(--space-1);
}

.social-grid-section .eyebrow {
    display: block;
    margin-bottom: var(--space-2);
}

.social-grid-section .button {
    margin-top: var(--space-4);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.social-grid a {
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, #eee3d2 0%, #f4ece0 55%, #e9ddc9 100%);
    position: relative;
    overflow: hidden;
}

.social-grid .image-placeholder {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

@media (max-width: 800px) {
    header {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    nav {
        gap: var(--space-3);
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero,
    .product-page,
    .product-details {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .product-image {
        height: 420px;
        order: -1;
    }

    h1 {
        font-size: 2.6rem;
    }

    .product-info h1 {
        font-size: 2.4rem;
    }

    .story,
    .about,
    .contact {
        padding: var(--space-5) 8%;
    }

    .product-details,
    .shipping,
    .faq {
        padding: var(--space-5) 8%;
    }

    .hero p:not(.brand):not(.price):not(.limited),
    .description {
        max-width: none;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 220px);
        height: auto;
    }

    .photo-grid a:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
