/* Hallmark · reviewed: desktop and 320/390/768px; reduced motion; no-JS reading
   genre: editorial · tone: polished, colorful · wine/plum brand frame
   theme: studied-DNA (source: stefscloset.com)
   macrostructure: Reading with individually composed visual spreads
   nav: existing wordmark · footer: existing colophon
   Article only. The blog index, tools and season hub retain their own layouts. */
.editorial-page {
  --ed-reading: 42rem;
  --ed-paper: var(--color-paper-2);
  --ed-rule: var(--color-rule);
  --ed-subtle: var(--color-paper-3);
  --ed-dark: var(--color-ink);
  --ed-light: var(--color-paper-2);
}
.editorial-page .wrap { max-width: 80rem; }
.editorial-page .mast { padding-block: 1.5rem; border-bottom: 1px solid var(--color-rule-soft); }
.editorial-page a:focus-visible, .editorial-page button:focus-visible, .editorial-page summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
.ed-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.ed-nav a { color: var(--color-ink); text-decoration: none; font-size: .8rem; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.ed-nav a:nth-child(2) { color: var(--color-accent); }
.ed-nav__login { display: none !important; }
.post.post--editorial { max-width: none; padding-top: 0; }
.ed-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-block: 1.25rem; font-size: .75rem; color: var(--color-neutral); }
.ed-breadcrumb a { color: inherit; text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; white-space: nowrap; }
.ed-breadcrumb a:hover, .ed-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ed-label { display: block; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 1rem; }
.ed-hero { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.ed-hero__copy { padding-block: 1rem; min-width: 0; }
.post--editorial .post__title { font-family: var(--font-display); font-size: clamp(2.35rem, 4.5vw, 4.15rem); font-weight: 600; letter-spacing: -.048em; line-height: 1.04; margin: 0 0 1.5rem; max-width: 18ch; overflow-wrap: anywhere; text-wrap: balance; }
.ed-deck { font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.65; color: var(--color-muted); max-width: 43ch; margin: 0 0 1.8rem; }
.post--editorial .post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .72rem; line-height: 1.6; letter-spacing: 0; margin: 0; color: var(--color-muted); }
.post__updated { display: block; width: 100%; }
.post--editorial .post__hero { margin: 0; min-width: 0; max-width: none; width: 100%; }
.ed-hero__image img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.ed-credit { display: block; margin: .65rem 0 0; font-size: .72rem; line-height: 1.5; color: var(--color-neutral); }
.ed-hero__palette { grid-column: 1/-1; display: flex; gap: 0; }
.ed-hero__palette svg { display: block; width: 100%; min-width: 0; height: 18px; }
.ed-theme-metals .ed-hero { background: var(--color-accent-2); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 6px; }
.ed-theme-metals .ed-hero__copy, .ed-theme-metals .ed-hero__copy .post__title, .ed-theme-metals .ed-hero .ed-label, .ed-theme-metals .ed-hero .ed-deck, .ed-theme-metals .ed-hero .post__meta, .ed-theme-metals .ed-hero .post__meta a, .ed-theme-metals .post__byline, .ed-theme-metals .ed-hero .ed-credit { color: var(--color-on-accent); }
.ed-theme-metals .ed-hero__palette { display: none; }
.ed-theme-capsule .ed-hero__palette { height: 32px; }
.ed-theme-capsule .ed-hero__palette svg { height: 32px; }
.post--editorial .post__body { font-size: 1.0625rem; line-height: 1.78; }
.ed-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,var(--ed-reading)) minmax(0,1fr); }
.ed-body > * { grid-column: 2; min-width: 0; }
.post--editorial .post__body > p { margin: 0 0 1.15rem; }
.post--editorial .post__body > p:first-of-type { font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.65; letter-spacing: -.015em; margin-bottom: 1.5rem; }
.post--editorial .post__body h2 { font-family: var(--font-display); font-size: clamp(1.55rem, 2.4vw, 2.15rem); font-weight: 600; line-height: 1.2; letter-spacing: -.028em; margin: 2.5rem 0 1.15rem; scroll-margin-top: 2rem; }
.post--editorial .post__body h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.post--editorial .post__body a { color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post--editorial .post__body ul, .post--editorial .post__body ol { padding-left: 1.4rem; margin-top: .2rem; margin-bottom: 1.5rem; }
.post--editorial .post__body li { padding-left: .2rem; margin-bottom: .65rem; }
.post--editorial .post__body li::marker { color: var(--color-accent); }
.ed-visual { grid-column: 1/-1; width: 100%; margin: 2.25rem auto 2.75rem; }
.ed-figure-head { max-width: 42rem; margin-bottom: 1.75rem; }
.ed-figure-head .ed-label { margin-bottom: .7rem; }
.post--editorial .ed-figure-head h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); margin: 0 0 .7rem; }
.ed-figure-head p, .ed-plate figcaption p, .ed-product p { font-size: .95rem; line-height: 1.65; margin: 0; color: var(--color-muted); }
.ed-caption { margin: 1rem 0 0 !important; color: var(--color-muted); font-size: .78rem; line-height: 1.6; max-width: 48rem; }
.ed-compare, .ed-palette, .ed-atlas, .ed-matrix, .ed-window, .ed-axis { padding: clamp(1.1rem,3.5vw,3rem); background: var(--ed-paper); border-radius: 5px; }
.ed-compare__columns { display: grid; gap: 2rem; }
.ed-compare h4, .ed-atlas h4 { margin: 0 0 1rem; font-size: .95rem; font-family: var(--font-display); font-weight: 600; }
.ed-swatches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem .65rem; }
.ed-swatch { min-width: 0; }
.ed-swatch svg { display: block; width: 100%; height: 86px; border: 1px solid var(--color-rule-soft); }
.ed-swatch__name { display: block; font-size: .7rem; line-height: 1.4; margin-top: .55rem; color: var(--color-ink); }
.ed-swatch__hex { display: block; font-size: .72rem; color: var(--color-neutral); margin-top: .15rem; }
.ed-palette .ed-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ed-palette--tall .ed-swatch svg { height: 155px; }
.ed-palette--dark { background: var(--ed-dark); }
.ed-palette--dark .ed-label, .ed-palette--dark h3, .ed-palette--dark p, .ed-palette--dark .ed-swatch__name { color: var(--ed-light); }
.ed-palette--dark .ed-swatch svg { border: none; }
.ed-plate { display: grid; gap: 1.2rem; }
.ed-plate > img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ed-plate figcaption { padding: 0; max-width: 45rem; }
.ed-plate figcaption .ed-label { margin: 0 0 .55rem; }
.ed-garments { padding: 1.4rem 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.ed-garments__rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.4rem, 2vw, 2rem); align-items: end; }
.ed-garments__photo { display: block; width: 100%; height: auto; border-radius: 4px; }
.ed-garments__rail > span { text-align: center; font-size: .78rem; line-height: 1.4; margin-top: .75rem; }
.ed-note { border-left: 3px solid var(--color-accent); padding: .35rem 0 .35rem 1.5rem; margin: 1.5rem 0 2rem; }
.ed-note .ed-label { margin-bottom: .5rem; }
.ed-note h3 { margin: 0 0 .6rem; }
.ed-note p { font-size: .95rem; margin: 0; color: var(--color-muted); }
.ed-invitation { grid-column: 1/-1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; border-block: 1px solid var(--color-rule); padding: 2rem 0; margin: 2rem 0; }
.ed-invitation .ed-label { margin-bottom: .6rem; }
.ed-invitation h3 { margin: 0 0 .6rem; }
.ed-invitation p { font-size: .9rem; color: var(--color-muted); max-width: 55ch; margin: 0; }
.ed-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; white-space: nowrap; min-height: 44px; font-size: .85rem; font-weight: 600; }
.ed-atlas__grid { display: grid; gap: 2rem; }
.ed-atlas .ed-swatch svg { height: 65px; }
.ed-product { display: grid; gap: 1.5rem; padding-block: 2rem; }
.ed-product h3 { margin: 0 0 1rem; }
.ed-product > img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-panel); }
.ed-product > figcaption { grid-column: 1/-1; }
.ed-reference, .ed-faq { max-width: var(--ed-reading); margin: 2rem auto; border-top: 1px solid var(--color-rule); }
.ed-reference summary, .ed-faq summary { cursor: pointer; padding: 1.25rem 0; font-size: .9rem; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ed-reference summary::-webkit-details-marker, .ed-faq summary::-webkit-details-marker { display: none; }
.ed-reference summary span, .ed-faq summary span { font-size: 1.2rem; flex: none; }
.ed-reference[open] > summary span, .ed-faq details[open] > summary span { transform: rotate(45deg); }
.ed-reference .post__figure { margin: 0 0 1rem; }
.ed-reference figcaption { font-size: .75rem; color: var(--color-muted); }
.post--editorial .ed-faq { border-bottom: 0; padding-block: 1rem; }
.ed-faq h2 { font-family: var(--font-display); font-size: 1.5rem; margin: .6rem 0 1rem; }
.ed-faq details { border-bottom: 1px solid var(--color-rule-soft); }
.ed-faq details p { font-size: .95rem; line-height: 1.7; margin: 0 0 1.25rem; }
.post--editorial .ed-closing { max-width: none; border: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 2rem; padding: clamp(1.5rem,4.5vw,4rem); margin-top: 4rem; background: var(--color-paper-3); border-radius: 5px; position: relative; overflow: clip; }
.ed-closing h2 { font-family: var(--font-display); font-size: clamp(2rem,3.3vw,3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; margin: 0 0 1.1rem; max-width: 19ch; }
.ed-closing__copy > p:not(.ed-label) { font-size: .98rem; line-height: 1.6; color: var(--color-muted); max-width: 45ch; }
.ed-closing .btn { display: inline-flex; gap: 1.5rem; white-space: nowrap; align-items: center; justify-content: center; padding: .9rem 1.6rem; border-radius: var(--r-pill); min-height: 48px; font-size: .9rem; }
.ed-closing .ed-closing__terms { font-size: .72rem !important; }
.ed-closing__art { display: flex; justify-content: center; align-items: center; padding: 1rem .5rem; }
.ed-closing__art svg { width: 27%; max-width: 112px; height: auto; transform: rotate(-14deg); margin-right: -1.25rem; box-shadow: var(--shadow-panel); border: 5px solid var(--color-paper-2); border-bottom-width: 28px; }
.ed-closing__art svg:nth-child(2) { transform: translateY(-12px) rotate(-5deg); }
.ed-closing__art svg:nth-child(3) { transform: translateY(-8px) rotate(5deg); }
.ed-closing__art svg:nth-child(4) { transform: rotate(14deg); }
.ed-parent-link { text-align: center; margin: 1.25rem auto; }
.post--editorial .ed-related { max-width: none; border: 0; margin: 4rem 0 1rem; padding: 0; }
.ed-related__heading h2 { margin: 0 0 1.5rem; font-size: 1.4rem; }
.ed-related ul { display: grid; gap: 1.5rem; padding: 0; list-style: none; }
.ed-related li a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .75rem; text-decoration: none; color: var(--color-ink); align-items: center; }
.ed-related li img { grid-column: 1/-1; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.ed-related li span:first-of-type { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.ed-related li a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.ed-matrix__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.ed-matrix__pair { min-width: 0; }
.ed-matrix__pair svg { display: block; width: 100%; height: auto; }
.ed-matrix__pair span { display: block; font-size: .72rem; line-height: 1.4; margin-top: .4rem; }
.ed-matrix__caption { max-width: 45rem; }
.ed-axis__row { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--color-rule-soft); }
.ed-axis__row h4 { margin: 0 0 .3rem; font-size: .95rem; }
.ed-axis__row p { margin: 0; font-size: .8rem; color: var(--color-muted); }
.ed-axis__row .ed-swatches { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ed-axis__row .ed-swatch svg { height: 80px; }
.ed-window__photo { display: block; width: 100%; height: auto; border-radius: 4px; }
.ed-window__labels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; font-size: .75rem; line-height: 1.5; margin-top: 1rem; }
.ed-window__labels span { border-top: 1px solid var(--color-rule); padding-top: .65rem; }
.ed-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.ed-controls button { appearance: none; cursor: pointer; font: inherit; font-size: .8rem; min-height: 44px; border: 1px solid var(--color-rule); border-radius: var(--r-pill); padding: .6rem 1.15rem; background: var(--color-paper-2); color: var(--color-ink); }
.ed-controls button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper-2); border-color: var(--color-ink); }
.ed-controls button[aria-pressed="true"]::before { content: '✓ '; }
.ed-palette-picker [hidden] { display: none !important; }
.ed-only-js { display: none; }
.ed-palette-picker.is-enhanced .ed-only-js { display: flex; }
@media (max-width: 39.99rem) {
  .ed-nav > a:first-child { display: none; }
}
@media (min-width: 40rem) {
  .ed-nav__login { display: inline-flex !important; }
  .ed-compare__columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
  .ed-palette .ed-swatches { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .ed-atlas__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ed-invitation { flex-direction: row; align-items: center; justify-content: space-between; }
  .ed-related ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .post--editorial .ed-closing { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: center; }
  .ed-axis__row { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: center; }
  .ed-matrix__grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width: 60rem) {
  .ed-hero { grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr); align-items: center; gap: 2.25rem 3rem; }
  .ed-hero__copy { padding-block: 2rem; }
  .ed-hero__image img { aspect-ratio: 5/4; }
  .ed-theme-winter .ed-hero { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  .ed-theme-winter .ed-hero__copy { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); column-gap: 3.5rem; padding-block: 1rem; }
  .ed-theme-winter .ed-hero .ed-label { grid-column: 1/-1; }
  .ed-theme-winter .ed-hero .post__title { grid-row: span 2; max-width: 20ch; margin: 0; }
  .ed-theme-winter .ed-hero .ed-deck { margin: .5rem 0 1.5rem; }
  .ed-theme-winter .ed-hero__image img { aspect-ratio: 2.4/1; }
  .ed-theme-winter .ed-hero__palette { margin-top: -1rem; }
  .ed-theme-analysis .ed-hero__image { transform: rotate(1.2deg); }
  .ed-theme-analysis .ed-hero__palette { width: 58%; margin-left: auto; }
  .ed-theme-capsule .ed-hero { grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr); }
  .ed-theme-capsule .ed-hero__image img { aspect-ratio: 16/9; }
  .ed-theme-capsule .post__title { font-size: clamp(2.35rem, 4vw, 3.65rem); }
  .ed-theme-analysis .ed-atlas__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ed-theme-undertone .ed-hero__image img { border-radius: 45% 45% 4px 4px; }
  .ed-plate--aside { grid-template-columns: minmax(0,1.6fr) minmax(0,.7fr); align-items: center; gap: 2.5rem; }
  .ed-product { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; gap: 2.5rem; }
  .ed-atlas__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ed-theme-winter .ed-atlas__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ed-hero__image { animation: editorial-arrive 520ms var(--ease-out) both; }
  .ed-controls button { transition: background-color 130ms var(--ease-out), color 130ms var(--ease-out); }
  @keyframes editorial-arrive { from { opacity: .7; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
}
@media print {
  .ed-nav, .ed-closing, .ed-related, .ed-invitation, .colophon { display: none; }
  .ed-body { display: block; }
  .ed-visual { break-inside: avoid; }
  .ed-controls { display: none !important; }
  .ed-palette-picker [hidden] { display: block !important; }
}

/* Feature portraits keep the explanation beside its visual example. */
.ed-portraits__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: clamp(1.25rem,3vw,2.5rem); }
.ed-portrait { margin: 0; min-width: 0; }
.ed-portrait > img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ed-portrait figcaption { padding-top: 1.15rem; }
.ed-portrait__season { font-family: var(--font-display); font-size: .78rem; font-weight: 600; text-decoration: none; }
.ed-portrait h4 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; margin: .5rem 0 .8rem; }
.post--editorial .ed-portrait ul { font-size: .9rem; line-height: 1.6; padding-left: 1.05rem; margin-bottom: .8rem; }
.ed-portrait figcaption > p { font-size: .9rem; line-height: 1.65; color: var(--color-muted); margin: 0 0 1.2rem; }
.ed-portrait .ed-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ed-portrait .ed-swatch svg { height: 42px; }
.ed-portrait .ed-swatch__name { font-size: .72rem; }
@media (min-width: 48rem) {
  .ed-portraits__grid--single .ed-portrait { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 3rem; max-width: 58rem; margin-inline: auto; }
  .ed-portraits__grid--single .ed-portrait figcaption { padding-top: 0; }
}
