/* ==========================================================================
   The Journal — World Cup 2026 news magazine
   Pure CSS, zero JavaScript. Warm paper tones + wine red + gold.
   ========================================================================== */

:root {
  --wine: #8B1E3F;
  --wine-deep: #6E1531;
  --gold: #C9A227;
  --gold-soft: #EAD9A0;
  --ink: #2C2C2C;
  --gray: #6B6B6B;
  --paper: #FBF8F3;
  --line: #E8E0D8;
  --card-line: #F0EAE2;
  --side-bg: #F5F0E8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --headH: 68px;
  --tickH: 40px;
  --shadow-rest: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(139, 30, 63, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

img { display: block; }

::selection { background: var(--wine); color: #fff; }

a { color: var(--wine); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow { max-width: 940px; }

/* ==========================================================================
   Fixed header: nav + breaking ticker
   ========================================================================== */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  animation: headIn 0.7s var(--ease) both;
}

.nav {
  height: var(--headH);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--wine);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gray);
  align-self: flex-end;
  padding-bottom: 5px;
  white-space: nowrap;
}

.cats {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}

.cats a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.cats a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.cats a:hover { color: var(--wine); }
.cats a:hover::after { width: 16px; }

.cats a.active {
  color: var(--wine);
  background: rgba(139, 30, 63, 0.07);
}
.cats a.active::after { width: 16px; }

.search {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 3px 3px 3px 15px;
  flex-shrink: 0;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.search input {
  border: 0;
  background: none;
  outline: none;
  font: 500 0.85rem var(--sans);
  color: var(--ink);
  width: 140px;
}

.search input::placeholder { color: #A9A29A; }

.search button {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 0;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--spring), background 0.25s var(--ease);
}

.search button:hover { transform: scale(1.1); background: var(--wine-deep); }
.search button svg { width: 13px; height: 13px; }

/* --- Breaking ticker --------------------------------------------------- */

.ticker {
  height: var(--tickH);
  background: var(--wine);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.live {
  background: var(--gold);
  color: var(--wine-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  animation: pulse 1.6s var(--ease) infinite;
}

.ticker-view {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 60s linear infinite;
}

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

.ticker-set { display: flex; align-items: center; }

.ticker-set a {
  color: #F6E7CE;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0 13px;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s var(--ease);
}

.ticker-set a::after {
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.ticker-set a:hover { color: var(--gold); }

/* ==========================================================================
   Main layout
   ========================================================================== */

main { padding-top: calc(var(--headH) + var(--tickH)); }

.layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding: 34px 0 20px;
}

.feed {
  grid-column: 1 / 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-content: start;
}

.side { grid-column: 9 / 13; }

.side-inner {
  position: sticky;
  top: calc(var(--headH) + var(--tickH) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - var(--headH) - var(--tickH) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 2px;
}

.feed-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.feed-head h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

.feed-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

.feed-head .count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
  will-change: transform, opacity;
}

.card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.card figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--side-bg);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card:hover img { transform: scale(1.03); }

.card-body {
  padding: 16px 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  transition: color 0.25s var(--ease);
}

.card:hover h3 { color: var(--wine); }

.card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card time {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s var(--ease);
}

.card:hover time { color: var(--gold); }

/* Featured card: spans full feed width, image left / text right */

.card.featured {
  grid-column: 1 / -1;
  animation-name: fadeUpBig;
  animation-duration: 0.85s;
}

.card.featured a {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
}

.card.featured figure {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}

.card.featured .card-body {
  padding: 30px 32px;
  justify-content: center;
  gap: 12px;
}

.card.featured h3 { font-size: 1.6rem; line-height: 1.22; }

.card.featured p { font-size: 0.92rem; }

/* ==========================================================================
   Carousel (index only) — pure CSS, 5 slides x 5s
   ========================================================================== */

.carousel {
  position: relative;
  height: 62vh;
  min-height: 430px;
  max-height: 660px;
  overflow: hidden;
  background: var(--wine-deep);
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  text-decoration: none;
  animation: slideCycle 25s var(--ease) infinite;
  will-change: transform, opacity;
}

.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:nth-child(1) img { animation: unblur 1.15s var(--ease) 0.15s both; }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(24, 5, 12, 0.05) 30%,
    rgba(90, 14, 42, 0.55) 66%,
    rgba(139, 30, 63, 0.9) 100%);
}

.slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 46px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  z-index: 2;
}

