/* ============================================
 * NY Magazine Strategist — Listicle Theme
 * Source: nymag.com/strategist/article/best-pillows.html
 * Extracted: 2026-03-15 (Production v2)
 *
 * Design system:
 *   Serif: Georgia, "Times New Roman", serif
 *   Sans: "Helvetica Neue", Arial, sans-serif
 *   Mono: Pitch, "Courier New", monospace
 *   Palette: #000 text, #FFF bg, #DB2800 accent, #0000EE links
 *   Content: ~680px centered column
 *   Key features: drop-cap, red fancy divider, product cards,
 *     multi-retailer buy buttons, collapsible accordions, TOC
 * ============================================ */


/* === RESET & BASE === */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #000;
  background: #FFF;
}

a {
  color: #000;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 #000;
  transition: color 0.15s, box-shadow 0.15s;
}

a:hover, a:focus {
  color: #DB2800;
  box-shadow: inset 0 -2px 0 0 #DB2800;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 20px;
}


/* === LAYOUT === */

.wrapper {
  width: 100%;
}

.article-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}


/* === NAVIGATION — TOP BAR === */

.top {
  border-bottom: 1px solid #E5E5E5;
}

.global-nav {
  background: #FFF;
  padding: 0 0 14px;
  position: relative;
}

.global-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 0;
}

.global-nav-site-list {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.vertical-item {
  display: inline-block;
}

.vertical-link {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  box-shadow: none;
}

.vertical-link:hover {
  color: #DB2800;
  box-shadow: none;
}


/* === NAVIGATION — STICKY HEADER === */

.page-sticky-header {
  position: sticky;
  top: 0;
  z-index: 9001;
  background: #FFF;
  border-bottom: 1px solid #E5E5E5;
  pointer-events: auto;
}

.article-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-nav-dynamic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.article-nav-top {
  display: flex;
  align-items: center;
  width: 100%;
}

.article-nav-top-left {
  flex: 0 0 auto;
}

.article-nav-top-center {
  flex: 1;
  text-align: center;
}

.logo-link {
  text-decoration: none;
  box-shadow: none;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
}

.menu .button-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
}


/* === NAVIGATION — CATEGORY BAR === */

.page-header {
  border-bottom: 1px solid #E5E5E5;
}

.categories-sub-navigation {
  background: #FFF;
  padding: 15px 0 0;
  width: 100%;
}

.categories-sub-navigation-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.categories-sub-navigation-inner-wrapper {
  padding: 0 20px;
}

.categories-sub-navigation-list {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  padding-bottom: 12px;
}

.categories-sub-navigation-item a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  box-shadow: none;
  padding-bottom: 4px;
}

.categories-sub-navigation-item a:hover {
  box-shadow: inset 0 -2px 0 0 #DB2800;
  color: #DB2800;
}

.editorial-disclaimer {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: #5A5A5A;
  letter-spacing: 0.25px;
  margin: 12px 20px 0;
  padding-bottom: 12px;
  text-align: center;
}

.editorial-disclaimer em {
  font-style: italic;
}


/* === ARTICLE HEADER / HERO === */

.article {
  max-width: 1180px;
  margin: 0 auto;
}

.article.feature {
  position: relative;
}

.article-header {
  padding: 0 20px;
}

.article-header.feature.horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  max-width: 1180px;
  margin: 30px auto 0;
}

.article-header.feature.horizontal .primary-area {
  flex: 1 1 50%;
  min-width: 0;
}

.article-header.feature.horizontal .secondary-area {
  flex: 0 0 auto;
  text-align: right;
}

.article-header.feature.horizontal.has-secondary-area-component .lede-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lede-wrapper {
  display: flex;
  flex-direction: column;
}

.primary-area {
  margin: 0 0 15px;
  position: relative;
}

.secondary-area {
  margin: 0;
}

.article-header-section {
  margin-bottom: 8px;
}

.rubric-nav {
  margin-bottom: 12px;
}

.rubric {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DB2800;
  text-decoration: none;
  box-shadow: none;
}

.rubric:hover {
  text-decoration: underline;
  box-shadow: none;
}

.headline-primary {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  color: #000;
}

.display-teaser {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #5A5A5A;
  margin: 0 0 16px;
}


/* === BYLINE & AUTHOR === */

.bylines {
  margin-top: 15px;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
  display: flex;
  align-items: center;
}

.bylines.with-portrait {
  align-items: flex-start;
}

.author-photo-container {
  flex: 0 0 auto;
  margin-right: 8px;
}

.author-photo {
  border-radius: 50%;
  display: inline-block;
  height: 40px;
  width: 40px;
  object-fit: cover;
}

.primary-bylines {
  flex: 1;
}

.main-author {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
}

.main-author span {
  color: #5A5A5A;
}

