/* Quiet Editorial Beauty-Tech — public Hair Note listing and reading surfaces. */

html{background:var(--qe-canvas)}
body{
  min-width:0;
  margin:0;
  background-color:var(--qe-canvas);
  background-image:url("./assets/editorial/paper-stock-v1.webp");
  background-position:top left;
  background-repeat:repeat;
  background-size:1024px 1024px;
  color:var(--qe-ink);
  font-family:var(--qe-ui);
  font-size:15px;
  line-height:1.85;
  font-feature-settings:"kern" 1;
  text-rendering:optimizeLegibility;
}

body :where(h1,h2,h3,.blog-featured strong){
  color:var(--qe-ink);
  font-family:var(--qe-display);
  font-weight:400;
  letter-spacing:.018em;
  font-feature-settings:"palt" 1,"kern" 1;
}

body :where(p,li){text-wrap:pretty}
body :where(a,button):focus-visible{outline:2px solid var(--qe-wine);outline-offset:4px;box-shadow:none}
.blog-featured,
.article-card,
.article-hero,
.cms-article-body figure img,
.cms-article-body .callout,
.article-cta{border-radius:0!important;box-shadow:none!important}

/* Listing: opening editorial spread. */

.blog-main{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 0 clamp(88px,9vw,138px);
  display:grid;
  grid-template-columns:minmax(0,48%) minmax(0,52%);
  background:transparent;
}

.blog-intro{
  min-width:0;
  min-height:clamp(680px,58vw,835px);
  max-width:none;
  margin:0;
  padding:clamp(96px,10vw,148px) clamp(46px,5vw,76px) clamp(78px,8vw,118px) var(--qe-gutter);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  border-bottom:1px solid var(--qe-rule);
}

.blog-eyebrow,
.article-category{
  margin:0 0 26px;
  color:var(--qe-wine);
  font-family:var(--qe-ui);
  font-size:12px;
  font-weight:600;
  letter-spacing:.18em;
}

.blog-intro h1{
  margin:0;
  font-size:clamp(46px,4.35vw,64px);
  line-height:1.5;
  letter-spacing:.012em;
}

.blog-intro h1>span{
  display:block;
  white-space:nowrap;
}

.blog-intro>p:last-child{
  max-width:510px;
  margin:38px 0 0;
  color:var(--qe-ink-muted);
  font-size:15px;
  line-height:2;
}

.blog-featured{
  min-width:0;
  min-height:clamp(680px,58vw,835px);
  margin:0;
  position:relative;
  display:block;
  overflow:hidden;
  border:0;
  border-radius:0;
  border-bottom:1px solid var(--qe-rule);
  background:var(--qe-paper-muted);
  box-shadow:none;
}

.blog-featured img{
  width:100%;
  height:100%;
  min-height:0;
  position:absolute;
  inset:0;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(.92) contrast(.98);
}

.blog-featured>span{
  width:min(72%,620px);
  min-height:250px;
  padding:clamp(28px,3.3vw,48px);
  position:absolute;
  left:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--qe-paper);
}

.blog-featured small,
.article-card-content small{
  color:var(--qe-wine);
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
}

.blog-featured strong{
  margin:15px 0;
  font-size:clamp(28px,2.7vw,40px);
  line-height:1.55;
}

.blog-featured p{
  margin:0;
  color:var(--qe-ink-muted);
  font-size:14px;
  line-height:1.85;
}

.blog-featured b,
.article-card b{
  color:var(--qe-wine);
  font-size:13px;
  font-weight:600;
}

.blog-featured b{margin-top:24px}

.blog-section-heading{
  grid-column:1/-1;
  margin:0;
  padding:clamp(88px,9vw,132px) var(--qe-gutter) 38px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  border-bottom:1px solid var(--qe-rule);
}

.blog-section-heading h2{
  margin:0;
  font-size:clamp(36px,3.6vw,52px);
  line-height:1.5;
}

