:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede3;
  --ink: #2c2723;
  --muted: #6f665b;
  --accent: #7c1f2e;      /* deep liturgical red */
  --accent-dark: #5f1622;
  --gold: #b48a3c;
  --card: #ffffff;
  --line: #e6ddce;
  --max: 60rem;
  --measure: 42rem;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 6px 24px rgba(60, 40, 20, .07);
  --radius: 12px;
}

* { box-sizing: border-box; }

/* Content-protection: discourage selection/drag/save of page content.
   Form fields stay fully usable. */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--accent); }
.brand-cross { font-size: 1.1rem; color: var(--gold); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-family: var(--sans); font-size: .92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--accent); cursor: pointer; }

main.wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 1rem; letter-spacing: .005em; }
h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.3rem; }
.eyebrow, .daily-eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .5rem;
}
.lead { font-size: 1.28rem; color: var(--muted); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }
.prose img { border-radius: 8px; box-shadow: var(--shadow); }
.prose figure { margin: 1.5rem 0; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  background: var(--accent); color: #fff; padding: .7rem 1.35rem; border-radius: 8px;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.link-arrow { font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 2rem; box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.hero h1 { margin: .2rem 0 .8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Daily card ---------- */
.daily { border-left: 4px solid var(--accent); margin-bottom: 3rem; }
.daily-title { margin: 0 0 1rem; font-size: 1.5rem; }
.daily-more { margin-top: 1.25rem; }
.reading-body p:first-child { margin-top: 0; }

.home-chaplet { margin: 0 auto 3rem; }

/* ---------- Reading single ---------- */
.reading-single { max-width: var(--measure); margin: 0 auto; }
.reading-head { margin-bottom: 1.5rem; }
.reading-pager {
  max-width: var(--measure); margin: 2.5rem auto 0; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; font-family: var(--sans); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.25rem;
}
.reading-pager a { text-decoration: none; color: var(--muted); }
.reading-pager a:hover { color: var(--accent); }
.pager-index { font-weight: 600; }

/* ---------- Archive ---------- */
.page-head h1 { margin-bottom: .5rem; }
.archive-intro { max-width: var(--measure); margin-bottom: 2rem; }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; }
.archive-month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.archive-month h2 { font-size: 1.2rem; margin: 0 0 .6rem; color: var(--accent); }
.archive-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.archive-days a {
  display: inline-flex; min-width: 2rem; justify-content: center; font-family: var(--sans);
  font-size: .82rem; padding: .25rem .4rem; border-radius: 6px; text-decoration: none;
  color: var(--muted); background: var(--bg-alt);
}
.archive-days a:hover { background: var(--accent); color: #fff; }

/* ---------- Subscribe ---------- */
.subscribe-page { max-width: var(--measure); margin: 0 auto; }
.subscribe-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.subscribe-form label { display: grid; gap: .35rem; font-family: var(--sans); font-size: .9rem; font-weight: 600; }
.subscribe-form small { color: var(--muted); font-weight: 400; }
.subscribe-form input,
.subscribe-form textarea {
  font-family: var(--sans); font-size: 1rem; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.subscribe-form textarea { resize: vertical; }
.subscribe-form input:focus,
.subscribe-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.subscribe-form .btn { justify-self: start; }
.form-note { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 0; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.notice { font-family: var(--sans); font-size: .92rem; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.notice-ok { background: #eef7ee; border: 1px solid #cfe6cf; color: #245b28; }
.notice-err { background: #fdeeee; border: 1px solid #efc9c9; color: #8a1f1f; }

/* ---------- Subscribe band ---------- */
.subscribe-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 2rem; margin: 3rem auto 0; max-width: var(--measure);
}
.subscribe-band h2 { margin: 0 0 .3rem; font-size: 1.4rem; }
.subscribe-band p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.message-page { max-width: var(--measure); margin: 2rem auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: 4rem; }
.footer-inner { padding: 2.5rem 1.25rem; text-align: center; font-family: var(--sans); }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); margin: 0 0 .25rem; }
.footer-tag { color: var(--muted); font-size: .95rem; margin: 0 0 1.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; font-size: .9rem; margin-bottom: 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  html { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-img { order: -1; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .card { padding: 1.25rem 1.25rem; }
  .subscribe-band { padding: 1.5rem; }
}
