/* Candles on the Cobb — candlelight & community palette */

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

:root {
  --flame:      #c8622a;
  --flame-pale: #f5e8d8;
  --tallow:     #fdf6ec;
  --harbour:    #1a3a4a;
  --harbour-mid:#2e5c72;
  --stone:      #5c5048;
  --pebble:     #8c7b6e;
  --mist:       #e8e0d8;
  --white:      #ffffff;
  --max-w:      68rem;
  --serif:      Georgia, 'Times New Roman', serif;
  --sans:       system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

body {
  background: var(--tallow);
  color: var(--stone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

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

/* ── announcement banner ── */
.cob-banner {
  background: var(--harbour);
  color: var(--flame-pale);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  text-align: center;
}
.cob-banner a { color: var(--flame-pale); text-decoration: underline; }

/* ── site header ── */
.cob-masthead {
  background: var(--harbour);
  border-bottom: 3px solid var(--flame);
  padding: 1.4rem 1rem 1.2rem;
}
.cob-masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.cob-site-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: normal;
  color: var(--white);
  letter-spacing: 0.01em;
}
.cob-site-name:hover { text-decoration: none; color: var(--flame-pale); }
.cob-tagline {
  color: var(--pebble);
  font-size: 0.88rem;
  font-style: italic;
}

/* ── primary navigation ── */
.cob-nav {
  background: var(--harbour-mid);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cob-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 0.5rem;
}
.cob-nav a {
  color: var(--mist);
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  display: inline-block;
  letter-spacing: 0.03em;
}
.cob-nav a:hover,
.cob-nav a.cob-active { color: var(--white); text-decoration: none; background: rgba(0,0,0,0.2); }

/* ── page wrap ── */
.cob-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }

/* ── hero ── */
.cob-hero {
  background: var(--harbour);
  color: var(--white);
  padding: 3.5rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.cob-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(200,98,42,0.25) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(200,98,42,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cob-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cob-hero-label {
  display: inline-block;
  background: var(--flame);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.cob-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--white);
  max-width: 40rem;
  margin-bottom: 1rem;
}
.cob-hero-standfirst {
  font-size: 1.1rem;
  color: var(--flame-pale);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cob-hero-cta {
  display: inline-block;
  background: var(--flame);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}
.cob-hero-cta:hover { background: #a84e1f; text-decoration: none; color: var(--white); }
.cob-hero-cta-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--mist);
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.cob-hero-cta-ghost:hover { border-color: var(--white); color: var(--white); text-decoration: none; }

/* ── candle row (flame icons) ── */
.cob-flame-row {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.25rem;
  padding: 1rem 0;
  color: var(--flame);
  background: var(--flame-pale);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  overflow: hidden;
}

/* ── how it works ── */
.cob-steps-section {
  padding: 3rem 1rem;
  background: var(--white);
}
.cob-steps-inner { max-width: var(--max-w); margin: 0 auto; }
.cob-section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--harbour);
  margin-bottom: 0.3rem;
}
.cob-section-sub {
  color: var(--pebble);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.cob-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.cob-step-card {
  border-left: 3px solid var(--flame);
  padding: 1rem 1rem 1rem 1.25rem;
  background: var(--tallow);
}
.cob-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--flame);
  margin-bottom: 0.4rem;
}
.cob-step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--harbour);
  margin-bottom: 0.5rem;
}
.cob-step-card p { font-size: 0.9rem; color: var(--stone); }

/* ── get involved ── */
.cob-involve-section {
  padding: 3rem 1rem;
  background: var(--flame-pale);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.cob-involve-inner { max-width: var(--max-w); margin: 0 auto; }
.cob-involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cob-involve-tile {
  background: var(--white);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1rem;
  border-top: 4px solid var(--flame);
}
.cob-involve-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--harbour);
  margin-bottom: 0.5rem;
}
.cob-involve-tile p { font-size: 0.88rem; color: var(--stone); }
.cob-involve-tile a { font-size: 0.85rem; font-weight: 600; }

