/* ============================================================
   The Psychedelic Christian — site stylesheet
   Aesthetic: a well-set liturgical book. Parchment ground,
   vespers green ink, rubricated labels, gold leaf accents.
   Type: Cormorant (display) + EB Garamond (body). All serif.
   ============================================================ */

:root {
  --parchment: #f6f2e7;
  --parchment-deep: #efe9d8;
  --ink: #23291d;
  --vespers: #2f3d27;
  --olive: #66784a;
  --olive-soft: #8d9a72;
  --rubric: #97402a;
  --gold: #a9853d;
  --gold-soft: #c9b070;
  --line: #d8d0b8;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: "Cormorant", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--vespers);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--vespers);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
a:hover { color: var(--rubric); text-decoration-color: var(--rubric); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Rubric — the red small-cap label, as in a missal */
.rubric {
  display: block;
  font-family: "EB Garamond", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--rubric);
  margin-bottom: 0.9rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--vespers);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.hero-mark {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.6rem;
  display: block;
  box-shadow: 0 0 0 3px var(--parchment), 0 0 0 4px var(--gold-soft), 0 10px 30px rgba(35, 41, 29, 0.18);
}
@media (max-width: 40rem) {
  .hero-mark { width: 116px; height: 116px; }
}
.wordmark:hover { color: var(--rubric); }

.site-nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.site-nav a {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--rubric); }
.site-nav a[aria-current="page"] {
  color: var(--rubric);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.prose { max-width: var(--measure); }
.prose.center { margin-left: auto; margin-right: auto; }

section { padding: 4.2rem 0; }
section + section { border-top: 1px solid var(--line); }

/* Divider ornament — thin rule with a quatrefoil at centre */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.6rem 0;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ornament svg { flex: none; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 6rem 1.4rem 5rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, #fbf8ef 0%, var(--parchment) 65%);
  border-bottom: 1px solid var(--line);
}

.hero .rubric { margin-bottom: 1.4rem; }

.hero h1 { margin-bottom: 0.4em; }

.hero .thesis {
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--olive);
  max-width: 34ch;
  margin: 0 auto 2.4rem;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--vespers);
  color: var(--vespers);
  background: transparent;
  border-radius: 2px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font-family: "EB Garamond", Georgia, serif;
}
.btn:hover { background: var(--vespers); color: var(--parchment); }
.btn.solid { background: var(--vespers); color: var(--parchment); }
.btn.solid:hover { background: var(--rubric); border-color: var(--rubric); }

/* ---------- Drop cap ---------- */

.dropcap::first-letter {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--rubric);
}

/* ---------- Pull quote ---------- */

.pullquote {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
  padding: 0 1rem;
}
.pullquote blockquote {
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  color: var(--vespers);
  line-height: 1.35;
  margin: 0 0 1rem;
  quotes: "\201C" "\201D";
}
.pullquote blockquote::before { content: open-quote; color: var(--gold); }
.pullquote blockquote::after { content: close-quote; color: var(--gold); }
.pullquote cite {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 1rem;
  color: var(--olive);
}

/* ---------- Cards & lists ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--line);
  background: #fbf8ef;
  padding: 1.6rem 1.5rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card h3 { margin-bottom: 0.1em; }
.card .card-meta {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--olive);
}
.card p { font-size: 1.04rem; margin-bottom: 0.6em; }
.card .card-link { margin-top: auto; font-size: 1.02rem; }

/* Library entries — set like a bibliography */
.entry-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.entry-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  max-width: var(--measure);
}
.entry-list li:first-child { border-top: 1px solid var(--line); }
.entry-title {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--vespers);
  margin: 0 0 0.15em;
}
.entry-byline {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--olive);
  margin-bottom: 0.5em;
  display: block;
}
.entry-list p { font-size: 1.05rem; margin-bottom: 0.5em; }

/* ---------- Audio / listen page ---------- */

