/* RELA Collective — Change in Rhythm */
:root {
  --cream: #F3EDE0;
  --sand: #E6DCC8;
  --stone: #D9CFBD;
  --taupe: #6B6457;
  --ink: #0A0A0A;
  --ink-soft: #2B2925;
  --wrap: 1360px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--taupe); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wide { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; }
.cond { font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 500; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Announcement */
.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: 13px; padding: 10px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--stone); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.logo img { width: 168px; height: auto; }
.nav { display: flex; gap: 36px; font-size: 15px; }
.nav a, .mobile-nav a { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; font-size: 18px; gap: 4px; }
.mobile-nav a { padding: 10px 0; border-top: 1px solid var(--stone); }
.mobile-nav[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; font-size: 15px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.header-actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-cream:hover { background: transparent; color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-size: 14px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end; padding-block: 72px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-size: 14px; color: var(--taupe); }
.display { margin: 0; font-size: clamp(64px, 9vw, 132px); }
@media (max-width: 600px) { .display { font-size: 12.5vw; } }
.lead { margin: 0; font-size: 19px; max-width: 440px; color: var(--ink-soft); }

/* Media placeholders */
.media { position: relative; margin: 0; background: var(--sand); border: 1px solid var(--stone); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 240px; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-label { font-size: 12px; color: var(--taupe); }
.media img + .media-label { display: none; }
.media-tall { aspect-ratio: 4 / 5; }
.media-product { aspect-ratio: 3 / 4; }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--stone); padding-block: 20px; }
.ticker-track { display: flex; gap: 48px; width: max-content; font-size: 40px; white-space: nowrap; animation: scroll 28s linear infinite; }
.ticker .slash { color: var(--taupe); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Sections */
.section { padding-block: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 12px; }
.h2 { margin: 0; font-size: clamp(44px, 5.5vw, 72px); }
.section-note { margin: 0; max-width: 360px; color: var(--ink-soft); }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shop-grid.is-live { display: block; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.product-meta span:last-child { font-weight: 400; color: var(--taupe); white-space: nowrap; }

/* Bands */
.band-sand { background: var(--sand); }
.band-sand .media { background: var(--stone); border-color: transparent; }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink a { color: var(--cream); }
.band-ink a:hover { color: var(--stone); }

/* Lookbook */
.look { margin: 0; }
.look img { width: 100%; height: auto; }
.look figcaption { margin-top: 12px; font-size: 13px; color: var(--taupe); }

/* About */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.about-copy { display: flex; flex-direction: column; gap: 20px; font-size: 19px; color: var(--ink-soft); padding-top: 36px; }
.about-copy p { margin: 0; }
.about-lead { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--ink); }
.about-sign { font-weight: 600; color: var(--ink); }
.about-copy em { font-style: italic; }
.about .outline { -webkit-text-stroke-width: 2px; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end; padding-block: 80px; }
.newsletter p { margin: 16px 0 0; max-width: 440px; font-size: 18px; }
.newsletter .contact-line { font-size: 15px; color: var(--stone); }
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup label { font-size: 13px; }
.signup-row { display: flex; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 220px; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font: inherit; border-radius: 0; }
.signup input::placeholder { color: #A39C8E; }
.signup .btn { min-height: 56px; }
.signup-status { margin: 4px 0 0; font-size: 15px; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--stone); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-block: 64px 40px; }
.footer-logo { width: 220px; height: auto; align-self: flex-start; object-fit: contain; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { text-decoration: none; font-size: 15px; }
.footer-label { margin: 0 0 4px; font-size: 12px; color: var(--taupe); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--taupe); border-top: 1px solid var(--stone); padding-block: 24px 40px; }

/* Responsive */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero, .about, .newsletter, .lookbook-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 40px 48px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 64px; }
  .ticker-track { font-size: 28px; }
  .logo img { width: 132px; }
  .about-copy { padding-top: 0; }
}

