@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #16233F;
  --navy-light: #263A63;
  --red: #A81F2D;
  --red-dark: #7C1620;
  --gold: #B8862E;
  --paper: #F7F5F0;
  --paper-raised: #FFFFFF;
  --ink: #1A1B1F;
  --ink-soft: #52565F;
  --ink-faint: #8B8E96;
  --line: #DEDAD0;
  --line-strong: #C6C1B4;
  --shadow: 0 18px 40px -22px rgba(22, 35, 63, 0.28);
  --radius: 3px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

::selection { background: var(--gold); color: var(--paper-raised); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Utility bar */
.utility-bar {
  background: var(--navy);
  color: rgba(247, 245, 240, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-bar .school {
  color: rgba(247, 245, 240, 0.5);
}

/* Masthead */
.masthead {
  background: var(--paper-raised);
  border-bottom: 4px solid var(--navy);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 30px;
  padding-bottom: 26px;
}

.masthead-seal {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 50%;
}

.masthead-text { text-align: center; }

.masthead-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}

.masthead-logo {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.masthead-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Nav */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav .wrap::-webkit-scrollbar { display: none; }

.site-nav a {
  color: rgba(247, 245, 240, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 15px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

.site-nav .nav-admin {
  color: rgba(247, 245, 240, 0.55) !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav .nav-about {
  margin-left: auto;
  border: 1px solid rgba(247, 245, 240, 0.3);
  border-radius: 2px;
  padding: 7px 14px !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.06em;
  align-self: center;
}

.site-nav .nav-about:hover {
  border-color: #fff;
  color: #fff !important;
}

/* Ticker */
.ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  padding: 9px 0;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.35);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  padding-left: 18px;
}

.ticker-track span {
  margin-right: 46px;
  font-size: 0.84rem;
}

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

/* Hero / featured */
.featured-section {
  padding: 40px 0 8px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.lead-story .tag {
  margin-bottom: 14px;
}

.lead-figure {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.lead-story h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.lead-story a.headline-link:hover h1 { color: var(--red); }

.dek {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.byline {
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
  align-items: center;
}

.byline .dot::before { content: "\2022"; margin: 0 2px; }

.secondary-stories {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mini-story {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mini-story:last-child { border-bottom: none; padding-bottom: 0; }

.mini-figure {
  width: 92px;
  height: 74px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.mini-story h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.mini-story a:hover h3 { color: var(--red); }

/* Tag */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 2px;
  color: #fff;
}

.tone-navy { background: var(--navy); }
.tone-red { background: var(--red); }
.tone-gold { background: var(--gold); }

.tag-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* Placeholder figure fills */
.fig-navy { background: linear-gradient(135deg, #16233F, #2C4270); }
.fig-red { background: linear-gradient(135deg, #A81F2D, #5F1017); }
.fig-gold { background: linear-gradient(135deg, #B8862E, #6E4E15); }

.fig-mark {
  color: rgba(255,255,255,0.9);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.6rem;
}

/* Main layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 44px 0 60px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 1.4rem;
}

.section-heading .see-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-row:first-child { padding-top: 0; }

.row-figure {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

.article-row h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.article-row a:hover h3 { color: var(--red); }

.article-row .dek {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--ink-faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* Sidebar */
.sidebar-block {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}

.sidebar-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 16px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--paper);
}

.search-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  width: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.search-form button:hover { background: var(--red); }

.recent-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item:first-child { padding-top: 0; }

.recent-num {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  color: var(--line-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.recent-item h5 {
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  color: var(--navy);
  margin: 0 0 4px;
  font-weight: 600;
}

.recent-item a:hover h5 { color: var(--red); }

.recent-item time {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.category-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.category-list a:last-child { border-bottom: none; }
.category-list a:hover { color: var(--red); }

.category-list span.count {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

/* About */
.about-section {
  background: var(--navy);
  color: rgba(247, 245, 240, 0.9);
  padding: 60px 0;
}

.about-section h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.about-section .masthead-kicker { color: var(--gold); }

.about-lead {
  max-width: 640px;
  font-size: 1.02rem;
  color: rgba(247, 245, 240, 0.78);
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.about-card {
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid rgba(247, 245, 240, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}

.about-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.92rem;
  color: rgba(247, 245, 240, 0.72);
  margin: 0;
}

/* Footer */
.site-footer {
  background: #101928;
  color: rgba(247, 245, 240, 0.55);
  padding: 40px 0 26px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }

.footer-brand strong {
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover { background: var(--red); border-color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(247, 245, 240, 0.55); }
.footer-bottom a:hover { color: #fff; }

.footer-links { display: flex; gap: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-fb {
  background: #1877F2;
  color: #fff;
}

.btn-fb:hover { background: #1364d6; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn-outline:hover { border-color: var(--navy); }

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover { background: var(--red-dark); }

/* Article page */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px 70px;
}

.article-page .tag { margin-bottom: 18px; }

.article-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.article-page .dek {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.article-figure {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.article-body p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.14rem;
  line-height: 1.75;
  color: #2B2D33;
  margin: 0 0 22px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.share-row span {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.not-found {
  text-align: center;
  padding: 90px 20px;
}

.not-found h1 { margin-bottom: 12px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 130px 1fr; }
}

@media (max-width: 560px) {
  .masthead .wrap { flex-direction: column; gap: 10px; padding-top: 22px; padding-bottom: 20px; }
  .masthead-seal { width: 52px; height: 52px; }
  .footer-top { flex-direction: column; }
  .article-row { grid-template-columns: 1fr; }
  .row-figure { aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .utility-bar { font-size: 0.7rem; }
  .utility-bar .wrap { flex-wrap: wrap; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .masthead-logo { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .masthead-tagline { font-size: 0.7rem; letter-spacing: 0.04em; }
  .site-nav a { padding: 12px 10px; font-size: 0.8rem; }
  .site-nav .nav-about { padding: 6px 11px !important; font-size: 0.7rem !important; }
  .ticker-label { padding: 0 12px; font-size: 0.66rem; }
  .ticker-track span { margin-right: 30px; font-size: 0.78rem; }
  .featured-section { padding: 26px 0 4px; }
  .lead-story h1 { font-size: 1.5rem; }
  .mini-figure { width: 74px; height: 60px; }
  .main-layout { padding: 30px 0 44px; gap: 32px; }
  .section-heading h2 { font-size: 1.2rem; }
  .filter-row { gap: 8px; }
  .filter-row select { flex: 1; min-width: 0; padding: 8px 6px; font-size: 0.78rem; }
  .sidebar-block { padding: 18px; }
  .byline { flex-wrap: wrap; row-gap: 4px; }
  .share-row { gap: 8px; }
  .share-row .btn { flex: 1 1 auto; justify-content: center; padding: 9px 12px; font-size: 0.78rem; }
  .article-page { padding: 32px 18px 50px; }
  .article-body p:first-of-type::first-letter { font-size: 2.6rem; padding: 4px 6px 0 0; }
  .compact-header .compact-title { font-size: 0.82rem; }
  .compact-header .btn { padding: 6px 10px; font-size: 0.72rem; }
  .about-card { padding: 20px; }
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }
  .toast { width: calc(100% - 32px); text-align: center; }
  .login-card { width: calc(100% - 20px); }
}

@media (max-width: 420px) {
  .masthead-logo { font-size: 1.7rem; }
  .lead-figure { aspect-ratio: 4/3; }
  .article-figure { aspect-ratio: 4/3; }
}

/* ---- Enhanced interactions & motion ---- */

.site-nav { position: relative; }

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
  transition: left 0.32s cubic-bezier(0.65, 0, 0.35, 1), width 0.32s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-indicator.show { opacity: 1; }

.site-nav a { position: relative; }

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  margin-left: 5px;
  vertical-align: 4px;
  box-shadow: 0 0 0 0 rgba(168, 31, 45, 0.5);
  animation: nav-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes nav-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 31, 45, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(168, 31, 45, 0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Figure placeholders as illustration panels */
.fig-navy, .fig-red, .fig-gold {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fig-navy::before, .fig-red::before, .fig-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
}

.fig-navy::after, .fig-red::after, .fig-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 15% 10%, rgba(255,255,255,0.14), transparent 55%);
}

.fig-icon {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.6rem;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lead-figure .fig-icon { font-size: 3.4rem; }
.mini-figure .fig-icon, .row-figure .fig-icon { font-size: 1.5rem; }

.lead-figure, .mini-figure, .row-figure, .article-figure {
  overflow: hidden;
}

a:hover .fig-icon,
.lead-story:hover .fig-icon {
  transform: scale(1.12) rotate(-2deg);
}

.lead-figure {
  transition: transform 0.5s ease;
}

.headline-link:hover .lead-figure,
.mini-story a:hover .mini-figure,
.article-row a:hover .row-figure {
  filter: brightness(1.04);
}

/* Card hover lift */
.mini-story, .article-row {
  transition: transform 0.28s ease;
}

.article-row:hover, .mini-story:hover {
  transform: translateX(2px);
}

.article-row:hover h3, .mini-story:hover h3 { color: var(--red); }

/* Read-more arrow link */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 8px;
}

.read-link i { transition: transform 0.22s ease; }

.article-row:hover .read-link i,
.mini-story:hover .read-link i { transform: translateX(4px); }

/* Skeleton loading */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #EDEAE2;
  border-radius: var(--radius);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.skeleton-figure { aspect-ratio: 4/3; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-90 { width: 90%; }

/* Date filter row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filter-row label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 600;
}

.filter-row select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.84rem;
  background: var(--paper-raised);
  color: var(--ink);
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 500;
  transition: width 0.1s linear;
}

/* Sticky compact article header */
.compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
  z-index: 400;
  box-shadow: var(--shadow);
}

.compact-header.show { transform: translateY(0); }

.compact-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.compact-header img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }

.compact-header .compact-title {
  font-family: 'Source Serif 4', serif;
  font-size: 0.94rem;
  color: var(--navy);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.compact-header .btn { flex-shrink: 0; padding: 7px 14px; font-size: 0.78rem; }

/* Hero entrance */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.featured-section .lead-story { animation: hero-fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.featured-section .secondary-stories { animation: hero-fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 150;
  box-shadow: var(--shadow);
}

.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--red); }

@media (max-width: 900px) {
  .skeleton-row { grid-template-columns: 130px 1fr; }
}

/* ---- Nav icons, drop cap, credits (newspaper-but-modern pass) ---- */

.site-nav a i {
  margin-right: 5px;
  font-size: 0.82em;
  opacity: 0.85;
}

.masthead-kicker i {
  margin-right: 6px;
  font-size: 0.9em;
  color: var(--red);
}

.article-body p:first-of-type::first-letter {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.8;
  float: left;
  padding: 6px 8px 0 0;
  color: var(--red);
}

.figure-credit {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-style: italic;
  margin: -18px 0 26px;
  text-align: right;
}

.headline {
  font-weight: 700 !important;
}

h1, h3, .masthead-logo { font-weight: 700; }

/* ---- "Woah" pass: watermark, tilt, magnetic buttons, confetti ---- */

.masthead { position: relative; overflow: hidden; }

.masthead::before {
  content: "NEWSBYTES";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 11rem);
  color: rgba(22, 35, 63, 0.035);
  white-space: nowrap;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 0;
  animation: watermark-drift 18s ease-in-out infinite;
}

@keyframes watermark-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

.masthead .wrap { position: relative; z-index: 1; }

.logo-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) rotate(-4deg);
  animation: letter-drop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
}

@keyframes letter-drop {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.article-row, .mini-story, .stat-card {
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

.article-row:hover, .mini-story:hover, .stat-card:hover {
  box-shadow: var(--shadow);
  z-index: 2;
}

.btn {
  transition: transform 0.15s ease-out, background 0.15s ease, border-color 0.15s ease;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
}

.section-heading {
  overflow: visible;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 3px;
  width: 0%;
  background: var(--red);
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section-heading.heading-in-view h2::after {
  width: 100%;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 999;
  border-radius: 2px;
  animation: confetti-burst 0.9s ease-out forwards;
}

@keyframes confetti-burst {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
    opacity: 0;
  }
}

.spotlight-cursor {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 31, 45, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (max-width: 700px) {
  .masthead::before { display: none; }
  .spotlight-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead::before { animation: none; }
  .logo-letter { opacity: 1; transform: none; animation: none; }
  .tilt-card { transition: none !important; transform: none !important; }
}

/* ---- Article images layered over placeholder figures ---- */

.lead-figure, .mini-figure, .row-figure, .article-figure {
  position: relative;
}

.fig-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

a:hover .fig-photo,
.headline-link:hover .fig-photo {
  transform: scale(1.03);
}