.blog-section-heading p{
  margin:0 0 10px;
  color:var(--qe-ink-muted);
  font-size:13px;
}

.article-grid{
  grid-column:1/-1;
  padding:50px var(--qe-gutter) 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:62px clamp(46px,6.5vw,98px);
}

.article-card,
.article-card-with-media{
  min-width:0;
  min-height:0;
  padding:0 0 42px;
  display:grid;
  grid-template-columns:minmax(170px,42%) minmax(0,58%);
  grid-template-rows:auto;
  align-items:start;
  border:0;
  border-radius:0;
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
  box-shadow:none;
  overflow:visible;
  transition:color var(--qe-fast) ease;
}

.article-card:hover,
.article-card:focus-visible{
  color:var(--qe-wine);
  background:transparent;
  box-shadow:none;
  transform:none;
}

.article-card-media{
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
  background:var(--qe-paper-muted);
  filter:saturate(.92) contrast(.98);
}

.article-card-content{
  min-width:0;
  padding:3px 0 0 clamp(22px,2.5vw,38px);
  display:flex;
  flex-direction:column;
  align-self:stretch;
}

.article-card time{
  margin-top:9px;
  color:var(--qe-ink-muted);
  font-size:12px;
  letter-spacing:.08em;
}

.article-card h2{
  margin:18px 0 13px;
  font-size:clamp(21px,1.9vw,28px);
  line-height:1.62;
}

.article-card p{
  margin:0;
  color:var(--qe-ink-muted);
  font-size:13px;
  line-height:1.85;
}

.article-card b{margin-top:auto;padding-top:24px}

/* Detail: full editorial header and a focused reading column. */

.article-shell,
.article-shell-wide{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 0 clamp(88px,9vw,136px);
}

.article-breadcrumb{
  min-height:68px;
  margin:0;
  padding:14px var(--qe-gutter);
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--qe-rule);
  color:var(--qe-ink-muted);
  font-size:13px;
}

.article-breadcrumb a,
.article-end-nav a{color:var(--qe-wine)}

.article-breadcrumb a,
.cms-article-body .callout a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
}

.article-header{
  min-height:clamp(680px,55vw,800px);
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,44%) minmax(0,56%);
  grid-template-rows:auto auto 1fr auto;
  align-items:start;
  border:0;
  border-bottom:1px solid var(--qe-rule);
}

.article-header .article-category{
  grid-column:1;
  grid-row:1;
  margin:0;
  padding:clamp(82px,8vw,118px) clamp(44px,5vw,76px) 13px var(--qe-gutter);
}

.article-header time{
  grid-column:1;
  grid-row:2;
  margin:0;
  padding:0 clamp(44px,5vw,76px) 30px var(--qe-gutter);
  color:var(--qe-ink-muted);
  font-size:12px;
  letter-spacing:.12em;
}

.article-header h1{
  grid-column:1;
  grid-row:3;
  align-self:center;
  margin:0;
  padding:0 clamp(44px,5vw,76px) 34px var(--qe-gutter);
  font-size:clamp(38px,3.7vw,54px);
  line-height:1.58;
  letter-spacing:.012em;
  text-wrap:balance;
}

.article-lead{
  grid-column:1;
  grid-row:4;
  max-width:none;
  margin:0;
  padding:0 clamp(44px,5vw,76px) clamp(72px,7vw,102px) var(--qe-gutter);
  color:var(--qe-ink-muted);
  font-size:16px;
  line-height:2;
}

.article-hero{
  grid-column:2;
  grid-row:1/5;
  width:100%;
  height:100%;
  min-height:clamp(680px,55vw,800px);
  margin:0;
  display:block;
  object-fit:cover;
  object-position:center;
  border:0;
  border-radius:0;
  background:var(--qe-paper-muted);
  filter:saturate(.92) contrast(.98);
}

