:root {
  color-scheme: light;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --bg-alt: #eef0f3;
  --ink: #15202b;
  --ink-2: #2b3947;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #e01e1e;
  --accent-dark: #b91c1c;
  --navy: #16202e;
  --navy-2: #1d2940;
  --util-link: #6aa0d8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.08);

  --max: 1200px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans), system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif), Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

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

a:hover {
  color: var(--accent);
}

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

/* ---------- header: utility bar ---------- */

.utility-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.utility-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 7px 24px;
}

.utility-date {
  align-items: center;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 7px;
  text-transform: capitalize;
}

.utility-place {
  color: var(--util-link);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- header: masthead ---------- */

.masthead {
  background: var(--surface);
}

.masthead-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
}

.brand-logo {
  display: block;
  height: 175px;
  width: auto;
}

.masthead-banner {
  height: 50px;
  max-width: 55%;
  width: auto;
}

@media (max-width: 720px) {
  .masthead-banner {
    display: none;
  }
  .brand-logo {
    height: 130px;
  }
}

/* ---------- header: primary nav ---------- */

.primary-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.primary-nav-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
  position: relative;
}

.primary-nav-links {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav-links::-webkit-scrollbar {
  display: none;
}

.primary-nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 18px;
  white-space: nowrap;
}

.primary-nav-links a:hover {
  color: var(--accent);
}

.nav-search {
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  display: inline-flex;
  overflow: hidden;
  position: absolute;
  right: 24px;
}

.nav-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  padding: 7px 4px 7px 14px;
  width: 150px;
}

.nav-search button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  padding: 6px 12px 6px 6px;
}

.nav-search button:hover {
  color: var(--accent);
}

/* ---------- search page ---------- */

.search-page {
  min-height: 40vh;
}

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

.search-results li {
  border-bottom: 1px solid var(--line);
}

.search-results a {
  align-items: baseline;
  display: flex;
  gap: 12px;
  padding: 14px 4px;
}

.search-results a:hover .search-title {
  color: var(--accent);
}

.search-cat {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 120px;
  text-transform: uppercase;
}

