/* ==========================================================================
   EAGLE WIRE — newsroom stylesheet
   ========================================================================== */

:root {
  --cream:   #F9F7F2;
  --cream-2: #F2EFE7;
  --cream-3: #EAE6DA;
  --white:   #FFFFFF;

  --navy:      #141B33;
  --navy-deep: #0C1124;
  --rule:      #DCD7C8;
  --hair:      #E6E1D4;

  --gold:      #9A7B22;
  --gold-lift: #C6A03A;
  --crimson:   #8E2231;

  --ink:   #141B33;
  --ink-2: #454C63;
  --ink-3: #6F7590;

  --display: "Bodoni Moda", Didot, Georgia, serif;
  --body:    "Source Serif 4", Georgia, serif;
  --ui:      "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 50px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-lift); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 300; font-family: var(--ui); font-size: 13px; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Masthead ------------------------------------------------------ */

.ew-strip {
  background: var(--navy-deep); color: #A9B4D2;
  font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: 8px 16px;
}
.ew-strip a { color: var(--gold-lift); text-decoration: underline; text-underline-offset: 2px; }

.ew-utility { border-bottom: 1px solid var(--hair); font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ew-utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }

.ew-mast { border-bottom: 1px solid var(--rule); background: var(--cream); }
.ew-mast .wrap { display: flex; align-items: center; gap: 16px; padding-block: 26px 22px; }
.ew-logo { display: flex; align-items: center; gap: 16px; margin-inline: auto; }
.ew-wordmark {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(38px, 6vw, 62px); line-height: .95; letter-spacing: -.02em; color: var(--navy);
}
.ew-wordmark em { font-style: italic; color: var(--gold); }
.ew-tagline { display: block; font-family: var(--ui); font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; text-align: center; }
.ew-mast-meta { font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 2; flex: 0 0 auto; }
.ew-mast-side { flex: 0 0 auto; font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); line-height: 2; }

.ew-nav { border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); background: var(--cream); position: sticky; top: 0; z-index: 90; }
.ew-nav .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); height: 46px; overflow-x: auto; scrollbar-width: none; }
.ew-nav .wrap::-webkit-scrollbar { display: none; }
.ew-nav a {
  font-family: var(--ui); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; padding: 5px 0; border-bottom: 2px solid transparent;
}
.ew-nav a:hover { color: var(--navy); border-bottom-color: var(--gold-lift); }
.ew-nav a.on { color: var(--navy); border-bottom-color: var(--navy); }
.ew-nav .back { margin-left: auto; color: var(--gold); }

/* ---------- Breaking bar -------------------------------------------------- */

