/*
Theme Name: Just Say OK News
Theme URI: https://justsayok.org/
Author: Help4 Network
Description: Civic news and public accountability theme for Just Say OK.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: justsayok-news
*/

:root {
  --green: #0f5d37;
  --forest: #083320;
  --silver: #c8ced1;
  --charcoal: #1d1d1d;
  --white: #ffffff;
  --gold: #c9a227;
  --red: #c62828;
  --blue: #1a4e8a;
  --ink: #111513;
  --muted: #5f6663;
  --line: #dfe3e1;
  --soft: #f5f7f6;
  --shadow: 0 18px 45px rgba(8, 51, 32, 0.11);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body {
  overflow-x: hidden;
}

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

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

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

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

.topline {
  background: var(--green);
  color: var(--white);
  font-size: 13px;
}

.topline__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  gap: 16px;
}

.topline__message {
  justify-self: center;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.socials a,
.search-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 93, 55, 0.15);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 285px;
}

.brand__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.brand__tag {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 26px);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a:first-child::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.25fr);
  align-items: stretch;
}

.hero__copy {
  padding: clamp(58px, 8vw, 108px) 36px clamp(54px, 7vw, 90px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 4.25vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 760px;
}

.hero p {
  margin: 26px 0 0;
  max-width: 600px;
  color: #26312d;
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: #9aa39f;
}

.hero__image {
  position: relative;
  min-height: 520px;
  background-image:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.82) 14%, rgba(255, 255, 255, 0) 38%),
    url("assets/hero-skyline.png");
  background-size: cover;
  background-position: center right;
}

.topics {
  margin-top: 28px;
  margin-bottom: 28px;
}

.topics__bar {
  display: flex;
  gap: 26px;
  align-items: center;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  padding: 18px 24px;
  background: var(--soft);
  border: 1px solid #e9ecea;
  white-space: nowrap;
}

.topics strong,
.section-link,
.category,
.meta,
.accountability__item strong,
.footer h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.topics strong {
  color: var(--green);
  margin-right: 12px;
}

.topics a {
  color: #2e3532;
  font-size: 13px;
}

.featured {
  display: grid;
  grid-template-columns: minmax(330px, 1.02fr) minmax(330px, 0.92fr) minmax(260px, 0.66fr);
  gap: 28px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.featured__image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 1.14;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-copy {
  padding: 34px 0 0;
}

.category {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.feature-copy h2,
.section-heading,
.election h2 {
  margin: 12px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-copy h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.18;
}

.feature-copy p {
  margin: 22px 0 0;
  color: #414946;
}

.meta {
  margin-top: 30px;
  color: #606965;
  font-size: 12px;
}

.feature-copy .btn {
  margin-top: 28px;
}

.trending {
  padding: 28px 0 0 28px;
  border-left: 1px solid var(--line);
}

.trending h2 {
  margin: 0 0 18px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.trend {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 0 0 18px;
}

.trend img {
  width: 76px;
  height: 58px;
  object-fit: cover;
}

.trend h3 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.22;
}

.trend span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 42px 0 22px;
}

.section-heading {
  font-size: 28px;
  line-height: 1.18;
  text-transform: uppercase;
}

.section-link {
  color: var(--green);
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin: 0 0 24px;
}

.filters a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 0;
}

.filters a:first-child {
  background: var(--green);
  color: var(--white);
  padding: 10px 28px;
}

.news-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
}