.author-name a.article-author {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 #000;
}

.author-name a.article-author:hover {
  color: #DB2800;
  box-shadow: inset 0 -2px 0 0 #DB2800;
}

.author-bio {
  font-style: normal;
  color: #5A5A5A;
  font-weight: 400;
}

.author-page {
  text-decoration: none;
  box-shadow: none;
}

.with-bio {
  display: flex;
  flex-direction: column;
}

.article-timestamp {
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A5A5A;
}


/* === LEDE IMAGE === */

.lede-image-wrapper {
  margin: 30px 0 0;
  position: relative;
}

.lede-image-wrapper.special-feature.horizontal {
  max-width: 100%;
  overflow: hidden;
}

.lede-image-wrapper .image-wrapper {
  position: relative;
  width: 100%;
}

.lede-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #FDFBEC;
  color: #000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  transform: rotate(-3deg);
}


/* === TABLE OF CONTENTS === */

.article-toc {
  margin: 30px 0 30px auto;
  width: 300px;
  float: right;
  padding-left: 30px;
}

.article-toc.bottom-rule {
  border-bottom: 1px solid #E5E5E5;
  padding-bottom: 20px;
}

.article-toc .header {
  margin-bottom: 12px;
}

.article-toc .title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
}

.article-toc .anchors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc .anchors li {
  margin-bottom: 8px;
}

.article-toc .anchors a {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.2);
}

.article-toc .anchors a:hover {
  color: #DB2800;
  box-shadow: inset 0 -2px 0 0 #DB2800;
}


/* === TYPOGRAPHY — PARAGRAPHS === */

.body-paragraph {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  color: #111;
  margin: 0 0 20px;
}

.body-paragraph a {
  color: #000;
  box-shadow: inset 0 -1px 0 0 #000;
}

.body-paragraph a:hover {
  color: #DB2800;
  box-shadow: inset 0 -2px 0 0 #DB2800;
}

.body-paragraph-drop-cap {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  color: #111;
  margin: 0 0 20px;
}

.body-paragraph-drop-cap::first-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 6px 8px 0 0;
  color: #000;
}

.body-paragraph-specs {
  font-family: Pitch, "Courier New", monospace;
  font-size: 15px;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #5A5A5A;
  margin: 0 0 30px;
}

.body-paragraph-specs strong {
  font-style: italic;
  font-weight: 700;
  color: #000;
}

.body-paragraph-specs em {
  font-style: italic;
}


/* === TYPOGRAPHY — SUBHEADERS === */

.subheader-container {
  padding: 12px 0 20px;
  clear: both;
}

.section-subheader {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
  letter-spacing: -0.3px;
}

.subheader-container-fancy {
  padding: 40px 0 20px;
  clear: both;
}

.section-subheader-fancy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
  position: relative;
}

.fancy-divider {
  display: block;
  background: #DB2800;
  height: 10px;
  width: 20%;
  margin: 0 0 20px;
}

.section-subheader-fancy .text {
  display: block;
}


/* === PRODUCT GRID (TOP PICKS) === */

.product-grid {
  width: 100%;
  margin: 0 0 30px;
  padding: 20px 0;
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
}

.product-grid.narrow {
  max-width: 680px;
}

.product-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.product-grid-item {
  min-width: 0;
}

.product-grid-item-contents {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-grid-item-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-grid-item-image {
  margin-bottom: 10px;
}

.product-grid-item-image.square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F5F5F5;
}

.product-grid-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-grid-item-image-link {
  display: block;
  text-decoration: none;
  box-shadow: none;
}

.product-grid-item-details {
  flex: 1;
}

.product-grid-item-title {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
}

.product-grid-item-title a {
  color: #DB2800;
  text-decoration: none;
  box-shadow: none;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
}

.product-grid-item-name {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}


/* === PRODUCT CARD (FULL REVIEW) === */

.product {
  padding: 30px 0;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  flex-direction: column;
}

.product-section {
  margin-bottom: 16px;
}

.product-section.product-image {
  max-width: 300px;
  margin: 5px 0 16px;
}

.product-section.product-image.square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F5F5F5;
}

.product-section.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-section.product-image a {
  display: block;
  box-shadow: none;
}

.product-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #000;
}

.product-headline a {
  color: #000;
  text-decoration: none;
  box-shadow: none;
}

.product-headline a:hover {
  color: #DB2800;
}

.product-details {
  margin-bottom: 20px;
}

.buy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.buy-item {
  flex: 0 0 auto;
}

.product-buy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF;
  border: 1px solid #000;
  border-radius: 2px;
  padding: 8px 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.product-buy-button:hover {
  background: #000;
  color: #FFF;
  box-shadow: none;
}

.product-buy-price {
  font-weight: 700;
}

