/* ============================================================
   UGLIE — shared styles
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --paper-dim: #F0F0F0;
  --ink: #0A0A0A;
  --ink-soft: #5C5C5C;
  --slate: #0A0A0A;
  --oxblood: #0A0A0A;
  --line: #D4D4D4;
  --line-strong: #8A8A8A;

  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Archivo', sans-serif;

  --gutter: 28px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A0A0A;
    --paper-dim: #141414;
    --ink: #FFFFFF;
    --ink-soft: #A3A3A3;
    --slate: #FFFFFF;
    --oxblood: #FFFFFF;
    --line: #2B2B2B;
    --line-strong: #6B6B6B;
  }
}
:root[data-theme="dark"] {
  --paper: #0A0A0A;
  --paper-dim: #141414;
  --ink: #FFFFFF;
  --ink-soft: #A3A3A3;
  --slate: #FFFFFF;
  --oxblood: #FFFFFF;
  --line: #2B2B2B;
  --line-strong: #6B6B6B;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

::selection { background: var(--ink); color: var(--paper); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.topbar .meta {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.topbar .back {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.topbar .back:hover { color: var(--ink); border-color: var(--ink); }

.topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--body);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.topnav-link:hover,
.topnav-link:focus-visible { color: var(--ink); }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 12px; }
  .topbar-left { flex-wrap: wrap; row-gap: 10px; }
  .topnav { gap: 14px; }
}

/* ---------- coming soon overlay ---------- */

.coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.coming-soon-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.coming-soon-overlay .cs-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 10vw, 120px);
  letter-spacing: -0.01em;
  color: #ECE8DF;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.coming-soon-overlay .cs-close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  appearance: none;
  background: none;
  border: 1px solid rgba(236,232,223,0.6);
  color: #ECE8DF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.coming-soon-overlay .cs-close:hover { background: #ECE8DF; color: #0A0A0A; }

/* ---------- shared section label + looks grid (homepage, signature collection) ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 36px var(--gutter) 8px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.section-head .count {
  font-size: 13px;
  color: var(--ink-soft);
}

.looks {
  padding: 8px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 28px;
}

.look {
  display: flex;
  flex-direction: column;
}

.look .frame {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-dim);
  border: none;
  padding: 0;
}
.look .frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.look .frame:hover img { transform: scale(1.015); }
.look .frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.look .cap {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.look .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.look .more {
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--body);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.look .more:hover { color: var(--slate); border-color: var(--slate); }

@media (min-width: 720px) {
  .looks { grid-template-columns: repeat(12, 1fr); }
  .look { grid-column: span 12; }
  .look.span-7 { grid-column: span 7; }
  .look.span-5 { grid-column: span 5; }
  .look.span-5.push { margin-top: 90px; }
  .look.span-7.push { margin-top: 90px; }
}

/* ---------- collections hub ---------- */

.collections-intro {
  padding: 48px var(--gutter) 8px;
  max-width: 620px;
}
.collections-intro .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 0.88;
  margin: 0;
}
.collections-intro .name {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.collection-grid {
  padding: 32px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1040px;
}
@media (min-width: 560px) {
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 320px)); }
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
}

.collection-card .cc-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.collection-card .cc-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(105%);
  transform: scale(1.15);
  display: block;
}

.collection-card .cc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.38);
  transition: background-color 0.2s ease;
}
.collection-card:hover .cc-overlay { background: rgba(10,10,10,0.5); }

.collection-card .cc-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.04em;
  color: #ECE8DF;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  text-align: center;
}

.collection-card .cc-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ECE8DF;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}

footer.site-footer .fmark {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 0.9;
}

footer.site-footer .fnote {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 360px;
  line-height: 1.5;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 820px);
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox .lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-family: var(--body);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lightbox .lb-close:hover { border-color: #FFFFFF; transform: scale(1.06); }
.lightbox .lb-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.lightbox .lb-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #BFBFBF;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- focus ---------- */

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
