/*
 * skeppshult.fr : page vitrine de la marque, dans l'identité de la boutique skeppshult-boutique.fr
 * (noir fonte, gris béton, angles droits, Inter Tight). Un seul accent : l'orange de la fonte en
 * fusion, réservé au bouton principal et aux 1350 °C.
 */

:root {
    --iron: #141311;
    --iron-soft: #22201d;
    --graphite: #5a5752;
    --stone: #ecebe8;
    --paper: #ffffff;
    --line: #d9d6d1;
    --line-dark: rgb(255 255 255 / 0.16);
    --glow: #e5571a;
    --glow-dark: #c9460f;
    --beech: #9c6a3f;

    --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --wrap: 1240px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 3rem + 7vw, 9rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--iron);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

picture {
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--glow);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--paper);
    color: var(--iron);
    font-weight: 500;
}

.skip:focus {
    top: 1rem;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Typographie */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--graphite);
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
}

.eyebrow--glow {
    color: var(--glow);
}

.eyebrow--muted {
    color: rgb(255 255 255 / 0.62);
}

.section-title {
    font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.glow {
    color: var(--glow);
}

/* Boutons et liens */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--iron);
    background: var(--iron);
    color: var(--paper);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
    background: var(--iron-soft);
}

.button--light {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--iron);
}

.button--light:hover {
    background: var(--stone);
    border-color: var(--stone);
}

.button--glow {
    border-color: var(--glow);
    background: var(--glow);
    color: var(--paper);
}

.button--glow:hover {
    border-color: var(--glow-dark);
    background: var(--glow-dark);
}

.link-arrow {
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
}

.link-arrow:hover {
    text-decoration-thickness: 2px;
}

.link-arrow--light {
    color: var(--paper);
}

/* En-tête : transparent sur l'ouverture, blanc ensuite */
.top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    color: var(--paper);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.top__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 1rem var(--gutter);
}

.top__logo img {
    width: 7.5rem;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.top__nav {
    display: none;
    gap: 2rem;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 500;
}

.top__nav a {
    text-decoration: none;
    opacity: 0.86;
}

.top__nav a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.35em;
}

.top__shop {
    min-height: 2.75rem;
    margin-left: auto;
    padding: 0.6rem 1.25rem;
}

.top.is-solid {
    background: var(--paper);
    color: var(--iron);
    box-shadow: 0 1px 0 var(--line);
}

.top.is-solid .top__logo img {
    filter: none;
}

.top.is-solid .top__shop {
    border-color: var(--iron);
    background: var(--iron);
    color: var(--paper);
}

@media (min-width: 900px) {
    .top__nav {
        display: flex;
    }

    .top__shop {
        margin-left: 0;
    }
}

/* Ouverture */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    overflow: hidden;
    background: var(--iron);
    color: var(--paper);
}

.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
    object-position: 62% 40%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgb(20 19 17 / 0.92) 0%, rgb(20 19 17 / 0.55) 38%, rgb(20 19 17 / 0.1) 70%),
        linear-gradient(to right, rgb(20 19 17 / 0.55) 0%, rgb(20 19 17 / 0) 60%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 8rem var(--gutter) clamp(3rem, 2rem + 6vh, 6rem);
}

.hero .eyebrow {
    color: rgb(255 255 255 / 0.78);
}

