/*
Theme Name: Storefront Lab
Theme URI: https://magentothemesstore.com
Author: Magento Themes Store
Description: Specimen-led theme for Magento Themes Store — storefront layout archetypes drawn in CSS, a parts-catalogue treatment for extensions, and an editorial reading column. No stock photography, no carousels.
Version: 1.0
Text Domain: storefrontlab
*/

/* ----------------------------------------------------------------------------
   TOKENS
   The accent is deliberately NOT Magento orange. This is an independent
   resource, and borrowing Adobe's signature colour would read as affiliation
   the site does not have.
---------------------------------------------------------------------------- */
:root{
  --paper:#F3F1EB;
  --surface:#FBFAF7;
  --surface-2:#E9E4D8;
  --surface-3:#DED8C9;

  --ink:#0F1218;
  --ink-soft:#434A55;
  /* Every use of --muted in this theme is 10-12px mono, so it has to clear
     4.5:1 against the DARKEST surface it sits on, not just --paper: the
     ticker, the shelf header, the pills and the footer are all --surface-2.
     #868D99 measured 3.0:1 on paper; #656C78 cleared paper but only 4.17:1
     on --surface-2. This step clears both (5.4 / 4.8). */
  --muted:#5C6370;

  --line:#DFD9CB;
  --line-2:#CBC3B0;

  --accent:#1F3FD1;
  --accent-ink:#16309F;
  --accent-soft:#E4E8FB;

  --signal:#0D6E56;
  --signal-soft:#DDEDE7;
  --warn:#8E4E0E;

  --wire:#C9C1AE;      /* wireframe strokes  */
  --wire-fill:#E4DFD1; /* wireframe blocks   */
  --wire-key:#1F3FD1;  /* the one highlighted block per archetype */

  --display:"Fraunces",Georgia,"Times New Roman",serif;
  --ui:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --measure:68ch;
  --gutter:clamp(1rem,4vw,2.5rem);
  --rule:1px;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0B0D11;
    --surface:#12151B;
    --surface-2:#191D25;
    --surface-3:#222731;

    --ink:#F1EFE9;
    --ink-soft:#B4BAC5;
    --muted:#868D9B; /* 4.95:1 on --surface-2 */

    --line:#232833;
    --line-2:#333A46;

    --accent:#92A6FF;
    --accent-ink:#B6C3FF;
    --accent-soft:#171E3A;

    --signal:#4CC5A1;
    --signal-soft:#10251F;
    --warn:#D79A4C;

    --wire:#333A46;
    --wire-fill:#1B1F28;
    --wire-key:#92A6FF;
  }
}
:root[data-theme="dark"]{
  --paper:#0B0D11; --surface:#12151B; --surface-2:#191D25; --surface-3:#222731;
  --ink:#F1EFE9; --ink-soft:#B4BAC5; --muted:#868D9B;
  --line:#232833; --line-2:#333A46;
  --accent:#92A6FF; --accent-ink:#B6C3FF; --accent-soft:#171E3A;
  --signal:#4CC5A1; --signal-soft:#10251F; --warn:#D79A4C;
  --wire:#333A46; --wire-fill:#1B1F28; --wire-key:#92A6FF;
}

/* ----------------------------------------------------------------------------
   BASE
---------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--ui);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--accent-ink)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
hr{border:0;border-top:var(--rule) solid var(--line);margin:3rem 0}

h1,h2,h3,h4{font-family:var(--display);font-weight:500;line-height:1.08;letter-spacing:-.012em;margin:0}
h1{font-size:clamp(2.4rem,6.2vw,4.4rem)}
h2{font-size:clamp(1.7rem,3.4vw,2.6rem)}
h3{font-size:clamp(1.25rem,2vw,1.6rem)}

.mono{font-family:var(--mono);font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.lede{font-size:clamp(1.08rem,1.6vw,1.3rem);line-height:1.52;color:var(--ink-soft);max-width:52ch}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;z-index:99;background:var(--surface);padding:.6rem 1rem;border:var(--rule) solid var(--line)}

.wrap{width:min(1240px,100% - var(--gutter)*2);margin-inline:auto}
.rule-top{border-top:var(--rule) solid var(--line)}

/* ----------------------------------------------------------------------------
   MASTHEAD
---------------------------------------------------------------------------- */
.ticker{
  border-bottom:var(--rule) solid var(--line);
  background:var(--surface-2);
  overflow:hidden;
}
.ticker__in{
  display:flex;gap:2.5rem;align-items:center;
  padding:.45rem 0;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);white-space:nowrap;
}
.ticker__in span{display:flex;align-items:center;gap:.5rem}
.ticker__in span::before{content:"";width:4px;height:4px;background:var(--accent);border-radius:50%;flex:none}

