/* Susan's Couture — shared design tokens */

:root {
  /* Palette — warm heritage */
  --bone: #f4e7cf;
  --cream: #ecd7b1;
  --paper: #fbf3e6;
  --ink: #2a1f17;          /* deep brown-black */
  --ink-soft: #4a3a2c;
  --mute: #8a7864;
  --hairline: #d9c098;
  --terracotta: #c8542d;   /* primary accent — brighter */
  --terracotta-deep: #9c3e1e;
  --ochre: #e09a1c;        /* vivid gold-ochre */
  --indigo: #1f3d7a;       /* deeper, richer indigo */
  --moss: #5a6b3f;
  --emerald: #0f6b4f;      /* kente green accent */

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

.sc-root {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sc-root h1, .sc-root h2, .sc-root h3, .sc-root .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}

.sc-root .eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.sc-root .body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  text-decoration: none;
}
.sc-btn:hover { background: var(--terracotta); border-color: var(--terracotta); }

.sc-btn.ghost {
  background: transparent;
  color: var(--ink);
}
.sc-btn.ghost:hover { background: var(--ink); color: var(--paper); }

.sc-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.sc-link:hover { border-color: var(--terracotta); color: var(--terracotta); }

.hairline { background: var(--hairline); height: 1px; border: 0; }

/* Image placeholders — striped, monospace explainer */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(42,31,23,.05) 0 12px,
      rgba(42,31,23,.0) 12px 24px),
    var(--cream);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  overflow: hidden;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(245,239,230,.06) 0 12px,
      rgba(245,239,230,.0) 12px 24px),
    var(--ink);
  color: var(--bone);
  border-color: rgba(245,239,230,.15);
}
.ph.terracotta {
  background:
    repeating-linear-gradient(135deg,
      rgba(42,31,23,.08) 0 12px,
      rgba(42,31,23,.0) 12px 24px),
    var(--terracotta);
  color: var(--bone);
  border-color: rgba(42,31,23,.2);
}
.ph .ph-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(245,239,230,.85);
  color: var(--ink);
  border-radius: 2px;
}
.ph.dark .ph-label, .ph.terracotta .ph-label {
  background: rgba(42,31,23,.7);
  color: var(--bone);
}