.search-title {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 560px) {
  .search-cat {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-search {
    display: none;
  }
  .primary-nav-inner {
    justify-content: flex-start;
  }
}

/* ---------- header: secondary nav ---------- */

.secondary-nav {
  background: var(--navy-2);
}

.secondary-nav-inner {
  display: flex;
  margin: 0 auto;
  max-width: var(--max);
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.secondary-nav-inner::-webkit-scrollbar {
  display: none;
}

.secondary-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 16px;
  white-space: nowrap;
}

.secondary-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- header: breaking ticker ---------- */

.breaking {
  align-items: stretch;
  background: var(--accent);
  color: #fff;
  display: flex;
  overflow: hidden;
}

.breaking-label {
  align-items: center;
  background: var(--accent-dark);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  white-space: nowrap;
}

.breaking-track {
  align-items: center;
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.breaking-marquee {
  animation: ticker 90s linear infinite;
  display: inline-flex;
  gap: 48px;
  padding-left: 48px;
  white-space: nowrap;
}

.breaking:hover .breaking-marquee {
  animation-play-state: paused;
}

.breaking-marquee a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.breaking-marquee a:hover {
  text-decoration: underline;
}

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

/* ---------- layout ---------- */

main {
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 24px 64px;
}

.section-head {
  align-items: baseline;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  margin: 44px 0 22px;
  padding-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0;
  padding-left: 14px;
  position: relative;
}

.section-head h2::before {
  background: var(--accent);
  bottom: 2px;
  content: "";
  left: 0;
  position: absolute;
  top: 2px;
  width: 5px;
}

.section-head a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.section-head a:hover {
  color: var(--accent);
}

.section-head .more-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
}

.section-head .more-link:hover {
  color: var(--accent-dark);
}

/* ---------- hero ---------- */

.hero {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  margin-top: 8px;
}

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

/* ---------- hero slider (overlay) ---------- */

.hero-slider {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero-slider-track {
  display: grid;
}

.hero-slide {
  aspect-ratio: 16 / 10;
  color: inherit;
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  position: relative;
  text-decoration: none;
  transition: opacity 0.5s ease;
  visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

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

.hero-slide-img.no-image {
  align-items: center;
  background:
    radial-gradient(100% 75% at 50% 0%, rgba(106, 160, 216, 0.28), transparent 55%),
    radial-gradient(80% 60% at 80% 110%, rgba(224, 30, 30, 0.16), transparent 60%),
    linear-gradient(135deg, #1d2940 0%, #16202e 58%, #111a26 100%);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif), serif;
  font-size: 3rem;
  font-weight: 800;
  gap: 2px;
  justify-content: center;
  line-height: 1;
  position: relative;
}

.hero-slide-img.no-image::after {
  color: rgba(255, 255, 255, 0.5);
  content: "NEWS · ΘΡΑΚΗ";
  font-family: var(--font-sans), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.hero-slide-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.32) 32%,
    rgba(0, 0, 0, 0) 58%
  );
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  left: 0;
  padding: 18px 24px 22px;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-slide-cat {
  align-self: flex-start;
  border-radius: 3px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 9px;
  padding: 3px 9px;
  text-transform: uppercase;
}

.hero-slide-title {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 7px;
  max-width: 88%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-slide-excerpt {
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  max-width: 78%;
  overflow: hidden;
}

@media (max-width: 560px) {
  .hero-slide-excerpt {
    display: none;
  }
}

.hero-arrow {
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease;
  width: 42px;
  z-index: 3;
}

.hero-slider:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--accent);
}

.hero-arrow.prev {
  left: 14px;
}

.hero-arrow.next {
  right: 14px;
}

@media (max-width: 720px) {
  .hero-arrow {
    opacity: 1;
  }
}

.hero-slider-dots {
  bottom: 16px;
  display: flex;
  gap: 8px;
  position: absolute;
  right: 22px;
  z-index: 3;
}

.hero-dot {
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 10px;
  padding: 0;
  transition: all 0.2s ease;
  width: 10px;
}

.hero-dot.is-active {
  background: var(--accent);
  border-radius: 5px;
  width: 30px;
}

/* ---------- hero side: Κορυφαία ---------- */

.koryfaia-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px 8px;
}

.koryfaia-head {
  border-bottom: 2px solid var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  padding-bottom: 12px;
}

.koryfaia-item {
  border-bottom: 1px solid var(--line);
  display: block;
  padding: 15px 0;
}

.koryfaia-item:last-child {
  border-bottom: 0;
}

.kf-badge {
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.kf-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 9px;
}

.koryfaia-item:hover .kf-title {
  color: var(--accent);
}

.kf-date {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- sponsors ---------- */

/* Left hero column: slider on top, sponsor logos filling the space beneath it
   so there's no dead gap before the strip. */
.hero-main {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* 2x2 grid of logos, directly under the slider. flex:1 + equal rows stretch the
   cells to fill the height left by the taller side column; each logo then fills
   its cell (object-fit:contain) so they render as large as the space allows. */
.sponsor-strip {
  display: grid;
  flex: 1;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
}

@media (max-width: 900px) {
  .sponsor-strip {
    flex: none;
    grid-template-rows: none;
    margin-top: 8px;
  }
  .sponsor-item {
    min-height: 160px;
  }
}

.sponsor-item {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.sponsor-item img {
  display: block;
  height: 100%;
  max-height: 250px; /* caps tall/square logos so they match the wide ones */
  object-fit: contain;
  width: 100%;
}

.sponsor-placeholder {
  align-items: center;
  aspect-ratio: 16 / 6;
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

/* ---------- card grid ---------- */

.article-grid {
  display: grid;
  gap: 26px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media.no-image {
  align-items: center;
  background:
    radial-gradient(125% 90% at 50% -15%, rgba(106, 160, 216, 0.16), transparent 62%),
    linear-gradient(135deg, #eef1f6 0%, #e4e9f0 55%, #edeff3 100%);
  color: #aeb9c9;
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif), serif;
  font-size: 2.3rem;
  font-weight: 800;
  gap: 1px;
  justify-content: center;
  letter-spacing: -0.01em;
  line-height: 1;
  overflow: hidden;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* faint brand ring watermark behind the wordmark */
.card-media.no-image::before {
  border: 6px solid rgba(224, 30, 30, 0.07);
  border-radius: 50%;
  content: "";
  height: 132px;
  left: 50%;
  position: absolute;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 132px;
}

/* small red "NEWS" tagline under the wordmark */
.card-media.no-image::after {
  color: rgba(224, 30, 30, 0.5);
  content: "NEWS";
  font-family: var(--font-sans), sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  position: relative;
  text-indent: 0.42em;
  text-shadow: none;
}

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

.card h3 {
  font-size: 1.1rem;
  margin: 2px 0 0;
}

.card .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
}

/* ---------- category chip ---------- */

.chip {
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  text-transform: uppercase;
}

a.chip:hover {
  color: #fff;
  filter: brightness(0.92);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- article page ---------- */

.article-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: 800px;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
}

.article-page header {
  margin-bottom: 28px;
}

.article-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0 16px;
}

.article-page .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-page .lead-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-radius: 6px;
  margin: 0 0 28px;
  overflow: hidden;
}

.article-page .lead-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 1.2em;
}

.article-body h2,
.article-body h3 {
  margin: 1.6em 0 0.6em;
}

.article-body h2 {
  font-size: 1.6rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body img {
  margin: 1.5em auto;
  border-radius: 6px;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
}

.article-body a {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

.article-body a:hover {
  background: #fef2f2;
}

.article-body iframe,
.article-body video {
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1.5em 0;
  max-width: 100%;
  width: 100%;
}

/* ---------- category page ---------- */

.category-head {
  border-bottom: 2px solid var(--accent);
  margin: 0 0 28px;
  padding-bottom: 16px;
}

.category-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 6px;
  padding-left: 14px;
  position: relative;
}

.category-head h1::before {
  background: var(--accent);
  bottom: 4px;
  content: "";
  left: 0;
  position: absolute;
  top: 4px;
  width: 5px;
}

.category-head .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 64px;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  padding: 4px 0;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  background: #0c1420;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- utilities ---------- */

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: 800px;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.legal-page h2 {
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
  margin: 2em 0 0.8em;
  padding-bottom: 6px;
}

/* ---------- skip link ---------- */

.skip-link {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  left: 12px;
  padding: 10px 16px;
  position: fixed;
  top: -100px;
  transition: top 0.15s ease;
  z-index: 200;
}

.skip-link:focus {
  color: #fff;
  top: 12px;
}

/* ---------- accessibility widget ---------- */

.a11y-toggle {
  align-items: center;
  background: var(--navy-2);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 52px;
  justify-content: center;
  position: fixed;
  right: 20px;
  width: 52px;
  z-index: 150;
}

.a11y-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.a11y-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  bottom: 88px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  max-width: calc(100vw - 40px);
  padding: 16px;
  position: fixed;
  right: 20px;
  width: 300px;
  z-index: 151;
}

.a11y-head {
  align-items: center;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.a11y-head strong {
  font-size: 1.1rem;
}

.a11y-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.a11y-font {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.a11y-font-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.a11y-font-controls button {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  padding: 5px 10px;
}

.a11y-font-controls button:hover {
  background: var(--accent);
  color: #fff;
}

.a11y-font-value {
  font-size: 0.85rem;
  min-width: 42px;
  text-align: center;
}

.a11y-options {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.a11y-option {
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.a11y-option:hover {
  border-color: var(--accent);
}

.a11y-option.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.a11y-state {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.a11y-reset {
  background: var(--navy-2);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px;
  width: 100%;
}

.a11y-reset:hover {
  background: var(--accent);
}

/* keep the widget itself uninverted/ungrayscaled so it stays usable */
html[style*="filter"] .a11y {
  filter: none;
}

/* ---------- accessibility effect classes ---------- */

.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.a11y-readable,
.a11y-readable * {
  font-family: Arial, Verdana, "Segoe UI", sans-serif !important;
  letter-spacing: 0.01em;
}

.a11y-spacing,
.a11y-spacing * {
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

.a11y-lineheight,
.a11y-lineheight * {
  line-height: 2 !important;
}

.a11y-bigcursor,
.a11y-bigcursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 32 32'%3E%3Cpath d='M6 2l20 13-8 2 5 9-4 2-5-9-6 6z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E")
      4 2,
    auto !important;
}

.a11y-noanim *,
.a11y-noanim *::before,
.a11y-noanim *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}

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

/* ---------- 404 / not found ---------- */

.not-found {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  max-width: 640px;
  padding: 64px 20px 80px;
  text-align: center;
}

.nf-code {
  color: var(--accent);
  font-size: clamp(72px, 16vw, 132px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.nf-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
}

.nf-lead {
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.nf-link {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  padding: 9px 18px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nf-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nf-link-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nf-link-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
