/* Magazine reading layout for Sitrifor news articles */
@font-face {
  font-family: 'Literata Mag';
  src: url('/fonts/magazine/literata-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata Mag';
  src: url('/fonts/magazine/literata-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F;
}
@font-face {
  font-family: 'Literata Mag';
  src: url('/fonts/magazine/literata-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata Mag';
  src: url('/fonts/magazine/literata-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F;
}
@font-face {
  font-family: 'Source Serif Mag';
  src: url('/fonts/magazine/source-serif-4-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif Mag';
  src: url('/fonts/magazine/source-serif-4-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F;
}
@font-face {
  font-family: 'Source Serif Mag';
  src: url('/fonts/magazine/source-serif-4-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif Mag';
  src: url('/fonts/magazine/source-serif-4-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F;
}

.news-mag {
  --mag-display: 'Literata Mag', 'Manrope', Georgia, serif;
  --mag-body: 'Source Serif Mag', Georgia, 'Times New Roman', serif;
  --mag-measure: 38rem;
  max-width: min(52rem, 100%);
  padding: 0 0 1rem;
  color: var(--color-text-secondary);
}

.news-article.news-article--magazine {
  max-width: min(52rem, 100%);
}

.news-mag__back {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--color-text-hint);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--g-font-family);
}

.news-mag__back:hover {
  color: var(--color-accent);
}

/* Hero */
.news-mag__hero {
  position: relative;
  margin: 0 0 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #0c0c0e;
  min-height: 220px;
}

.news-mag__hero--editorial {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.news-mag__hero--editorial img,
.news-mag__hero--product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-mag__hero--phones {
  padding: 1.5rem 1rem 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 214, 10, 0.14), transparent 50%),
    linear-gradient(160deg, #1a1a1e 0%, #0c0c0e 60%);
}

.news-mag__hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.4rem, 2vw, 1rem);
  min-height: 260px;
}

.news-mag__hero-phones img {
  width: min(22%, 140px);
  height: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform-origin: bottom center;
}

.news-mag__hero-phones img:nth-child(1) { transform: rotate(-6deg) translateY(12px); }
.news-mag__hero-phones img:nth-child(2) { transform: rotate(-2deg) translateY(0); width: min(24%, 155px); z-index: 2; }
.news-mag__hero-phones img:nth-child(3) { transform: rotate(2deg) translateY(6px); }
.news-mag__hero-phones img:nth-child(4) { transform: rotate(7deg) translateY(16px); }

.news-mag__hero--product {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1;
}

/* Masthead */
.news-mag__kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 10, 0.35);
  background: rgba(255, 214, 10, 0.08);
  color: var(--color-accent);
  font-family: var(--g-font-family);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-mag__title {
  margin: 0 0 0.85rem;
  max-width: var(--mag-measure);
  font-family: var(--mag-display);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.news-mag__deck {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  font-family: var(--mag-body);
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.news-mag__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--g-font-family);
  font-size: 0.8rem;
  color: var(--color-text-hint);
}

.news-mag__byline-read {
  color: var(--color-accent);
  font-weight: 700;
}

/* Body */
.news-mag__lead,
.news-mag__prose {
  max-width: var(--mag-measure);
  margin: 0 0 1.15rem;
  font-family: var(--mag-body);
  font-size: 1.125rem;
  line-height: 1.8;
}

.news-mag__lead {
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.82);
}

.news-mag__lead--drop::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  padding-right: 0.05em;
  font-family: var(--mag-display);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--color-accent);
}