.card img {
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.card__body {
  padding: 18px;
}

.card h3,
.video-card h3 {
  margin: 8px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.card time,
.video-card time {
  display: block;
  margin-top: 14px;
  color: #6f7673;
  font-size: 12px;
}

.video-card {
  min-width: 0;
}

.video-thumb {
  position: relative;
  aspect-ratio: 1.64;
  overflow: hidden;
  background: var(--forest);
}

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

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.play::after {
  content: "";
  position: absolute;
  border-left: 13px solid var(--green);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateX(2px);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 800;
}

.accountability {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.accountability__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(5, minmax(120px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.accountability__intro h2 {
  margin: 0;
  color: var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
}

.accountability__intro p {
  max-width: 330px;
  color: #38433f;
}

.accountability__item {
  padding: 12px 20px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--green);
  border: 2px solid currentColor;
  font-size: 24px;
  font-weight: 900;
}

.accountability__item p {
  margin: 8px 0 0;
  color: #4f5a56;
  font-size: 13px;
}

.election {
  margin: 44px 0 34px;
  background:
    linear-gradient(90deg, rgba(8, 51, 32, 0.98), rgba(8, 51, 32, 0.9)),
    url("assets/news-skyline.png");
  background-size: cover;
  color: var(--white);
}

.election__inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: 115px minmax(300px, 1fr) minmax(260px, 0.8fr) auto;
  align-items: center;
  gap: 26px;
}

.vote-mark {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: linear-gradient(#c62828 0 42%, #ffffff 42% 58%, #1a4e8a 58%);
  color: var(--white);
  border: 5px solid var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.election h2 {
  font-size: 42px;
  line-height: 1.15;
}

.election strong {
  display: block;
  color: #9bcf82;
  font-size: 21px;
  line-height: 1.18;
}

.election p {
  margin: 0;
  color: #f0f4f2;
}

.election .btn {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
}

.newsletter {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 30px;
  align-items: center;
  padding: 28px 0;
}

.newsletter h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter p {
  margin: 4px 0 0;
}

.signup {
  display: flex;
  flex-wrap: wrap;
}

.signup input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfd6d2;
  padding: 0 18px;
  font: 500 14px "Inter", Arial, sans-serif;
}

.signup button {
  min-width: 155px;
  border: 0;
  background: var(--green);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signup__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup-message {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.signup-message--success {
  color: var(--green);
}

.signup-message--error {
  color: var(--red);
}

.site-footer {
  background: #0b1210;
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 0.9fr;
  gap: 44px;
  padding: 52px 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.footer-brand img {
  width: 92px;
}

.footer p,
.site-footer li {
  color: #d7dcda;
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

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

.site-footer li + li {
  margin-top: 7px;
}

.copyright {
  background: var(--green);
  color: var(--white);
  font-size: 13px;
}

.copyright__inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1100px) {
  .site-header__inner {
    min-height: 88px;
    gap: 18px;
    padding: 10px 0;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 250px;
  }

  .brand__logo {
    width: 70px;
    height: 70px;
  }

  .brand__name {
    font-size: clamp(27px, 2.7vw, 34px);
  }

  .brand__tag {
    margin-top: 4px;
    font-size: 11px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11px;
    line-height: 1.15;
  }

  .hero__grid,
  .featured,
  .accountability__grid,
  .election__inner,
  .newsletter__inner,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding: 58px 0 42px;
  }

  .hero__image {
    min-height: 330px;
  }

  .trending,
  .accountability__item {
    padding-left: 0;
    border-left: 0;
  }

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

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 12px 0 0;
  }

  .topline__inner {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 0;
    padding: 6px 0 7px;
    text-align: center;
  }

  .topline {
    font-size: 12px;
  }

  .topline__date,
  .socials {
    justify-self: center;
  }

  .topline__message {
    font-size: 12px;
  }

  .socials {
    gap: 10px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .brand__logo {
    width: 66px;
    height: 66px;
  }

  .brand__name {
    font-size: clamp(27px, 8vw, 30px);
  }

  .brand__tag {
    font-size: 11px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding: 4px 0 9px;
    border-top: 1px solid rgba(15, 93, 55, 0.12);
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar,
  .topics__bar::-webkit-scrollbar,
  .filters::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
  }

  .main-nav a:first-child {
    padding-left: 0;
  }

  .hero__grid {
    min-height: 0;
  }

  .hero__copy {
    padding: 44px 0 30px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.2vw, 39px);
    line-height: 1.1;
  }

  .hero p {
    margin-top: 20px;
    font-size: 16px;
  }

  .button-row {
    gap: 14px;
    margin-top: 28px;
  }

  .topics {
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .topics__bar {
    gap: 18px;
    margin: 0 -12px;
    padding: 14px 12px;
  }

  .filters {
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filters a {
    flex: 0 0 auto;
  }

  .button-row,
  .signup {
    flex-direction: column;
  }

  .btn,
  .signup button {
    width: 100%;
  }

  .news-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .election h2 {
    font-size: 31px;
  }

  .election__inner {
    padding: 24px 0;
    gap: 16px;
  }

  .copyright__inner {
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
  }
}
