/* Novenas: calm, warm, unhurried. Ivory paper, Marian blue, a thread of gold. */
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f8f3ea; --paper-2: #f1e9db; --card: #fffdf8;
  --ink: #2b2620; --muted: #5f564c; --blue: #2c4766; --blue-2: #22384f;
  --gold: #b08d3e; --gold-text: #82621f; --gold-soft: #e6d6ad; --line: #e2d6c0;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant", "EB Garamond", Georgia, serif;
  --caps: "Cinzel", "EB Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.65 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
h4 { font: 500 .8rem/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.8em 0 .7em; }
p { margin: 0 0 1em; }
.star { width: 1em; height: 1em; fill: var(--gold); display: inline-block; vertical-align: -.1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 8vw, 104px) 0; }

/* header */
.top { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font: 500 1.6rem/1 var(--display); }
.brand small { font: 500 .68rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand .star { align-self: center; width: .95rem; height: .95rem; }
.lang { font: 500 .95rem/1 var(--serif); text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, .82); color: var(--ink); }
.lang:hover { background: var(--card); color: var(--ink); }

/* hero: the photo, with words resting on its quiet side */
.hero { position: relative; padding: 0; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--paper-2); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 243, 234, .96) 0%, rgba(248, 243, 234, .88) 34%, rgba(248, 243, 234, .35) 58%, rgba(248, 243, 234, 0) 74%); }
.hero-in { position: relative; z-index: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 120px 24px 80px; }
.hero-in > * { max-width: 540px; }
.eyebrow { font: 500 .78rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem); line-height: 1.04; }
.lead { font-size: 1.28rem; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--blue); color: #fff; font: 500 1.05rem/1 var(--serif); letter-spacing: .02em; text-decoration: none; border: 0; transition: background .2s; }
.btn:hover { background: var(--blue-2); color: #fff; }
.link { font-size: 1.05rem; }

/* what is a novena */
.what { text-align: center; background: var(--paper); }
.what .star { width: 1.4rem; height: 1.4rem; margin-bottom: 14px; }
.what p { color: var(--muted); font-size: 1.22rem; }
.what p:last-child { font-style: italic; color: var(--ink); margin-top: 1.4em; }

/* shop */
.shop { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop > .wrap > h2, .shop .sub { text-align: center; }
.sub { color: var(--muted); margin-bottom: 56px; }
.novena { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding: 48px 0; }
.novena + .novena { border-top: 1px solid var(--line); }
.novena:nth-of-type(even) .novena-art { order: 2; }
.novena-art { position: sticky; top: 24px; }
.cover { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; display: block; border-radius: 6px; box-shadow: 0 1px 2px rgba(43, 38, 32, .08), 0 18px 40px -16px rgba(43, 38, 32, .35); overflow: hidden; }
.when { font: 500 .78rem/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.who { font-style: italic; color: var(--muted); }
.inside { margin: 0; padding: 0; list-style: none; }
.inside li { position: relative; padding: 0 0 .5em 1.4em; }
.inside li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.buyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.btn.soon { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.instant { color: var(--muted); font-size: 1rem; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.thumb { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(43, 38, 32, .1), 0 8px 18px -10px rgba(43, 38, 32, .35); transition: transform .25s ease; }
.thumb:hover { transform: translateY(-3px); }
.cover.thumb:hover { transform: none; }

/* printing */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1em 3.2rem; min-height: 2.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05em; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 500 1.15rem/1 var(--display); }

/* art and mission */
.art { background: var(--paper-2); }
.art p { color: var(--ink); }
.why-h { margin-top: 1.4em; }

/* care */
.care { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 0; }
.care-box { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 32px; max-width: 680px; }
.care-box h2 { font-size: 1.7rem; }
.care-box p { margin: 0; color: var(--muted); }

/* faq */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 2.2rem 18px 0; position: relative; font: 500 1.35rem/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--serif); color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 8px; }

.foot { text-align: center; padding: 56px 0 64px; color: var(--muted); font-size: 1rem; }
.foot .star { width: 1.1rem; height: 1.1rem; }

/* private download page (after checkout) */
.thanks main { padding: 32px 24px 72px; }
.top.static { position: static; }
.thanks h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: .2em; }
.sub-es { font-style: italic; color: var(--muted); margin-bottom: 1.6em; }
.thanks p[lang="es"], .thanks span[lang="es"] { color: var(--muted); }
.dls { list-style: none; margin: 28px 0 40px; padding: 0; display: grid; gap: 12px; }
.dl { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 500; }
.dl:hover { border-color: var(--blue); color: var(--blue); }
.dl span, .steps span { display: block; font-weight: 400; font-size: .95rem; }
.mailme { margin: 0 0 44px; padding: 20px; border-radius: 12px; background: var(--paper-2); }
.mailme label { display: block; font-weight: 500; margin-bottom: 10px; }
.mailme label span { display: block; font-weight: 400; font-size: .95rem; color: var(--muted); }
.mm-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-row input { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--card); color: var(--ink); }
.mm-hp { position: absolute; left: -9999px; }
.mm-msg { margin: 10px 0 0; font-size: 1rem; color: var(--muted); }
.help { margin-top: 32px; font-size: 1rem; color: var(--muted); }

/* card viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(34, 30, 25, .78); }
.viewer img { max-height: 90vh; width: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.viewer-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font: 400 1.7rem/1 var(--serif); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* phones: the photo above, the words below on plain paper */
@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .top { position: static; background: var(--paper); padding: 14px 16px; }
  .brand small { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; height: 46vw; min-height: 220px; object-position: 70% 50%; }
  .hero::after { display: none; }
  .hero-in { padding: 32px 16px 8px; }
  .lead { font-size: 1.15rem; }
  .wrap, .narrow { padding: 0 16px; }
  .novena { grid-template-columns: 1fr; padding: 36px 0; }
  .novena:nth-of-type(even) .novena-art { order: 0; }
  .novena-art { position: static; max-width: 340px; margin: 0 auto; }
  .sub { margin-bottom: 24px; }
  .care-box { padding: 24px 20px; margin: 0 16px; }
  .viewer-close { top: 8px; right: 8px; }
}