.news-mag__chapter {
  max-width: var(--mag-measure);
  margin: 2.1rem 0 0.85rem;
  font-family: var(--mag-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.news-mag__list {
  max-width: var(--mag-measure);
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  font-family: var(--mag-body);
  font-size: 1.08rem;
  line-height: 1.7;
}

.news-mag__list li {
  margin-bottom: 0.55rem;
}

.news-mag__list li::marker {
  color: var(--color-accent);
}

.news-mag .news-article__related {
  max-width: var(--mag-measure);
  margin: 2.25rem 0 1rem;
}

.news-mag .news-article__related-btn {
  font-family: var(--mag-body, inherit);
}

.news-mag a.news-article__related-btn {
  color: var(--color-text);
}

.news-mag a.news-article__related-btn:hover,
.news-mag a.news-article__related-btn:focus-visible {
  color: var(--color-accent);
}

.news-mag a {
  color: var(--color-accent);
}

/* Brand CTAs use yellow fill + dark ink; do not inherit accent link color */
.news-mag a.btn--brand,
.news-mag a.btn--brand:hover,
.news-mag a.btn--brand:focus-visible {
  color: var(--color-accent-ink);
}

/* Pull quote */
.news-mag__pull {
  max-width: 34rem;
  margin: 2rem auto 2.1rem;
  padding: 0.35rem 0 0.35rem 1.15rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--mag-display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

/* Gallery */
.news-mag__gallery {
  margin: 1.5rem 0 2rem;
}

.news-mag__gallery--phones {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-mag__gallery--phones figure {
  flex: 0 0 auto;
  margin: 0;
  width: min(46vw, 180px);
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.news-mag__gallery--phones img {
  display: block;
  width: 100%;
  height: auto;
}

.news-mag__gallery--phones figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  font-family: var(--g-font-family);
  font-size: 0.72rem;
  color: var(--color-text-hint);
}

/* Swipe gallery for birthday / tattoo reference images */
.news-mag__gallery--tattoos {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 1.1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.news-mag__gallery--tattoos figure {
  flex: 0 0 auto;
  margin: 0;
  width: min(72vw, 280px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-bg-elevated, #111);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.news-mag__gallery--tattoos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1a1a1a;
}

.news-mag__gallery--tattoos figcaption {
  padding: 0.5rem 0.65rem 0.6rem;
  font-family: var(--g-font-family);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-text-hint);
}

.news-mag__hero--birthday {
  margin: 0 0 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 214, 10, 0.14), transparent 50%),
    linear-gradient(160deg, #1a1a1e 0%, #0c0c0e 60%);
  position: relative;
}

/* Compact banner like homepage 634 card / magazine phones hero */
.news-mag__hero--birthday-phones {
  min-height: 280px;
  max-height: 360px;
  padding: 1.35rem 1rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-mag__hero-tattoo-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.45rem, 1.8vw, 0.9rem);
  width: 100%;
}

.news-mag__hero-tattoo-shot {
  width: auto;
  height: clamp(170px, 28vw, 260px);
  max-width: 28%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px 18px 0 0;
  border: 1.5px solid rgba(255, 214, 10, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  background: #111;
  transform-origin: bottom center;
}

.news-mag__hero-tattoo-shot:nth-child(1) { transform: translateY(10px) rotate(-4deg); z-index: 1; }
.news-mag__hero-tattoo-shot:nth-child(2) { transform: translateY(0) rotate(-1deg); z-index: 3; height: clamp(190px, 31vw, 290px); max-width: 32%; }
.news-mag__hero-tattoo-shot:nth-child(3) { transform: translateY(6px) rotate(2deg); z-index: 2; }
.news-mag__hero-tattoo-shot:nth-child(4) { transform: translateY(14px) rotate(5deg); z-index: 1; }

.news-mag__hero--birthday-cover {
  aspect-ratio: 16 / 9;
  max-height: 320px;
  min-height: 200px;
}

.news-mag__hero--birthday-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mag__hero-brand {
  position: absolute;
  left: 1rem;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  pointer-events: none;
}

.news-mag__hero-brand--oncover {
  left: 1.1rem;
  bottom: 0.85rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.news-mag__hero-brand-mark {
  font-family: var(--g-font-family);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.news-mag__hero-brand-kicker {
  font-family: var(--mag-display, var(--font-display));
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .news-mag__hero--birthday-phones {
    min-height: 220px;
    max-height: 280px;
    padding: 1rem 0.75rem 2.5rem;
  }

  .news-mag__hero-tattoo-shot {
    height: 150px;
    max-width: 30%;
  }

  .news-mag__hero-tattoo-shot:nth-child(2) {
    height: 170px;
  }

  .news-mag__hero-tattoo-shot:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-mag__hero-tattoo-shot {
    transform: none !important;
  }
}

.news-mag__gallery--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .news-mag__gallery--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-mag__gallery--grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.news-mag__gallery--grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}

.news-mag__figure {
  margin: 1.5rem 0 1.75rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.news-mag__figure--bleed {
  max-width: none;
}

.news-mag__figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.news-mag__figure figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-hint);
  font-family: var(--g-font-family);
}

.news-mag__divider {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--color-line), transparent);
}

/* CTA band */
.news-mag__cta {
  margin: 2.25rem 0 1.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 10, 0.32);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 214, 10, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.news-mag__cta h2 {
  margin: 0 0 0.35rem;
  font-family: var(--mag-display);
  font-size: 1.35rem;
  color: var(--color-text);
}

.news-mag__cta p {
  margin: 0 0 1rem;
  font-family: var(--mag-body);
  font-size: 1.05rem;
}

.news-mag__cta .btn {
  text-decoration: none;
}

.news-mag__cta .btn--brand {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.news-mag__cta .btn--brand:hover,
.news-mag__cta .btn--brand:focus-visible {
  background: var(--color-accent-hover);
  color: var(--color-accent-ink);
}

.news-mag__cta--care {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 720px) {
  .news-mag__cta--care {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  }
}

.news-mag__cta-visual {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 10, 0.28);
}

.news-mag__cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.news-mag__cta-copy {
  min-width: 0;
}

.news-mag__hero--birthday-care {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-mag__hero--birthday-care:focus-visible {
  outline: 2px solid #ffd60a;
  outline-offset: 4px;
}

.news-mag__buy {
  margin: 2rem 0 1.5rem;
}

.news-mag .news-product-card {
  max-width: var(--mag-measure);
  margin: 0.25rem 0 1.75rem;
}

.news-mag .news-product-card__name {
  font-family: var(--mag-display, inherit);
}

.news-mag a.news-product-card__name {
  color: var(--color-text);
}

.news-mag a.news-product-card__name:hover {
  color: var(--color-accent);
}

.news-mag__footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.85rem;
  color: var(--color-text-hint);
  font-family: var(--g-font-family);
}

/* Theme accents */
.news-mag--editor .news-mag__kicker {
  border-color: rgba(255, 69, 58, 0.4);
  background: rgba(255, 69, 58, 0.1);
  color: #ff8a80;
}

.news-mag--review .news-mag__hero--product {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 639px) {
  .news-mag__hero-phones {
    min-height: 200px;
  }
  .news-mag__lead--drop::first-letter {
    font-size: 3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-mag__hero-phones img {
    transform: none !important;
  }
}
