/* Vibe's editorial layer. The PDP component owns its own layout and controls. */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand-paper: #f8f5f0;
  --brand-surface: #fffefa;
  --brand-ink: #252320;
  --brand-muted: #625d58;
  --brand-plum: #493543;
  --brand-line: #d9d2ca;
  --brand-rose: #efdde2;
  --brand-lilac: #e7e0f2;
  --brand-butter: #f7e8b7;
  --brand-sage: #ddeadd;
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --paper: var(--brand-paper);
  --card: var(--brand-surface);
  --line: var(--brand-line);
  --wine: var(--brand-plum);
  --wine-dark: #342631;
  --soft-wine: var(--brand-rose);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-paper);
}
body { background: var(--brand-paper); }

/* One persistent header across styling, collections, profile, and support. */
.site-header.vibe-header {
  --header-ink: var(--brand-ink);
  --header-muted: var(--brand-muted);
  --header-rule: var(--brand-line);
  --header-soft: var(--brand-rose);
  min-height: 72px;
  padding: .7rem max(2rem, env(safe-area-inset-left));
  background: var(--brand-surface);
  font-family: "DM Sans", system-ui, sans-serif;
}
.vibe-header .wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1;
}
.vibe-header .wordmark span { color: var(--brand-plum); }
.vibe-header .site-header__controls { gap: clamp(.5rem, 2vw, 1.45rem); }
.vibe-header .site-nav-link {
  border-radius: 0;
  border-bottom: 1px solid transparent;
  color: var(--brand-muted);
  font-size: .83rem;
  font-weight: 500;
}
.vibe-header .site-nav-link:hover,
.vibe-header .site-nav-link.is-current {
  border-bottom: 1px solid var(--brand-plum);
  color: var(--brand-ink);
}
.vibe-header .new-chat-button {
  border-color: var(--brand-line);
  border-radius: 6px;
  background: var(--brand-surface);
  font-size: .8rem;
  font-weight: 500;
}
.vibe-header .new-chat-button:hover:not(:disabled) { background: var(--brand-sage); }
.vibe-header .profile-menu > summary {
  border-color: var(--brand-line);
  background: var(--brand-rose);
  color: var(--brand-plum);
}
.vibe-header .profile-menu > summary svg { stroke-width: 1.6; transform: rotate(-4deg); }
.vibe-header .profile-menu-panel { border-color: var(--brand-line); background: var(--brand-surface); box-shadow: 0 12px 32px #4935431e; }
.vibe-header :is(button, a, summary):focus-visible { outline-color: var(--brand-plum); }

/* The first visit opens on the approved split editorial composition. */
.vibe-welcome {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow-y: auto;
  background: var(--brand-paper);
}
.welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 580px;
  padding: clamp(48px, 7vh, 90px) 5% 40px 10%;
}
.welcome-eyebrow,
.welcome-art__edition {
  margin: 0 0 24px;
  color: var(--brand-plum);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.welcome-copy h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(68px, 7.1vw, 112px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .92;
}
.welcome-copy h1 em { position: relative; z-index: 0; font-weight: 400; white-space: nowrap; }
.welcome-copy h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.02em;
  right: -.06em;
  bottom: .07em;
  height: .3em;
  border-radius: 3px 13px 3px 9px;
  background: var(--brand-butter);
  transform: rotate(-1.8deg);
}
.welcome-description { max-width: 400px; margin: 28px 0 28px; color: var(--brand-muted); font-size: 16px; line-height: 1.6; }
.welcome-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 50px;
  border: 1px solid var(--brand-plum);
  border-radius: 7px;
  background: var(--brand-plum);
  padding: 13px 19px;
  color: #fffefa;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.welcome-action:hover { background: #342631; transform: translateY(-2px); }