.article-body{
  width:min(calc(100% - 48px),780px);
  margin:0 auto;
  padding:clamp(82px,8vw,118px) 0 0;
  color:var(--qe-ink);
  font-size:17px;
  line-height:2.08;
}

.article-body>p{
  margin:0 0 27px;
}

.article-body h2{
  margin:72px 0 24px;
  font-size:clamp(30px,3vw,40px);
  line-height:1.62;
  letter-spacing:.012em;
}

.article-body h3{
  margin:46px 0 17px;
  font-size:24px;
  line-height:1.65;
}

/* Reader-facing end matter. These classes are emitted by the CMS build so
   editorial workflow labels never inherit the oversized story-heading scale. */
.article-body h2.article-next-step{
  margin:64px 0 18px;
  padding-top:28px;
  border-top:1px solid var(--qe-rule);
  color:var(--qe-wine);
  font-size:clamp(22px,2vw,28px);
  line-height:1.65;
}

.article-body h2.article-about-title{
  margin:72px 0 20px;
  padding-top:32px;
  border-top:1px solid var(--qe-rule);
  color:var(--qe-ink);
  font-size:clamp(21px,1.8vw,26px);
  line-height:1.7;
}

.article-body h3.article-sources-title{
  margin:38px 0 14px;
  color:var(--qe-ink-muted);
  font-family:var(--qe-ui);
  font-size:12px;
  font-weight:600;
  line-height:1.6;
  letter-spacing:.14em;
}

.article-body p.article-source-title{
  margin:20px 0 5px;
  color:var(--qe-ink);
  font-size:14px;
  line-height:1.75;
}

.article-body .article-source-title strong{font-weight:500}
.article-body .article-source-title+p{
  margin-bottom:14px;
  color:var(--qe-ink-muted);
  font-size:13px;
  line-height:1.85;
}

.article-body ul,
.article-body ol{
  margin:0 0 30px;
  padding-left:1.4em;
}

