/* ============================================================
   NorthStar — Sportswear E-commerce Prototype
   Global stylesheet (design tokens + shared components)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --ink: #0A0A0A;
  --ink-soft: #171717;
  --text: #171717;
  --text-soft: #404040;
  --muted: #737373;
  --hairline: #E5E5E5;
  --hairline-strong: #D4D4D4;
  --surface: #F5F5F5;
  --paper-warm: #FAFAFA;
  --paper: #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;
  --s-9: 8rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 400ms;

  --z-nav: 50;
  --z-drawer: 90;
  --z-modal: 100;
  --z-toast: 200;

  --container-max: 1440px;
  --gutter: 1.25rem;
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 2.5rem; } }
@media (min-width: 1440px) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Global: HTML `hidden` attribute must beat authored display rules */
[hidden] { display: none !important; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

/* Typography utilities */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { color: var(--text-soft); }

.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s-8) 0; }
@media (max-width: 767px) { .section { padding: var(--s-7) 0; } }

.divider { border: 0; border-top: 1px solid var(--hairline); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--paper); color: var(--ink); }

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  min-height: auto;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn--ghost:hover { color: var(--muted); border-bottom-color: var(--muted); }

.btn--block { width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; pointer-events: none; }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: var(--s-3) 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  transition: border-color var(--dur) var(--ease);
  color: var(--ink);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input::placeholder { color: var(--muted); }

.field .hint { font-size: 0.75rem; color: var(--muted); }

.field .error {
  font-size: 0.75rem;
  color: var(--ink);
  font-weight: 500;
  display: none;
}

.field.has-error input, .field.has-error select { border-bottom-color: var(--ink); }
.field.has-error .error { display: inline-flex; align-items: center; gap: var(--s-1); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  justify-self: start;
}

.brand img {
  display: block;
  height: 58px;
  width: auto;
}

.footer-brand .brand img { height: 56px; }

@media (max-width: 1023px) {
  .brand img { height: 36px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  justify-self: center;
}

.nav__primary {
  display: contents;
}

.nav__utility { display: none; }

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: var(--s-2) 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.site-utility {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  justify-self: end;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: color var(--dur) var(--ease);
  position: relative;
}

.icon-btn:hover { color: var(--muted); }
.icon-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
}

.cart-count[hidden] { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.nav-backdrop { display: none; }

@media (max-width: 1023px) {
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .menu-toggle { display: inline-flex; justify-self: start; }

  .icon-btn--account, .icon-btn--cart { display: none; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: min(86vw, 340px);
    height: calc(100dvh - 72px);
    justify-self: stretch;
    align-self: stretch;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0 var(--s-4);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease);
    border-top: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    z-index: var(--z-drawer);
    box-shadow: 24px 0 60px -24px rgba(10, 10, 10, 0.18);
  }
  .nav[data-open="true"] { transform: translateX(0); }

  .nav__primary {
    display: flex;
    flex-direction: column;
  }

  .nav__utility {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: var(--s-3);
    border-top: 1px solid var(--hairline);
  }

  .nav a {
    padding: var(--s-3) var(--s-5);
    border: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .nav a:hover, .nav a:focus-visible { background: var(--surface); border-color: transparent; }
  .nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: transparent;
    box-shadow: inset 2px 0 0 var(--ink);
  }

  .nav__util {
    display: flex !important;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5) !important;
    text-transform: uppercase;
  }
  .nav__util svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
  }
  .nav__util span:not(.cart-count) {
    flex: 1;
  }
  .nav__util .cart-count {
    position: static;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    line-height: 22px;
    font-size: 0.6875rem;
    border-radius: 999px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease);
    z-index: calc(var(--z-nav) - 1);
  }
  .nav-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  .brand { justify-self: center; }
  .site-utility { display: none; }
  body.nav-open { overflow: hidden; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-5);
  }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter { max-width: 100%; }
}

.footer-brand__tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: var(--s-3) 0 var(--s-4);
  color: var(--text);
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }

.footer-col a { font-size: 0.9375rem; color: var(--text); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--muted); }

