/*
Theme Name: The Commuter
Theme URI: https://northampton.edu
Author: The Commuter Staff
Author URI: https://northampton.edu
Description: Official theme for The Commuter, Northampton Community College's student news organization. Editorial design system in Lehigh brown & white — campus news, sports, arts and opinion.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-commuter
*/

/* ============================================
   The Commuter — Northampton Community College
   Editorial design system (Lehigh brown & white)
   ============================================ */

:root {
  --brown-950: #1E4C89;
  --brown-900: #3a2213;
  --brown-800: #4e2f1a;
  --brown-700: #1E4C89;   /* primary masthead brown */
  --brown-600: #8a5a35;
  --brown-500: #3982BC;
  --brown-100: #f2e9de;
  --cream: #EEF2F6;
  --white: #ffffff;
  --ink: #1c1712;
  --ink-soft: #4a423b;
  --gray: #766e65;
  --rule: #D05125;
  --rule-dark: #3a2213;
  --accent: #8a1f11; /* small red accent, used sparingly like AP wire tags */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: #1E4C89;
  color: var(--brown-100);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.utility-bar a { opacity: .85; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }
.utility-left, .utility-right { display: flex; gap: 18px; align-items: center; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 18px;
  text-align: center;
}
.masthead-meta {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1E4C89;
  margin-bottom: 10px;
}
.masthead-meta strong { color: var(--ink); }
.nameplate {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 1;
  color: #1E4C89;
  margin: 0;
  letter-spacing: 0;
}
.nameplate .the {
  display: block;
  font-size: .38em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  color: #1E4C89;
  margin-bottom: -2px;
}
.tagline {
  font-size: 14px;
  color: #1E4C89;
  margin-top: 8px;
  font-style: italic;
}

/* ---------- Primary nav ---------- */
.primary-nav {
  background: var(--brown-700);
  border-bottom: 4px solid var(--brown-950);
  position: relative;
  top: 0;
  z-index: 50;
}
.primary-nav .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-links {
    grid-column: 2;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  background: #D05125;
  border-bottom-color: var(--brown-100);
}
.nav-search {
    grid-column: 3;
    justify-self: end;
    color: var(--brown-100);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 8px 4px;
}

/* ---------- Breaking ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--brown-100);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--brown-900);
}
.ticker .wrap { display: flex; align-items: center; padding: 0; }
.ticker-label {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  flex-shrink: 0;
}
.ticker-track-outer {
  overflow: hidden;
  flex: 1;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 32s linear infinite;
  font-size: 13.5px;
}
.ticker-track span { margin-right: 48px; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Layout grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 40px;
  padding: 36px 0 10px;
}

/* ---------- Section labels ---------- */
.section-label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-700);
  border-bottom: 2px solid var(--brown-700);
  padding-bottom: 8px;
  margin: 0 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-label a { font-size: 11.5px; color: var(--gray); font-weight: 600; }

/* ---------- Hero story ---------- */
.hero-story { margin-bottom: 34px; }
.hero-tag {
  display: none;
  background: var(--brown-700);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.hero-figure {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1E4C89, #3982BC);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }
.hero-story h1, .hero-story h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ink);
}
.hero-story h1 a, .hero-story h2 a { }
.hero-story h1 a:hover, .hero-story h2 a:hover { text-decoration: underline; text-decoration-color: var(--brown-500); }
.dek {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
}
.byline {
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid #D05125;
  padding-top: 10px;
}
.byline strong { color: var(--ink); font-weight: 700; }

/* ---------- Story grid cards ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 8px;
}
.card { }
.card-figure {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1E4C89, #3982BC);
  margin-bottom: 12px;
  overflow: hidden;
}
.card-figure img { width: 100%; height: 100%; object-fit: cover; }
.card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #D05125;
  margin-bottom: 6px;
  display: block;
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brown-500); }
.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}
.card .byline { border-top: none; padding-top: 0; font-size: 12px; }

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 30px 0;
}

/* ---------- List rows (compact) ---------- */
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.story-list li:first-child { padding-top: 0; }
.story-list .thumb {
  width: 84px;
  height: 64px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1E4C89, #3982BC);
  overflow: hidden;
}
.story-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-list h4 {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.3;
  margin: 0 0 4px;
}
.story-list h4 a:hover { text-decoration: underline; }
.story-list .meta { font-size: 11.5px; color: var(--gray); }
.story-list .rank {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--brown-500);
  width: 28px;
  flex-shrink: 0;
  line-height: 1;
}

