:root {
  --ink: #17130d;
  --muted: #6f6658;
  --paper: #f4ead6;
  --paper-2: #fff8e8;
  --green: #0b6b43;
  --green-dark: #063923;
  --red: #a5382d;
  --gold: #b98221;
  --line: #2a2115;
  --soft-line: rgba(42, 33, 21, 0.18);
  --shadow: 0 18px 52px rgba(42, 33, 21, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(42,33,21,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42,33,21,0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
  line-height: 1.72;
}

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

.masthead,
main,
footer {
  max-width: 1220px;
  margin-inline: auto;
}

.masthead {
  padding: 18px clamp(16px, 4vw, 48px) 0;
}

.paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.plain-wa {
  padding: 8px 16px;
  color: var(--paper-2);
  background: var(--green);
  border-radius: 2px;
}

.nameplate {
  padding: 22px 0 18px;
  text-align: center;
  border-bottom: 7px double var(--line);
}

.nameplate p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.nameplate h1 {
  margin: 2px 0 6px;
  font-family: "Amiri", serif;
  font-size: clamp(48px, 10vw, 116px);
  line-height: 0.95;
  letter-spacing: 0;
}

.frontpage {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 22px;
  padding: 26px clamp(16px, 4vw, 48px) 34px;
  border-bottom: 2px solid var(--line);
}

.issue-card,
.alerts,
.brief-note,
.quote-block,
.whatsapp-card,
.bottom-ticket {
  background: var(--paper-2);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.issue-card {
  min-height: 430px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.issue-label {
  width: max-content;
  padding: 4px 10px;
  color: var(--paper-2);
  background: var(--red);
  font-weight: 800;
}

.issue-card strong {
  margin-top: 34px;
  font-size: 66px;
  line-height: 1;
  font-family: "Amiri", serif;
}

.issue-card span {
  color: var(--muted);
  font-weight: 700;
}

.issue-rule {
  margin: 22px 0;
  height: 1px;
  background: var(--line);
}

.issue-card p {
  margin-bottom: auto;
  color: var(--muted);
}

.ticket-cta,
.tape-cta,
.inline-cta,
.phone-cta,
.wide-cta,
.final-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--paper-2);
  background: var(--green);
  border: 2px solid var(--green-dark);
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ticket-cta:hover,
.tape-cta:hover,
.inline-cta:hover,
.phone-cta:hover,
.wide-cta:hover,
.final-cta:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.lead-story {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rubric {
  width: max-content;
  margin: 0 0 12px;
  padding: 5px 12px;
  color: var(--paper-2);
  background: var(--line);
  font-weight: 900;
}

.lead-story h2 {
  margin: 0 0 18px;
  font-family: "Amiri", serif;
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1.02;
}

.lead-story p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.alerts {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.alerts div {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.alerts div:last-child { border-bottom: 0; }

.alerts b {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
}

.alerts span {
  display: block;
  font-weight: 700;
}

.market-tape {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(16px, 4vw, 48px);
  color: var(--paper-2);
  background: var(--line);
  border-bottom: 3px solid var(--gold);
}

.tape-track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.tape-track span {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  color: #f3d7a6;
  font-size: 14px;
  font-weight: 800;
}

.tape-cta {
  min-height: 38px;
  padding: 7px 14px;
  background: var(--gold);
  border-color: #6d4611;
  color: var(--ink);
}

.brief-layout,
.day-plan,
.bottom-ticket {
  margin: 0 clamp(16px, 4vw, 48px);
}

.brief-layout {
  padding: 66px 0;
}

.column-title {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 18px;
}

.column-title span {
  color: var(--red);
  font-weight: 900;
}

.column-title h2,
.day-plan h2,
.bottom-ticket h2 {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.05;
}

.brief-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 0.85fr;
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.brief-note,
.quote-block,
.whatsapp-card {
  padding: 22px;
}

.brief-note.tall {
  grid-row: span 2;
}

.note-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--paper-2);
  background: var(--line);
  font-weight: 900;
}

.brief-note h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.brief-note p,
.quote-block p,
.bottom-ticket p,
footer p {
  color: var(--muted);
}

.brief-note ul {
  margin: 20px 0;
  padding: 0 20px 0 0;
  font-weight: 700;
}

.quote-block {
  display: flex;
  align-items: center;
  color: var(--paper-2);
  background: var(--green-dark);
}

.quote-block p {
  margin: 0;
  color: var(--paper-2);
  font-family: "Amiri", serif;
  font-size: 31px;
  line-height: 1.35;
}

.whatsapp-card {
  grid-column: span 2;
  color: #1c3427;
  background: #dff1df;
}

.wa-mini-head {
  margin-bottom: 14px;
  color: var(--paper-2);
  background: #075e54;
  padding: 10px 12px;
  font-weight: 900;
}

.wa-line {
  max-width: 74%;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: 2px;
}

.wa-line.alt {
  margin-right: auto;
  background: #c9f7c0;
}

.day-plan {
  padding: 52px 0 66px;
  border-top: 2px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 18px;
  border: 2px solid var(--line);
  background: var(--paper-2);
}

.timeline div {
  padding: 24px;
  border-left: 1px solid var(--line);
}

.timeline div:last-child { border-left: 0; }

.timeline time {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-family: "Amiri", serif;
  font-size: 42px;
  line-height: 1;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.timeline p { color: var(--muted); margin: 0; }

.wide-cta {
  width: 100%;
  min-height: 58px;
  font-size: 20px;
}

.bottom-ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin-bottom: 42px;
  padding: 28px;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 110px), rgba(42,33,21,0.08) calc(100% - 110px)),
    var(--paper-2);
}

.bottom-ticket span {
  color: var(--red);
  font-weight: 900;
}

.final-cta {
  min-height: 70px;
  padding-inline: 34px;
  font-size: 21px;
}

footer {
  padding: 28px clamp(16px, 4vw, 48px) 38px;
  text-align: center;
  border-top: 2px solid var(--line);
}

footer p {
  max-width: 760px;
  margin: 8px auto 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .frontpage {
    grid-template-columns: 1fr;
  }
  .issue-card,
  .lead-story {
    min-height: auto;
  }
  .alerts {
    grid-template-rows: none;
  }
  .brief-columns {
    grid-template-columns: 1fr 1fr;
  }
  .brief-note.tall {
    grid-row: auto;
  }
  .whatsapp-card {
    grid-column: span 2;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline div {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .paper-top,
  .market-tape,
  .bottom-ticket,
  .column-title {
    grid-template-columns: 1fr;
  }
  .paper-top,
  .market-tape {
    align-items: stretch;
    text-align: center;
  }
  .market-tape {
    gap: 10px;
    padding: 10px 14px;
  }
  .tape-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    white-space: normal;
  }
  .tape-track span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.25;
  }
  .nameplate h1 {
    font-size: 48px;
  }
  .lead-story h2 {
    font-size: 39px;
  }
  .brief-columns {
    grid-template-columns: 1fr;
  }
  .whatsapp-card {
    grid-column: auto;
  }
  .wa-line {
    max-width: 100%;
  }
  .ticket-cta,
  .tape-cta,
  .inline-cta,
  .phone-cta,
  .wide-cta,
  .final-cta,
  .plain-wa {
    width: 100%;
  }
  .bottom-ticket {
    background: var(--paper-2);
    text-align: center;
  }
}

@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 142, 55, 0), 0 8px 22px rgba(33, 27, 20, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(193, 142, 55, 0.16), 0 16px 34px rgba(33, 27, 20, 0.20); }
}