.newsletter { display: flex; border-bottom: 1px solid var(--ink); max-width: 22rem; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: var(--s-3) 0; font-size: 0.9375rem; }
.newsletter input:focus { outline: none; }
.newsletter button {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 var(--s-3);
  cursor: pointer;
}

.footer-fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Hero */
.hero { padding: var(--s-8) 0 var(--s-7); border-bottom: 1px solid var(--hairline); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 1023px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); } }

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: var(--s-4) 0 var(--s-5);
}

.hero__headline em { font-style: italic; font-weight: 400; color: var(--muted); }

.hero__body { font-size: 1.0625rem; line-height: 1.65; color: var(--text-soft); max-width: 32rem; margin-bottom: var(--s-5); }

.hero__cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero__image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }

/* Product card */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5) var(--s-4);
}

@media (max-width: 1023px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); } }

.card { display: flex; flex-direction: column; background: var(--paper); color: inherit; cursor: pointer; }

.card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  position: relative;
}

.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }

.card:hover .card__media img { transform: scale(1.04); }

.card__tag {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.card__body { padding: var(--s-3) 0 0; display: flex; flex-direction: column; gap: 2px; }

.card__cat {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title { font-family: var(--font-sans); font-weight: 500; font-size: 0.9375rem; color: var(--ink); margin-top: 2px; }
.card__price { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--text); margin-top: 2px; }
.card__price del { color: var(--muted); margin-right: var(--s-2); }

/* Section heading */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.section-head__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-head__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-5); }
@media (max-width: 767px) { .blog-grid { grid-template-columns: 1fr; } }

.article { display: flex; flex-direction: column; }

.article__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); margin-bottom: var(--s-4); }
.article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.article:hover .article__media img { transform: scale(1.04); }

.article__meta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.article__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.article__excerpt { color: var(--text-soft); font-size: 0.9375rem; }

/* Loyalty */
.loyalty { background: var(--ink); color: var(--paper); padding: var(--s-8) 0; }

.loyalty__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 1023px) { .loyalty__grid { grid-template-columns: 1fr; gap: var(--s-5); } }

.loyalty .eyebrow { color: rgba(255,255,255,0.55); }
.loyalty h2 { color: var(--paper); margin: var(--s-3) 0 var(--s-4); }
.loyalty p { color: rgba(255,255,255,0.75); max-width: 32rem; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
}

.tier { background: var(--ink); padding: var(--s-4); }
.tier__name { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: var(--s-1); color: var(--paper); }
.tier__min { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: var(--s-3); }
.tier__perks { display: flex; flex-direction: column; gap: var(--s-2); font-size: 0.8125rem; color: rgba(255,255,255,0.85); }
.tier__perks li::before { content: '— '; color: rgba(255,255,255,0.45); }

.loyalty .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.loyalty .btn--primary:hover { background: transparent; color: var(--paper); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.breadcrumb .sep { color: var(--hairline-strong); }

/* Shop */
.shop-head { padding: var(--s-5) 0 var(--s-6); border-bottom: 1px solid var(--hairline); }
.shop-head h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); margin-bottom: var(--s-3); }
.shop-head p { max-width: 38rem; }

.category-tabs {
  display: flex;
  gap: var(--s-5);
  margin: var(--s-5) 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tabs button {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s-2) 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
}

.category-tabs button:hover { color: var(--ink); }
.category-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-7);
  padding-top: var(--s-6);
  padding-bottom: var(--s-7);
}

@media (max-width: 1023px) { .shop-layout { grid-template-columns: 1fr; gap: var(--s-5); } }

.filters { display: flex; flex-direction: column; gap: var(--s-5); }

.filter-group h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.filter-group ul { display: flex; flex-direction: column; gap: var(--s-2); }

.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.filter-group label:hover { color: var(--ink); }
.filter-group label input { accent-color: var(--ink); }
.filter-group label .count { margin-left: auto; color: var(--muted); font-size: 0.8125rem; }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline);
  gap: var(--s-3);
  flex-wrap: wrap;
}

.results-bar .count { color: var(--muted); font-size: 0.875rem; }

.sort-select {
  background: transparent;
  border: 0;
  padding: var(--s-2) 0;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
  min-width: 180px;
}