/* ---------- Sidebar ---------- */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 20px;
  margin-bottom: 28px;
}
.sidebar-box.dark {
  background: #D05125;
  color: var(--brown-100);
  border-color: #D05125;
}
.sidebar-box.dark .section-label { color: var(--brown-100); border-color: var(--brown-500); }
.sidebar-box.dark .story-list li { border-color: var(--brown-800); }
.sidebar-box.dark .story-list .meta { color: var(--brown-500); }
.sidebar-box.dark h4 { color: var(--white); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  font-size: 14px;
  font-family: var(--sans);
}
.btn {
  display: inline-block;
  background: var(--brown-700);
  color: var(--white);
  border: none;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--brown-800); }
.btn.outline {
  background: transparent;
  color: var(--brown-700);
  border: 1.5px solid var(--brown-700);
}
.btn.outline:hover { background: var(--brown-700); color: var(--white); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.tag-cloud a:hover { background: var(--brown-700); color: var(--white); border-color: var(--brown-700); }

/* ---------- Section teaser bands (homepage) ---------- */
.band {
  border-top: 4px double var(--rule-dark);
  padding: 34px 0;
}
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.band-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  color: var(--brown-800);
}
.band-head a { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brown-700); }
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-950);
  color: var(--brown-100);
  margin-top: 40px;
  padding: 46px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #D05125;
}
.footer-grid > div:nth-child(2) {
    position: relative;
    left: -100px;
}
.footer-grid h5 {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-nameplate {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-about p { font-size: 13.5px; line-height: 1.6; color: var(--brown-100); opacity: .85; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 12px;
  color: var(--brown-500);
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 32px; height: 32px;
  border: 1px solid #D05125;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.social-row a:hover { background: #D05125; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}
.page-header .eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 50px);
  margin: 8px 0 0;
  color: var(--brown-900);
}
.page-header p.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 700px;
  margin-top: 12px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 6px;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Article page ---------- */
.article-page { max-width: 760px; margin: 0 auto; }
.article-page .hero-tag { margin-bottom: 14px; }
.article-page h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
}
.article-page .dek { font-size: 19px; margin-bottom: 18px; }
.article-page .byline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 26px;
}
.share-row { display: flex; gap: 10px; }
.share-row a {
  width: 30px; height: 30px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.share-row a:hover { background: var(--brown-700); color: var(--white); border-color: var(--brown-700); }
.article-figure { margin-bottom: 8px; aspect-ratio: 16/9; overflow:hidden; background: linear-gradient(135deg, #1E4C89, #3982BC);
.article-figure img{width:100%;height:100%;object-fit:cover;}
.caption { font-size: 12.5px; color: var(--gray); margin: 8px 0 26px; font-style: italic; }
.article-body { font-size: 18px; line-height: 1.75; color: var(--ink); }
.article-body p { margin: 0 0 22px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 900;
  float: left;
  line-height: .8;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--brown-700);
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--brown-800);
  border-left: 4px solid var(--brown-700);
  margin: 30px 0;
  padding: 4px 0 4px 24px;
}
.article-body h2 { font-family: var(--serif); font-size: 26px; margin: 34px 0 14px; color: var(--brown-900); }
.tags-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; }
.author-box {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 20px;
  margin: 34px 0;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1E4C89, #3982BC);
  flex-shrink: 0;
}
.author-box h5 { margin: 0 0 4px; font-family: var(--serif); font-size: 17px; }
.author-box p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Staff grid (about page) ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.staff-card { text-align: center; }
.staff-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1E4C89, #3982BC);
  margin-bottom: 12px;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card h4 { font-family: var(--serif); margin: 0 0 2px; font-size: 16px; }
.staff-card .role { font-size: 12.5px; color: var(--brown-700); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 30px 0 10px;
}
.pillar {
  border-top: 3px solid var(--brown-700);
  padding-top: 14px;
}
.pillar h4 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; color: #2B4C85; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.info-list { list-style: none; margin: 0 0 26px; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.info-list .ico { color: var(--brown-700); font-weight: 800; width: 20px; }

/* ---------- Masonry-ish TV/Radio embeds ---------- */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.media-card { background: var(--white); border: 1px solid var(--rule); }
.media-thumb { aspect-ratio: 16/9; background: var(--ink); position: relative; }
.media-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 46px; opacity: .9;
}
.media-body { padding: 16px 18px; }
.media-body h4 { font-family: var(--serif); font-size: 17px; margin: 0 0 6px; }
.media-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  font-size: 13.5px;
  font-weight: 600;
}
.pagination a:hover { background: var(--brown-700); color: var(--white); border-color: var(--brown-700); }
.pagination .current { background: var(--brown-900); color: var(--white); border-color: var(--brown-900); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brown-800);
    flex-direction: column;
    display: none;
  }
  .nav-links.open { display: flex; }
  .primary-nav .wrap { position: relative; flex-wrap: wrap; }
  .story-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .utility-bar .utility-left span { display: none; }
}

/* ---------- WordPress core alignment/caption support ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--gray); margin: 8px 0 26px; font-style: italic; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
