/* The Lexical Press — modern stylesheet
   Upload alongside index.html to /lexicalpress/ */

:root {
  --navy: #14213d;
  --navy-dark: #0d1628;
  --accent: #f4a52e;
  --accent-dark: #d98a12;
  --ink: #1c2333;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f7f8fb;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a { color: var(--navy); }
a:hover { color: var(--accent-dark); }

/* ---------- header ---------- */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--navy-dark);
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.25rem;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { color: #fff; font-size: 1.15rem; font-family: Georgia, serif; }
.brand-text small { color: #aab3c5; font-size: 0.75rem; letter-spacing: 0.04em; }

.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  color: #dfe5f2;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.site-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.site-nav a.active { background: var(--accent); color: var(--navy-dark); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243b66 100%);
  color: #fff;
  padding: 3rem 1.25rem 2.5rem;
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.hero h1 { font-size: 2.6rem; color: #fff; margin-bottom: 0.4em; }
.lede { color: #c9d3e6; font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.5rem; }

.search-wrap { max-width: 560px; margin: 0 auto; }
#search {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  outline: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
#search:focus { box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 0 3px var(--accent); }

/* ---------- content ---------- */
.content { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.content section { margin-bottom: 3rem; }
.section-title {
  font-size: 1.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}

/* latest hero card */
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(20,33,61,0.08);
}
.hero-card h3 { font-size: 1.6rem; }
.hero-card h3 a { text-decoration: none; }
.hero-card p { color: var(--muted); }

/* filter row */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-buttons button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}
.filter-buttons button:hover { border-color: var(--accent); }
.filter-buttons button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
.result-count { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* article cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20,33,61,0.12);
}
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin: 0; }
.card-body h3 a { text-decoration: none; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin: 0; }
.tag {
  display: inline-block;
  background: #eef2f9;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-accent { background: var(--accent); color: var(--navy-dark); }
.read-more {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent-dark);
  margin-top: 0.5rem;
}
.read-more:hover { text-decoration: underline; }

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- article pages ---------- */
.article-page { max-width: 800px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
.article-page h1 { font-size: 2.2rem; margin: 0.5rem 0 0.75rem; }
.standfirst {
  font-size: 1.15rem;
  color: var(--muted);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 2rem;
  font-style: italic;
}
.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5em; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.article-body a { color: var(--accent-dark); }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #243b66 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-box h3 { color: #fff; font-size: 1.4rem; }
.cta-box p { color: #c9d3e6; }
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--navy-dark) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}
.cta-button:hover { background: #ffbe55; }
.back-link { margin-top: 2rem; }
.back-link a { text-decoration: none; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #aab3c5; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-nav a { color: #dfe5f2; text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); }
.copyright { font-size: 0.85rem; margin: 0; }
.copyright a { color: #aab3c5; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero-card h3 { font-size: 1.3rem; }
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}