.article-body li{margin:9px 0}
.article-body a{color:var(--qe-wine);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.article-body .article-inline-related{
  font-weight:600;
  text-decoration-color:color-mix(in srgb,var(--qe-wine) 58%,transparent);
  text-decoration-thickness:1px;
  text-underline-offset:5px;
}
.article-body .article-inline-related:hover{text-decoration-color:var(--qe-wine)}
.article-body .article-inline-related:focus-visible{outline:2px solid var(--qe-wine);outline-offset:4px;text-decoration:none}

.article-body :where(.article-process,.article-factor-list){
  margin:36px 0 42px;
  padding:0;
  list-style:none;
  border-block:1px solid var(--qe-rule);
}

.article-body :where(.article-process,.article-factor-list)>li{
  position:relative;
  min-height:54px;
  margin:0;
  padding:13px 0 13px 42px;
  border-bottom:1px solid var(--qe-rule);
  line-height:1.8;
}

.article-body :where(.article-process,.article-factor-list)>li:last-child{border-bottom:0}
.article-body .article-process{counter-reset:article-process}
.article-body .article-process>li{counter-increment:article-process}
.article-body .article-process>li::before{
  content:counter(article-process,decimal-leading-zero);
  position:absolute;
  top:14px;
  left:0;
  color:var(--qe-wine);
  font-family:var(--qe-display);
  font-size:13px;
  letter-spacing:.08em;
}

.article-body .article-process-labeled>li{
  display:grid;
  grid-template-columns:minmax(120px,180px) 1fr;
  gap:22px;
  padding-left:42px;
}

.article-body .article-process-labeled strong{font-weight:600}
.article-body .article-process-labeled span{color:var(--qe-ink-muted)}
.article-body .article-factor-list>li::before{
  content:"";
  width:5px;
  height:5px;
  position:absolute;
  top:25px;
  left:8px;
  border-radius:50%;
  background:var(--qe-wine);
}

.article-body h3.article-question{
  margin-top:52px;
  padding-top:20px;
  border-top:1px solid var(--qe-rule);
}

.cms-article-body figure{
  width:min(calc(100vw - 56px),980px);
  margin:58px 50% 62px;
  transform:translateX(-50%);
}

.cms-article-body figure img{
  width:100%;
  height:auto;
  display:block;
  border:0;
  border-radius:0;
  background:var(--qe-paper-muted);
}

.cms-article-body figcaption{
  margin-top:13px;
  color:var(--qe-ink-muted);
  font-size:13px;
  line-height:1.75;
}

.cms-article-body .callout{
  margin:44px 0;
  padding:28px 0 28px 30px;
  border:0;
  border-left:2px solid var(--qe-wine);
  border-radius:0;
  background:transparent;
}

.cms-article-body .callout p:last-child{margin-bottom:0}

.article-cta{
  margin:58px 0;
  padding:34px 0;
  border:0;
  border-block:1px solid var(--qe-rule);
  background:transparent;
}

.article-cta .article-cta-kicker{
  margin:0 0 14px;
  color:var(--qe-wine);
  font:600 11px/1.4 var(--qe-ui);
  letter-spacing:.22em;
}
.article-cta h2{margin:0 0 12px;font-size:28px}
.article-cta p{margin:0 0 22px}
.article-cta a{
  min-height:52px;
  padding:12px 20px;
  display:inline-flex;
  align-items:center;
  border-radius:0!important;
  background:var(--qe-wine);
  color:#fff;
  font-size:13px;
  text-decoration:none;
  transition:background-color .18s ease,color .18s ease;
}
.article-cta a:hover{background:var(--qe-ink)}
.article-cta a:focus-visible{outline:2px solid var(--qe-ink);outline-offset:4px}
.article-cta a span{margin-left:22px;font-size:18px;line-height:1}

.cms-article-body .table-scroll{
  width:min(calc(100vw - 56px),980px);
  margin:54px 50% 62px;
  overflow-x:auto;
  transform:translateX(-50%);
  border:0;
  border-block:1px solid var(--qe-rule);
  border-radius:0;
}

.cms-article-body .table-scroll-hint{
  width:min(calc(100vw - 56px),980px);
  margin:48px 50% -42px;
  transform:translateX(-50%);
  color:var(--qe-wine-dark);
  font-size:12px;
  font-weight:650;
  letter-spacing:.04em;
}

.cms-article-body table{
  width:100%;
  min-width:700px;
  border-collapse:collapse;
  background:transparent;
  font-size:14px;
  line-height:1.75;
}

.cms-article-body th,
.cms-article-body td{
  padding:18px 20px;
  border:0;
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
}

.cms-article-body th{color:var(--qe-wine);font-weight:600}
.cms-article-body tr:last-child :where(th,td){border-bottom:0}

.article-end-nav{
  width:min(calc(100% - 48px),780px);
  margin:72px auto 0;
  padding:30px 0 0;
  display:flex;
  justify-content:space-between;
  gap:24px;
  border-top:1px solid var(--qe-rule);
  font-size:13px;
}

.article-end-nav a{min-height:44px;display:inline-flex;align-items:center}

@media(min-width:768px) and (max-width:1100px){
  .blog-main{grid-template-columns:minmax(0,48%) minmax(0,52%)}
  .blog-intro,.blog-featured{min-height:650px}
  .blog-intro{padding:82px 34px}
  .blog-intro h1{font-size:clamp(32px,4.2vw,42px)}
  .blog-featured>span{width:84%;padding:30px}
  .article-grid{grid-template-columns:1fr;gap:48px;padding-inline:40px}
  .article-card,.article-card-with-media{grid-template-columns:minmax(230px,42%) minmax(0,58%)}
  .article-header{min-height:650px;grid-template-columns:minmax(0,47%) minmax(0,53%)}
  .article-header .article-category{padding:72px 36px 13px 40px}
  .article-header time{padding-inline:40px 36px}
  .article-header h1{
    padding:0 30px 30px 40px;
    font-size:clamp(32px,4.25vw,38px);
    line-height:1.62;
    word-break:auto-phrase;
    overflow-wrap:normal;
    text-wrap:balance;
  }
  .article-lead{padding:0 36px 66px 40px;font-size:15px}
  .article-hero{min-height:650px}
}

@media(max-width:767px){
  body{font-size:15px}
  .blog-main{display:block;padding-bottom:78px}
  .blog-intro{
    min-height:0;
    padding:58px 20px 52px;
    justify-content:flex-start;
  }
  .blog-eyebrow,.article-category{margin-bottom:18px;font-size:12px}
  .blog-intro h1{font-size:clamp(29px,8.7vw,36px);line-height:1.55}
  .blog-intro>p:last-child{margin-top:24px;font-size:13px;line-height:1.9}
  .blog-featured{min-height:0;display:grid;grid-template-columns:1fr}
  .blog-featured img{height:auto;aspect-ratio:4/3;position:relative}
  .blog-featured>span{width:auto;min-height:0;padding:30px 20px 36px;position:relative}
  .blog-featured strong{font-size:28px;line-height:1.58}
  .blog-featured p{font-size:13px}
  .blog-section-heading{padding:64px 20px 28px}
  .blog-section-heading h2{font-size:31px}
  .article-grid{padding:34px 20px 0;display:grid;grid-template-columns:1fr;gap:46px}
  .article-card,.article-card-with-media{
    padding-bottom:34px;
    display:grid;
    grid-template-columns:1fr;
  }
  .article-card-media{aspect-ratio:4/3}
  .article-card-content{padding:22px 0 0}
  .article-card h2{font-size:23px;line-height:1.6}
  .article-card p{font-size:13px}
  .article-card b{padding-top:20px}

  .article-breadcrumb{min-height:58px;padding:10px 20px;font-size:12px}
  .article-header{min-height:0;display:flex;flex-direction:column;border-bottom:1px solid var(--qe-rule)}
  .article-header .article-category{order:1;padding:48px 20px 8px}
  .article-header time{order:2;padding:0 20px 24px;font-size:12px}
  .article-header h1{order:3;padding:0 20px 28px;font-size:clamp(31px,8.8vw,36px);line-height:1.58;text-wrap:wrap}
  .article-lead{order:4;padding:0 20px 38px;font-size:14px;line-height:1.9}
  .article-hero{order:5;width:100%;height:auto;min-height:0;aspect-ratio:4/3}
  .article-body{width:calc(100% - 40px);padding-top:64px;font-size:16px;line-height:2}
  .article-body>p{margin-bottom:24px}
  .article-body h2{margin:58px 0 20px;font-size:28px;line-height:1.65}
  .article-body h3{margin:40px 0 15px;font-size:21px}
  .article-body .article-process-labeled{font-size:15px}
  .article-body .article-process-labeled>li{grid-template-columns:1fr;gap:3px}
  .cms-article-body figure{width:100%;margin:42px 0 48px;transform:none}
  .cms-article-body figcaption{font-size:13px}
  .cms-article-body .callout{margin:36px 0;padding:22px 0 22px 20px}
  .article-cta{margin:50px 0;padding:30px 0}
  .article-cta h2{font-size:25px;line-height:1.65}
  .article-cta a{width:100%;min-height:54px;justify-content:space-between}
  .cms-article-body .table-scroll-hint{width:100%;margin:34px 0 -32px;transform:none}
  .cms-article-body .table-scroll{width:100%;margin:42px 0 48px;transform:none}
  .cms-article-body table{font-size:13px}
  .article-end-nav{width:calc(100% - 40px);margin-top:58px;display:grid;gap:8px;font-size:13px}
}

@media(max-width:370px){
  .blog-intro h1{font-size:29px}
  .article-header h1{font-size:31px}
}

@media(prefers-reduced-motion:reduce){
  .article-card{transition:none}
}
