/* Blu's Wardrobe — brand stylesheet
   Palette and type lifted from the brand SVG.
   Contrast note: brand rose #A86571 on cream is 4.08:1, which fails WCAG AA for
   body text. It is kept for fills and for text at 24px+ only. --rose-deep
   (#8E4F5B, 5.70:1) is the interactive rose used for links and buttons. */

:root{
  --cream:#FDF6E4;
  --paper:#F7F0DD;
  --ink:#383733;
  --ink-soft:#55534D;
  --rose:#A86571;
  --rose-deep:#8E4F5B;
  --mint:#BFDBD5;
  --sage:#BFC6BB;
  --blush:#C38D94;
  --line:rgba(56,55,51,.2);
  --line-strong:rgba(56,55,51,.42);

  /* Fields and Sofia Pro come from the Adobe Fonts web project. Until the kit
     ID is set in tools/build.py the Google stand-ins behind them do the work,
     so the stack is correct either way and nothing has to change here. */
  --display:"fields","Newsreader",Georgia,"Times New Roman",serif;
  --body:"sofia-pro","Jost",Futura,"Avenir Next","Century Gothic",system-ui,sans-serif;
  --w-body:300;      /* Sofia Pro Light. 200 is too thin to read at 16px. */
  --w-air:200;       /* Sofia Pro ExtraLight, for 20px and up only. */
  --w-head:500;      /* Fields Medium, as the logo is drawn. */

  --gutter:clamp(20px,4vw,48px);
  --band:clamp(52px,6vw,88px);
  --wrap:1240px;

  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--body);font-size:16px;line-height:1.65;font-weight:var(--w-body);
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--rose-deep);outline-offset:3px;border-radius:2px}
h1,h2,h3,h4{font-family:var(--display);font-weight:var(--w-head);margin:0;letter-spacing:-.012em;text-wrap:balance;line-height:1.1}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
table{border-collapse:collapse}
.tnum{font-variant-numeric:tabular-nums}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.band{padding-block:var(--band)}
.band--mint{background:var(--mint)}
.band--sage{background:var(--sage)}
.band--blush{background:var(--blush)}
.band--paper{background:var(--paper)}
.band--ink{background:var(--ink);color:var(--cream)}
.stack{display:flex;flex-direction:column}
.row{display:flex;flex-wrap:wrap}
.measure{max-width:52ch}
.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;margin-bottom:18px}
.muted{color:var(--ink-soft)}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--cream);padding:12px 18px;z-index:200}
.skip:focus{left:8px;top:8px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- type scale ---------- */
.t-hero{font-size:clamp(38px,5.2vw,68px);line-height:1.04;letter-spacing:-.018em}
.eyebrow{font-weight:var(--w-body)}
.t-page{font-size:clamp(34px,4.4vw,54px);line-height:1.06;letter-spacing:-.016em}
.t-sec{font-size:clamp(28px,3.4vw,42px);line-height:1.1}
.t-sub{font-size:clamp(22px,2.6vw,30px);line-height:1.18}
.t-card{font-size:21px;line-height:1.25}
.lede{font-size:20px;line-height:1.55;font-weight:var(--w-air);color:var(--ink-soft)}

/* ---------- announcement + header ---------- */
.announce{background:var(--ink);color:var(--cream);font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.announce ul{display:flex;flex-wrap:wrap;gap:6px 28px;justify-content:center;padding:11px var(--gutter)}
.announce li{display:flex;align-items:center;gap:8px}
.announce img{width:13px;height:13px}

.masthead{border-bottom:1px solid rgba(56,55,51,.16);position:sticky;top:0;z-index:60;background:var(--cream)}
.masthead__in{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:var(--wrap);margin-inline:auto;padding:16px var(--gutter)}
.logo img{width:168px;height:44px}
.nav{display:flex;gap:30px;font-size:15px}
.nav a[aria-current="page"]{border-bottom:1.5px solid var(--ink)}
.util{display:flex;align-items:center;gap:22px;font-size:15px}
.util a{display:flex;align-items:center;gap:8px}
.burger{display:none;background:none;border:0;padding:10px;margin:-10px;cursor:pointer;color:inherit}
.drawer{display:none}

@media (max-width:900px){
  .masthead__in{padding:10px var(--gutter)}
  .burger{display:flex}
  .nav,.util .util__links{display:none}
  .logo img{width:150px;height:39px}
  .drawer{display:block;position:fixed;inset:0;background:var(--cream);z-index:80;padding:20px var(--gutter);
    transform:translateY(-100%);visibility:hidden;transition:transform .28s ease,visibility .28s}
  .drawer[data-open="true"]{transform:none;visibility:visible}
  .drawer__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}
  .drawer nav{display:flex;flex-direction:column;gap:4px}
  .drawer nav a{font-family:var(--display);font-size:30px;padding:12px 0;border-bottom:1px solid var(--line)}
}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:inherit;font-size:15px;letter-spacing:.04em;padding:16px 32px;min-height:48px;
  border:1.5px solid var(--ink);background:var(--ink);color:var(--cream);cursor:pointer;
  transition:background .18s ease,color .18s ease;text-align:center}
