/*
Theme Name: Live Like Chasen
Theme URI: https://livelikechasen.org
Author: Live Like Chasen Foundation
Author URI: https://livelikechasen.org
Description: The official block theme of the Live Like Chasen Foundation (#66) — a 501(c)(3) charity honoring Chasen Petcovic through cardiac awareness, education, and AED devices for at-risk families. Navy-and-red editorial design with Oswald display headings, ECG divider accents, and ready-made patterns for articles, key-facts cards, mission callouts, FAQs, and source lists.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
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: livelikechasen
Tags: blog, news, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, block-styles, sticky-post, translation-ready
*/

/* =========================================================
   Live Like Chasen — component styles
   Palette: navy #132441 / deep #0C1830 / red #C8102E
   ========================================================= */

body {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}
.entry-content a:not(.wp-element-button):hover,
.wp-block-post-content a:not(.wp-element-button):hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: .02em;
  text-wrap: balance;
}

/* ---------- Top ribbon ---------- */
.llc-ribbon {
  background: var(--wp--preset--color--navy-deep);
  color: #B9C4D9;
  font-family: var(--wp--preset--font-family--oswald);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.llc-ribbon b, .llc-ribbon strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Header ---------- */
.llc-header {
  background: #102F58;
  position: sticky;
  top: 0;
  z-index: 100;
}
body.admin-bar .llc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .llc-header { top: 46px; } }

.llc-header .wp-block-site-logo img {
  height: 88px;
  width: auto;
}
.llc-header .wp-block-navigation a {
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
}
.llc-header .wp-block-navigation a:hover {
  color: #F0B4BE;
  text-decoration: none;
}
.llc-header .wp-block-navigation .current-menu-item > a,
.llc-header .wp-block-navigation a[aria-current="page"] {
  color: #E8524E;
}

/* Donate button (header + anywhere) */
.llc-donate .wp-block-button__link,
.wp-block-button.llc-donate .wp-element-button {
  background: var(--wp--preset--color--brand-red);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13.5px;
}
.llc-donate .wp-block-button__link:hover {
  background: #A60D26;
  color: #fff;
}

/* ---------- Hero ---------- */
.llc-hero {
  background: linear-gradient(160deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.llc-hero::before {
  content: "66";
  position: absolute;
  right: -30px;
  top: -60px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 700;
  font-size: 340px;
  color: rgba(255,255,255,.045);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.llc-hero h1,
.llc-hero .wp-block-post-title {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
}
.llc-hero a { color: #F0B4BE; }

/* Eyebrow kicker */
.llc-eyebrow,
.llc-eyebrow .wp-block-post-terms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #F0B4BE;
}
.llc-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--wp--preset--color--brand-red);
  flex: none;
}
.llc-eyebrow a { color: #F0B4BE; }
.llc-eyebrow.has-text-align-center {
  display: flex;
  justify-content: center;
  width: fit-content;
}

/* Standfirst / lede under hero title */
.llc-standfirst,
.llc-hero .wp-block-post-excerpt__excerpt {
  font-size: 19px;
  color: #C6D0E2;
  max-width: 640px;
}
/* Keep the standfirst left-aligned inside constrained layouts
   (WP centers narrower children with auto margins). */
.is-layout-constrained > .llc-standfirst:not(.has-text-align-center) {
  margin-left: 0 !important;
}

/* Byline row */
.llc-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.5px;
  color: #8FA0BE;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--oswald);
}
.llc-byline b, .llc-byline strong,
.llc-byline .wp-block-post-author-name__link,
.llc-byline .wp-block-post-author-name {
  color: #fff;
  font-weight: 600;
}
.llc-byline a { color: #8FA0BE; }

/* ---------- ECG divider ---------- */
.llc-ecg {
  height: 38px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 38' preserveAspectRatio='none'%3E%3Cpath d='M0,19 H420 l14,0 6,-9 8,18 8,-26 10,32 8,-24 6,9 14,0 H1200' fill='none' stroke='%23C8102E' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 38px;
}

/* ---------- Article content ---------- */
.wp-block-post-content > p:first-child,
p.llc-lead {
  font-size: 19px;
  color: var(--wp--preset--color--navy);
}
.wp-block-post-content h2,
.entry-content h2 {
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  padding-left: 16px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.wp-block-post-content h2::before,
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--wp--preset--color--brand-red);
  border-radius: 2px;
}
.wp-block-post-content h2.has-text-align-center,
.entry-content h2.has-text-align-center {
  padding-left: 0;
}
.wp-block-post-content h2.has-text-align-center::before,
.entry-content h2.has-text-align-center::before {
  display: none;
}

/* ---------- Key facts card ---------- */
.llc-keyfacts {
  background: var(--wp--preset--color--wash);
  border: 1px solid var(--wp--preset--color--line);
  border-left: 5px solid var(--wp--preset--color--brand-red);
  border-radius: 10px;
  padding: 26px 28px;
}
.llc-keyfacts h3 {
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand-red);
  margin: 0 0 14px;
}
.llc-keyfacts ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.llc-keyfacts li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px dashed var(--wp--preset--color--line);
  font-size: 16px;
}
.llc-keyfacts li:last-child { border-bottom: none; }
.llc-keyfacts li::before {
  content: "\2665";
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--wp--preset--color--brand-red);
  font-size: 14px;
}