.hero__title {
    max-width: 14ch;
    font-size: clamp(2.875rem, 1.4rem + 6.4vw, 6.5rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.hero__lead {
    max-width: 38rem;
    margin-top: 1.75rem;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    font-weight: 300;
    line-height: 1.55;
    color: rgb(255 255 255 / 0.86);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-top: 2.5rem;
}

/* La fonderie */
.foundry {
    padding-block: var(--section);
}

.foundry__grid {
    display: grid;
    gap: 3.5rem;
}

.foundry__text {
    max-width: 34rem;
    margin-top: 1.75rem;
    color: var(--graphite);
}

.pledges {
    display: grid;
    gap: 0 2.5rem;
}

.pledge {
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
}

.pledge__title {
    margin-bottom: 0.5rem;
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.pledge p {
    color: var(--graphite);
    font-size: 0.9875rem;
}

@media (min-width: 720px) {
    .pledges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .foundry__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 6rem;
        align-items: start;
    }

    .pledges {
        margin-top: 0.4rem;
    }
}

/* Fabrication : fond fonte ; sur grand écran la photo reste en place et suit l'étape lue */
.process {
    padding-block: var(--section);
    background: var(--iron);
    color: var(--paper);
}

.process .section-title {
    max-width: 16ch;
}

.process__head {
    margin-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.process__stage {
    display: none;
}

.steps {
    display: grid;
    gap: 3.5rem;
    counter-reset: step;
}

.step {
    counter-increment: step;
}

.step__media {
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: var(--iron-soft);
}

.step__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.step__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.75rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.step__title::before {
    content: counter(step, decimal-leading-zero);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgb(255 255 255 / 0.5);
    font-variant-numeric: tabular-nums;
}

.step p {
    max-width: 34rem;
    color: rgb(255 255 255 / 0.74);
}

@media (min-width: 1024px) {
    .process__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6rem;
    }

    .process__stage {
        display: block;
        position: sticky;
        top: 6.5rem;
        align-self: start;
        height: calc(100vh - 9rem);
        max-height: 46rem;
    }

    .process__frame {
        position: relative;
        height: calc(100% - 2.5rem);
        overflow: hidden;
        background: var(--iron-soft);
    }

    .process__frame picture {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.7s ease;
    }

    .process__frame picture.is-active {
        opacity: 1;
    }

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

    .process__counter {
        margin-top: 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: rgb(255 255 255 / 0.55);
        font-variant-numeric: tabular-nums;
    }

    .process__counter span {
        color: var(--paper);
    }

    .steps {
        gap: 0;
        padding-block: 8vh 18vh;
    }

    .step {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 62vh;
        opacity: 0.38;
        transition: opacity 0.4s ease;
    }

    .step.is-active {
        opacity: 1;
    }

    .step__media {
        display: none;
    }

    .step__title {
        font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem);
    }
}

/* Collections */
.collections {
    padding-block: var(--section);
    background: var(--stone);
}

.collections__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.collections__grid {
    display: grid;
    gap: 1rem;
}

.collection {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.5rem 2rem;
    background: var(--paper);
    text-decoration: none;
    outline-offset: -2px;
}

.collection__media {
    margin: -0.5rem -0.5rem 1.25rem;
}

.collection__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.collection:hover .collection__media img {
    transform: scale(1.035);
}

.collection__name {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.collection__name::after {
    content: "";
    display: block;
    width: 2rem;
    height: 1px;
    margin-top: 0.75rem;
    background: var(--iron);
    transition: width 0.3s ease;
}

.collection:hover .collection__name::after {
    width: 3.5rem;
}

.collection__text {
    margin-top: 0.875rem;
    color: var(--graphite);
    font-size: 0.9875rem;
}

@media (min-width: 720px) {
    .collections__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* Cuisiner en fonte */
.cooking {
    padding-block: var(--section);
}

.cooking__grid {
    display: grid;
    gap: 3rem;
}

.cooking__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.qualities {
    display: grid;
    gap: 0 2.5rem;
    margin-block: 2.5rem;
}

.qualities > div {
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
}

.qualities dt {
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 1.0625rem;
}

.qualities dd {
    color: var(--graphite);
    font-size: 0.9875rem;
}

@media (min-width: 720px) {
    .qualities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cooking__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 6rem;
        align-items: center;
    }
}

/* Skeppshult en France */
.contact {
    padding-block: var(--section);
    background: var(--iron);
    color: var(--paper);
}

.contact__grid {
    display: grid;
    gap: 3rem;
}

.contact__text {
    max-width: 32rem;
    margin-top: 1.75rem;
    color: rgb(255 255 255 / 0.74);
}

.contact__card {
    display: grid;
    gap: 0;
    align-self: start;
    font-style: normal;
}

.contact__line {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.1rem;
    border-top: 1px solid var(--line-dark);
}

.contact__line a {
    text-decoration: none;
}

.contact__line a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.contact__label {
    color: rgb(255 255 255 / 0.55);
    font-size: 0.9375rem;
}

.contact__shop {
    justify-self: start;
    margin-top: 1.75rem;
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6rem;
    }
}

/* Pied de page */
.footer {
    padding-block: 3rem;
    background: #0d0c0b;
    color: rgb(255 255 255 / 0.62);
    font-size: 0.875rem;
}

.footer__inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.footer__logo img {
    width: 6.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.footer__links a {
    color: var(--paper);
    text-decoration: none;
}

.footer__links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

@media (min-width: 900px) {
    .footer__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