.btn:hover{background:var(--rose-deep);border-color:var(--rose-deep);text-decoration:none}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--cream)}
.btn--wide{width:100%}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.link-u{border-bottom:1px solid currentColor}
.link-u:hover{text-decoration:none;border-bottom-color:var(--rose-deep);color:var(--rose-deep)}

/* ---------- photo frames ----------
   .photo holds a brand-tinted block. While an illustration stands in for the
   photograph it gets .photo--illo (contained). Drop a real photo in and swap
   that class for .photo--real (object-fit: cover). */
.photo{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--mint)}
.photo--mint{background:var(--mint)}
.photo--sage{background:var(--sage)}
.photo--blush{background:var(--blush)}
.photo--rose{background:var(--rose-deep)}
.photo--4x5{aspect-ratio:4/5}
.photo--1x1{aspect-ratio:1/1}
.photo--illo img{width:62%;height:auto;object-fit:contain}
.photo--real picture{display:block;width:100%;height:100%}
.photo--real img{width:100%;height:100%;object-fit:cover}
.photo--await{flex-direction:column;text-align:center;padding:28px;color:var(--ink)}
.photo--await p{display:flex;flex-direction:column;gap:8px;max-width:32ch;margin:0}
.photo--await strong{font-family:var(--display);font-weight:var(--w-head);font-size:19px}
.photo--await span{font-size:14px;color:#4A4842}
.photo__tag{position:absolute;top:16px;left:16px;background:var(--ink);color:var(--cream);
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:6px 11px}
.photo__note{position:absolute;bottom:14px;right:14px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}

/* ---------- product cards ---------- */
.grid{display:grid;gap:34px 30px}
.grid--products{grid-template-columns:repeat(auto-fit,minmax(248px,1fr))}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.card .photo{margin-bottom:16px}
.card h3{margin-bottom:5px}
.card__sub{font-size:14px;color:var(--ink-soft);margin-bottom:9px}
.price{font-size:16px}
.price s{color:var(--ink-soft);margin-left:7px}
.swatches{display:flex;gap:7px;margin-top:11px}
.swatches span{width:17px;height:17px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line-strong)}

/* ---------- hero: full-bleed photograph, copy over the dark left side ----------
   The scrim is tuned, not guessed: over this photograph the worst pixel behind
   the text sits at L 0.067, so cream type on it measures 8.3:1. */
.herofull{position:relative;display:flex;align-items:center;overflow:hidden;
  min-height:clamp(440px,54vh,600px);background:var(--ink);color:var(--cream)}
.herofull__img{position:absolute;inset:0;z-index:0;display:block}
.herofull__img img{width:100%;height:100%;object-fit:cover;object-position:68% 50%}
.herofull__scrim{position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(25,23,22,.74) 0%,rgba(25,23,22,.62) 40%,
    rgba(25,23,22,.22) 70%,rgba(25,23,22,0) 90%)}
