/* ============================================================
   01-FOLIO — פוליו: Luxury Editorial Magazine
   Palette: ivory paper, near-black ink, oxblood red, gold rules
   Typography: Frank Ruhl Libre (display) · Heebo (body) · JetBrains Mono (tags)
   ============================================================ */

/* --- Google Fonts (imported in HTML) --- */

/* === CSS VARIABLES === */
:root {
  --ivory:        #f7f3ea;
  --ivory-dark:   #ede8da;
  --ivory-darker: #e0d9c8;
  --ink:          #1c1a16;
  --ink-soft:     #3a3630;
  --ink-muted:    #6b6457;
  --oxblood:      #7a2230;
  --oxblood-light:#9e3244;
  --gold:         #b89a5a;
  --gold-light:   #d4b87a;
  --white:        #ffffff;

  --ff-serif:  'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --ff-sans:   'Heebo', 'Arial Hebrew', Arial, sans-serif;
  --ff-mono:   'JetBrains Mono', 'Courier New', monospace;

  --hairline: 1px solid var(--gold);
  --rule:     1px solid rgba(28,26,22,0.18);

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow:      cubic-bezier(0.25, 0, 0.1, 1);

  /* Phone widget skins */
  --phone-header: #075e54;
  --phone-bubble-r: 8px;
  --phone-bg: #ece5dd;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  direction: rtl;
  font-family: var(--ff-sans);
  background-color: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === TYPOGRAPHY HELPERS === */
.serif { font-family: var(--ff-serif); }
.mono  { font-family: var(--ff-mono); }
.oxblood { color: var(--oxblood); }
.gold    { color: var(--gold); }
.muted   { color: var(--ink-muted); }

/* === PAGE STRUCTURE === */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* === FOLIO CORNER MARKS === */
.folio-mark {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  opacity: 0.5;
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.folio-tl { top: 16px; right: 16px; }
.folio-tr { top: 16px; left: 16px; }
.folio-bl { bottom: 16px; right: 16px; }
.folio-br { bottom: 16px; left: 16px; }

/* === HAIRLINE RULES === */
.hr-gold {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: 0.4;
}
.hr-gold-double {
  border: none;
  height: 5px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  opacity: 0.4;
}
.hr-ink {
  border: none;
  border-top: 1px solid rgba(28,26,22,0.14);
}

/* === MASTHEAD / NAMEPLATE === */
.masthead {
  position: relative;
  padding: 32px 56px 0;
  background: var(--ivory);
  z-index: 10;
}

.masthead-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.masthead-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
}

.masthead-meta {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.masthead-date {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.nameplate-wrap {
  padding: 18px 0 16px;
  text-align: center;
  position: relative;
}

.nameplate-title {
  font-family: var(--ff-serif);
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.nameplate-issue {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.nameplate-tagline {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 300;
}

.masthead-bottom-line {
  border-top: 1px solid var(--gold);
  margin-bottom: 0;
}

.masthead-rule-double {
  border-top: 3px double var(--gold);
  opacity: 0.5;
  margin: 4px 0;
}

/* === TICKER STRIP === */
.ticker-strip {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  padding: 0;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--oxblood-light);
  background: var(--ink);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  /* RTL marquee: container LTR */
  direction: ltr;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* RTL marquee: track LTR, items RTL */
  direction: ltr;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover,
.ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  /* RTL marquee: each item RTL */
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(247,243,234,0.82);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-item-time {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ticker-pause-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-family: var(--ff-mono);
  font-size: 9px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: 2px;
  height: 20px;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
}

.ticker-pause-btn:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}

.ticker-pause-btn.is-paused {
  color: var(--gold);
  border-color: var(--gold);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* === LEAD STORY SPREAD === */
.lead-spread {
  padding: 64px 56px 56px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 0;
  max-width: 1320px;
  margin: 0 auto;
}

.lead-divider-vert {
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.3;
  margin: 0 40px;
}

.lead-left {
  padding-left: 40px;
}

.lead-right {
  padding-right: 40px;
}

.lead-kicker {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--oxblood);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.lead-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--oxblood);
  flex-shrink: 0;
}

.lead-headline {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.lead-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 28px;
  font-style: italic;
  font-family: var(--ff-serif);
  border-right: 2px solid var(--gold);
  padding-right: 16px;
}

.lead-byline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-byline-author {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.lead-byline-meta {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Drop cap */
.drop-cap::first-letter {
  float: right;
  font-family: var(--ff-serif);
  font-size: 5.2em;
  line-height: 0.82;
  margin-left: 10px;
  margin-top: 4px;
  color: var(--oxblood);
  font-weight: 700;
}

.lead-body p {
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.lead-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: opacity 0.2s var(--ease-editorial);
}
.lead-read-more:hover { opacity: 0.65; }

/* === EDITORIAL DIARY (News) === */
.editorial-diary {
  padding: 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-subtitle {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.diary-grid {
  display: grid;
  grid-template-columns: 80px 1px 1fr;
  gap: 0;
}

.diary-timeline-col {
  /* left gutter for dates */
}

.diary-rule-col {
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
  margin: 0 24px;
}

.diary-items-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.diary-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28,26,22,0.08);
  align-items: start;
}

.diary-item.visible {
  animation: reveal-rtl 0.6s var(--ease-editorial) both;
}

.diary-item-time {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding-top: 3px;
  text-align: left;
}

.diary-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  margin-top: 6px;
  margin-right: auto;
  margin-left: auto;
  flex-shrink: 0;
}

.diary-item-dot.is-breaking {
  background: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(122,34,48,0.15);
}

.diary-item-content {}

.diary-item-source {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.diary-item-headline {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.diary-item-dek {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.urgency-stamp {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  padding: 1px 6px;
  border-radius: 1px;
  margin-right: 8px;
  vertical-align: middle;
  transform: rotate(-1deg);
  display: inline-block;
}

.diary-link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.diary-link-all:hover { opacity: 0.65; }

/* === ARTICLES CONTENTS SPREAD === */
.articles-spread {
  padding: 56px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-entry {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 24px;
  padding: 24px 0;
  border-bottom: var(--rule);
  align-items: start;
}

.article-entry.visible {
  animation: reveal-up 0.5s var(--ease-editorial) both;
}

.article-entry:hover .article-entry-title {
  color: var(--oxblood);
}

.article-index {
  font-family: var(--ff-serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--ivory-darker);
  letter-spacing: -0.04em;
  user-select: none;
  margin-top: -8px;
}

.article-entry-body {}

.article-entry-cat {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 6px;
}

.article-entry-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.article-entry-excerpt {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 520px;
}

.article-entry-meta {
  text-align: left;
  flex-shrink: 0;
}

.article-entry-author {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.article-entry-time {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* Featured article carousel */
.featured-carousel {
  margin-bottom: 48px;
  position: relative;
}

.featured-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: var(--ivory-dark);
  border: 1px solid var(--ivory-darker);
}

.featured-slide.active {
  display: grid;
}

.featured-slide-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 12px;
}

.featured-slide-title {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.featured-slide-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-style: italic;
  font-family: var(--ff-serif);
}

.featured-slide-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.slide-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

.slide-arrow:hover {
  background: var(--ink);
  color: var(--ivory);
}

.slide-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-counter {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.featured-slide-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* === CHANNEL PHONE WIDGET === */
.channel-section {
  padding: 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.channel-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

/* Two-column balanced layout: phone on visual-left, editorial on right */
.channel-inner-v2 {
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

.channel-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channel-skin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

.channel-skin-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.channel-skin-dots {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-skin-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.channel-skin-dot-name {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.channel-editorial-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.channel-editorial-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 32px;
  max-width: 440px;
}

.channel-join-btn {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ivory);
  background: var(--ink);
  border: 1px solid var(--gold);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.channel-join-btn:hover {
  background: var(--oxblood);
  border-color: var(--oxblood-light);
  color: var(--ivory);
}

.channel-intro {}

.channel-intro-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.channel-intro-text {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 420px;
}

/* Phone frame */
.phone-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-caption-plaque {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}

.phone-etched-frame {
  position: relative;
  padding: 12px;
  background: var(--ink);
  box-shadow:
    0 20px 60px rgba(28,26,22,0.25),
    0 4px 12px rgba(28,26,22,0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid rgba(28,26,22,0.8);
}

/* Etched corner marks */
.phone-etched-frame::before,
.phone-etched-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.3;
}
.phone-etched-frame::before {
  top: 4px; right: 4px;
  border-width: 1px 1px 0 0;
}
.phone-etched-frame::after {
  bottom: 4px; left: 4px;
  border-width: 0 0 1px 1px;
}

.phone-device {
  width: 300px;
  background: var(--phone-bg, #ece5dd);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 520px;
}

.phone-header {
  background: var(--phone-header, #075e54);
  color: white;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.phone-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ff-serif);
  color: white;
  flex-shrink: 0;
}

.phone-header-info {
  flex: 1;
}

.phone-header-name {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.phone-header-status {
  font-family: var(--ff-sans);
  font-size: 10px;
  opacity: 0.7;
}

.phone-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  direction: rtl;
  scroll-behavior: smooth;
}

.phone-messages::-webkit-scrollbar { width: 3px; }
.phone-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

.phone-bubble {
  max-width: 82%;
  align-self: flex-end;
  background: white;
  border-radius: var(--phone-bubble-r, 8px);
  border-bottom-right-radius: 2px;
  padding: 8px 10px 18px;
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  /* Visible by default — JS opts-in to animation via .phone-animating on parent */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
}

/* JS adds .phone-animating to #phone-messages to hide bubbles before timed reveal */
.phone-animating .phone-bubble {
  opacity: 0;
  transform: translateY(6px);
}

.phone-animating .phone-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.phone-bubble.urgent {
  border-right: 2px solid var(--oxblood);
}

.phone-bubble-tag {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 4px;
  display: block;
}

.phone-bubble-time {
  position: absolute;
  bottom: 5px;
  left: 8px;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: rgba(0,0,0,0.38);
}

/* Telegram skin */
.skin-telegram .phone-bubble {
  background: #effdde;
}
.skin-telegram .phone-bubble::after {
  content: '✓✓';
  position: absolute;
  bottom: 4px;
  left: 26px;
  font-size: 9px;
  color: #4fc3f7;
}

/* Messenger skin */
.skin-messenger .phone-bubble {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.phone-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  max-width: 60px;
  background: white;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.phone-typing.visible { display: flex; }

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Skin switcher */
.skin-switcher {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.skin-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.skin-btn:hover { transform: scale(1.1); }

.skin-btn.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ivory);
}

.skin-btn-wa { background: #25D366; }
.skin-btn-tg { background: #2AABEE; }
.skin-btn-ms { background: linear-gradient(135deg, #0099FF, #A033FF); }

/* === CLIPPINGS SHELF === */
.clippings-section {
  padding: 56px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  min-height: 480px;
}

.clippings-shelf {
  position: relative;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 20px 80px;
  background: var(--ivory-dark);
  border-top: 2px solid var(--ivory-darker);
}

.clipping {
  position: relative;
  width: 220px;
  background: var(--white);
  padding: 20px 16px 16px;
  box-shadow: 2px 4px 16px rgba(28,26,22,0.12), 0 1px 3px rgba(28,26,22,0.08);
  cursor: grab;
  user-select: none;
  transform-origin: center top;
  will-change: transform;
  transition: box-shadow 0.2s;
}

.clipping:active { cursor: grabbing; }

.clipping:hover {
  box-shadow: 4px 8px 24px rgba(28,26,22,0.2), 0 2px 6px rgba(28,26,22,0.12);
  z-index: 10;
}

.clipping-paperclip {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
}

.clipping-cat {
  font-family: var(--ff-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid var(--ivory-darker);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.clipping-title {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.clipping-excerpt {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === FOOTER COLOPHON === */
.footer-colophon {
  padding: 56px;
  border-top: 1px solid var(--gold);
  max-width: 1320px;
  margin: 0 auto;
}

.colophon-ornament {
  text-align: center;
  font-family: var(--ff-serif);
  color: var(--gold);
  font-size: 24px;
  opacity: 0.6;
  margin-bottom: 24px;
  letter-spacing: 0.2em;
}

.colophon-quote {
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 24px;
}

.colophon-quote-attr {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.colophon-small {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  border-top: var(--rule);
  padding-top: 16px;
}

/* === GSAP ANIMATION INITIAL STATES ===
   GSAP overrides these at runtime via its own inline styles.
   We do NOT set opacity:0 here — GSAP's from() handles the initial
   hidden state only when GSAP is present. No-JS = fully visible. */
.gsap-fade-up,
.gsap-fade-in,
.gsap-slide-right {
  /* intentionally empty — GSAP sets will-change and opacity via JS */
}

/* === SVG ILLUSTRATIONS === */
.illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-svg {
  stroke: var(--ink-muted);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === ARTICLE PAGE === */
.article-page {
  max-width: 1440px;
  margin: 0 auto;
}

.article-folio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 56px;
  border-bottom: var(--rule);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.article-folio-header a {
  color: var(--oxblood);
  transition: opacity 0.2s;
}
.article-folio-header a:hover { opacity: 0.65; }

.article-body-grid {
  display: grid;
  grid-template-columns: 200px 1px 1fr 200px;
  gap: 0;
  padding: 0 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.article-margin-right {
  padding: 48px 24px 48px 0;
  direction: rtl;
}

.article-margin-left {
  padding: 48px 0 48px 24px;
}

.article-margin-rule {
  background: rgba(184,154,90,0.2);
}

.article-main {
  padding: 48px 40px;
}

.article-margin-note {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-margin-label {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.article-kicker {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--oxblood);
}

.article-headline {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-dek {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  border-right: 2px solid var(--gold);
  padding-right: 16px;
}

.article-byline-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  margin-bottom: 36px;
}

.article-byline-author {
  font-weight: 600;
  font-size: 13px;
}

.article-byline-sep {
  width: 1px;
  height: 14px;
  background: rgba(28,26,22,0.2);
}

.article-byline-meta {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.article-body p {
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 65ch;
}

.pull-quote {
  margin: 40px 0;
  padding: 28px 32px;
  border-top: 2px solid var(--oxblood);
  border-bottom: 1px solid var(--ivory-darker);
  background: var(--ivory-dark);
}

.pull-quote-text {
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.pull-quote-attr {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.tldr-box {
  margin: 40px 0;
  padding: 24px 28px;
  border: 1px solid var(--ivory-darker);
  background: var(--ivory);
  position: relative;
}

.tldr-label {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--ivory);
  padding: 0 8px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.tldr-text {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.65;
}

.takeaways-box {
  margin: 32px 0;
}

.takeaways-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.takeaways-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oxblood);
  flex-shrink: 0;
  margin-top: 7px;
}

.sources-box {
  margin-top: 48px;
  padding-top: 24px;
  border-top: var(--rule);
}

.sources-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.source-num {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--oxblood);
  flex-shrink: 0;
}

.source-link {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: rgba(28,26,22,0.3);
  transition: color 0.2s;
}
.source-link:hover { color: var(--oxblood); }

.article-nav-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border-top: 1px solid var(--gold);
  border-bottom: var(--rule);
  margin-top: 60px;
}

.article-nav-item {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}

.article-nav-item:hover { background: var(--ivory-dark); }

.article-nav-direction {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-nav-title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.article-nav-rule { background: rgba(184,154,90,0.3); }

/* === NEWS PAGE === */
.news-timeline-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px 80px;
}

.news-page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 64px;
}

.news-page-title {
  font-family: var(--ff-serif);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.news-page-subtitle {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.news-timeline {
  position: relative;
  padding-right: 200px;
}

.news-timeline::before {
  content: '';
  position: absolute;
  right: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(184,154,90,0.2) 100%);
}

.news-item {
  position: relative;
  padding: 0 60px 48px 0;
}

.news-item.visible {
  animation: reveal-rtl 0.6s var(--ease-editorial) both;
}

.news-item::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
}

.news-item.is-breaking::before {
  background: var(--oxblood);
  border-color: var(--oxblood);
  box-shadow: 0 0 0 4px rgba(122,34,48,0.15);
}

.news-item-timestamp {
  position: absolute;
  right: 16px;
  top: 0;
  text-align: right;
}

.news-item-date {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 2px;
}

.news-item-time {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.news-item-source {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-item-headline {
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.news-item-dek {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 580px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .masthead { padding: 24px 32px 0; }
  .lead-spread { padding: 40px 32px; }
  .editorial-diary,
  .articles-spread,
  .channel-section,
  .clippings-section,
  .footer-colophon { padding: 40px 32px; }

  .article-body-grid {
    grid-template-columns: 160px 1px 1fr;
    padding: 0 32px;
  }
  .article-margin-left { display: none; }

  .news-timeline-page { padding: 0 32px 60px; }
  .news-timeline { padding-right: 140px; }
  .news-timeline::before { right: 100px; }
  .news-item-timestamp { right: 8px; }

  .channel-inner { grid-template-columns: 1fr; gap: 40px; }
  .channel-inner-v2 { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .masthead { padding: 20px 20px 0; }
  .nameplate-title { font-size: 52px; }

  .lead-spread {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
  }
  .lead-divider-vert { display: none; }
  .lead-left, .lead-right { padding: 0; }

  .editorial-diary,
  .articles-spread,
  .channel-section,
  .clippings-section,
  .footer-colophon { padding: 32px 20px; }

  .article-body-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .article-margin-right,
  .article-margin-rule,
  .article-margin-left { display: none; }
  .article-main { padding: 32px 0; }

  .article-folio-header { padding: 16px 20px; }

  .news-timeline-page { padding: 0 20px 60px; }
  .news-timeline { padding-right: 0; }
  .news-timeline::before { display: none; }
  .news-item { padding: 0 0 40px 0; }
  .news-item::before { display: none; }
  .news-item-timestamp { position: static; text-align: right; margin-bottom: 8px; }
  .news-item-date, .news-item-time { display: inline; margin-left: 8px; }

  .article-nav-bar {
    grid-template-columns: 1fr;
  }
  .article-nav-rule { display: none; }
  .article-nav-item { padding: 20px; border-bottom: var(--rule); }

  .clippings-shelf {
    gap: 40px;
    padding: 40px 20px;
    justify-content: center;
  }

  .article-entry {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
  .article-entry-meta { display: none; }

  .diary-grid {
    grid-template-columns: 60px 1px 1fr;
  }
}

@media (max-width: 480px) {
  .nameplate-title { font-size: 38px; }
  .phone-device { width: 260px; }
  .featured-slide { grid-template-columns: 1fr; }
  .featured-slide-illustration { display: none; }
}

/* === REVEAL KEYFRAMES === */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-rtl {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
  }
  .gsap-fade-up,
  .gsap-fade-in,
  .gsap-slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .diary-item,
  .article-entry,
  .news-item,
  .phone-bubble {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
