:root {
  color-scheme: dark;
  --background: #100d20;
  --surface: #19142b;
  --surface-raised: #211b38;
  --text: #f7f3ff;
  --muted: #c0b9d1;
  --accent: #ff78c7;
  --accent-blue: #78dcff;
  --accent-purple: #b69aff;
  --border: #403657;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 75% -18%, #6f337355, transparent 42%), var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.page-width,
.header-inner {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--accent);
  color: #14150f;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner,
.main-nav,
.brand,
.footer-inner {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 76px;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.brand-light {
  color: var(--muted);
  font-weight: 500;
}

.main-nav {
  gap: clamp(1.2rem, 4vw, 2.8rem);
}

.main-nav a,
.back-to-top {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.main-nav a:hover,
.back-to-top:hover {
  color: var(--accent);
}

.share-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--accent-purple);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
}

.share-button:hover {
  background: #b69aff1a;
}

.share-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.share-status {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(17rem, 80vw);
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--accent-blue);
  font-size: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem #0006;
}

.share-status:empty {
  display: none;
}

.hero {
  padding-block: clamp(4.5rem, 10vw, 8rem) 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 1.3rem;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-purple) 55%, var(--accent-blue) 100%);
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.button-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.featured {
  display: grid;
  min-height: 350px;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.featured-copy {
  align-self: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.eyebrow-divider {
  margin-inline: 0.3rem;
  color: var(--muted);
}

.featured h2,
.section-heading h2,
.about-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.featured-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #190d22;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.featured-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 67% 26%, #ffb1df 0 8%, transparent 8.5%),
    linear-gradient(155deg, #171944 0%, #42336d 29%, #a34a87 42%, #ef91b2 43%, #7964b3 59%, #3a76a1 60%, #182447 100%);
}

.sun {
  position: absolute;
  top: 14%;
  right: 19%;
  width: 100px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd1ed;
  box-shadow: 0 0 70px #ff8aca88;
}

.palm {
  position: absolute;
  z-index: 1;
  bottom: 22%;
  width: 5px;
  height: 65%;
  transform-origin: bottom;
  background: #19142b;
}

.palm::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 130px;
  height: 70px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 258deg at 50% 100%, transparent 0deg 8deg, #19142b 9deg 13deg, transparent 14deg 23deg);
  content: "";
}

.palm-one {
  left: 24%;
  transform: rotate(8deg);
}

.palm-two {
  right: 13%;
  height: 50%;
  transform: rotate(-9deg);
}

.waterline {
  position: absolute;
  right: 0;
  bottom: 21%;
  left: 0;
  height: 2px;
  background: #ffe2f2bb;
  box-shadow: 0 8px 0 #ffb2dc55, 0 16px 0 #78dcff66;
}

.art-caption {
  position: absolute;
  right: 1.4rem;
  bottom: 1rem;
  color: #fff3da;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-align: right;
}

.news-section {
  padding-block: 6rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.search-form {
  display: flex;
  width: min(100%, 340px);
  gap: 0.5rem;
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
}

.search-form input::placeholder {
  color: #96948c;
}

.search-form button {
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #190d22;
  cursor: pointer;
  font-weight: 800;
}

.search-form button:hover {
  background: #ffb2dc;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 2rem 1rem;
}

.category-button {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.category-button:hover,
.category-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.category-button.is-active {
  background: #ff78c71a;
}

.verified-section {
  padding-block: 0 5rem;
}

.verified-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.verified-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.verified-heading > p {
  max-width: 380px;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #211932, var(--surface) 70%);
}

.fact-card:nth-child(3n + 2) {
  border-top: 2px solid var(--accent-purple);
}

.fact-card:nth-child(3n + 1) {
  border-top: 2px solid var(--accent);
}

.fact-card:nth-child(3n) {
  border-top: 2px solid var(--accent-blue);
}

.fact-label {
  margin-bottom: 0.8rem;
  color: var(--accent-blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.fact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.fact-card > p:not(.fact-label) {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.fact-card > a,
.source-note a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.fact-card > a:hover,
.source-note a:hover {
  color: var(--accent-blue);
}

.fact-card-wide {
  grid-column: 1 / -1;
}

.source-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.results-status {
  min-height: 1.5em;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.card-category {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

.news-card p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-details {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.85rem;
}

.article-details summary {
  color: var(--accent);
  font-weight: 750;
  cursor: pointer;
}

.article-details summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.article-details p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.empty-state {
  padding: 2rem 0;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.about-section {
  border-block: 1px solid var(--border);
  background: #161128;
}

.about-inner {
  padding-block: 4rem;
}

.about-inner h2 {
  max-width: 650px;
}

.about-inner > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
}

.about-inner .disclaimer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
}

.site-footer {
  padding-block: 1.5rem;
}

.footer-inner {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.back-to-top {
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .verified-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-card-wide {
    grid-column: 1 / -1;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured-art {
    min-height: 250px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 1.2rem;
  }
}

@media (max-width: 520px) {
  .page-width,
  .header-inner {
    width: min(100% - 2rem, var(--content-width));
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 1.1rem;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .hero {
    padding-block: 3.5rem;
  }

  .news-section {
    padding-block: 4rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact-card-wide {
    grid-column: auto;
  }

  .news-card {
    min-height: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