.herofull__copy{position:relative;z-index:2;width:100%;padding-block:clamp(44px,6vw,76px)}
.herofull__text{max-width:min(560px,52%)}
.herofull h1{color:var(--cream)}
.herofull .lede{color:var(--cream);opacity:.94}
.herofull .eyebrow{color:var(--cream);opacity:.88}
.herofull__stats{color:var(--cream)}
.herofull .stars svg{fill:var(--blush)}
.herofull .btn{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.herofull .btn:hover{background:var(--mint);border-color:var(--mint);color:var(--ink)}
.herofull .btn--ghost{background:transparent;color:var(--cream);border-color:rgba(253,246,228,.72)}
.herofull .btn--ghost:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.herofull :focus-visible{outline-color:var(--cream)}

/* On a phone the dog and the text cannot share the frame, so they stack:
   picture on top at its own shape, words below on the cream page. */
@media (max-width:860px){
  .herofull{display:block;min-height:0;background:var(--cream);color:var(--ink)}
  .herofull__img{position:relative;inset:auto}
  .herofull__img img{aspect-ratio:3/2;height:auto;object-position:76% 50%}
  .herofull__scrim{display:none}
  .herofull__copy{padding-block:30px 8px}
  .herofull__text{max-width:none}
  .herofull h1,.herofull .lede,.herofull .eyebrow,.herofull__stats{color:var(--ink)}
  .herofull .lede{color:var(--ink-soft);opacity:1}
  .herofull .stars svg{fill:var(--rose-deep)}
  .herofull .btn{background:var(--ink);color:var(--cream);border-color:var(--ink)}
  .herofull .btn--ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
}

.stars{display:inline-flex;gap:3px;vertical-align:-2px}
.stars svg{width:15px;height:15px;fill:var(--rose-deep)}

/* numbered measuring steps, with a rule threaded through the numerals */
.steps3{position:relative;display:flex;flex-direction:column;gap:20px;flex:1 1 auto;min-width:0}
.steps3::before{content:"";position:absolute;left:18px;top:20px;bottom:20px;width:2px;
  background:rgba(56,55,51,.26)}
.steps3 li{display:flex;gap:16px;align-items:flex-start;position:relative}
.steps3 .num{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--rose-deep);
  color:var(--cream);display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-weight:var(--w-head);font-size:18px;line-height:1;position:relative;z-index:1}
