/* Rituale Romanum: The Blessings — website. Colours and type follow the app (src/theme.ts). */

@font-face { font-family: "EB Garamond"; src: url(/fonts/EBGaramond_400Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/fonts/EBGaramond_400Regular_Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/fonts/EBGaramond_500Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter_400Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter_600SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #FAF6ED;
  --surface: #F1EADA;
  --border: #DDD3BB;
  --ink: #211C16;
  --ink-soft: #6F6556;
  --accent: #8B2A2A;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130E;
    --surface: #211C16;
    --border: #382F26;
    --ink: #F0E6D6;
    --ink-soft: #B3A894;
    --accent: #D4B068;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 500; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--ink-soft); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

main { padding: 40px 0 56px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: 40px; margin: 0 0 6px; }
h2 { font-size: 27px; margin: 40px 0 8px; }
h3 { font-size: 21px; margin: 26px 0 4px; }
p, ul, ol { margin: 10px 0; }
li { margin: 4px 0; }
.lede { font-family: var(--serif); font-size: 23px; line-height: 1.45; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.rubric { color: var(--accent); }

/* Home hero */
.hero { text-align: center; padding: 16px 0 8px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.hero h1 { font-size: 46px; margin-top: 22px; margin-bottom: 0; }
.hero .sub { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent); margin: 0 0 14px; }
.hero .lede { max-width: 560px; margin: 0 auto; }
.badges { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 15px; color: var(--ink-soft);
}

.features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 0; }
.features strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 2px; }
.features span { font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; } }

.notice {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0;
  color: var(--ink-soft);
}

/* Legal pages */
.doc h1 { font-size: 38px; }
.doc .effective { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.doc h2 { font-size: 24px; margin-top: 34px; }

dl.faq dt { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-top: 22px; }
dl.faq dd { margin: 4px 0 0; }

footer.site { border-top: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