.product-buy-merchant {
  font-weight: 400;
  color: #5A5A5A;
}

.product-buy-button:hover .product-buy-merchant {
  color: #CCC;
}

.product-buy-link {
  text-decoration: none;
  box-shadow: none;
}

.product-buy-link:hover {
  box-shadow: none;
}

.product-description {
  margin-top: 16px;
}

.product-description .body-paragraph {
  font-size: 16px;
  line-height: 1.65;
}


/* === ACCORDION === */

.accordion {
  border-top: 1px solid #E5E5E5;
}

.accordion.accordion-auto-border {
  border-bottom: 1px solid #E5E5E5;
}

.accordion .container {
  max-width: 100%;
}

.accordion .header-container {
  cursor: pointer;
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  margin: 0;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  font-weight: inherit;
}

.accordion-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.accordion-title {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #000;
}

.icon-place-holder {
  flex: 0 0 auto;
  margin-left: 16px;
}

.icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.icon .line {
  position: absolute;
  background: #000;
  transition: transform 0.2s;
}

.icon .line:first-child {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.icon .line.rotate-90 {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-header[aria-expanded="true"] .icon .line.rotate-90 {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content[style*="max-height"] {
  padding-bottom: 16px;
}

.accordion-content .body-paragraph {
  font-size: 16px;
}


/* === INLINE IMAGES === */

.editorial-image {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 40px 0;
  position: relative;
  z-index: 2;
}

.editorial-image.deep-vertical.inline {
  justify-content: center;
}

.editorial-image .image-wrapper {
  width: 100%;
  max-width: 680px;
}

.editorial-image img {
  width: 100%;
  height: auto;
}

.image-caption {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: #767676;
  margin-top: 8px;
  font-style: italic;
}


/* === FOOTER === */

.bottom {
  border-top: 1px solid #E5E5E5;
  margin-top: 40px;
}

.global-footer {
  margin: 0 20px 24px;
  padding-top: 24px;
  text-align: center;
}

.global-footer .primary-section {
  display: flex;
  justify-content: center;
}

.global-footer .logo-wrapper {
  display: inline-block;
}

.global-footer .logo {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  box-shadow: none;
  letter-spacing: -0.5px;
}


/* === RESPONSIVE — TABLET === */

@media (max-width: 1024px) {
  .article-header.feature.horizontal {
    flex-direction: column;
    padding: 0 20px;
  }

  .article-toc {
    float: none;
    width: 100%;
    margin: 20px 0;
    padding-left: 0;
  }

  .product-section.product-image {
    max-width: 250px;
  }
}


/* === RESPONSIVE — MOBILE === */

@media (max-width: 768px) {
  .headline-primary {
    font-size: 28px;
  }

  .display-teaser {
    font-size: 17px;
  }

  .section-subheader,
  .section-subheader-fancy {
    font-size: 22px;
  }

  .body-paragraph,
  .body-paragraph-drop-cap {
    font-size: 16px;
  }

  .body-paragraph-drop-cap::first-letter {
    font-size: 3.8em;
  }

  .article-content {
    padding: 0 16px;
  }

  .article-header {
    padding: 0 16px;
  }

  .article-toc {
    float: none;
    width: 100%;
    margin: 20px 0;
    padding-left: 0;
  }

  .product-grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-section.product-image {
    max-width: 100%;
  }

  .buy-items {
    flex-direction: column;
  }

  .buy-item {
    width: 100%;
  }

  .product-buy-button {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .categories-sub-navigation-list {
    gap: 16px;
  }

  .global-nav-site-list {
    display: none;
  }

  .editorial-disclaimer {
    margin: 8px 16px 0;
    font-size: 11px;
  }

  .editorial-image {
    margin: 24px 0;
  }

  .subheader-container-fancy {
    padding: 30px 0 16px;
  }

  .product-headline {
    font-size: 18px;
  }
}


/* === ACCORDION JS TOGGLE === */

.accordion-header[aria-expanded="true"] + .accordion-content,
.accordion.open .accordion-content {
  max-height: 2000px;
}


/* === UTILITIES === */

.square {
  aspect-ratio: 1 / 1;
}

.read-more {
  position: relative;
}

/* Scroll-reveal fallback: auto-reveal after 1s if JS fails */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal:not(.revealed) {
  animation: reveal-fallback 0.6s ease forwards;
  animation-delay: 1s;
}
.reveal.revealed {
  animation: none;
}
[data-scroll-reveal]:not(.revealed) {
  animation: reveal-fallback 0.6s ease forwards;
  animation-delay: 1s;
}
[data-scroll-reveal].revealed {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal:not(.revealed), [data-scroll-reveal]:not(.revealed) {
    opacity: 1; transform: none; animation: none;
  }
}
