/*
Theme Name: The Hive Newsroom
Theme URI: https://thehive.belahs.org/
Author: BELA
Description: Editorial newspaper theme for The Hive, BELA's student newsroom.
Version: 1.0.0
Text Domain: the-hive-newsroom
*/

:root {
  --ink: #151414;
  --muted: #66615b;
  --paper: #fffdf8;
  --soft: #f3efe7;
  --line: #d8d0c2;
  --teal: #087e92;
  --teal-dark: #045668;
  --gold: #d99a20;
  --red: #b3392f;
  --green: #486f49;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

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

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

.site-shell {
  min-height: 100vh;
}

.topline {
  border-bottom: 1px solid var(--line);
  background: #f8f5ee;
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topline-inner,
.masthead,
.nav-inner,
.site-main,
.site-footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 9px 0;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-field {
  width: 180px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font: 700 12px/1 Arial, sans-serif;
}

.search-submit {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  font: 800 12px/1 Arial, sans-serif;
  cursor: pointer;
}

.language-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff;
  text-decoration: none;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 3px solid var(--ink);
}

.brand-kicker,
.issue-meta {
  font: 700 12px/1.5 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  text-align: center;
}

.brand a {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font: 900 32px/1 Arial, sans-serif;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 132px;
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-description {
  margin: 8px 0 0;
  font: 700 13px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  overflow-x: auto;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.nav-fallback a {
  display: block;
  padding: 14px 10px;
  font: 800 13px/1 Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-main {
  padding: 28px 0 56px;
}

.breaking-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  border-block: 1px solid var(--ink);
  padding: 8px 0;
}

.breaking-label {
  background: var(--red);
  color: #fff;
  padding: 6px 10px;
  font: 900 12px/1 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.headline-rotator {
  position: relative;
  min-height: 28px;
  overflow: hidden;
  font: 800 16px/1.35 Arial, sans-serif;
}

.headline-slide {
  display: none;
}

.headline-slide.is-active {
  display: block;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .9fr);
  gap: 30px;
  align-items: start;
}

.lead-story {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.eyebrow,
.section-label,
.article-card .cat,
.post-meta,
.button-link,
.tip-card label,
.tip-card button,
.staff-role {
  font: 800 12px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  color: var(--red);
}

.lead-story h2,
.page-title,
.single-title {
  margin: 8px 0 12px;
  font-size: 76px;
  line-height: .93;
  letter-spacing: 0;
}

.lead-deck,
.archive-description,
.page-intro {
  color: #38322c;
  font-size: 20px;
  line-height: 1.55;
}

.lead-media,
.article-image,
.feature-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.lead-media {
  margin-top: 18px;
  aspect-ratio: 16 / 9;
}

.lead-media img,
.article-image img,
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.lead-media:hover img,
.article-card:hover img {
  transform: scale(1.035);
}

.photo-caption,
.image-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  font: 700 14px/1.35 Arial, sans-serif;
}

.lead-media:hover .photo-caption,
.article-card:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.panel h2,
.panel h3,
.section-heading {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

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

.mini-list a {
  display: block;
  text-decoration: none;
}

.lead-story h2 a,
.page-title a,
.single-title a,
.section-heading a {
  text-decoration: none;
}

.mini-list strong {
  display: block;
  font-size: 17px;
  line-height: 1.24;
}

.mini-list span {
  color: var(--muted);
  font: 700 12px/1.4 Arial, sans-serif;
  text-transform: uppercase;
}

.button-link,
.tip-card button,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.button-link.alt {
  background: var(--teal);
}

.section-band {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
}

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

.article-card {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.article-card a {
  text-decoration: none;
}

.article-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-image {
  aspect-ratio: 4 / 3;
}

.section-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ledger-item {
  min-height: 150px;
  border-top: 5px solid var(--teal);
  padding: 12px 0;
}

.ledger-item:nth-child(2n) {
  border-color: var(--gold);
}

.ledger-item:nth-child(3n) {
  border-color: var(--green);
}

.ledger-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.05;
}

.staff-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.staff-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.staff-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font: 900 24px/1 Arial, sans-serif;
}

.staff-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.staff-role {
  color: var(--muted);
}

.entry-wrap {
  max-width: 780px;
  margin-inline: auto;
}

.entry-content {
  font-size: 19px;
}

.entry-content h2 {
  margin-top: 38px;
  font-size: 36px;
  line-height: 1.08;
}

.entry-content blockquote,
.single-deck {
  margin: 24px 0;
  border-left: 5px solid var(--gold);
  padding-left: 18px;
  color: #2c2925;
  font-size: 24px;
  line-height: 1.35;
}

.single-hero {
  margin: 20px 0 28px;
  border-radius: 8px;
  overflow: hidden;
}

.post-meta {
  color: var(--muted);
}

.archive-header {
  margin-bottom: 26px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 16px;
}

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

.tip-card form,
.newsletter-form,
.comment-form {
  display: grid;
  gap: 12px;
}

.tip-card input,
.tip-card textarea,
.newsletter-form input,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.4 Arial, sans-serif;
}

.tip-card textarea,
.comment-form textarea {
  min-height: 150px;
}

.form-note,
.tip-success {
  color: var(--muted);
  font: 700 13px/1.45 Arial, sans-serif;
}

.tip-success {
  border-left: 4px solid var(--green);
  padding-left: 12px;
  color: var(--green);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-options button,
.scramble-check {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.quiz-options button.is-right {
  border-color: var(--green);
  background: #e9f1e7;
}

.quiz-options button.is-wrong {
  border-color: var(--red);
  background: #f8e8e4;
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: #12110f;
  color: #f7f0e3;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, .8fr));
  gap: 28px;
  padding: 34px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  line-height: 1.05;
}

.site-footer a {
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 14px/1.4 Arial, sans-serif;
}

.wp-caption,
.wp-caption-text,
.gallery-caption {
  max-width: 100%;
}

.aligncenter {
  margin-inline: auto;
}

@media (max-width: 900px) {
  .masthead,
  .front-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .brand-kicker,
  .issue-meta,
  .brand {
    text-align: center;
  }

  .article-grid,
  .section-ledger,
  .staff-strip,
  .archive-grid,
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topline-inner,
  .breaking-strip {
    display: block;
  }

  .language-links {
    margin-top: 8px;
  }

  .top-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .nav-inner {
    justify-content: flex-start;
  }

  .site-title {
    font-size: 58px;
  }

  .article-grid,
  .section-ledger,
  .staff-strip,
  .archive-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .lead-story h2,
  .page-title,
  .single-title {
    font-size: 42px;
  }
}