.masthead{
  position:sticky;top:0;z-index:40;
  background:color-mix(in srgb,var(--paper) 88%,transparent);
  backdrop-filter:blur(10px);
  border-bottom:var(--rule) solid var(--line);
}
.masthead__in{display:flex;align-items:center;gap:1.5rem;padding:.85rem 0}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);flex:none}
.brand:hover{color:var(--ink)}
.brand__mark{
  width:30px;height:30px;flex:none;
  border:1.5px solid var(--ink);
  display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;
  gap:1.5px;padding:3.5px;
}
.brand__mark i{background:var(--wire);display:block}
.brand__mark i:nth-child(1){background:var(--accent)}
.brand__name{display:flex;flex-direction:column;line-height:1}
.brand__name b{
  font-family:var(--ui);font-weight:650;font-size:.82rem;
  letter-spacing:.13em;text-transform:uppercase;
}
.brand__name em{
  font-family:var(--mono);font-style:normal;font-size:.6rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:.22rem;
}
.nav{margin-left:auto}
.navlist{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.navlist li{list-style:none}
.nav a{
  font-size:.86rem;font-weight:500;color:var(--ink-soft);text-decoration:none;
  padding:.4rem .7rem;border-radius:2px;
}
.nav a:hover{color:var(--ink);background:var(--surface-2)}
.nav .current-menu-item>a,.nav a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--accent)}
.navtoggle{
  margin-left:auto;display:none;background:none;border:var(--rule) solid var(--line-2);
  color:var(--ink);font-family:var(--mono);font-size:.68rem;letter-spacing:.12em;
  text-transform:uppercase;padding:.45rem .7rem;cursor:pointer;
}
@media (max-width:900px){
  .navtoggle{display:block}
  .nav{display:none;order:3;width:100%;margin-left:0;
       border-top:var(--rule) solid var(--line);padding-top:.6rem}
  .nav.is-open{display:block}
  .navlist{flex-direction:column;align-items:stretch}
  .nav a{padding:.6rem .2rem}
}

/* ----------------------------------------------------------------------------
   HERO — the specimen switcher
---------------------------------------------------------------------------- */
.hero{padding:clamp(2.5rem,6vw,5rem) 0 clamp(2rem,4vw,3.5rem)}
.hero__grid{display:grid;gap:clamp(2rem,5vw,4rem);grid-template-columns:1fr}
@media (min-width:980px){.hero__grid{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);align-items:start}}

.hero__eyebrow{display:flex;align-items:center;gap:.75rem;margin-bottom:1.4rem}
.hero__eyebrow::after{content:"";height:1px;background:var(--line-2);flex:1}
.hero h1{margin-bottom:1.1rem}
.hero h1 .alt{font-style:italic;color:var(--accent)}
.hero__cta{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.8rem}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.11em;text-transform:uppercase;
  padding:.72rem 1.1rem;text-decoration:none;border:1px solid var(--ink);
  background:var(--ink);color:var(--paper);
}
.btn:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.btn--ghost{background:none;color:var(--ink);border-color:var(--line-2)}
.btn--ghost:hover{background:var(--surface-2);color:var(--ink);border-color:var(--ink)}

