:root {
  --ink: #14213d;
  --ink-soft: #2c3958;
  --paper: #f5f6f9;
  --card: #ffffff;
  --blue: #2954a6;
  --blue-deep: #101d38;
  --blue-bright: #3b6bc4;
  --rule: #dde1ea;
  --muted: #667089;
  --focus: #ffb020;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 90px; }

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

h1, h2, h3, .serif {
  font-family: "Source Serif 4", Georgia, serif;
}

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

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

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

/* ---------- Ticker ---------- */
.ticker {
  background: var(--blue-deep);
  color: #cfe0ff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

.ticker__track {
  display: inline-block;
  padding: 8px 0;
  animation: ticker-scroll 55s linear infinite;
}

.ticker__item {
  display: inline-block;
  padding: 0 2.5rem;
}

.ticker__item::before {
  content: "•";
  color: var(--blue-bright);
  margin-right: 2.5rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--blue-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--blue);
}

.masthead__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.masthead__date {
  font-size: 0.75rem;
  color: #93a6cc;
  letter-spacing: 0.02em;
}

.masthead__logo {
  text-decoration: none;
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.masthead__title {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.masthead__tagline {
  display: block;
  font-size: 0.7rem;
  color: #9fb4de;
  margin-top: 2px;
}

.masthead__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.masthead__nav a {
  color: #cfe0ff;
  text-decoration: none;
}

.masthead__nav a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 620px) {
  .masthead__inner { grid-template-columns: 1fr; text-align: center; }
  .masthead__date, .masthead__nav { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--blue-deep);
}

.hero__image {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
}

/* ---------- Feed ---------- */
.feed {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.article {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.article:first-child { border-top: none; padding-top: 2rem; }

.article__kicker {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.article__headline {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0.35rem 0 0.5rem;
  font-weight: 700;
}

.article__headline a {
  color: var(--ink);
  text-decoration: none;
}

.article__headline a:hover { color: var(--blue); }

.article__byline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.article__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.article__continue {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
}

.article__continue:hover { text-decoration: underline; }

.article__stat {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 0.6rem;
}

/* ---------- Loader ---------- */
.feed__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.feed__loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.2s infinite ease-in-out;
}

.feed__loader-dot:nth-child(2) { animation-delay: 0.15s; }
.feed__loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .feed__loader-dot { animation: none; opacity: 0.6; }
}

/* ---------- About ---------- */
.about {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--rule);
}

.about h2 { margin-top: 0; }

.about p {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 62ch;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--blue-deep);
  color: #fff;
  margin-top: 2rem;
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.contact h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.contact__lede {
  color: #b9c8ec;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.contact__form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #cfdcf4;
}

.field input,
.field textarea {
  font: inherit;
  font-family: "Inter", sans-serif;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #2c3e63;
  background: #16233f;
  color: #fff;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
}

.contact__submit {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  background: var(--blue-bright);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact__submit:hover { background: #4b7dd6; }
.contact__submit:disabled { opacity: 0.6; cursor: default; }

.contact__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #a9d4b0;
}

.contact__status[data-error="true"] { color: #f2a3a3; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