.plain-wa,
.ticket-cta,
.tape-cta,
.inline-cta,
.phone-cta,
.wide-cta,
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  animation: ctaBreath 3.7s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.plain-wa::before,
.ticket-cta::before,
.tape-cta::before,
.inline-cta::before,
.phone-cta::before,
.wide-cta::before,
.final-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.14) 34%, rgba(255,255,255,0.72) 50%, rgba(255,255,255,0.14) 66%, transparent 100%);
  transform: translateX(125%);
  transition: transform 0.7s ease;
  z-index: 0;
}

.plain-wa:hover,
.ticket-cta:hover,
.tape-cta:hover,
.inline-cta:hover,
.phone-cta:hover,
.wide-cta:hover,
.final-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(33, 27, 20, 0.20), 0 0 0 6px rgba(193, 142, 55, 0.14);
  filter: saturate(1.08);
}

.plain-wa:hover::before,
.ticket-cta:hover::before,
.tape-cta:hover::before,
.inline-cta:hover::before,
.phone-cta:hover::before,
.wide-cta:hover::before,
.final-cta:hover::before {
  transform: translateX(-125%);
}

.plain-wa:active,
.ticket-cta:active,
.tape-cta:active,
.inline-cta:active,
.phone-cta:active,
.wide-cta:active,
.final-cta:active {
  transform: translateY(-1px) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .plain-wa,
  .ticket-cta,
  .tape-cta,
  .inline-cta,
  .phone-cta,
  .wide-cta,
  .final-cta {
    animation: none;
  }
  .plain-wa,
  .plain-wa::before,
  .ticket-cta,
  .ticket-cta::before,
  .tape-cta,
  .tape-cta::before,
  .inline-cta,
  .inline-cta::before,
  .phone-cta,
  .phone-cta::before,
  .wide-cta,
  .wide-cta::before,
  .final-cta,
  .final-cta::before {
    transition: none;
  }
}
