/*
Theme Name: Scandle Wire News
Theme URI: https://scandlewire.com/
Author: Scandle Wire
Description: A fast, accessible editorial news theme built for Scandle Wire.
Version: 1.3.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: scandlewire
*/

:root {
  --sw-red: #37334b;
  --sw-red-dark: #242137;
  --sw-ink: #171625;
  --sw-card: #37334b;
  --sw-paper: #f5f4f0;
  --sw-white: #ffffff;
  --sw-gold: #f3d54e;
  --sw-muted: #6d6a78;
  --sw-border: #d9d6cf;
  --sw-max: 1240px;
  --sw-shadow: 0 18px 50px rgba(14, 13, 19, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sw-ink);
  background: var(--sw-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--sw-red);
}

.sw-wrap {
  width: min(calc(100% - 40px), var(--sw-max));
  margin-inline: auto;
}

.utility-bar {
  color: #fff;
  background: var(--sw-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.utility-bar .sw-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--sw-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #c00024, 0 8px 20px rgba(23, 22, 37, 0.16);
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: var(--sw-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 24px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding-block: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 3px;
  background: var(--sw-red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-menu {
  position: relative;
  justify-self: end;
}

.language-menu summary {
  padding: 10px 14px;
  border: 1px solid var(--sw-border);
  list-style: none;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  margin-left: 8px;
  content: "▾";
}

.language-menu[open] summary::after {
  content: "▴";
}

.language-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--sw-border);
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 18, 28, 0.16);
}

.language-options a {
  padding: 9px 11px;
  color: var(--sw-ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-options a:hover,
.language-options a:focus-visible {
  color: #fff;
  background: var(--sw-red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sw-border);
  background: #fff;
  font-size: 1.35rem;
}

.trending {
  overflow: hidden;
  color: #29272d;
  background: #e9e5de;
}

.trending .sw-wrap {
  display: flex;
  align-items: stretch;
  width: min(100%, 1440px);
}

.trending-label {
  flex: 0 0 auto;
  padding: 15px clamp(26px, 5vw, 68px);
  color: #fff;
  background: var(--sw-red);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trending-track {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 12px 24px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.trending-track span + span::before {
  margin-right: 18px;
  color: var(--sw-red);
  content: "•";
}

.news-main {
  padding-block: 54px 84px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--sw-red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.section-note {
  max-width: 300px;
  margin: 0 0 4px;
  color: var(--sw-muted);
  font-size: 0.9rem;
  text-align: right;
}

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

.story-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  border: 11px solid var(--sw-gold);
  background: var(--sw-card);
  box-shadow: var(--sw-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover,
.story-card:focus-within {
  z-index: 2;
  box-shadow: 0 24px 60px rgba(14, 13, 19, 0.2);
  transform: translateY(-5px);
}

.story-card-media {
  position: relative;
  height: 246px;
  min-height: 246px;
  flex: 0 0 246px;
  overflow: hidden;
  background: #211f31;
}

.story-card-media img {
  width: 100%;
  height: 100%;
  min-height: 246px;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.story-card-topic {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  color: #fff;
  background: var(--sw-red);
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 16px;
  color: #fff;
}

.story-card-title {
  margin: 0;
  color: var(--sw-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.story-card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.story-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.story-card-brand {
  margin-top: 16px;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--sw-border);
  background: #fff;
  font-weight: 850;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--sw-red);
  color: #fff;
  background: var(--sw-red);
}

.article-shell {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
  padding-block: 58px 90px;
}

.article-back {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--sw-red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-topic {
  margin: 0 0 12px;
  color: var(--sw-red);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.article-deck {
  margin: 24px 0;
  color: #504e55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.3vw, 1.42rem);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-block: 18px;
  border-block: 1px solid var(--sw-border);
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-featured {
  margin: 36px 0;
  overflow: hidden;
  border: 12px solid var(--sw-gold);
  background: var(--sw-card);
}

.article-featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-featured figcaption {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
}

.article-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-content p {
  margin: 0 0 1.45em;
}

.article-content a {
  color: var(--sw-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-box {
  padding: 26px;
  margin-top: 44px;
  border-left: 6px solid var(--sw-red);
  background: #ece8e1;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.source-box h2,
.source-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.source-box ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.source-box li + li {
  margin-top: 10px;
}

.standard-strip {
  margin-top: 80px;
  padding-block: 58px;
  color: #fff;
  background: var(--sw-ink);
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.standard-item {
  padding-top: 18px;
  border-top: 4px solid var(--sw-red);
}

.standard-item strong {
  display: block;
  color: var(--sw-gold);
  font-size: 2rem;
}

.standard-item h3 {
  margin: 8px 0;
}

.page-shell {
  width: min(calc(100% - 40px), 900px);
  min-height: 55vh;
  margin-inline: auto;
  padding-block: 64px 90px;
}

.page-shell h1 {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
}

.site-footer {
  padding-block: 52px 28px;
  color: #fff;
  background: #0f0f14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-meta {
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.cookie-banner {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 20px;
  display: none;
  width: min(calc(100% - 40px), 410px);
  padding: 22px;
  color: #fff;
  background: var(--sw-ink);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  border-color: var(--sw-red);
  background: var(--sw-red);
}

@media (max-width: 1120px) {
  .brand-row {
    grid-template-columns: 1fr auto;
    min-height: 84px;
  }

  .language-menu {
    display: block;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .sw-wrap {
    width: min(calc(100% - 24px), var(--sw-max));
  }

  .utility-bar .sw-wrap {
    justify-content: center;
  }

  .utility-bar span:last-child {
    display: none;
  }

  .brand-tagline {
    display: none;
  }

  .trending-label {
    padding-inline: 16px;
  }

  .trending-track {
    padding-inline: 14px;
  }

  .news-main {
    padding-top: 36px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-card {
    min-height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
