/* Newly Catholic: one stylesheet for the whole site.
   Change colours and fonts here, in :root. */

:root {
  --cream: #fcf7eb;
  --cream-deep: #f6ecd6;
  --paper: #fffdf8;
  --gold: #d99a2b;
  --gold-soft: #ebc97f;
  --gold-text: #8a5f12;   /* gold dark enough to read as text */
  --ink: #333333;
  --ink-soft: #5f5a52;
  --sage: #8f8b62;
  --line: #eadcbc;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --wrap: 68rem;
  --narrow: 42rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em { color: var(--gold-text); }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--narrow)); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.6em;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand img { width: 210px; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--gold-text); border-color: var(--gold-text); color: var(--paper); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Divider: thin gold lines with a four-point star, as in the logo */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
  margin: 0.4rem auto 2rem;
}
.divider span { height: 1px; width: 3.5rem; background: var(--gold-soft); }
.divider svg { width: 16px; height: 16px; }

/* Home: hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  background: radial-gradient(ellipse at center, #fffaf0 0%, var(--cream) 65%);
}
.hero-art {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(760px, 135vw);
  transform: translate(-50%, -50%);
  color: var(--gold-soft);
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 40rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { display: block; }
.hero .lead { margin-inline: auto; max-width: 34rem; }

/* Home: features */
.features { padding: 4.5rem 0 3.5rem; text-align: center; }
.section-title { text-align: center; margin-bottom: 0.2em; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.4rem;
}
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--ink-soft); margin: 0; }

/* Band behind the sign-up block */
.band {
  background: var(--cream-deep);
  border-block: 1px solid var(--line);
  padding: 4rem 0;
  text-align: center;
}

/* Sign-up form */
.signup { text-align: left; margin-top: 1.5rem; }
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.signup label span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.signup input {
  width: 100%;
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.signup input:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.signup .button { width: 100%; }
.small-print { font-size: 0.85rem; color: var(--ink-soft); margin: 0.8rem 0 0; text-align: center; }

/* Post lists */
.latest { padding: 4.5rem 0 2rem; }
.post-list { list-style: none; padding: 0; margin: 0 auto 1.5rem; max-width: var(--narrow); }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { border-top: 1px solid var(--line); }
.post-list time { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.post-list a { font-family: var(--font-heading); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--gold-text); }
.post-list p { margin: 0.2rem 0 0; color: var(--ink-soft); }

/* Shop teaser */
.shop-teaser { padding: 2.5rem 0 5rem; }
.teaser-card {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--paper);
}
.teaser-card h2 { max-width: 30rem; margin: 0 auto 1.2rem; }

/* Inner pages */
.page { padding: 4rem 0 4.5rem; }
.page-header { text-align: center; }
.page-header .lead { max-width: 36rem; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.4rem 1.4rem;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--ink-soft);
}
.prose code { background: var(--cream-deep); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.cta-card {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: var(--cream-deep);
  border-radius: var(--radius);
}
.cta-card h2 { font-size: 1.9rem; }
.back { margin-top: 2rem; text-align: center; }

/* Free journal page */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.prose .two-col h2 { margin-top: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.checklist li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.85rem; top: 0.15rem; }
.note { font-size: 0.9rem; color: var(--sage); }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.form-card h2 { margin-top: 0; font-size: 1.9rem; }
.form-card .signup-fields { grid-template-columns: 1fr; }

/* Shop */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.product h2 { margin-top: 0; font-size: 1.8rem; }
.product p { color: var(--ink-soft); }
.product .price { color: var(--ink); font-weight: 600; margin-top: auto; }
.product .button { align-self: flex-start; }
.shop-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .divider { margin-bottom: 1.2rem; }
.footer-support { max-width: 38rem; margin: 0 auto 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.footer-links a { color: var(--ink); }
.copyright { font-size: 0.8rem; margin: 0; }

/* Small screens */
@media (max-width: 720px) {
  .header-inner { justify-content: center; }
  .brand img { width: 190px; }
  .site-nav ul { justify-content: center; gap: 0.3rem 1rem; }
  .signup-fields, .two-col { grid-template-columns: 1fr; }
}
