/*
  base.css: the site-owned base stylesheet (replaces webflow.css over time).
  Status: TEST ONLY. Linked from src/layouts/ArtfulyLayout.astro on localhost, not on the live site.

  Two scales, one family (Montserrat), agreed 4 Dec 2026:
  - artfuly.com: 16px base. Steps 10, 13, 16, 20, 25, 31, 39, 49, 61, 76.
  - rachaelpage.com: 18px base. Steps 11.5, 14.4, 18, 22.5, 28, 35, 44, 55, 69, 86.
    Mobile step-down below 768px: display 86 to 69, H1 44 to 35.

  Colours: artfuly.com text #233030 (article body and headings). rachaelpage.com text pure black.
  Fonts: Montserrat (headings, UI, rachaelpage.com body). Merriweather (artfuly.com article body and tables).
  Barlow Condensed (rachaelpage.com testimonial quotes).

  Scope: artfuly rules sit under :where(.theme-artfuly), rachaelpage rules under :where(.theme-rp).
  :where() has zero specificity, so existing class rules still win while this is tested.
*/

:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-article: 'Merriweather', serif;
  --font-quote: 'Barlow Condensed', sans-serif;
}

/* ---------- artfuly.com (16px base) ---------- */
:where(.theme-artfuly) {
  color: #233030;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}
:where(.theme-artfuly) h1, :where(.theme-artfuly) h2, :where(.theme-artfuly) h3,
:where(.theme-artfuly) h4, :where(.theme-artfuly) h5, :where(.theme-artfuly) h6 {
  font-family: var(--font-heading);
  color: #233030;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
:where(.theme-artfuly) h1 { font-size: 39px; line-height: 1.15; font-weight: 900; }
:where(.theme-artfuly) h2 { font-size: 31px; line-height: 1.25; font-weight: 700; margin-top: 48px; }
:where(.theme-artfuly) h3 { font-size: 25px; line-height: 1.3; font-weight: 700; margin-top: 36px; }
:where(.theme-artfuly) h4 { font-size: 20px; line-height: 1.4; font-weight: 700; margin-top: 28px; }
:where(.theme-artfuly) h5 { font-size: 16px; line-height: 1.4; font-weight: 700; margin-top: 24px; text-transform: uppercase; letter-spacing: .06em; }
:where(.theme-artfuly) h6 { font-size: 13px; line-height: 1.4; font-weight: 600; margin-top: 20px; color: #666; }

:where(.theme-artfuly) .article p,
:where(.theme-artfuly) .article li {
  font-family: var(--font-article);
  font-size: 16px;
  line-height: 1.8;
  color: #233030;
}
:where(.theme-artfuly) .article a {
  color: #037A8E;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(.theme-artfuly) .article ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
:where(.theme-artfuly) .article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-article);
  font-size: 16px;
  line-height: 1.5;
  color: #233030;
  margin: 24px 0;
}
:where(.theme-artfuly) .article th,
:where(.theme-artfuly) .article td { text-align: left; vertical-align: top; padding: 10px; border: 1px solid #ddd; }
:where(.theme-artfuly) .article th { background: #f2f2f2; font-family: var(--font-heading); font-weight: 700; }
:where(.theme-artfuly) .article td ul { padding-left: 20px; margin: 0; }
:where(.theme-artfuly) .article td li { font-size: 16px; line-height: 1.5; margin: 0 0 4px; }
:where(.theme-artfuly) .article td,
:where(.theme-artfuly) .article th { font-size: inherit; }

/* ---------- rachaelpage.com (18px base) ---------- */
:where(.theme-rp) {
  color: #000;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background: #fff;
}
:where(.theme-rp) h1, :where(.theme-rp) h2, :where(.theme-rp) h3,
:where(.theme-rp) h4, :where(.theme-rp) h5, :where(.theme-rp) h6 {
  font-family: var(--font-heading);
  color: #000;
  margin: 0 0 14px;
}
:where(.theme-rp) h1 { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
:where(.theme-rp) h2 { font-size: 35px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-top: 56px; }
:where(.theme-rp) h3 { font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin-top: 40px; }
:where(.theme-rp) h4 { font-size: 22.5px; line-height: 1.3; font-weight: 700; margin-top: 28px; }
:where(.theme-rp) h5 { font-size: 18px; line-height: 1.4; font-weight: 700; margin-top: 24px; }
:where(.theme-rp) h6 { font-size: 11.5px; line-height: 1.4; font-weight: 600; margin-top: 20px; color: #888; text-transform: uppercase; letter-spacing: .06em; }

/* Display: hero only. 86px is three steps above H1 (44, 55, 69, 86). */
:where(.theme-rp) .display { font-size: 86px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }

/* Mobile step-down: one step smaller on narrow screens, everything else unchanged. */
@media (max-width: 767px) {
  :where(.theme-rp) .display { font-size: 69px; }
  :where(.theme-rp) h1 { font-size: 35px; }
}

:where(.theme-rp) p, :where(.theme-rp) li { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: #000; margin: 0 0 16px; }
:where(.theme-rp) .muted { color: #888; }
:where(.theme-rp) .caption { font-size: 14.4px; line-height: 1.5; }
:where(.theme-rp) p a, :where(.theme-rp) li a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:where(.theme-rp) p a:hover, :where(.theme-rp) li a:hover { text-decoration-color: #84cacc; }
/* Only links inside paragraphs and list items. Card links and buttons are not affected, so card text stays regular weight. */
:where(.theme-rp) ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
:where(.theme-rp) .quote-text {
  font-family: var(--font-quote);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}
