/* ==========================================================================
   CBV Meditation Group — design system.

   Authored as tokens (:root custom properties) + component classes, mirroring
   the approach and palette of the CBV newsletter emails (cbv/lib/cbv_email/
   email.css). Site and mailings read as one brand: navy / cream / green / gold,
   Libre Baskerville (serif headings) + Raleway (sans UI). Fonts are self-hosted
   from app/assets/fonts (OFL); Propshaft digests the url() references below.
   ========================================================================== */

/* --- Self-hosted fonts ---------------------------------------------------- */
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/libre-baskerville-400-8868b9a1.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/libre-baskerville-700-742fb3c5.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/libre-baskerville-italic-4566b5b9.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/raleway-400-bd9a4a56.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/raleway-600-b634afe6.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/raleway-700-79a0843f.woff2") format("woff2");
}

/* --- Design tokens (harvested from cbv/lib/cbv_email/email.css) ------------ */
:root {
  /* Navy family */
  --navy: #191970;
  --navy-deep: #12123f;
  --navy-muted: #57578f;
  --navy-soft: #8f8fc4;
  --navy-pale: #a9a9d6;
  --navy-quote: #c9c9e6;

  /* Paper / surfaces */
  --page: #f7f5ef;
  --panel: #faf8f2;
  --card: #ffffff;

  /* Accents */
  --green: #5f9e2f;
  --gold: #c8842b;

  /* Text */
  --text: #3f3f45;
  --text-muted: #6b6b72;
  --text-label: #9a8f7e;

  /* Borders */
  --border: #ece6d8;
  --border-2: #e7e0d0;

  /* Radii / shadow / ornament */
  --radius-card: 14px;
  --radius-panel: 10px;
  --radius-pill: 40px;
  --shadow: 0 6px 28px -14px rgba(25, 25, 112, 0.35);
  --shadow-green: 0 6px 16px -6px rgba(95, 158, 47, 0.7);
  --accent-bar: 6px;

  /* Type stacks */
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background-color: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy); }

img { max-width: 100%; height: auto; border: 0; }

/* --- Shell: centered card on paper --------------------------------------- */
.outer { padding: 24px 12px 40px; }

.wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Wider card for the calendar page — a month grid needs more room than the
   640px welcome card. */
.wrapper--wide { max-width: 900px; }

.accent-bar { height: var(--accent-bar); background-color: var(--navy); }

/* --- Masthead ------------------------------------------------------------- */
.masthead { padding: 28px 32px 22px; text-align: center; }
.masthead__logo { display: block; width: 330px; max-width: 82%; height: auto; margin: 0 auto; }

/* --- Section rhythm ------------------------------------------------------- */
.section { padding: 8px 40px; }
.section--hero { padding-top: 26px; }
.section--footer { padding: 0; }

/* --- Badge / eyebrow ------------------------------------------------------ */
.badge {
  display: inline-block;
  background-color: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

/* --- Hero ----------------------------------------------------------------- */
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 18px 0 6px;
}
.hero__dateline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  margin: 0 0 20px;
}
.prose { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0 0 16px; }
.prose strong { color: var(--navy); }

/* --- Details panel (navy-left-accent card from the emails) ---------------- */
.details {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-panel);
  padding: 22px 24px;
  margin-top: 8px;
}
.details__row { padding: 8px 0; }
.details__row + .details__row { border-top: 1px solid var(--border); }
.details__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 3px;
}
.details__value { font-size: 15px; line-height: 1.5; color: var(--text); }
.details__value a { color: var(--navy); text-decoration: underline; }
.details__value strong { color: var(--navy); }

/* --- Section heading ------------------------------------------------------ */
.section-heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 26px 0 14px;
}

/* --- Resource cards ------------------------------------------------------- */
.resources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rcard {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.rcard:hover {
  border-color: var(--navy-pale);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.rcard__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background-color: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 20px;
}
.rcard__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
  margin: 0 0 6px;
}
.rcard__desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0 0 14px; }
.rcard__cta {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--green);
}

/* --- Zoom copy row (inside a resource card) ------------------------------- */
.copyrow { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.copyrow__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.copyrow__label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-label);
}
.copyrow__value { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--navy); }
.copybtn {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy-pale);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.copybtn:hover { background: var(--navy); color: #fff; }
.copybtn--done { background: var(--green); border-color: var(--green); color: #fff; }

/* --- Calendar embed (Google Calendar iframe) ------------------------------ */
.calendar-embed {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}
@media only screen and (max-width: 620px) {
  .calendar-embed iframe { height: 560px; }
}

/* --- Buttons / pills ------------------------------------------------------ */
.btn-row { text-align: center; padding: 28px 40px 8px; }
.pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700; letter-spacing: 0.6px;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
}
.pill--home {
  background-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(25, 25, 112, 0.8);
}
.pill--home:hover { background-color: var(--navy-deep); }
.home-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* --- Divider ornament ----------------------------------------------------- */
.ornament { text-align: center; padding: 26px 40px 4px; color: var(--gold); font-family: Georgia, serif; }
.ornament::before,
.ornament::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  vertical-align: middle;
  background-color: var(--border-2);
  margin: 0 12px;
}

/* --- Footer --------------------------------------------------------------- */
.footer { background-color: var(--navy-deep); padding: 32px 40px 30px; text-align: center; }
.footer__org { font-family: var(--font-serif); color: #fff; font-size: 18px; margin: 0 0 6px; }
.footer__sub {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy-soft);
  margin: 0 0 16px;
}
.footer__address, .footer__tagline { color: var(--navy-soft); font-size: 12px; line-height: 1.6; margin: 0; }
.footer__tagline { margin-top: 4px; }
.footer__nav { margin: 16px 0 0; font-family: var(--font-sans); font-size: 13px; }
.footer__nav a { color: var(--navy-quote); text-decoration: none; margin: 0 8px; }
.footer__nav a:hover { text-decoration: underline; }

/* --- Mobile --------------------------------------------------------------- */
@media only screen and (max-width: 620px) {
  .section, .btn-row, .masthead { padding-left: 24px; padding-right: 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
  .hero__title { font-size: 27px; }
  .resources { grid-template-columns: 1fr; }
}
