/*
Theme Name: Coffee Party USA
Theme URI: https://coffeepartyusa.space
Author: Coffee Party USA
Author URI: https://coffeepartyusa.space
Description: A civic, grassroots WordPress theme for Coffee Party USA — a trans-partisan movement for civil dialogue and democratic participation. Built around a "civic seal" motif that echoes the organization's founding paperwork.
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: coffee-party-usa
*/

/* ------------------------------------------------------------
   TOKENS
------------------------------------------------------------ */
:root {
  --coffee-dark: #2E2018;
  --coffee-mid:  #4A342A;
  --paper:       #F4EEDF;
  --paper-card:  #FBF7EE;
  --civic-blue:  #1F3B45;
  --civic-blue-light: #2C5563;
  --amber:       #C1873A;
  --amber-light: #E3B876;
  --line:        rgba(46, 32, 24, 0.18);
  --line-light:  rgba(251, 247, 238, 0.25);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 4px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--coffee-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--coffee-dark);
}

p { margin: 0 0 1.2em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--civic-blue);
  color: var(--paper-card);
}
.btn-primary:hover { background: var(--civic-blue-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--coffee-dark);
  color: var(--coffee-dark);
}
.btn-outline:hover { background: var(--coffee-dark); color: var(--paper-card); }
.btn-amber {
  background: var(--amber);
  color: var(--coffee-dark);
}
.btn-amber:hover { background: var(--amber-light); transform: translateY(-1px); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coffee-dark);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------
   SITE HEADER
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--coffee-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--coffee-dark);
  flex-shrink: 0;
}
.site-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--coffee-dark);
  line-height: 1.1;
}
.site-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coffee-mid);
  margin-top: 2px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--coffee-dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--coffee-dark);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px 28px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: inline-flex; }
}

/* ------------------------------------------------------------
   HERO — signature seal element
------------------------------------------------------------ */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.hero-lede {
  font-size: 19px;
  max-width: 46ch;
  color: var(--coffee-mid);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* the seal: concentric rings echoing both a coffee-ring stain and an
   official civic seal — the recurring signature motif of the theme */
.hero-seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-seal {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
}

/* ------------------------------------------------------------
   MISSION BAND
------------------------------------------------------------ */
.mission-band {
  background: var(--civic-blue);
  color: var(--paper);
  padding: 84px 0;
}
.mission-band .eyebrow { color: var(--amber-light); }
.mission-band .eyebrow::before { background: var(--amber-light); }
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 26ch;
  color: var(--paper);
}
.mission-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.mission-sub {
  color: rgba(244, 238, 223, 0.82);
  font-size: 16px;
  max-width: 42ch;
}

/* ------------------------------------------------------------
   GOALS — bulletin-board index cards
------------------------------------------------------------ */
.goals {
  padding: 96px 0;
}
.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.goal-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  position: relative;
}
.goal-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 34px;
  height: 12px;
  background: var(--amber);
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0% 100%);
  opacity: 0.85;
}
.goal-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.goal-card h3 {
  font-size: 19px;
  margin: 10px 0 8px;
}
.goal-card p {
  font-size: 15px;
  color: var(--coffee-mid);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .goals-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .goals-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   PLEDGE — styled like an official certificate / EIN-style notice
------------------------------------------------------------ */
.pledge {
  padding: 20px 0 100px;
}
.pledge-card {
  background: var(--paper-card);
  border: 1.5px solid var(--coffee-dark);
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.pledge-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.pledge-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.pledge-card h2 {
  text-align: center;
  font-size: 28px;
}
.pledge-text {
  text-align: center;
  font-size: 17px;
  color: var(--coffee-mid);
  max-width: 56ch;
  margin: 0 auto 30px;
}
.pledge-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   PAGE / SINGLE CONTENT
------------------------------------------------------------ */
.page-header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(30px, 4vw, 44px); }

.content-wrap {
  padding: 56px 0 96px;
}
.content-wrap .container {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
}
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h3 { font-size: 21px; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content blockquote {
  border-left: 3px solid var(--amber);
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--coffee-mid);
}

.archive-list { list-style: none; padding: 0; }
.archive-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.archive-list a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.archive-list a:hover { color: var(--amber); }
.archive-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--coffee-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ------------------------------------------------------------
   FOOTER — styled as the letter's "tear-off stub"
------------------------------------------------------------ */
.site-footer {
  background: var(--coffee-dark);
  color: var(--paper);
}
.footer-tear {
  border-top: 1px dashed var(--line-light);
  position: relative;
}
.footer-tear::before {
  content: "\2702";
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--coffee-dark);
  color: var(--paper);
  padding: 0 8px;
  font-size: 14px;
}
.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-main h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-about p {
  color: rgba(244, 238, 223, 0.75);
  font-size: 15px;
  max-width: 40ch;
}
.footer-contact ul, .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li, .footer-links li {
  margin-bottom: 10px;
  font-size: 15px;
}
.footer-contact a, .footer-links a {
  color: var(--paper);
  text-decoration: none;
}
.footer-contact a:hover, .footer-links a:hover { color: var(--amber-light); }
.footer-bottom {
  padding: 22px 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(244, 238, 223, 0.55);
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-seal-wrap { order: -1; max-width: 220px; margin: 0 auto; }
  .mission-band .container { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .pledge-card { padding: 36px 24px; }
}

/* Widgets / sidebar (used on default page/archive templates) */
.widget { margin-bottom: 32px; }
.widget h2, .widget-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coffee-mid);
}