/* ── main content columns ── */
.cob-content-band {
  padding: 2.5rem 1rem;
}
.cob-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .cob-content-inner { grid-template-columns: 1fr; }
}

/* ── stories list (inc/latest.php) ── */
.cob-story-list {
  list-style: none;
}
.cob-story-list li {
  border-bottom: 1px solid var(--mist);
  padding: 1.1rem 0;
}
.cob-story-list li:first-child { padding-top: 0; }
.cob-story-meta {
  font-size: 0.78rem;
  color: var(--pebble);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.cob-story-list h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.cob-story-list h3 a { color: var(--harbour); }
.cob-story-list h3 a:hover { color: var(--flame); text-decoration: none; }
.cob-story-list p { font-size: 0.88rem; color: var(--stone); }

/* ── sidebar ── */
.cob-panel {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 3px;
  padding: 1.1rem 1.1rem 0.9rem;
  margin-bottom: 1.25rem;
}
.cob-panel h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--harbour);
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--flame-pale);
}
.cob-panel p { font-size: 0.88rem; color: var(--stone); margin-bottom: 0.5rem; }
.cob-panel ul { list-style: none; }
.cob-panel ul li { border-bottom: 1px solid var(--mist); }
.cob-panel ul li:last-child { border-bottom: none; }
.cob-panel ul li a {
  display: block;
  font-size: 0.88rem;
  color: var(--stone);
  padding: 0.35rem 0;
}
.cob-panel ul li a:hover { color: var(--flame); text-decoration: none; }

/* ── section page heading ── */
.cob-page-head {
  background: var(--harbour);
  color: var(--white);
  padding: 2rem 1rem 1.8rem;
}
.cob-page-head h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: normal;
  margin-bottom: 0.4rem;
}
.cob-page-head p { color: var(--flame-pale); font-size: 0.95rem; }

/* ── article ── */
.cob-article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr 19rem;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .cob-article-wrap { grid-template-columns: 1fr; }
}
.cob-article-body {}
.cob-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-bottom: 0.5rem;
}
.cob-article-body h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: normal;
  color: var(--harbour);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.cob-standfirst {
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--flame);
  padding-left: 0.9rem;
}
.cob-pub-date {
  font-size: 0.78rem;
  color: var(--pebble);
  margin-bottom: 1.75rem;
  display: block;
}
.cob-article-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--harbour);
  margin: 2rem 0 0.6rem;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 0.3rem;
}
.cob-article-body p { margin-bottom: 1rem; font-size: 0.97rem; }
.cob-article-body ul,
.cob-article-body ol { margin: 0 0 1rem 1.4rem; font-size: 0.97rem; }
.cob-article-body li { margin-bottom: 0.4rem; }

/* ── about / contact pages ── */
.cob-prose-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  max-width: 50rem;
}
.cob-prose-section h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--harbour);
  margin: 2rem 0 0.6rem;
}
.cob-prose-section p { margin-bottom: 1rem; font-size: 0.97rem; }

/* ── contact form ── */
.cob-form { margin-top: 1.5rem; }
.cob-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--harbour);
  margin-bottom: 0.3rem;
}
.cob-form input[type="text"],
.cob-form input[type="email"],
.cob-form select,
.cob-form textarea {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--mist);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--stone);
  background: var(--white);
  margin-bottom: 1.1rem;
}
.cob-form textarea { min-height: 8rem; resize: vertical; }
.cob-form button {
  background: var(--flame);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}
.cob-form button:hover { background: #a84e1f; }

/* ── footer ── */
.cob-footer {
  background: var(--harbour);
  color: var(--flame-pale);
  padding: 2rem 1rem 1.5rem;
}
.cob-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cob-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.cob-footer-nav a {
  color: var(--mist);
  font-size: 0.88rem;
}
.cob-footer-nav a:hover { color: var(--white); text-decoration: none; }
.cob-footer-disc {
  font-size: 0.8rem;
  color: var(--pebble);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
}