.welcome-action:focus-visible { outline: 3px solid var(--brand-butter); outline-offset: 3px; }
.welcome-action span { font-size: 17px; line-height: 1; }
.welcome-process { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: auto 0 0; padding-top: 42px; color: var(--brand-muted); font-size: 11px; line-height: 1.4; }
.welcome-process span { display: inline-block; width: 19px; height: 1px; background: var(--brand-line); }
.welcome-art { position: relative; min-height: 580px; overflow: hidden; background: var(--brand-lilac); }
.welcome-art::before { content: ""; position: absolute; width: 82%; height: 91%; right: -5%; bottom: -24%; border-radius: 55% 50% 0 0; background: var(--brand-rose); transform: rotate(-18deg); }
.welcome-art::after { content: ""; position: absolute; width: 500px; height: 70px; left: 12%; bottom: -42px; border-radius: 50%; background: #5c475237; filter: blur(27px); }
.welcome-art__edition { position: absolute; z-index: 3; top: 30px; left: 32px; }
.welcome-art__stamp { position: absolute; z-index: 3; top: 50px; right: 7%; display: grid; place-items: center; width: 108px; height: 108px; border: 1.5px solid var(--brand-plum); border-radius: 50%; color: var(--brand-plum); font-family: "Instrument Serif", Georgia, serif; font-size: 23px; font-style: italic; line-height: .9; text-align: center; transform: rotate(11deg); }
.welcome-art__outfit { position: absolute; z-index: 2; top: 55px; left: 50%; width: 305px; height: 480px; filter: drop-shadow(11px 18px 15px #5c45513b); transform: translateX(-50%) rotate(-3deg); }
.welcome-art__shirt { position: absolute; top: 45px; left: 9px; width: 288px; height: 260px; background: #eee7d8; clip-path: polygon(15% 12%, 31% 2%, 42% 0, 50% 11%, 58% 0, 70% 2%, 86% 12%, 100% 44%, 82% 55%, 75% 39%, 75% 100%, 25% 100%, 25% 39%, 18% 55%, 0 44%); box-shadow: inset 0 0 30px #b3a393; }
.welcome-art__shirt::before { content: ""; position: absolute; top: -28px; left: 125px; width: 38px; height: 70px; border-right: 2px solid #b3a393; border-bottom: 2px solid #b3a393; background: #e2d8c7; transform: rotate(45deg); }
.welcome-art__shirt::after { content: ""; position: absolute; top: 74px; left: 144px; width: 2px; height: 180px; background: #c6b8a7; box-shadow: -25px 0 42px #97877c; }
.welcome-art__trousers { position: absolute; z-index: -1; top: 291px; left: 79px; width: 146px; height: 186px; background: #3c3a3b; clip-path: polygon(0 0, 100% 0, 95% 100%, 53% 100%, 50% 18%, 47% 100%, 5% 100%); }
.welcome-art__swatch { position: absolute; z-index: 4; right: 6%; bottom: 34px; background: var(--brand-butter); padding: 11px 16px; color: var(--brand-ink); font-family: "Instrument Serif", Georgia, serif; font-size: 26px; font-style: italic; box-shadow: 2px 5px 0 #baa86d55; transform: rotate(6deg); }
.welcome-art__doodle { position: absolute; z-index: 4; bottom: 75px; left: 5%; width: 105px; height: 35px; border-bottom: 2px solid var(--brand-plum); border-radius: 0 0 50% 50%; transform: rotate(-18deg); }

/* Styling flow: editorial rhythm, with all existing controls and card anatomy. */
.vibe-chat {
  --canvas: var(--brand-paper);
  --surface: var(--brand-surface);
  --user-message-bg: var(--brand-surface);
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink);
  --ink-muted: var(--brand-muted);
  --accent: var(--brand-plum);
  --accent-deep: var(--brand-plum);
  --signal: var(--brand-plum);
  --rule: var(--brand-line);
  --rule-soft: var(--brand-rose);
  --font-premium: "DM Sans", system-ui, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--brand-paper);
}
.vibe-chat .chat-shell { background: var(--brand-paper); }
.vibe-chat .message-row.assistant,
.vibe-chat .chat-intro { border-left-color: var(--brand-plum); }
.vibe-chat .message-row.user { border: 1px solid var(--brand-line); border-radius: 9px; }
.onboarding-progress { max-width: 100%; margin: 0 0 18px; }
.onboarding-progress__caption { color: var(--brand-plum); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.onboarding-progress__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.onboarding-progress__steps li { min-width: 0; border-top: 3px solid var(--brand-line); padding-top: 8px; color: var(--brand-muted); font-size: 11px; line-height: 1.35; }
.onboarding-progress__steps li.is-complete { border-color: var(--brand-sage); color: var(--brand-ink); }
.onboarding-progress__steps li.is-current { border-color: var(--brand-plum); color: var(--brand-plum); font-weight: 700; }
.vibe-chat .onb-card { border-color: var(--brand-line); border-radius: 10px; background: var(--brand-surface); }
.vibe-chat .onb-card__header h2 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(27px, 3vw, 34px); font-weight: 400; letter-spacing: -.025em; }
.vibe-chat .primary-action { border-radius: 7px; background: var(--brand-plum); }
.vibe-chat .choice-button.is-selected { border-color: var(--brand-plum); color: var(--brand-plum); background: var(--brand-rose); box-shadow: inset 0 0 0 1px var(--brand-plum); }
.vibe-chat .get-started { border-color: var(--brand-line); background: var(--brand-surface); box-shadow: none; }
.vibe-chat .chat-composer-dock { border-top-color: var(--brand-line); background: var(--brand-paper); }
.vibe-chat .composer { border-color: var(--brand-line); border-radius: 9px; background: var(--brand-surface); box-shadow: 0 4px 14px #4935430d; }
.vibe-chat .composer-send { background: var(--brand-plum); }
.vibe-chat :is(button, a, summary, input, textarea):focus-visible { outline-color: var(--brand-plum); }

/* Collections and account areas get the same color fields and type hierarchy. */
.collection-page { max-width: 1180px; }
.collection-hero { position: relative; min-height: 200px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; margin: 0 0 30px; border: 1px solid var(--brand-line); border-radius: 10px; background: var(--brand-sage); padding: clamp(26px, 5vw, 52px); }
.collection-hero.looks-hero { background: var(--brand-lilac); }
.collection-hero::after { content: ""; position: absolute; right: clamp(22px, 5vw, 65px); top: 50%; width: 115px; height: 115px; background: url("/icons/hanger-doodle.svg") center / contain no-repeat; opacity: .75; transform: translateY(-50%) rotate(-8deg); pointer-events: none; }
.collection-hero.looks-hero::after { background-image: url("/icons/spark-doodle.svg"); }
.collection-hero h1 { max-width: calc(100% - 140px); margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(45px, 5.5vw, 72px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.history-theme { border-top-color: var(--brand-line); }
.history-theme-heading h2 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.02em; }
.history-entry .history-prompt { color: var(--brand-plum); }
.wardrobe-form { border-color: var(--brand-line); border-radius: 10px; background: var(--brand-surface); box-shadow: none; }
.wardrobe-photo-choice { background: var(--brand-rose); color: var(--brand-plum); }
.wardrobe-card { border-color: var(--brand-line); border-radius: 10px; background: var(--brand-surface); box-shadow: none; }
.wardrobe-card img { background: #eeeae2; }
.wardrobe-card h2 { font-family: "Instrument Serif", Georgia, serif; font-size: 25px; font-weight: 400; }
.profile-page { max-width: 1040px; }
.profile-hero,
.profile-overview,
.profile-photos { border-color: var(--brand-line); border-radius: 10px; background: var(--brand-surface); box-shadow: none; }
.profile-hero { position: relative; overflow: hidden; background: var(--brand-rose); }
.profile-hero::after { content: ""; position: absolute; right: 18px; bottom: 10px; width: 100px; height: 100px; background: url("/icons/spark-doodle.svg") center / contain no-repeat; opacity: .3; pointer-events: none; }
.profile-eyebrow { color: var(--brand-plum); font-weight: 600; }
.profile-hero h1,
.profile-page h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.profile-hero h1 { font-size: clamp(45px, 6vw, 66px); }
.profile-page h2 { font-size: clamp(29px, 3.5vw, 39px); }
.profile-photo-preview { border-color: var(--brand-line); border-radius: 9px; background: var(--brand-sage); }
.profile-analysis-details__grid > div { border-color: var(--brand-line); border-radius: 8px; background: var(--brand-paper); }
.profile-analysis-group--derived .profile-analysis-details__grid > div { border-color: #c9dcc8; background: #eaf3e8; }
.secondary-profile-action { border-color: var(--brand-plum); color: var(--brand-plum); }
.profile-page .profile-photos { display: block; }
.profile-page .profile-overview .profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-page .profile-overview .profile-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-page .profile-photo-editor { margin-top: 22px; }
.profile-page .profile-photo-actions { margin-top: 22px; }
.profile-page .profile-photos .profile-analysis-details { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--brand-line); }
.profile-page .primary-action,
.profile-page .secondary-profile-action { border-radius: 7px; font-family: inherit; font-size: 13px; }
.profile-page .primary-action { background: var(--brand-plum); }
.profile-page .profile-photo-actions .primary-action { flex: 0 0 auto; width: min(480px, 100%); max-width: 100%; padding: 13px 20px; white-space: nowrap; }
.profile-page .profile-analysis-details .profile-section-heading { align-items: center; }
.profile-page .profile-analysis-details__groups { margin-top: 25px; }
.profile-page .profile-analysis-group + .profile-analysis-group { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--brand-line); }
.profile-page .profile-analysis-group h3 { margin: 0; color: var(--brand-plum); font-size: 16px; font-weight: 650; }
.profile-page .profile-analysis-details__grid { margin-top: 14px; }
.legal-card { border-color: var(--brand-line); border-radius: 10px; background: var(--brand-surface); box-shadow: none; }
.legal-card h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.03em; }
footer { color: var(--brand-muted); }

@media (max-width: 760px) {
  .profile-page .profile-overview .profile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-page .profile-overview .profile-form { grid-template-columns: 1fr; }
  .profile-page .profile-photo-actions .primary-action { width: 100%; white-space: normal; }
  .site-header.vibe-header { min-height: 60px; padding: .5rem .75rem; }
  .vibe-header .wordmark { font-size: 1.8rem; }
  .vibe-header .site-header__controls { gap: .15rem; }
  .vibe-header .site-nav-link { font-size: .75rem; }
  .vibe-welcome { display: flex; flex-direction: column; }
  .welcome-copy { min-height: 0; padding: 42px 24px 30px; }
  .welcome-copy h1 { font-size: clamp(56px, 13vw, 80px); }
  .welcome-description { margin: 22px 0; font-size: 14px; }
  .welcome-process { padding-top: 26px; }
  .welcome-art { flex: 0 0 auto; min-height: 340px; }
  .welcome-art__outfit { top: -30px; transform: translateX(-50%) rotate(-3deg) scale(.72); }
  .welcome-art__stamp { top: 28px; width: 75px; height: 75px; font-size: 17px; }
  .welcome-art__swatch { bottom: 23px; font-size: 20px; }
  .collection-hero { min-height: 170px; }
  .collection-hero::after { width: 75px; height: 75px; right: 16px; }
  .collection-hero h1 { max-width: calc(100% - 80px); }
}
@media (max-width: 400px) {
  .vibe-header .wordmark { font-size: 1.5rem; }
  .vibe-header .site-nav-link { padding: .25rem .25rem; font-size: .68rem; }
  .welcome-copy h1 { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-action { transition: none; }
  .welcome-action:hover { transform: none; }
}