.slide-cap .kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.slide-cap h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.14;
  color: #fff;
  margin: 0.4em 0 0.35em;
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.slide-cap p {
  color: var(--gold-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 660px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dots {
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.dots span {
  display: block;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
  animation: dotCycle 25s linear infinite;
}

.dots span:nth-child(2) { animation-delay: 5s; }
.dots span:nth-child(3) { animation-delay: 10s; }
.dots span:nth-child(4) { animation-delay: 15s; }
.dots span:nth-child(5) { animation-delay: 20s; }

.carousel:hover .slide,
.carousel:hover .dots span { animation-play-state: paused; }

/* ==========================================================================
   Sidebar: timeline index + keyword cloud
   ========================================================================== */

.panel {
  background: var(--side-bg);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 20px 18px;
}

.side-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--wine);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-title::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.tl-group h4 {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 16px 0 6px;
}

.tl-group:first-of-type h4 { margin-top: 2px; }

.tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-item a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.tl-item a:hover { background: rgba(201, 162, 39, 0.08); }

.tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
  transition: transform 0.3s var(--spring);
}

.tl-item a:hover .tl-dot { transform: scale(1.45); }

.tl-title {
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-item time {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gray);
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.tl-item.active a {
  background: rgba(201, 162, 39, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.tl-item.active .tl-title { color: var(--wine); font-weight: 600; }

/* ==========================================================================
   Inner pages: page head banner & list pages
   ========================================================================== */

.page-head {
  padding: 10px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-head .kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0.25em 0 0.2em;
}

.page-head .page-sub {
  color: var(--gray);
  font-size: 0.92rem;
  margin: 0;
}

.tip {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0 0 28px;
}

.tip kbd {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  margin: 0 2px;
}

/* Search list, grouped by date */

.s-date {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wine);
  margin: 26px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.s-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.22s var(--ease);
}

.s-row:hover { background: rgba(201, 162, 39, 0.08); }

.s-row time {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  flex-shrink: 0;
  width: 92px;
}

.s-row span {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}

.s-row:hover span { color: var(--wine); }

/* Search filtering (inline enhancement in search.html) */

.s-row[hidden],
.s-group[hidden] { display: none !important; }

mark {
  background: rgba(201, 162, 39, 0.35);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.no-results {
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 0.92rem;
  animation: fadeUp 0.4s var(--ease) both;
}

.no-results p { margin: 0; }

/* Gallery */

.gallery-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.g-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--side-bg);
  box-shadow: var(--shadow-rest);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

.g-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.g-item:hover img { transform: scale(1.05); }

.g-item .g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(110, 21, 49, 0.88));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: padding-top 0.3s var(--ease);
}

/* ==========================================================================
   Story (detail) page
   ========================================================================== */

.story {
  grid-column: 1 / 9;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 54px);
  box-shadow: var(--shadow-rest);
  animation: fadeUp 0.6s var(--ease) both;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: gap 0.25s var(--ease);
}

.back:hover { gap: 12px; text-decoration: underline; text-underline-offset: 3px; }

.story h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
  margin: 0 0 16px;
}

.story .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  color: var(--gray);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.story .meta time {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.story .meta .src {
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
}

.story .meta .src:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero {
  margin: 0 0 30px;
  border-radius: 12px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story .body p {
  margin: 0 0 1.3em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 74ch;
}

.story .body p.lede {
  font-size: 1.07rem;
  color: #4A4A4A;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

/* Prose pages (about / contact / policy) */

.prose {
  max-width: 780px;
  animation: fadeUp 0.6s var(--ease) both;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--wine);
  margin: 1.6em 0 0.5em;
}

.prose p { color: #3E3E3E; line-height: 1.85; margin: 0 0 1.1em; }

.prose ul { line-height: 1.9; color: #3E3E3E; }

.prose a { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  margin-top: 70px;
  background: var(--side-bg);
  border-top: 1px solid var(--line);
}

.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wine);
}

.foot-brand small {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  display: block;
  margin-top: 3px;
}

.foot-links { display: flex; gap: 4px; }

.foot-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.foot-links a:hover { color: var(--wine); background: rgba(139, 30, 63, 0.07); }

.foot-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.copyright { font-size: 0.73rem; color: var(--gray); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wine);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.to-top svg { transition: transform 0.3s var(--spring); }

.to-top:hover { color: var(--wine-deep); }
.to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes headIn {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeUpBig {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

@keyframes slideCycle {
  0%    { opacity: 0; transform: scale(1.045); }
  4.5%  { opacity: 1; transform: scale(1); }
  20%   { opacity: 1; transform: scale(1); }
  23.5% { opacity: 0; transform: scale(1.03); }
  100%  { opacity: 0; transform: scale(1.045); }
}

@keyframes dotCycle {
  0%   { background: var(--gold); width: 34px; }
  20%  { background: var(--gold); width: 34px; }
  23%  { background: rgba(255, 255, 255, 0.42); width: 20px; }
  100% { background: rgba(255, 255, 255, 0.42); width: 20px; }
}

@keyframes unblur {
  from { filter: blur(5px); }
  to   { filter: blur(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .layout { grid-template-columns: 1fr; }
  .feed { grid-column: auto; }
  .side { grid-column: auto; }
  .side-inner {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .story { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --tickH: 32px; }

  .site-head { position: static; }

  main { padding-top: 0; }

  .nav {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
    row-gap: 4px;
    column-gap: 12px;
  }

  .logo svg { width: 26px; height: 26px; }
  .logo-text { font-size: 1.5rem; }
  .logo-sub { display: none; }

  .cats {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cats a { padding: 6px 12px; white-space: nowrap; }

  .search { margin-left: auto; }
  .search input { width: 92px; }

  .container { padding: 0 16px; }

  .layout { gap: 24px; padding-top: 24px; }

  .feed { grid-template-columns: 1fr; gap: 20px; }

  .card.featured a { grid-template-columns: 1fr; }
  .card.featured figure { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .card.featured .card-body { padding: 20px; }
  .card.featured h3 { font-size: 1.28rem; }

  .side-inner { grid-template-columns: 1fr; }

  .carousel { height: 40vh; min-height: 300px; }
  .slide-cap { bottom: 34px; padding: 0 20px; }
  .slide-cap p { display: none; }

  .story { padding: 22px 18px; border-radius: 14px; }

  .s-row { flex-wrap: wrap; gap: 4px 12px; }
  .s-row time { width: auto; }

  footer { margin-top: 48px; }
  .foot { padding: 26px 16px; flex-direction: column; align-items: flex-start; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide:first-child { opacity: 1; }
  .dots span:first-child { background: var(--gold); width: 34px; }
}
