/* Atelier — quiet, editorial fashion look. Loads after base.css: everything here is what makes
   Atelier different (type, sharp corners, header, tall cards, text links) plus its own sections.
   Colours still come from the active scheme, so merchants recolour it from Theme settings. */

/* ---------- Type ---------- */
h1, h2, h3, .el-heading, .product__title { letter-spacing: -0.005em; line-height: 1.08; }
.el-heading em, .hero-editorial__heading em { font-style: italic; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; color: color-mix(in srgb, var(--fg) 65%, transparent); }
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }

/* ---------- Buttons: flat, uppercase ---------- */
.button { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; padding: 16px 30px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.button--secondary { border-width: 1px; }
.button .icon { width: 16px; height: 16px; }

/* ---------- Header: centred wordmark, hairline, wide-set menu ---------- */
.announcement { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.7rem; }
.site-header { border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.site-header__inner { min-height: 78px; }
.site-header__wordmark { font-weight: 500; font-size: clamp(1.05rem, 2.3vw, 1.7rem); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.site-header__nav a { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Product cards: tall photo, text set small underneath ---------- */
.card { gap: 12px; }
.card__media .media { border-radius: 0; }
.card__title { font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }
.card__body { padding: 0; gap: 4px; }
.badge { border-radius: 0; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.66rem; }

/* ---------- Footer ---------- */
.site-footer__name { letter-spacing: 0.18em; text-transform: uppercase; font-size: 1.3rem; }

/* ---------- Editorial hero ---------- */
.hero-editorial { position: relative; display: flex; overflow: hidden; background: var(--bg); color: var(--fg); }
.hero-editorial.height-medium { min-height: 460px; }
.hero-editorial.height-large { min-height: min(86vh, 760px); }
.hero-editorial.height-full { min-height: 100vh; min-height: 100svh; }
.hero-editorial__media { position: absolute; inset: 0; }
.hero-editorial__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,calc(var(--overlay) + .25)), rgba(0,0,0,var(--overlay)) 55%); }
.hero-editorial__inner { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 72px; padding-bottom: clamp(36px, 7vw, 84px); }
.hero-editorial.position-center .hero-editorial__inner { align-items: center; justify-content: center; text-align: center; }
.hero-editorial__copy { max-width: 620px; }
.hero-editorial:not(.no-image) { color: #fff; }
.hero-editorial:not(.no-image) .eyebrow { color: rgba(255,255,255,.8); }
.hero-editorial__heading { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: calc(clamp(2.6rem, 6.6vw, 5.6rem) * var(--heading-scale)); line-height: 1; margin: 0 0 .3em; text-wrap: balance; }
.hero-editorial__text { font-size: 1.05rem; max-width: 40ch; opacity: .9; }
.hero-editorial.position-center .hero-editorial__text { margin-inline: auto; }
.hero-editorial__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.hero-editorial.position-center .hero-editorial__actions { justify-content: center; }
.hero-editorial:not(.no-image) .button { background: #fff; color: #14120f; border-color: #fff; }
.hero-editorial__link, .lookbook__all { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.hero-editorial__link .icon, .lookbook__all .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.hero-editorial__link:hover .icon, .lookbook__all:hover .icon { transform: translateX(4px); }
.hero-editorial__caption { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.hero-editorial.position-center .hero-editorial__caption { position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(36px, 7vw, 84px); }

/* ---------- Lookbook: first tile large, the rest stacked beside it ---------- */
.lookbook__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.lookbook { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.4vw, 18px); grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: clamp(200px, 26vw, 360px); }
.lookbook__tile { position: relative; overflow: hidden; }
.lookbook__tile:first-child { grid-row: span 2; }
.lookbook.count-1 { grid-template-columns: 1fr; }
.lookbook.count-2 { grid-template-columns: 1.2fr 1fr; }
.lookbook.count-2 .lookbook__tile:first-child { grid-row: auto; }
.lookbook.count-3 { grid-template-columns: 1.3fr 1fr; }
.lookbook.count-4 .lookbook__tile:last-child { grid-column: span 2; }
.lookbook__link { display: block; position: absolute; inset: 0; color: inherit; }
.lookbook__tile .media { position: absolute; inset: 0; border-radius: 0; }
.lookbook__tile .media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lookbook__link:hover .media img { transform: scale(1.04); }
.lookbook__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); }
.lookbook__title { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.1; }
.lookbook__caption { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) { .site-header__nav a { letter-spacing: 0.08em; } .site-header__nav ul { gap: 16px; } }
@media (max-width: 749px) {
  .hero-editorial.height-large { min-height: min(78vh, 640px); min-height: min(78svh, 640px); }
  .hero-editorial__caption { display: none; }
  .hero-editorial__actions .button { width: 100%; justify-content: center; }
  .lookbook, .lookbook.count-2, .lookbook.count-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 56vw; }
  .lookbook__tile:first-child, .lookbook.count-4 .lookbook__tile:last-child { grid-column: 1 / -1; grid-row: auto; }
  .lookbook.count-1 { grid-template-columns: 1fr; }
  .site-header__wordmark { letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .lookbook__tile .media img, .hero-editorial__link .icon, .lookbook__all .icon { transition: none; }
}