.steps3 h3{font-size:19px;margin-bottom:3px}
.steps3 p{font-size:15px;color:#2F2E2A;max-width:30ch}
.steps3__art{flex:0 0 auto;width:96px;height:auto;align-self:center}
@media (max-width:620px){.steps3__art{display:none}}

/* ---------- product detail ---------- */
.pdp{display:flex;flex-wrap:wrap;gap:clamp(32px,4vw,60px)}
.pdp__media{flex:1 1 440px;min-width:0}
.pdp__buy{flex:1 1 380px;min-width:0}
.thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.thumbs .photo{aspect-ratio:1/1}
.thumbs .photo--illo img{width:52%}
fieldset{border:0;padding:0;margin:0 0 26px}
legend{padding:0;margin-bottom:12px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;width:100%}
.opts{display:flex;flex-wrap:wrap;gap:10px}
.opt{font-family:inherit;font-size:15px;min-height:48px;padding:12px 20px;cursor:pointer;
  background:transparent;color:var(--ink);border:1px solid var(--line-strong)}
.opt[aria-pressed="true"]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.swatch-btn{width:44px;height:44px;border-radius:50%;padding:0;cursor:pointer;border:1px solid var(--line-strong)}
.swatch-btn[aria-pressed="true"]{box-shadow:0 0 0 2px var(--cream),0 0 0 4px var(--ink)}
.hint{margin-top:14px;background:var(--mint);padding:13px 16px;font-size:15px}
.addon{border:1px solid var(--line-strong);padding:18px 20px;margin-bottom:14px}
.addon__row{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-start}
.addon input[type=checkbox]{width:20px;height:20px;margin:4px 0 0;accent-color:var(--ink);flex:0 0 auto}
.addon label{flex:1 1 180px;min-width:0;cursor:pointer}
.addon label span{display:block;font-size:14px;color:var(--ink-soft)}
.total{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 14px}
.total b{font-family:var(--display);font-size:30px;font-weight:var(--w-head)}
details.acc{border-bottom:1px solid var(--line);padding:20px 0}
details.acc summary{cursor:pointer;list-style:none;font-family:var(--display);font-size:20px;
  display:flex;justify-content:space-between;align-items:center;gap:16px}
details.acc summary::-webkit-details-marker{display:none}
details.acc summary::after{content:"+";font-family:var(--body);font-size:22px;color:var(--rose-deep)}
details.acc[open] summary::after{content:"\2212"}
details.acc p{margin-top:13px;font-size:15px;color:var(--ink-soft);max-width:54ch}

/* ---------- size guide ---------- */
.diagram{position:relative;background:var(--cream);padding:36px 28px;display:flex;
  align-items:center;justify-content:center;min-height:320px}
.pin{position:absolute;background:var(--ink);color:var(--cream);width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:14px;transform:translate(-50%,-50%)}
.pin--rose{background:var(--rose-deep)}
.rule{position:absolute;background:var(--ink)}
.rule--rose{background:var(--rose-deep)}
.steps li{display:flex;gap:18px;margin-bottom:22px}
.steps .pin{position:static;transform:none;flex:0 0 32px;width:32px;height:32px;font-size:15px}
.scroller{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.sizes{width:100%;min-width:660px;font-size:15px}
table.sizes th,table.sizes td{padding:14px 18px;text-align:left}
table.sizes thead th{background:var(--ink);color:var(--cream);font-weight:var(--w-head)}
table.sizes tbody tr{border-bottom:1px solid var(--line)}
table.sizes tbody tr:nth-child(even){background:var(--paper)}
input[type=range]{width:100%;accent-color:var(--ink);height:44px}

/* ---------- forms ---------- */
.field{margin-bottom:20px}
.field label{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.field input,.field textarea,.field select{
  width:100%;background:var(--cream);border:1px solid var(--line-strong);color:var(--ink);
  padding:14px 15px;font-family:inherit;font-size:16px;min-height:50px;border-radius:0}
.field textarea{min-height:150px;resize:vertical}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:#9A3324;border-width:2px}
.err{display:block;margin-top:7px;font-size:14px;color:#9A3324}
.err:empty{display:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.formnote{font-size:14px;color:var(--ink-soft);margin-top:14px}
.formok{background:var(--mint);padding:16px 18px;margin-bottom:18px}
.newsletter{display:flex;flex-wrap:wrap;gap:10px}
.newsletter input{flex:1 1 190px;min-width:0;background:transparent;border-color:rgba(253,246,228,.45);color:var(--cream)}
.newsletter input::placeholder{color:rgba(253,246,228,.6)}
.newsletter .btn{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.newsletter .btn:hover{background:var(--mint);border-color:var(--mint);color:var(--ink)}

/* ---------- prose (policy pages) ---------- */
.prose{max-width:68ch}
.prose h2{font-size:26px;margin:44px 0 14px}
.prose h3{font-size:19px;margin:28px 0 10px;font-family:var(--body);font-weight:400;letter-spacing:0}
.prose p,.prose li{color:var(--ink-soft);margin-bottom:14px}
.prose ul{list-style:disc;padding-left:22px;margin-bottom:20px}
.prose li{margin-bottom:8px}
.prose a{color:var(--rose-deep);border-bottom:1px solid currentColor}
.prose .updated{font-size:14px;padding:12px 16px;background:var(--paper);display:inline-block;color:var(--ink)}

/* ---------- footer ---------- */
.foot{background:var(--ink);color:var(--cream)}
.foot__in{padding-block:clamp(44px,5vw,64px) 28px}
.foot__cols{display:flex;flex-wrap:wrap;gap:40px 56px;justify-content:space-between;
  padding-bottom:36px;border-bottom:1px solid rgba(253,246,228,.22)}
.foot__brand{flex:1 1 300px;max-width:400px}
.foot__brand img{width:176px;height:46px;margin-bottom:20px}
.foot__col{flex:0 1 160px}
.foot__col h2{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:var(--w-body);
  opacity:.72;margin-bottom:15px;font-family:var(--body)}
.foot__col li{margin-bottom:11px;font-size:15px}
.foot__base{display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:space-between;
  align-items:center;padding-top:24px;font-size:13px;opacity:.78}
.foot__base img{width:14px;height:14px}
.foot__base span{display:flex;align-items:center;gap:9px}

/* ---------- cookie banner ---------- */
.cookie{position:fixed;left:0;right:0;bottom:0;z-index:120;background:var(--ink);color:var(--cream);
  padding:18px var(--gutter);box-shadow:0 -10px 30px rgba(25,23,22,.18)}
.cookie[hidden]{display:none}
.cookie__in{max-width:var(--wrap);margin-inline:auto;display:flex;flex-wrap:wrap;gap:16px 32px;
  align-items:center;justify-content:space-between}
.cookie p{flex:1 1 320px;min-width:0;font-size:14.5px}
.cookie a{color:var(--cream);border-bottom:1px solid currentColor}
.cookie__btns{display:flex;flex-wrap:wrap;gap:10px}
.cookie .btn{padding:12px 22px;min-height:44px;font-size:14px;background:var(--cream);color:var(--ink);border-color:var(--cream)}
.cookie .btn--ghost{background:transparent;color:var(--cream);border-color:rgba(253,246,228,.6)}
.cookie .btn--ghost:hover{background:var(--cream);color:var(--ink)}

/* ---------- 404 ---------- */
.lost{text-align:center;max-width:620px;margin-inline:auto}
.lost img{width:min(300px,70%);margin:0 auto 34px}
