/*
Theme Name: Alternative Journal
Theme URI: https://alternativejournal.org
Author: OpenAI
Description: A clean editorial WordPress theme for a political and geopolitical quarterly magazine.
Version: 1.0.0
Text Domain: ajournal
*/

:root {
  --bg: #0f0f10;
  --bg-soft: #171718;
  --panel: #1d1e20;
  --panel-2: #242528;
  --text: #f4f1eb;
  --muted: #b9b2a8;
  --accent: #c65a27;
  --accent-dark: #9f451c;
  --line: rgba(255, 255, 255, 0.09);
  --success: #1f8a53;
  --error: #b64132;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius: 18px;
  --max: 1180px;
  --header-height: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(198, 90, 39, 0.12), transparent 26%),
    linear-gradient(135deg, #121214 0%, #0f0f10 45%, #141417 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}

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

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-brand .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 74px;
  max-width: min(520px, 42vw);
  object-fit: contain;
}

.has-custom-logo .brand-text {
  display: none;
}

.brand-text {
  min-width: 0;
}

.site-title-link {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav .main-menu,
.footer-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.site-nav .main-menu a,
.footer-menu a {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.site-nav .main-menu a::after,
.footer-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav .main-menu a:hover::after,
.site-nav .main-menu .current-menu-item a::after,
.site-nav .main-menu .current_page_item a::after,
.footer-menu a:hover::after {
  width: 100%;
}

.hero {
  padding: 86px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy-wrap,
.hero-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%),
    linear-gradient(135deg, rgba(198, 90, 39, 0.08), transparent 35%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy-wrap {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero-copy-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 16px;
  background: var(--accent);
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(198, 90, 39, 0.12);
  border: 1px solid rgba(198, 90, 39, 0.28);
  border-radius: 999px;
  color: #f8d5c4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-copy {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.button-outline:hover {
  background: rgba(255,255,255,0.04);
}

.hero-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-label,
.section-label,
.card-meta,
.entry-meta,
.notice,
.form-note {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-label,
.section-label {
  color: #f4cbb8;
}

.issue-highlight-title {
  margin: 12px 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.issue-highlight-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.panel-strip {
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 999px;
  margin-top: 16px;
}

.section {
  padding: 44px 0;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.section-title {
  margin: 6px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}

.section-text {
  max-width: 66ch;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%), var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-accent {
  height: 8px;
  background: var(--accent);
}

.card-body {
  padding: 22px;
}

.card-meta {
  color: #f4cbb8;
  margin-bottom: 10px;
}

.card-title {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.card-title a:hover {
  color: #fff;
}

.card-excerpt {
  margin: 0 0 18px;
  color: var(--muted);
}

.card-link {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta {
  padding: 28px;
  background: linear-gradient(135deg, rgba(198, 90, 39, 0.18), rgba(255,255,255,0.02)), var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta h3 {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-header,
.archive-header,
.single-header {
  padding: 48px 0 22px;
}

.page-title,
.archive-title,
.entry-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.page-intro,
.archive-intro {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--muted);
}

.content-shell {
  padding: 10px 0 60px;
}

.article-panel {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-meta {
  color: #f4cbb8;
  margin: 0 0 14px;
}

.entry-content > *:first-child,
.page-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child,
.page-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a,
.page-content a {
  color: #ffd3c1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote,
.page-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.03);
}

.entry-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pagination {
  margin-top: 30px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-box {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.info-box h3 {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-box p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #131416;
  color: var(--text);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(198, 90, 39, 0.35);
  border-color: rgba(198, 90, 39, 0.5);
}

.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.notice-success {
  background: rgba(31, 138, 83, 0.14);
  border: 1px solid rgba(31, 138, 83, 0.4);
  color: #9fe0ba;
}

.notice-error {
  background: rgba(182, 65, 50, 0.14);
  border: 1px solid rgba(182, 65, 50, 0.38);
  color: #f1b2aa;
}

.hidden-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

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

.footer-copy {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.empty-state {
  padding: 22px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.wp-block-image,
.wp-block-gallery,
figure {
  margin: 24px 0;
}

.alignwide,
.alignfull {
  width: 100%;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-layout,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 82px;
  }

  .site-brand .custom-logo {
    max-height: 58px;
    max-width: 62vw;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 16, 0.97);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .site-nav {
    display: block;
  }

  .site-nav .main-menu {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav .main-menu li {
    width: 100%;
  }

  .site-nav .main-menu a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero-copy-wrap,
  .hero-panel,
  .article-panel,
  .cta {
    padding: 24px;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: 74px;
  }

  .site-brand .custom-logo {
    max-height: 48px;
    max-width: 70vw;
  }

  .site-tagline {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.15rem, 14vw, 3rem);
  }

  .section,
  .content-shell {
    padding-bottom: 40px;
  }
}