.sort-select:focus { outline: none; border-bottom-color: var(--ink); }

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7);
  padding: var(--s-5) 0 var(--s-8);
}

@media (max-width: 1023px) { .product-detail { grid-template-columns: 1fr; gap: var(--s-5); } }

.gallery {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-3);
  align-items: start;
}

@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }

.gallery__thumbs { display: flex; flex-direction: column; gap: var(--s-2); }
@media (max-width: 767px) { .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; } }

.gallery__thumb {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex: 0 0 88px;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-selected="true"], .gallery__thumb:hover { opacity: 1; border-color: var(--ink); }

.gallery__main {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.pd__meta { margin-bottom: var(--s-4); }

.pd__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: var(--s-2) 0 var(--s-3);
  letter-spacing: -0.02em;
}

.pd__price {
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
  font-size: 1.25rem;
  margin-bottom: var(--s-5);
}

.pd__price del { color: var(--muted); font-size: 1rem; }
.pd__price .sale { color: var(--ink); font-weight: 500; }

.option-block { margin-bottom: var(--s-5); }

.option-block__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s-3);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.option-block__head .muted { color: var(--muted); }

.swatches { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.swatch {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur) var(--ease);
}

.swatch[aria-selected="true"] { border-color: var(--ink); }
.swatch[aria-selected="true"]::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--ink);
}

.swatch[data-color="black"] { background: #0A0A0A; }
.swatch[data-color="white"] { background: #FFFFFF; }
.swatch[data-color="gray"] { background: #737373; }
.swatch[data-color="navy"] { background: #111827; }
.swatch[data-color="red"] { background: #B91C1C; }
.swatch[data-color="gold"] { background: #F2C46D; }
.swatch[data-color="pink"] { background: #E8B9B5; }

.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
@media (max-width: 767px) { .sizes { grid-template-columns: repeat(4, 1fr); } }

.size {
  min-height: 44px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.size:hover { border-color: var(--ink); }

.size[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.size[disabled] {
  color: var(--muted);
  text-decoration: line-through;
  cursor: not-allowed;
  background: var(--surface);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  height: 48px;
}

.qty button {
  width: 44px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--dur) var(--ease);
  cursor: pointer;
}

.qty button:hover { background: var(--surface); }

.qty input {
  width: 48px;
  height: 100%;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
}

.qty input:focus { outline: none; }

.cta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  margin: var(--s-5) 0;
}

@media (max-width: 767px) { .cta-row { grid-template-columns: 1fr; } }

.pd__trust {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.pd__trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.pd__trust svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }

.accordion summary {
  list-style: none;
  padding: var(--s-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.accordion details[open] summary::after { content: '−'; }

.accordion details > div {
  padding: 0 0 var(--s-4);
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-7);
  padding: var(--s-5) 0 var(--s-8);
  align-items: start;
}

@media (max-width: 1023px) { .cart-layout { grid-template-columns: 1fr; gap: var(--s-5); } }

.cart-items { border-top: 1px solid var(--hairline); }

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

@media (max-width: 767px) { .cart-row { grid-template-columns: 72px 1fr; } }

.cart-row__media { aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--hairline); overflow: hidden; }
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-row__info { display: flex; flex-direction: column; gap: var(--s-2); }
.cart-row__title { font-weight: 500; color: var(--ink); font-size: 1rem; }

.cart-row__meta {
  display: flex;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-row__controls { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-2); }

.cart-row .remove {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
  cursor: pointer;
}

.cart-row .remove:hover { color: var(--ink); }

.cart-row__price { text-align: right; font-weight: 500; font-size: 1rem; }

@media (max-width: 767px) {
  .cart-row__price { grid-column: 2; text-align: left; margin-top: var(--s-2); }
}

.cart-empty { text-align: center; padding: var(--s-8) 0; }
.cart-empty h2 { margin-bottom: var(--s-3); }
.cart-empty p { margin-bottom: var(--s-5); color: var(--muted); }

.summary {
  background: var(--surface);
  padding: var(--s-5);
  position: sticky;
  top: 96px;
}

.summary h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; margin-bottom: var(--s-4); }

.summary__row { display: flex; justify-content: space-between; padding: var(--s-2) 0; font-size: 0.9375rem; }

.summary__row.total {
  border-top: 1px solid var(--hairline-strong);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
  font-weight: 500;
  font-size: 1.125rem;
}

.summary__promo { display: flex; border-bottom: 1px solid var(--ink); margin: var(--s-4) 0; }
.summary__promo input { flex: 1; background: transparent; border: 0; padding: var(--s-2) 0; font-size: 0.875rem; }
.summary__promo input:focus { outline: none; }
.summary__promo button {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.promo-msg {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: var(--s-3);
  min-height: 1rem;
}

.promo-msg.success { color: var(--ink); font-weight: 500; }

.steps {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps .num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--muted);
  font-size: 0.75rem;
}

.steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.steps li[aria-current="step"] .num { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.checkout-form { display: grid; gap: var(--s-4); padding-top: var(--s-5); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 767px) { .row-2 { grid-template-columns: 1fr; } }

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

@media (max-width: 767px) { .payment-methods { grid-template-columns: 1fr; } }

.payment-methods label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--hairline);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
  position: relative;
}

.payment-methods input { position: absolute; opacity: 0; pointer-events: none; }

.payment-methods label:has(input:checked),
.payment-methods label[data-selected="true"] { border-color: var(--ink); }

/* Auth */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}

@media (max-width: 1023px) { .auth { grid-template-columns: 1fr; min-height: auto; } }

.auth__media { background: var(--surface); overflow: hidden; position: relative; }
@media (max-width: 1023px) { .auth__media { aspect-ratio: 16 / 10; } }
.auth__media img { width: 100%; height: 100%; object-fit: cover; }

.auth__media-caption {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  max-width: 30rem;
}

.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8) var(--gutter);
}

.auth__form { width: 100%; max-width: 26rem; }
.auth__form h1 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: var(--s-2); }
.auth__form > p { color: var(--muted); margin-bottom: var(--s-6); }

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth__divider::before, .auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-5); }
@media (max-width: 480px) { .social-row { grid-template-columns: 1fr; } }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-4);
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--ink); background: var(--surface); }