/* When a real photo is bound, suppress the placeholder treatment */
.ph.has-photo {
  background: var(--ink);
  border-color: rgba(42,31,23,.12);
}
.ph.has-photo .ph-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .8s ease;
}
.ph.has-photo:hover .ph-bg { transform: scale(1.025); }
.ph.has-photo .ph-label {
  background: rgba(42,31,23,.78);
  color: var(--bone);
  font-size: 9.5px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.ph.has-photo:hover .ph-label { opacity: 1; }

/* Position variants for awkward crops */
.ph.has-photo[data-pos="top"] .ph-bg { background-position: center 18%; }
.ph.has-photo[data-pos="face"] .ph-bg { background-position: center 22%; }
.ph.has-photo[data-pos="bottom"] .ph-bg { background-position: center bottom; }

.ig-tile { display: block; cursor: pointer; }
.ig-tile:hover > div:first-child { transform: scale(1.05); }
.ig-tile:hover .ig-tile-shade { opacity: 1; }
.ig-tile:hover .ig-tile-cap { opacity: 1; transform: translateY(0); }

/* ────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE OVERRIDES
   The site is built with inline styles for fast iteration; these
   media queries reach into them via attribute selectors + !important.
   Two breakpoints: 900px (tablet/large phone) and 600px (phone).
   ──────────────────────────────────────────────────────────────── */

/* TABLET + PHONE (≤ 900px) — collapse multi-column layouts */
@media (max-width: 900px) {
  /* Universal: stack any 2-col or 3-col grid */
  .sc-root [style*="grid-template-columns: 1fr 1fr"],
  .sc-root [style*="grid-template-columns:1fr 1fr"],
  .sc-root [style*="grid-template-columns: 1.2fr 1fr 0.8fr"],
  .sc-root [style*="grid-template-columns: 0.9fr 1.1fr"],
  .sc-root [style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Section padding squeeze */
  .sc-root section[style*="padding"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Hero / large headlines */
  .sc-root h1[style*="font-size: 120"],
  .sc-root h1[style*="font-size:120"] { font-size: 56px !important; line-height: 1 !important; }
  .sc-root h1[style*="font-size: 96"],
  .sc-root h1[style*="font-size:96"] { font-size: 52px !important; line-height: 1 !important; }
  .sc-root h2[style*="font-size: 64"],
  .sc-root h2[style*="font-size:64"] { font-size: 38px !important; }
  .sc-root h2[style*="font-size: 56"],
  .sc-root h2[style*="font-size:56"] { font-size: 34px !important; }
  .sc-root h2[style*="font-size: 48"],
  .sc-root h2[style*="font-size:48"] { font-size: 32px !important; }
  .sc-root [style*="font-size: 44"][style*="italic"] { font-size: 28px !important; line-height: 1.2 !important; }
  .sc-root [style*="font-size: 36"][style*="italic"] { font-size: 26px !important; }

  /* Min-height heroes — collapse */
  .sc-root section[style*="min-height: 720"] { min-height: 0 !important; padding-top: 56px !important; padding-bottom: 80px !important; }

  /* Editorial hero overlapping caption sticker — re-pin inside flow */
  .sc-root [style*="bottom: -32"][style*="left: -48"],
  .sc-root [style*="bottom: -40"][style*="left: -60"] {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: -32px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100% - 32px) !important;
  }

  /* Lookbook teaser flex header — wrap */
  .sc-root [style*="justify-content: space-between"][style*="align-items: flex-end"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* Footer: 4-col → 2-col */
  footer > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding-bottom: 40px !important;
  }
  footer { padding: 56px 24px 28px !important; }
  footer > div:last-child {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left !important;
  }

  /* IG strip: 12-col mosaic → 2-col uniform */
  .sc-root [style*="grid-template-columns: repeat(12"] {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 8px !important;
  }
  .sc-root [style*="grid-template-columns: repeat(12"] > .ig-tile {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 !important;
    height: auto !important;
  }
  .sc-root [style*="grid-template-columns: repeat(12"] > .ig-tile:first-child {
    grid-column: 1 / -1 !important;
    aspect-ratio: 4 / 3 !important;
  }

  /* IG watermark — too big on mobile, just hide it */
  .sc-root [aria-hidden="true"][style*="font-size: 120"][style*="italic"][style*="cream"],
  .sc-root [aria-hidden="true"][style*="font-size: 180"],
  .sc-root [aria-hidden="true"][style*="font-size: 200"] { display: none !important; }

  /* Marquee band */
  .sc-root [style*="animation"][style*="sc-marquee"] { font-size: 20px !important; gap: 28px !important; }

  /* Visit page hero stack helpers */
  .sc-root section[style*="padding: 100px 48px 60px"] { padding: 64px 24px 32px !important; }
  .sc-root section[style*="padding: 0 48px 100px"] { padding: 0 24px 64px !important; }
  .sc-root section[style*="padding: 100px 48px"] { padding: 64px 24px !important; }
  .sc-root section[style*="padding: 60px 48px 140px"] { padding: 48px 24px 80px !important; }
  .sc-root section[style*="padding: 80px 48px 120px"] { padding: 48px 24px 64px !important; }
  .sc-root section[style*="padding: 120px 48px"] { padding: 64px 24px !important; }

  /* Visit step grid — keep two columns but tighten */
  .v-step { grid-template-columns: 56px 1fr !important; padding: 20px 0 !important; }
  .v-step .n { font-size: 22px !important; }
  .v-step h3 { font-size: 22px !important; }
  .v-card { padding: 20px !important; }
  .v-card .big { font-size: 22px !important; }
}

/* PHONE (≤ 600px) — squeeze further */
@media (max-width: 600px) {
  /* Nav — phone number wraps awkwardly; trim padding & shrink number */
  .sc-root nav {
    padding: 16px 20px !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
  }
  .sc-root nav > div:nth-child(2) { gap: 20px !important; order: 3; flex-basis: 100%; justify-content: flex-start; }
  .sc-root nav > div:nth-child(3) { font-size: 11px !important; }

  /* Hero heads smaller still */
  .sc-root h1[style*="font-size: 120"] { font-size: 44px !important; }
  .sc-root h1[style*="font-size: 96"] { font-size: 42px !important; }
  .sc-root h2[style*="font-size: 64"] { font-size: 32px !important; }
  .sc-root h2[style*="font-size: 56"] { font-size: 28px !important; }
  .sc-root [style*="font-size: 44"][style*="italic"] { font-size: 24px !important; }

  /* Hero portrait — let it size naturally rather than fixed 640 */
  .sc-root [style*="height: 640"] { height: auto !important; aspect-ratio: 3/4 !important; }

  /* Body text */
  .sc-root .body { font-size: 15px !important; max-width: none !important; }

  /* Visit cards: 2 columns of cards → stack */
  .sc-root section[style*="padding: 0 48px 100px"] [style*="grid-template-columns: 1fr 1fr"][style*="gap: 16"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Hours table — keep 2-col but smaller */
  .v-card [style*="grid-template-columns: 1fr 1fr"][style*="serif"] {
    font-size: 16px !important;
  }

  /* Footer — single column on tiny screens */
  footer > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* IG watermark — even smaller */
  .sc-root [aria-hidden="true"][style*="font-size: 120"][style*="italic"][style*="cream"],
  .sc-root [aria-hidden="true"][style*="font-size: 180"],
  .sc-root [aria-hidden="true"][style*="font-size: 200"] { display: none !important; }

  /* Marquee */
  .sc-root [style*="animation"][style*="sc-marquee"] { font-size: 17px !important; gap: 24px !important; }

  /* Buttons — shrink */
  .sc-btn { padding: 12px 18px; font-size: 12px; }
}
