/* ✠ thenicenecreed.com — design system
   Digital cathedral: crimson, gold, parchment.
   Static, fast, print-friendly. */

:root {
  --crimson: #4a0404;
  --deep-crimson: #2d0202;
  --gold: #c5a059;
  --light-gold: #d4b068;
  --pale-gold: #e8d5a8;
  --parchment: #f4e8d0;
  --dark-parchment: #e5d4b5;
  --ink: #2a1a0a;
  --rule: rgba(197, 160, 89, 0.35);
  --panel: rgba(0, 0, 0, 0.28);
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--deep-crimson) 0%, var(--crimson) 55%, var(--deep-crimson) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--parchment);
  line-height: 1.75;
  font-size: 1.125rem;
  overflow-x: hidden;
}

/* Cathedral light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(197, 160, 89, 0.14) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(197, 160, 89, 0.025) 0 1px, transparent 1px 120px);
  z-index: 0;
}

main, header.site-header, footer.site-footer, nav.site-nav { position: relative; z-index: 1; }

a { color: var(--light-gold); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--pale-gold); }

/* ── Navigation ── */
nav.site-nav {
  border-bottom: 1px solid var(--rule);
  background: rgba(26, 2, 2, 0.72);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.site-nav .nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.4rem;
}
nav.site-nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pale-gold);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}
nav.site-nav a:hover { color: #fff; background: rgba(197, 160, 89, 0.12); }
nav.site-nav a[aria-current="page"] { color: var(--gold); border-bottom: 1px solid var(--gold); }
nav.site-nav .nav-sep { color: var(--rule); font-size: 0.7rem; user-select: none; }

/* ── Page header ── */
header.site-header { text-align: center; padding: 3.5rem 1.25rem 2.25rem; }
header.site-header .cross { color: var(--gold); font-size: 1.6rem; display: block; margin-bottom: 1rem; }
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  letter-spacing: 0.22em;
  color: var(--pale-gold);
  margin-top: 0.7rem;
  text-transform: uppercase;
}
.lede {
  max-width: 46rem;
  margin: 1.4rem auto 0;
  font-size: 1.2rem;
  color: var(--dark-parchment);
}

/* ── Layout ── */
main { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 4rem; }
section { margin: 3rem auto; max-width: 50rem; }
section.wide { max-width: 64rem; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
h2 + .ornament, h1 + .ornament { margin-top: 0.6rem; }
.ornament {
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 0.85rem;
  margin: 0.8rem 0 1.6rem;
  user-select: none;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--light-gold);
  margin: 2rem 0 0.7rem;
  letter-spacing: 0.04em;
}
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pale-gold);
  margin: 1.5rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: 0.45rem; }
strong { color: var(--pale-gold); }
em { color: inherit; }

/* ── The creed text ── */
.creed-block {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.creed-block p {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}
.creed-block p:last-child { margin-bottom: 0; }
.creed-block .rubric {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(232, 213, 168, 0.75);
  margin: 0.6rem 0;
}
.creed-block .amen {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-align: center;
  font-size: 1.2rem;
}
.creed-note { font-size: 0.95rem; color: var(--dark-parchment); margin-top: 1rem; }

/* Parallel text (Latin/Greek beside English) */
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; align-items: start; }
.parallel > div { min-width: 0; }
.parallel .lang-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.parallel p { font-size: 1.1rem; line-height: 1.85; }
.parallel .original { font-style: normal; }
@media (max-width: 720px) {
  .parallel { grid-template-columns: 1fr; }
  .parallel > div + div { margin-top: 2rem; }
}

/* ── Panels, timelines, tables ── */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.6rem 1.8rem;
  margin: 1.5rem 0;
}
.panel h3:first-child, .panel h4:first-child { margin-top: 0; }

.quickfacts { list-style: none; margin: 0; padding: 0; }
.quickfacts li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  margin: 0;
}
.quickfacts li:last-child { border-bottom: none; }
.quickfacts .k {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.2rem;
}
@media (max-width: 600px) {
  .quickfacts li { grid-template-columns: 1fr; gap: 0.1rem; }
}

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { padding: 0 0 1.6rem 1.6rem; position: relative; margin: 0; }
.timeline li::before {
  content: '✠';
  position: absolute;
  left: -0.72rem;
  top: -0.1rem;
  color: var(--gold);
  background: var(--crimson);
  padding: 0.1rem 0;
  font-size: 1rem;
}
.timeline .year {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  display: block;
}
.timeline h4, .timeline .event { margin: 0.15rem 0 0.3rem; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1.02rem; }
th, td { border: 1px solid var(--rule); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
}
tr:nth-child(even) td { background: rgba(0, 0, 0, 0.12); }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.3rem;
  margin: 1.4rem 0;
  color: var(--pale-gold);
  font-style: italic;
  font-size: 1.12rem;
}
blockquote cite { display: block; font-style: normal; font-size: 0.92rem; color: var(--dark-parchment); margin-top: 0.5rem; }

/* Objection / answer pattern */
.objection {
  border: 1px solid rgba(180, 60, 60, 0.5);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0 0.8rem;
  background: rgba(60, 8, 8, 0.45);
  font-style: italic;
}
.objection .tag, .answer .tag {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.objection .tag { color: #d98f8f; }
.answer .tag { color: var(--gold); }
.answer {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.6rem;
  background: var(--panel);
}
.answer p:last-child { margin-bottom: 0; }

/* Accordion (details/summary) */
details {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel);
  margin: 0.7rem 0;
  padding: 0;
}
details summary {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--pale-gold);
  letter-spacing: 0.03em;
  list-style: none;
}
details summary::before { content: '✢ '; color: var(--gold); }
details[open] summary::before { content: '✜ '; }
details summary::-webkit-details-marker { display: none; }
details .details-body { padding: 0 1.4rem 1.2rem; }

/* Footnote refs */
.fn { font-size: 0.78em; vertical-align: super; }
.footnotes { font-size: 0.95rem; color: var(--dark-parchment); border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: 2.5rem; }

/* Cards grid (section teasers) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--parchment);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; color: var(--gold); }
.card p { margin: 0; font-size: 0.98rem; color: var(--dark-parchment); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: transparent;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: rgba(197, 160, 89, 0.15); color: var(--pale-gold); }
.btn-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1.2rem 0; }

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.3);
}
footer.site-footer .footer-inner { max-width: 1080px; margin: 0 auto; }
footer.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
footer.site-footer h4 { margin: 0 0 0.6rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin: 0 0 0.35rem; font-size: 0.98rem; }
footer.site-footer a { text-decoration: none; color: var(--dark-parchment); }
footer.site-footer a:hover { color: var(--pale-gold); }
footer.site-footer .colophon {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(229, 212, 181, 0.65);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  padding-top: 1.5rem;
}
footer.site-footer .colophon .cross { color: var(--gold); }

/* ── Print (prayer cards) ── */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  body::before, nav.site-nav, footer.site-footer, .btn, .btn-row, .no-print { display: none !important; }
  h1, h2, h3, h4, .subtitle, .timeline .year { color: #000; text-shadow: none; }
  .creed-block, .panel, .card, .answer, details { background: none; border-color: #999; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