/* ---------- Lookbook flipbook ---------- */
.flipbook { --pw: min(440px, 40vw); --ph: calc(var(--pw) * 1.25); --flip: 0.9s; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.fb-book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2200px; transition: transform var(--flip) cubic-bezier(.45,.05,.25,1); }
.fb-book[data-state="0"] { transform: translateX(calc(var(--pw) * -0.5)); }
.fb-book[data-state="end"] { transform: translateX(calc(var(--pw) * 0.5)); }
.fb-page { position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform var(--flip) cubic-bezier(.45,.05,.25,1); cursor: pointer; }
.fb-page.is-flipped { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; container-type: size; box-shadow: 0 18px 40px rgba(10,10,10,.22); }
.fb-back { transform: rotateY(180deg); }
.fb-dark { background: #000; display: flex; align-items: center; justify-content: center; }
.fb-front img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* page shading: darker toward the spine, like a bound magazine */
.fb-front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 8%); }
.fb-back::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,0) 8%); }
.fb-paper { background: var(--cream); color: var(--ink); }
.fb-folio { position: absolute; right: 6cqw; bottom: 5cqw; color: var(--cream); font-size: max(11px, 3.2cqw); letter-spacing: .25em; }
.fb-info { position: absolute; inset: 9cqw 9cqw 9cqw 11cqw; display: flex; flex-direction: column; }
.fb-kicker { margin: 0; font-size: max(11px, 3.4cqw); letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); }
.fb-num { margin: auto 0 0; font-size: 30cqw; line-height: .85; font-weight: 900; }
.fb-name { margin: 4cqw 0 0; font-size: 9cqw; line-height: 1; font-weight: 900; text-transform: uppercase; }
.fb-name span { font-weight: 400; letter-spacing: .3em; font-size: .62em; }
.fb-meta { margin: 5cqw 0 0; font-size: max(12px, 3.6cqw); color: var(--taupe); }
.fb-shop { align-self: flex-start; margin-top: 6cqw; padding: 2.6cqw 5cqw; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .3em; font-size: max(11px, 3.2cqw); }
.fb-shop:hover { background: var(--ink); color: var(--cream); }
.fb-endcover { display: flex; flex-direction: column; align-items: center; gap: 5cqw; color: var(--cream); }
.fb-endcover img { width: 52cqw; height: auto; filter: invert(1); }
.fb-endcover p { margin: 0; letter-spacing: .35em; text-transform: uppercase; font-size: max(11px, 3.4cqw); }
.fb-controls { display: flex; align-items: center; gap: 20px; }
.fb-btn { min-height: 44px; padding: 0 20px; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); text-transform: uppercase; letter-spacing: .25em; font-size: 13px; cursor: pointer; }
.fb-btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.fb-btn:disabled { opacity: .35; cursor: default; }
.fb-status { margin: 0; min-width: 14ch; text-align: center; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.flipbook:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
/* Phones: one page at a time; turned pages swing off to the left */
@media (max-width: 700px) {
  .flipbook { --pw: min(86vw, 420px); }
  .fb-book { width: var(--pw); overflow: hidden; }
  .fb-book[data-state="0"], .fb-book[data-state="end"] { transform: none; }
  .fb-page { left: 0; }
  .fb-controls { width: var(--pw); flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .fb-status { order: -1; flex-basis: 100%; min-width: 0; font-size: 12px; }
  .fb-btn { flex: 1; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .flipbook { --flip: 0.01s; } }

/* ---------- Drop countdown in the top banner ---------- */
.drop-banner { padding: 10px 16px; }
.drop-inner { display: flex; align-items: center; justify-content: center; gap: 10px 28px; flex-wrap: wrap; }
.drop-label { margin: 0; font-size: 13px; }
.drop-label strong { font-weight: 500; }
.drop-timer { display: flex; align-items: flex-start; gap: 8px; }
.drop-unit { display: flex; flex-direction: column; align-items: center; min-width: 2.6ch; }
.drop-num { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.drop-lbl { margin-top: 4px; font-size: 9px; letter-spacing: .3em; color: var(--stone); }
.drop-sep { font-size: 22px; line-height: 1; opacity: .35; font-weight: 900; }
.drop-live { margin: 0; font-size: 13px; }
.drop-live[hidden], .drop-timer[hidden] { display: none; }
/* once live, the banner is the original one-line announcement */
.drop-banner.is-live .drop-label { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .drop-inner { gap: 8px 16px; }
  .drop-label { flex-basis: 100%; font-size: 12px; }
}