.auth__foot { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: var(--s-5); }
.auth__foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.forgot { font-size: 0.8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.forgot:hover { color: var(--ink); }

/* Toast */
.toast {
  position: fixed;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-5);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
  z-index: var(--z-toast);
}

.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

/* A11y */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }

/* ============================================================
   Account page
   ============================================================ */
.account-head {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--hairline);
}

.account-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.account-head h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--s-2);
}

.account-head .meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  padding: var(--s-6) 0 var(--s-8);
  align-items: start;
}

@media (max-width: 1023px) { .account-layout { grid-template-columns: 1fr; gap: var(--s-5); } }

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hairline);
  position: sticky;
  top: 96px;
}

@media (max-width: 1023px) {
  .account-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-top: 0;
    gap: var(--s-4);
    border-bottom: 1px solid var(--hairline);
  }
}

.account-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}

.account-nav a:hover { color: var(--ink); }

.account-nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 1023px) {
  .account-nav a { border-bottom: 0; padding: var(--s-3) 0; }
  .account-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
}

.account-nav a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.account-nav a[aria-current="page"]::after,
.account-nav a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1023px) {
  .account-nav a::after { display: none; }
}

.account-main { display: flex; flex-direction: column; gap: var(--s-7); }

/* Loyalty card */
.loyalty-card {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: end;
}

@media (max-width: 767px) { .loyalty-card { grid-template-columns: 1fr; } }

.loyalty-card .eyebrow { color: rgba(255,255,255,0.55); }

.loyalty-card__points {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin: var(--s-3) 0 var(--s-2);
}

.loyalty-card__tier {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.progress {
  background: rgba(255,255,255,0.15);
  height: 2px;
  width: 100%;
  overflow: hidden;
  margin-top: var(--s-3);
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--paper);
  transition: width var(--dur-slow) var(--ease);
}

.loyalty-card__next {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: var(--s-3);
}

/* Section stack */
.stack-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline);
}