/* the viewport frame */
.spec{border:var(--rule) solid var(--line-2);background:var(--surface)}
.spec__chrome{
  display:flex;align-items:center;gap:.6rem;
  padding:.55rem .75rem;border-bottom:var(--rule) solid var(--line);
  background:var(--surface-2);
}
.spec__dots{display:flex;gap:5px;flex:none}
.spec__dots i{width:8px;height:8px;border-radius:50%;background:var(--line-2);display:block}
.spec__url{
  flex:1;min-width:0;font-family:var(--mono);font-size:.68rem;color:var(--muted);
  background:var(--surface);border:var(--rule) solid var(--line);
  padding:.22rem .55rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.spec__stage{padding:clamp(.9rem,2vw,1.4rem);background:var(--surface)}

/* The wireframe. Every archetype is the same set of blocks re-laid-out, so the
   switch reads as one storefront being rearranged rather than four pictures. */
.wf{
  display:grid;gap:8px;height:clamp(300px,42vw,420px);
  grid-template-columns:repeat(12,1fr);
  /* The chrome rows are pinned rather than auto: a trailing auto track here
     swallows the container's leftover height (measured: 118px of a 420px
     frame), which left a dead band between the tiles and the footer bar. */
  grid-template-rows:26px 20px minmax(0,1fr) 22px;
}
.wf b{
  display:block;background:var(--wire-fill);
  border:1px solid var(--wire);
  position:relative;overflow:hidden;
  transition:background .34s ease,border-color .34s ease,opacity .28s ease;
}
.wf b::after{
  content:attr(data-l);
  position:absolute;left:5px;top:3px;
  font-family:var(--mono);font-size:.54rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);
}
.wf b.key{background:var(--accent-soft);border-color:var(--wire-key)}
.wf b.key::after{color:var(--accent-ink)}
.wf .wf-tiles{display:grid;gap:8px;border:0;background:none;padding:0}
.wf .wf-tiles i{
  background:var(--wire-fill);border:1px solid var(--wire);display:block;
  transition:background .34s ease,border-color .34s ease;
}
.wf .wf-tiles i::after{content:""}

/* archetype layouts.
   The blocks carry wf-* class names because the wireframe's footer block was
   first written as .foot — the same class as the page footer — and inherited
   its margin-top: clamp(3rem,7vw,6rem). At desktop width that is 98px, which
   pushed the block out of the frame and on top of the readout line. */
.wf[data-view="catalog"]{grid-template-areas:
  "bar bar bar bar bar bar bar bar bar bar bar bar"
  "crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb"
  "facet facet facet grid grid grid grid grid grid grid grid grid"
  "foot foot foot foot foot foot foot foot foot foot foot foot";}
.wf[data-view="catalog"] .wf-tiles{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr)}

.wf[data-view="lookbook"]{grid-template-areas:
  "bar bar bar bar bar bar bar bar bar bar bar bar"
  "crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb"
  "grid grid grid grid grid grid grid grid facet facet facet facet"
  "foot foot foot foot foot foot foot foot foot foot foot foot";}
.wf[data-view="lookbook"] .wf-tiles{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.wf[data-view="lookbook"] .wf-crumb{opacity:.35}

.wf[data-view="b2b"]{grid-template-areas:
  "bar bar bar bar bar bar bar bar bar bar bar bar"
  "crumb crumb crumb crumb crumb crumb crumb facet facet facet facet facet"
  "grid grid grid grid grid grid grid facet facet facet facet facet"
  "foot foot foot foot foot foot foot foot foot foot foot foot";}
.wf[data-view="b2b"] .wf-tiles{grid-template-columns:1fr;grid-template-rows:repeat(5,1fr)}

.wf[data-view="single"]{grid-template-areas:
  "bar bar bar bar bar bar bar bar bar bar bar bar"
  "grid grid grid grid grid grid grid crumb crumb crumb crumb crumb"
  "grid grid grid grid grid grid grid facet facet facet facet facet"
  "foot foot foot foot foot foot foot foot foot foot foot foot";}
.wf[data-view="single"] .wf-tiles{grid-template-columns:1fr;grid-template-rows:1fr}

.wf .wf-bar{grid-area:bar;min-height:26px}
.wf .wf-crumb{grid-area:crumb;min-height:20px}
.wf .wf-facet{grid-area:facet}
.wf .wf-tiles{grid-area:grid}
.wf .wf-foot{grid-area:foot;min-height:22px}

/* archetype picker */
.spec__pick{
  display:flex;flex-wrap:wrap;gap:0;
  border-top:var(--rule) solid var(--line);
}
.spec__pick button{
  flex:1 1 auto;min-width:120px;
  background:none;border:0;border-right:var(--rule) solid var(--line);
  padding:.7rem .6rem;cursor:pointer;text-align:left;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);
}
.spec__pick button:last-child{border-right:0}
.spec__pick button:hover{background:var(--surface-2);color:var(--ink)}
.spec__pick button[aria-selected="true"]{
  color:var(--ink);background:var(--surface-2);
  box-shadow:inset 0 2px 0 var(--accent);
}
.spec__read{
  display:flex;flex-wrap:wrap;gap:.35rem 1.25rem;
  border-top:var(--rule) solid var(--line);padding:.6rem .75rem;
  font-family:var(--mono);font-size:.68rem;color:var(--ink-soft);
}
.spec__read b{color:var(--muted);font-weight:400}