/* ---------- Mission callout ---------- */
.llc-mission {
  background: var(--wp--preset--color--navy);
  border-radius: 12px;
  color: #DDE5F2;
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}
.llc-mission::after {
  content: "66";
  position: absolute;
  right: 10px;
  bottom: -38px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 700;
  font-size: 150px;
  color: rgba(255,255,255,.06);
  line-height: 1;
  pointer-events: none;
}
.llc-mission h3 {
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.llc-mission p { color: #DDE5F2; font-size: 16.5px; }
.llc-mission .llc-tag {
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  letter-spacing: .22em;
  font-size: 12.5px;
  color: #F0B4BE;
  text-transform: uppercase;
}
.llc-mission .wp-block-buttons { position: relative; z-index: 1; }

/* ---------- FAQ (core Details block) ---------- */
.llc-faq .wp-block-details {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  padding: 0;
}
.llc-faq .wp-block-details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--wp--preset--color--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.llc-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.llc-faq .wp-block-details summary::after {
  content: "+";
  color: var(--wp--preset--color--brand-red);
  font-size: 22px;
  font-weight: 600;
}
.llc-faq .wp-block-details[open] summary::after { content: "\2013"; }
.llc-faq .wp-block-details > :not(summary) {
  padding: 0 20px;
}
.llc-faq .wp-block-details > :last-child:not(summary) {
  padding-bottom: 18px;
}

/* ---------- Sources box ---------- */
.llc-sources {
  background: var(--wp--preset--color--wash);
  border-top: 3px solid var(--wp--preset--color--navy);
  padding: 30px 28px;
  border-radius: 0 0 10px 10px;
}
.llc-sources h3 {
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--wp--preset--color--navy);
}
.llc-sources ol {
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--wp--preset--color--muted);
  margin: 0;
}
.llc-sources li { margin-bottom: 7px; }
.llc-sources .llc-vet {
  margin-top: 14px;
  font-size: 13px;
  color: var(--wp--preset--color--muted);
  font-style: italic;
}

/* ---------- Post cards (blog index) ---------- */
.llc-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}
.llc-card .wp-block-post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.llc-card .wp-block-post-title a { color: var(--wp--preset--color--navy); }
.llc-card .wp-block-post-title a:hover { color: var(--wp--preset--color--brand-red); text-decoration: none; }
.llc-card .wp-block-post-excerpt__excerpt { font-size: 15.5px; color: var(--wp--preset--color--muted); }
.llc-card .wp-block-post-date { font-family: var(--wp--preset--font-family--oswald); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

/* ---------- Footer ---------- */
.llc-footer {
  background: var(--wp--preset--color--navy-deep);
  color: #8FA0BE;
}
.llc-footer a { color: #B9C4D9; font-size: 14px; }
.llc-footer a:hover { color: #fff; text-decoration: none; }
.llc-footer .llc-motto {
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  color: #fff;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 15px;
}
.llc-footer .llc-fine {
  font-size: 13px;
  max-width: 420px;
  line-height: 1.6;
  color: #8FA0BE;
}
.llc-footer .llc-base {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 12.5px;
  padding: 16px;
  letter-spacing: .05em;
  color: #8FA0BE;
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination a,
.wp-block-query-pagination-numbers .page-numbers {
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13.5px;
}

/* ---------- Layout wrappers ---------- */
p.llc-ribbon { margin: 0; }
.llc-hwrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  width: 100%;
  box-sizing: border-box;
}
.llc-hero-in {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  position: relative;
}
.llc-page-hero .llc-hero-in { padding: 44px 24px 40px; }
.llc-hero-in > * + * { margin-top: 18px; }
.llc-hero-in .llc-byline { margin-top: 26px; }
.llc-fwrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 30px;
  width: 100%;
  box-sizing: border-box;
  gap: 34px;
}
.llc-footer .llc-col p { margin: 0 0 8px; font-size: 14px; }
.llc-footer .llc-fine { margin-top: 10px; }
.llc-footer p.llc-base { margin: 0; }
.wp-block-spacer.llc-ecg { margin: 0; }

/* Outline button on navy */
.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
}
.is-style-outline .wp-block-button__link:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* Search form */
.wp-block-search .wp-block-search__input {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: var(--wp--preset--font-family--source-sans);
}
.wp-block-search .wp-block-search__button {
  background: var(--wp--preset--color--brand-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--oswald);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13.5px;
  padding: 9px 20px;
  cursor: pointer;
}

/* ---------- Misc ---------- */
.llc-hero .wp-block-post-terms__separator { color: #8FA0BE; }
@media (max-width: 900px) {
  .llc-hero::before { font-size: 220px; }
}
