/* style.css generated by scripts/generate-salakatoliki.mjs */
:root {
  --navy: #0a2540;
  --blue: #2f80ed;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #d9e2ec;
  --text: #102a43;
  --muted: rgba(16, 42, 67, 0.68);
  --radius: 0.875rem;
  --shadow-card: 0 1px 2px rgba(10, 37, 64, 0.04), 0 8px 24px rgba(10, 37, 64, 0.05);
  --shadow-lift: 0 2px 4px rgba(10, 37, 64, 0.05), 0 16px 40px rgba(10, 37, 64, 0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--navy); font-weight: 700; }
.brand img { border-radius: 6px; }
.brand-word { font-size: 1rem; letter-spacing: -0.01em; }
.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.main-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover { color: var(--navy); text-decoration: none; }
body[data-section="home"] [data-nav="home"],
body[data-section="prayers"] [data-nav="prayers"],
body[data-section="novena"] [data-nav="novena"],
body[data-section="rosary"] [data-nav="rosary"] { color: var(--navy); font-weight: 600; }
.header-cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.header-cta:hover { border-color: var(--navy); text-decoration: none; }

/* main */
main { padding: 3rem 0 4.5rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; margin-bottom: 2rem; color: var(--muted); }
.breadcrumb a::after { content: "/"; margin-left: 0.5rem; opacity: 0.45; }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* hero */
.hero { padding: 2.5rem 0 3.5rem; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.1; color: var(--navy); max-width: 16ch; }
.hero-lead { margin-top: 1rem; max-width: 52ch; color: var(--muted); font-size: 1.06rem; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--navy); background: var(--bg); }
.btn-ghost:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-1px); }

/* sections */
.section-block { margin-top: 4rem; }
.section-head { margin-bottom: 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 600; color: var(--blue); margin-bottom: 0.5rem; }
.section-head h1 { font-size: clamp(1.75rem, 3.5vw, 2.3rem); letter-spacing: -0.03em; color: var(--navy); line-height: 1.15; }
.section-lead { margin-top: 0.6rem; color: var(--muted); max-width: 62ch; }

/* tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tile {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--navy); text-decoration: none; }
.tile-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.01em; }
.tile-sub { color: var(--blue); font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
.tile-desc { color: var(--muted); font-size: 0.88rem; margin-top: 0.55rem; }

/* list */
.list-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.row-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 1rem 1.35rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--bg-soft); text-decoration: none; }
.row-title { font-weight: 600; color: var(--navy); }
.row-meta { color: var(--blue); font-size: 0.8rem; font-weight: 600; margin-left: auto; }
.row-sub { width: 100%; color: var(--muted); font-size: 0.85rem; }
.list-divider { height: 1px; background: var(--border); display: block; }

/* prayer sheet */
.lang-was { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); }
.lang-was .lang-tabs { background: var(--bg); }
.prayer-sheet {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}
.prayer-sheet h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.03em; color: var(--navy); line-height: 1.15; }
.sheet-sub { color: var(--muted); margin: 0.5rem 0 1.4rem; font-size: 0.98rem; }
.prayer-sheet .tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.prayer-sheet h1 + .tags { margin-top: 1rem; }

.lang-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 3px; margin-bottom: 1.4rem; }
[data-lang-block] { background: var(--bg); border-radius: calc(var(--radius) - 0.2rem); padding: clamp(1.25rem, 3vw, 2rem); }
.lang-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-tabs button.is-active { background: var(--navy); color: #fff; }

.prayer-sheet p { margin-bottom: 1.1rem; }
.prayer-sheet p:last-child { margin-bottom: 0; }
.prayer-sheet strong { color: var(--navy); }
.prayer-sheet .tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* mysteries */
.mt-step-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 0.5rem; }
.mt-step-title:first-child { margin-top: 0; }
.mystery-list { list-style: none; counter-reset: mystery; }
.mystery-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2.6rem;
  border-bottom: 1px solid var(--border);
  counter-increment: mystery;
}
.mystery-list li:last-child { border-bottom: 0; }
.mystery-list li::before {
  content: counter(mystery);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.mystery-list .virtue { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }

/* breadcrumb-ish nav */
.text-link { display: inline-block; font-weight: 600; font-size: 0.9rem; }
.page-nav { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1rem; }
.page-nav-link { font-weight: 600; font-size: 0.9rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 3rem 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-bottom: 2.5rem; }
.footer-brand { font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.footer-statement { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--navy); }
.footer-legal { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { gap: 1rem; }
  .row-meta { margin-left: 0; }
}