.ew-breaking { display: flex; background: var(--navy); }
.ew-breaking-tag {
  flex: none; background: var(--crimson); color: #fff;
  font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
}
.ew-breaking-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ewpulse 2.2s ease-in-out infinite; }
@keyframes ewpulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.ew-breaking-track { flex: 1; overflow: hidden; padding: 11px 0; }
.ew-breaking-run { display: inline-flex; white-space: nowrap; animation: ewslide 48s linear infinite; }
.ew-breaking:hover .ew-breaking-run { animation-play-state: paused; }
@keyframes ewslide { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.ew-breaking-item { font-family: var(--ui); font-size: 12.5px; color: #D3DAEC; padding: 0 26px; }
.ew-breaking-item b { color: var(--gold-lift); font-weight: 600; margin-right: 9px; }

/* ---------- Article furniture --------------------------------------------- */

.ew-kicker { display: block; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ew-kicker.red { color: var(--crimson); }

.ew-hed { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; color: var(--navy); margin: 0 0 12px; }
a:hover .ew-hed { color: var(--gold); }
.ew-dek { font-family: var(--ui); color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; }
.ew-byline { font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ew-byline b { color: var(--ink-2); font-weight: 600; }

.ew-thumb {
  aspect-ratio: 16 / 9; background: var(--cream-3); border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #ADA795;
  margin-bottom: 16px; overflow: hidden;
}
.ew-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ew-secthead { display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.ew-secthead h2 { font-family: var(--ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--navy); margin: 0; }
.ew-secthead .more { margin-left: auto; font-family: var(--ui); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Front page ---------------------------------------------------- */

.ew-main { padding-block: 36px 64px; }

.ew-lead { display: grid; grid-template-columns: 1.85fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.ew-lead-main .ew-hed { font-size: clamp(34px, 4.6vw, 58px); }
.ew-lead-main .ew-dek { font-size: 18.5px; }
.ew-lead-side { display: grid; gap: 22px; align-content: start; border-left: 1px solid var(--hair); padding-left: 28px; }
.ew-lead-side > * + * { border-top: 1px solid var(--hair); padding-top: 22px; }
.ew-lead-side .ew-hed { font-size: 21px; }
.ew-lead-side .ew-dek { font-size: 14.5px; margin-bottom: 10px; }

.ew-cols { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.ew-storygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.ew-storygrid .ew-hed { font-size: 22px; }
.ew-storygrid .ew-dek { font-size: 14.5px; }

.ew-list { display: grid; gap: 20px; }
.ew-list-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.ew-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ew-rank { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--gold-lift); line-height: .9; }
.ew-list-item .ew-hed { font-size: 18px; margin-bottom: 6px; }

/* ---------- Sidebar ------------------------------------------------------- */

.ew-side { display: grid; gap: 26px; position: sticky; top: 62px; }
.ew-box { border: 1px solid var(--rule); border-top: 3px solid var(--gold-lift); background: var(--white); padding: 22px; }
.ew-box.navy { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold-lift); color: #C6CEE4; }
.ew-box.navy .ew-box-title { color: var(--gold-lift); border-bottom-color: rgba(255,255,255,.18); }
.ew-box-title { font-family: var(--ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--navy); margin: 0 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.ew-box p { font-family: var(--ui); font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.ew-box.navy p { color: #B4BED8; }
.ew-docket { display: grid; gap: 12px; }
.ew-docket-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-family: var(--ui); font-size: 14px; align-items: baseline; }
.ew-docket-row time { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ew-box.navy .ew-docket-row time { color: var(--gold-lift); }

.ew-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 1.5px solid transparent;
  font-family: var(--ui); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ew-btn-gold { background: var(--gold-lift); color: var(--navy-deep); }
.ew-btn-gold:hover { background: #DDB94F; }
.ew-btn-navy { background: var(--navy); color: #fff; }
.ew-btn-navy:hover { background: var(--gold); }
.ew-btn-ghost { border-color: var(--rule); color: var(--navy); }
.ew-btn-ghost:hover { border-color: var(--navy); }

/* ---------- Article page -------------------------------------------------- */

.ew-article { max-width: 720px; margin-inline: auto; padding-block: 44px 64px; }
.ew-crumbs { font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.ew-crumbs a { color: var(--gold); }
.ew-article h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.06; letter-spacing: -.018em; color: var(--navy); margin: 0 0 18px; }
.ew-article .ew-dek { font-size: 19px; margin-bottom: 24px; }
.ew-artmeta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 15px 0; border-block: 1px solid var(--hair); margin-bottom: 28px; }
.ew-figure { margin: 0 0 28px; }
.ew-figure .ew-thumb { aspect-ratio: 3 / 2; margin-bottom: 9px; }
.ew-figcap { font-family: var(--ui); font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.ew-body { font-size: 18.5px; line-height: 1.8; }
.ew-body p { margin: 0 0 22px; }
.ew-body > p:first-of-type::first-letter { float: left; font-family: var(--display); font-size: 70px; line-height: .82; font-weight: 500; color: var(--navy); margin: 6px 12px 0 0; }
.ew-body h2 { font-family: var(--ui); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin: 38px 0 16px; }
.ew-body blockquote { margin: 30px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold-lift); font-family: var(--display); font-size: 24px; line-height: 1.42; color: var(--navy); font-style: italic; }
.ew-body ul { padding-left: 20px; margin: 0 0 22px; }
.ew-body li { margin-bottom: 9px; }

.ew-endnote { margin-top: 36px; padding: 20px 22px; background: var(--cream-2); border-left: 3px solid var(--gold-lift); font-family: var(--ui); font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.ew-endnote strong { color: var(--navy); font-weight: 600; }

/* ---------- Footer -------------------------------------------------------- */

.ew-foot { background: var(--navy-deep); color: #A9B4D2; padding: 56px 0 32px; margin-top: 44px; }
.ew-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.ew-foot .ew-wordmark { color: #fff; font-size: 40px; }
.ew-foot .ew-wordmark em { color: var(--gold-lift); }
.ew-foot h4 { font-family: var(--ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-lift); margin: 0 0 15px; }
.ew-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ew-foot a { color: #A9B4D2; font-family: var(--ui); font-size: 14.5px; }
.ew-foot a:hover { color: #fff; }
.ew-foot-note { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; font-family: var(--ui); font-size: 11.5px; line-height: 1.85; color: #78829E; }
.ew-foot-note p { margin: 0 0 12px; }

.ew-empty { padding: 52px 20px; text-align: center; border: 1px dashed var(--rule); color: var(--ink-3); }
.ew-empty h3 { font-family: var(--ui); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--navy); margin: 0 0 10px; }
.ew-empty p { font-family: var(--ui); font-size: 14.5px; margin: 0 0 18px; }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1040px) {
  .ew-cols { grid-template-columns: 1fr; }
  .ew-side { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ew-lead { grid-template-columns: 1fr; }
  .ew-lead-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 26px; }
  .ew-storygrid { grid-template-columns: repeat(2, 1fr); }
  .ew-foot-grid { grid-template-columns: 1fr 1fr; }
  .ew-mast-meta, .ew-mast-side { display: none; }
  .ew-nav .wrap { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .ew-storygrid, .ew-side, .ew-foot-grid { grid-template-columns: 1fr; }
  .ew-body > p:first-of-type::first-letter { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