.stack-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.015em;
}

/* Orders */
.order {
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-5) 0;
}

.order:first-child { padding-top: 0; }

.order__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.order__date { font-size: 0.875rem; color: var(--muted); margin-left: var(--s-3); }

.order__status {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.order__status[data-status="processing"],
.order__status[data-status="shipped"] {
  background: var(--ink);
  color: var(--paper);
}

.order__items { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }

.order__item {
  display: grid;
  grid-template-columns: 2fr 1.25fr auto;
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--hairline);
}

.order__item:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 767px) {
  .order__item { grid-template-columns: 1fr auto; }
  .order__item-meta { grid-column: 1 / -1; font-size: 0.75rem; }
}

.order__item-name { font-weight: 500; color: var(--ink); font-size: 0.9375rem; }
.order__item-meta { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.order__item-price { font-weight: 500; font-size: 0.9375rem; }

.order__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.order__total { font-size: 1rem; color: var(--muted); }
.order__total strong { color: var(--ink); margin-left: var(--s-2); font-weight: 500; }

/* Profile card */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  padding-top: var(--s-4);
}

@media (max-width: 767px) { .profile { grid-template-columns: 1fr; } }

.profile__item { display: flex; flex-direction: column; gap: var(--s-1); }

.profile__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile__value { font-size: 1rem; color: var(--ink); }

/* ============================================================
   Blog list
   ============================================================ */
.journal-head {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--hairline);
}

.journal-head h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  max-width: 16ch;
  margin-bottom: var(--s-3);
}

.journal-head p { max-width: 40rem; }

.journal-layout {
  padding: var(--s-7) 0 var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.article--feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 1023px) {
  .article--feature { grid-template-columns: 1fr; gap: var(--s-4); }
}

.article--feature .article__media { aspect-ratio: 4 / 3; margin-bottom: 0; }

.article__feature-body { display: flex; flex-direction: column; gap: var(--s-3); }

.article__title--large {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ============================================================
   Blog post
   ============================================================ */
.article-hero {
  padding: var(--s-6) 0 var(--s-5);
  border-bottom: 1px solid var(--hairline);
}

.article-hero__meta {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.article-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  max-width: 22ch;
  margin: 0 auto var(--s-4);
  text-align: center;
}

.article-hero .subtitle {
  max-width: 44ch;
  margin: 0 auto var(--s-5);
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.article-hero__author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  flex-wrap: wrap;
}

.article-hero__author .author-name { font-weight: 500; color: var(--ink); }
.article-hero__author .author-role { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

.article-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin: var(--s-6) 0 0;
}

.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 42rem;
  margin: var(--s-7) auto 0;
  padding: 0 var(--gutter);
}

.article-body p {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.article-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-weight: 500;
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  margin: 0.1em 0.15em 0 0;
  color: var(--ink);
}

.article-foot {
  max-width: 42rem;
  margin: var(--s-7) auto 0;
  padding: var(--s-5) var(--gutter) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-foot .share-label { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.article-foot .share-links { display: flex; gap: var(--s-4); }

.article-foot .share-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.article-foot .share-links a:hover { color: var(--ink); }

/* Loyalty strip (used on register page too) */
.quote-strip {
  background: var(--surface);
  padding: var(--s-8) var(--gutter);
  text-align: center;
}

.quote-strip blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 32rem;
  margin: 0 auto;
  color: var(--ink);
}

.quote-strip cite {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
}

/* ============================================================
   Size guide dialog
   ============================================================ */
.size-guide {
  width: min(960px, calc(100vw - 2rem));
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  margin: auto;
  inset: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.18);
  overflow: hidden;
}

.size-guide::backdrop {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.size-guide__panel {
  position: relative;
  max-height: calc(100vh - 2rem);
  padding: var(--s-3);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .size-guide__panel { padding: var(--s-4); }
}

.size-guide__head {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 1;
}

.size-guide__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.size-guide__close:hover { border-color: var(--ink); background: var(--surface); }
.size-guide__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.size-guide__figure {
  margin: 0;
  display: block;
}

.size-guide__figure img {
  width: 100%;
  height: auto;
  display: block;
}