.episode {
  border: 1px solid var(--line);
  background: #fbf8ef;
  border-radius: 2px;
  padding: 1.8rem 1.7rem;
  margin-top: 2rem;
  max-width: 46rem;
}
.episode h3 { margin-bottom: 0.2em; }
.episode audio {
  width: 100%;
  margin: 1rem 0 0.8rem;
}
.episode .ep-links {
  font-size: 1rem;
  color: var(--olive);
}

/* ---------- Quote wall ---------- */

.quote-wall {
  columns: 2;
  column-gap: 2.2rem;
  margin-top: 2.4rem;
}
@media (max-width: 44rem) { .quote-wall { columns: 1; } }

.quote-wall figure {
  break-inside: avoid;
  margin: 0 0 2.2rem;
  padding: 1.5rem 1.6rem;
  border-left: 2px solid var(--gold-soft);
  background: #fbf8ef;
}
.quote-wall blockquote {
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--vespers);
  margin: 0 0 0.7rem;
  line-height: 1.4;
}
.quote-wall figcaption {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--olive);
}

/* ---------- Prayers / liturgy setting ---------- */

.liturgy {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding: 2.6rem 2.4rem;
  border: 1px solid var(--line);
  background: #fbf8ef;
  border-radius: 2px;
}
.liturgy h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 0.2em;
}
.liturgy .liturgy-note {
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--olive);
  margin-bottom: 1.8rem;
  display: block;
}
.liturgy .vers { color: var(--rubric); font-weight: 600; }
.liturgy .resp { font-weight: 600; }
.liturgy .instruction {
  font-style: italic;
  color: var(--rubric);
  font-size: 1.02rem;
}
.liturgy p { margin-bottom: 0.9em; }

/* ---------- Forms ---------- */

.contact-form {
  max-width: 34rem;
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
.contact-form label {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
  color: var(--vespers);
  display: block;
  margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--parchment-deep);
  margin-top: 4rem;
  padding: 3rem 0 2.4rem;
  font-size: 1rem;
  color: #4a5240;
}
.site-footer .wrap {
  display: grid;
  gap: 1.4rem;
}
.footer-note { max-width: var(--measure); font-size: 0.98rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-variant: small-caps; letter-spacing: 0.14em; font-size: 0.98rem; text-decoration: none; }
.copyright { font-size: 0.92rem; color: var(--olive); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lede {
  font-size: 1.28rem;
  color: #39422f;
}

@media (max-width: 40rem) {
  body { font-size: 1.08rem; }
  section { padding: 3rem 0; }
  .hero { padding: 4rem 1.2rem 3.4rem; }
}

/* ---------- Essay pages ---------- */

.essay .byline {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--olive);
  margin-top: -0.4rem;
  margin-bottom: 2rem;
}

.essay-figure {
  margin: 0 0 2.4rem;
}
.essay-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.essay-figure figcaption {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  color: var(--olive);
  text-align: center;
  margin-top: 0.6rem;
}

.essay .abstract {
  border: 1px solid var(--line);
  background: #fbf8ef;
  padding: 1.6rem 1.7rem;
  margin: 0 0 2.6rem;
}
.essay .abstract p { font-size: 1.05rem; margin-bottom: 0; }

.essay h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
}

.essay .notes { margin-top: 2.5rem; }
.essay .notes h2 { font-size: 1.25rem; }
.essay .notes ol {
  padding-left: 1.4rem;
  font-size: 0.98rem;
  color: #444d3b;
}
.essay .notes li { margin-bottom: 0.55rem; }

.essay-quote {
  margin: 1.6rem 0 1.8rem;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 2px solid var(--gold-soft);
  font-size: 1.08rem;
  color: #3c4433;
}
.essay-quote p { margin-bottom: 0.8em; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 52rem) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 24rem; }
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px #fbf8ef, 0 0 0 7px var(--gold-soft);
}