/* ----------------------------------------------------------------------------
   THE INDEX — five pillars as a numbered register
---------------------------------------------------------------------------- */
.sec{padding:clamp(3rem,7vw,5.5rem) 0}
.sec__head{display:flex;align-items:flex-end;gap:1.5rem;flex-wrap:wrap;margin-bottom:2.5rem}
.sec__head h2{flex:1 1 20ch}
.sec__head p{margin:0;max-width:42ch;color:var(--ink-soft);font-size:.95rem}

.reg{border-top:var(--rule) solid var(--line-2)}
.reg__row{
  /* Below the four-column breakpoint this stacks rather than splitting into
     two columns: a two-column fallback put the number beside the title and the
     description beside the section label, which read as two broken columns. */
  display:grid;gap:.35rem;align-items:start;
  grid-template-columns:1fr;
  padding:1.5rem 0;border-bottom:var(--rule) solid var(--line);
  text-decoration:none;color:inherit;
  transition:background .2s ease,padding .2s ease;
}
@media (min-width:860px){
  .reg__row{grid-template-columns:4.5rem minmax(0,22ch) minmax(0,1fr) auto;gap:.4rem 1.5rem}
}
.reg__row:hover{background:var(--surface);color:inherit}
.reg__n{font-family:var(--mono);font-size:.78rem;color:var(--accent)}
@media (min-width:860px){.reg__n{padding-top:.35rem}}
.reg__t{font-family:var(--display);font-size:1.35rem;line-height:1.15;letter-spacing:-.01em}
.reg__d{color:var(--ink-soft);font-size:.95rem;margin:0}
.reg__m{font-family:var(--mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
@media (min-width:860px){.reg__m{padding-top:.45rem}}
.reg__row:hover .reg__m{color:var(--accent)}

/* ----------------------------------------------------------------------------
   SHELF — the extension parts catalogue
---------------------------------------------------------------------------- */
.shelf{background:var(--surface);border:var(--rule) solid var(--line-2)}
.shelf__hd,.shelf__row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;padding:.7rem 1rem;align-items:center;
}
@media (min-width:760px){
  /* The module name is short and the reason is a sentence, so the sentence
     gets the flexible track; the first draft had this the other way round
     and wrapped every reason onto three lines. */
  .shelf__hd,.shelf__row{grid-template-columns:minmax(0,19rem) minmax(0,1fr) auto}
}
.shelf__hd{
  border-bottom:var(--rule) solid var(--line-2);background:var(--surface-2);
  font-family:var(--mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
}
.shelf__row{border-bottom:var(--rule) solid var(--line);font-size:.93rem}
.shelf__row:last-child{border-bottom:0}
.shelf__row:hover{background:var(--surface-2)}
.shelf__n{font-family:var(--mono);font-size:.84rem;color:var(--ink)}
.shelf__why{color:var(--ink-soft);font-size:.86rem;display:none}
@media (min-width:760px){.shelf__why{display:block}}
.pill{
  display:inline-block;font-family:var(--mono);font-size:.6rem;letter-spacing:.09em;
  text-transform:uppercase;padding:.2rem .45rem;border:1px solid currentColor;
  color:var(--signal);background:var(--signal-soft);white-space:nowrap;
}
.pill--n{color:var(--muted);background:var(--surface-2)}

/* ----------------------------------------------------------------------------
   PLATES — comparisons
---------------------------------------------------------------------------- */
.plates{display:grid;gap:1px;background:var(--line-2);border:var(--rule) solid var(--line-2)}
@media (min-width:760px){.plates{grid-template-columns:repeat(3,1fr)}}
.plate{background:var(--surface);padding:1.4rem 1.25rem;display:flex;flex-direction:column;gap:.7rem}
.plate__vs{font-family:var(--mono);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.plate h3{font-size:1.2rem}
.plate p{margin:0;font-size:.92rem;color:var(--ink-soft)}
.plate__verdict{
  margin-top:auto;border-top:var(--rule) solid var(--line);padding-top:.7rem;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.04em;color:var(--ink);
}
.plate__verdict b{color:var(--accent);font-weight:400}

/* ----------------------------------------------------------------------------
   ARTICLE LIST
---------------------------------------------------------------------------- */
.list{border-top:var(--rule) solid var(--line-2)}
.list__item{
  display:grid;gap:.3rem 1.5rem;padding:1.4rem 0;
  border-bottom:var(--rule) solid var(--line);
}
@media (min-width:820px){.list__item{grid-template-columns:9rem minmax(0,1fr) 12rem}}
.list__date{font-family:var(--mono);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-top:.35rem}
.list__t{font-family:var(--display);font-size:1.3rem;line-height:1.16;margin:0}
.list__t a{color:var(--ink);text-decoration:none}
.list__t a:hover{color:var(--accent);text-decoration:underline}
.list__x{color:var(--ink-soft);font-size:.93rem;margin:.35rem 0 0}
.list__tag{font-family:var(--mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);padding-top:.4rem}

.empty{
  border:1px dashed var(--line-2);background:var(--surface);
  padding:clamp(1.5rem,4vw,2.5rem);
}
.empty p{margin:.5rem 0 0;color:var(--ink-soft);max-width:54ch}

/* ----------------------------------------------------------------------------
   ARTICLE BODY
---------------------------------------------------------------------------- */
.art{padding:clamp(2rem,5vw,3.5rem) 0}
.art__hd{max-width:var(--measure);margin-bottom:2rem}
.art__meta{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin-bottom:1.2rem}
.art h1{font-size:clamp(2rem,4.6vw,3.2rem);margin-bottom:1rem}
.prose{max-width:var(--measure)}
.prose>*+*{margin-top:1.15rem}
.prose h2{margin-top:2.6rem;padding-top:1.1rem;border-top:var(--rule) solid var(--line)}
.prose h3{margin-top:1.9rem}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li+li{margin-top:.45rem}
.prose blockquote{
  margin:1.6rem 0;padding:.2rem 0 .2rem 1.2rem;
  border-left:2px solid var(--accent);font-family:var(--display);font-size:1.15rem;color:var(--ink)
}
.prose code{font-family:var(--mono);font-size:.86em;background:var(--surface-2);padding:.12em .36em}
.prose pre{background:var(--surface-2);border:var(--rule) solid var(--line);padding:1rem;overflow:auto}
.prose pre code{background:none;padding:0}
.prose table{width:100%;border-collapse:collapse;font-size:.92rem}
.prose th,.prose td{border:var(--rule) solid var(--line);padding:.55rem .7rem;text-align:left}
.prose th{background:var(--surface-2);font-family:var(--mono);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.prose figure{margin:1.8rem 0}
.prose figcaption{font-family:var(--mono);font-size:.68rem;color:var(--muted);margin-top:.5rem}

/* ----------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------- */
.foot{border-top:var(--rule) solid var(--line-2);background:var(--surface-2);margin-top:clamp(3rem,7vw,6rem)}
.foot__in{display:grid;gap:2rem;padding:clamp(2rem,4vw,3rem) 0}
@media (min-width:860px){.foot__in{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.foot h4{font-family:var(--mono);font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);font-weight:400;margin-bottom:.8rem}
.foot ul{list-style:none;margin:0;padding:0}
.foot li+li{margin-top:.45rem}
.foot a{color:var(--ink-soft);text-decoration:none;font-size:.9rem}
.foot a:hover{color:var(--accent);text-decoration:underline}
.foot__say{font-size:.92rem;color:var(--ink-soft);max-width:38ch;margin:.8rem 0 0}
.foot__legal{
  border-top:var(--rule) solid var(--line);padding:1.1rem 0 2rem;
  display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;align-items:center;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.07em;color:var(--muted);
}
.foot__legal p{margin:0;max-width:72ch;text-transform:none;letter-spacing:.02em;line-height:1.5}

/* ----------------------------------------------------------------------------
   MOTION — opt out cleanly
---------------------------------------------------------------------------- */
/* Hidden only once a script has claimed the page: without JavaScript every
   section below the fold would otherwise stay at opacity 0 forever. */
.js .rise{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.js .rise.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .rise{opacity:1;transform:none}
}

.pager{display:flex;gap:1rem;justify-content:space-between;padding:2rem 0;font-family:var(--mono);font-size:.72rem;letter-spacing:.09em;text-transform:uppercase}

/* ----------------------------------------------------------------------------
   WIREFRAME TILE COUNTS
   Eight tiles are in the markup; each archetype shows only as many as its grid
   has cells, so no tile is ever squeezed into a row it does not belong to.
---------------------------------------------------------------------------- */
.wf[data-view="lookbook"] .wf-tiles i:nth-child(n+5){display:none}
.wf[data-view="b2b"]      .wf-tiles i:nth-child(n+6){display:none}
.wf[data-view="single"]   .wf-tiles i:nth-child(n+2){display:none}

/* The highlighted block is whichever part the archetype is built around, so
   the tiles can take the highlight too. */
.wf .wf-tiles.key{border:0;background:none}
.wf .wf-tiles.key i{background:var(--accent-soft);border-color:var(--wire-key)}

/* On a phone the wireframe would be unreadable at four columns, so the two
   wide archetypes fall back to a stacked reading of the same blocks. */
@media (max-width:620px){
  .wf{height:300px}
  .wf[data-view="catalog"] .wf-tiles{grid-template-columns:repeat(2,1fr)}
  .wf[data-view="catalog"] .wf-tiles i:nth-child(n+5){display:none}
  .wf[data-view="lookbook"] .wf-tiles{grid-template-columns:1fr}
  .wf[data-view="lookbook"] .wf-tiles i:nth-child(n+3){display:none}
  .wf b::after{font-size:.5rem}
}

/* ----------------------------------------------------------------------------
   ANSWER BLOCK & FAQ
   The answer block is the first thing on the page and the thing an answer
   engine is most likely to quote, so it is set apart from the prose rather
   than styled as another paragraph.
---------------------------------------------------------------------------- */
.aeo{
  border:var(--rule) solid var(--line-2);border-left:3px solid var(--accent);
  background:var(--surface);padding:1.15rem 1.3rem;margin:0 0 2rem;
  max-width:var(--measure);
}
.aeo__k{
  font-family:var(--mono);font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted);margin:0 0 .45rem;
}
.aeo__a{margin:0;font-size:1.05rem;line-height:1.55;color:var(--ink)}
.aeo__k + .aeo__l{margin-top:0}
.aeo__l{margin:0;padding-left:1.15rem}
.aeo__l li{font-size:.95rem;color:var(--ink-soft)}
.aeo__l li + li{margin-top:.4rem}
.aeo__a + .aeo__k{margin-top:1.1rem;padding-top:1rem;border-top:var(--rule) solid var(--line)}

.faq{max-width:var(--measure);margin-top:3rem;padding-top:1.4rem;border-top:var(--rule) solid var(--line-2)}
.faq h2{font-size:clamp(1.4rem,2.4vw,1.9rem);margin-bottom:1.4rem}
.faq__l{margin:0}
.faq__l dt{
  font-family:var(--display);font-size:1.12rem;line-height:1.25;color:var(--ink);
  margin-top:1.5rem;
}
.faq__l dt:first-child{margin-top:0}
.faq__l dd{margin:.5rem 0 0;color:var(--ink-soft);font-size:.97rem}

/* ----------------------------------------------------------------------------
   ARTICLE LAYOUT — two columns
   The single-column article left a 511px column empty on every desktop view
   while the page itself ran to 11,000px and fourteen headings. The contents
   list goes in that column and gives the reader a map.
---------------------------------------------------------------------------- */
.art__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.art__main{min-width:0}
@media (min-width:1080px){
  .art__grid{grid-template-columns:minmax(0,1fr) 15.5rem;gap:clamp(2.5rem,5vw,4.5rem);align-items:start}
  .art__grid--solo{grid-template-columns:minmax(0,1fr)}
  /* The contents list is first in the document so it lands above the article
     on a phone; on desktop it is placed back into the right-hand column. */
  .art__main{grid-column:1;grid-row:1}
  .art__side{grid-column:2;grid-row:1}
}

/* ---- contents list ---- */
.art__side{margin:0 0 2rem}
@media (min-width:1080px){
  .art__side{position:sticky;top:5.5rem;max-height:calc(100vh - 7rem);overflow-y:auto;margin:0}
}
.toc{
  border:var(--rule) solid var(--line-2);background:var(--surface);
  padding:.85rem 1rem;
}
@media (min-width:1080px){
  .toc{border:0;border-top:2px solid var(--ink);background:none;padding:.9rem 0 0}
}
.toc__h{
  font-family:var(--mono);font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted);margin:0;padding:0 0 .6rem;cursor:pointer;
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
}
.toc__h::-webkit-details-marker{display:none}
/* The caret is drawn rather than relying on the default marker, which cannot
   be positioned and disappears entirely once list-style is removed. */
.toc__h::after{
  content:"";width:7px;height:7px;flex:none;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .18s ease;
}
.toc[open] > .toc__h::after{transform:rotate(-135deg) translateY(-1px)}
@media (min-width:1080px){
  .toc__h{cursor:default;border-bottom:var(--rule) solid var(--line-2);margin-bottom:.75rem}
  .toc__h::after{display:none}
}
.toc__l{list-style:none;margin:0;padding:0;counter-reset:toc}
.toc__l li{counter-increment:toc;margin-bottom:.1rem}
.toc__l a{
  display:grid;grid-template-columns:1.6rem 1fr;gap:.2rem;
  padding:.38rem .4rem .38rem 0;
  font-size:.82rem;line-height:1.3;color:var(--ink-soft);text-decoration:none;
  border-left:2px solid transparent;padding-left:.6rem;
  transition:color .15s ease,border-color .15s ease,background .15s ease;
}
.toc__l a::before{
  content:counter(toc,decimal-leading-zero);
  font-family:var(--mono);font-size:.62rem;color:var(--muted);padding-top:.15rem;
}
.toc__l a:hover{color:var(--ink);background:var(--surface);border-left-color:var(--line-2)}
.toc__l a.is-here{color:var(--ink);border-left-color:var(--accent)}
.toc__l a.is-here::before{color:var(--accent)}

/* ---- breadcrumbs ---- */
.crumbs{margin-bottom:1.6rem}
.crumbs ol{
  list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;
  font-family:var(--mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;
}
.crumbs li+li::before{content:"/";color:var(--line-2);margin-right:.4rem}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--accent);text-decoration:underline}
.crumbs li{min-width:0}
.crumbs [aria-current]{
  color:var(--ink-soft);display:block;max-width:46ch;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* On a phone the title crumb ran off the right edge of the viewport, and the
   H1 says the same thing two lines below it, so it is dropped rather than
   truncated to nothing useful. */
@media (max-width:760px){
  .crumbs li:last-child{display:none}
}

/* ---- reading progress ---- */
.progress{
  position:absolute;left:0;bottom:-1px;height:2px;width:0;
  background:var(--accent);transition:width .08s linear;
}
.masthead{position:sticky}

/* ---- related guides ---- */
.rel{margin-top:clamp(3rem,6vw,5rem);padding-top:1.6rem;border-top:var(--rule) solid var(--line-2)}
.rel h2{font-size:clamp(1.3rem,2.2vw,1.7rem);margin-bottom:1.5rem}
.rel__l{display:grid;gap:1px;background:var(--line);border:var(--rule) solid var(--line)}
@media (min-width:760px){.rel__l{grid-template-columns:repeat(3,1fr)}}
.rel__i{
  background:var(--surface);padding:1.1rem 1.15rem;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;gap:.45rem;
  transition:background .18s ease;
}
.rel__i:hover{background:var(--surface-2);color:inherit}
.rel__t{font-family:var(--display);font-size:1.05rem;line-height:1.2;color:var(--ink)}
.rel__i:hover .rel__t{color:var(--accent)}
.rel__x{font-size:.85rem;color:var(--ink-soft);line-height:1.45}

/* ---- heading anchors ---- */
.prose h2{scroll-margin-top:6rem;position:relative}
.prose h2 .anchor{
  position:absolute;left:-1.1rem;top:.1em;
  font-family:var(--mono);font-size:.8rem;
  /* --line-2 measured 1.55:1 — invisible even at the moment it is revealed,
     which makes the hover affordance pointless. --muted clears 4.5:1. */
  color:var(--muted);
  text-decoration:none;opacity:0;transition:opacity .15s ease;
}
@media (max-width:1079px){
  /* No hover on a touch screen, and no room for a hanging anchor either. */
  .prose h2 .anchor{display:none}
}
.prose h2:hover .anchor{opacity:1}
.prose h2 .anchor:hover{color:var(--accent)}
