/* Père Émilien Tardif — memorial site stylesheet
   Warm parchment, burgundy and gold. Timeless, book-like. */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdc;
  --paper-line: #e7dcc4;
  --burgundy: #7a1f2b;
  --burgundy-deep: #5b1720;
  --gold: #b08d3f;
  --gold-soft: #d6c296;
  --ink: #2c2420;
  --ink-soft: #6c6055;
  --serif-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --rule: 1px solid rgba(176, 141, 63, .45);
  --shadow: 0 1px 2px rgba(44,36,32,.06), 0 10px 30px rgba(44,36,32,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--burgundy); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--burgundy);
  color: #fff; padding: .6rem 1rem; z-index: 999; border-radius: 3px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* Eyebrow labels */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.97);
  border-bottom: var(--rule);
  backdrop-filter: saturate(120%);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: .8rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.35rem;
  color: var(--burgundy); letter-spacing: .01em;
}
.brand-sub {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.header-right { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .12em;
  color: var(--ink-soft); display: flex; align-items: center; gap: .4rem;
}
.lang-switch a { font-weight: 600; }
.lang-switch .active { color: var(--burgundy); font-weight: 700; }
.lang-switch .sep { color: var(--gold-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold);
  border-radius: 4px; padding: .45rem .6rem; cursor: pointer;
}
.bars { display: flex; flex-direction: column; gap: 4px; }
.bars i { width: 20px; height: 2px; background: var(--burgundy); display: block; }

.primary-nav { border-top: 1px solid rgba(176,141,63,.22); }
.primary-nav ul {
  max-width: 1100px; margin: 0 auto; padding: .25rem 1.4rem;
  list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .2rem;
}
.primary-nav a {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-soft);
  padding: .55rem .75rem; border-radius: 3px; display: inline-block;
}
.primary-nav a:hover { color: var(--burgundy); background: rgba(176,141,63,.08); }
.primary-nav a.active { color: var(--burgundy); font-weight: 600; }

/* Layout */
main { max-width: 1100px; margin: 0 auto; padding: 0 1.4rem 4rem; }

.page-hero { max-width: 760px; padding: 3.4rem 0 2rem; margin: 0 auto; text-align: center; }
.page-hero h1 { margin-bottom: .55rem; }
.page-hero .eyebrow { margin-bottom: .9rem; }
.intro { font-size: 1.22rem; color: var(--ink-soft); max-width: 660px; margin: 1rem auto 0; }

.drop-cap::first-letter {
  font-family: var(--serif-display); font-weight: 700; color: var(--burgundy);
  font-size: 3.35em; float: left; line-height: .82; padding-right: .08em;
  padding-top: .04em;
}

/* Homesite hero */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 3rem;
  align-items: center; padding: 3.2rem 0 2.4rem;
}
.home-hero .portrait-wrap { justify-self: center; }
.home-hero .portrait {
  width: 300px; border: 1px solid var(--gold-soft);
  padding: 10px; background: #fff; box-shadow: var(--shadow);
}
.home-hero .portrait img { border: 1px solid var(--paper-line); }
.home-hero .hero-copy h1 { margin-bottom: .5rem; }
.home-hero .hero-tag { font-size: 1.35rem; color: var(--gold); font-style: italic;
  font-family: var(--serif-display); margin: 0 0 1rem; }
.home-hero .hero-intro { font-size: 1.16rem; color: var(--ink); margin: 0 0 1.4rem; }

/* Highlights */
.highlights { margin: 0 auto 2rem; max-width: 760px; }
.highlights h2 { text-align: center; font-size: 1.6rem; }
.highlights ul { list-style: none; padding: 0; margin: 0; }
.highlights li {
  padding: .55rem 0 .55rem 1.6rem; position: relative; border-bottom: 1px solid var(--paper-line);
}
.highlights li:last-child { border-bottom: none; }
.highlights li::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px;
  border: 1.5px solid var(--gold); transform: rotate(45deg);
}

/* Testimonial banner */
.testimonials {
  margin: 1rem auto 2.6rem; max-width: 760px; text-align: center;
}
.testimonials-wrap {
  border-top: var(--rule); border-bottom: var(--rule);
  padding: 2rem 1.4rem 1.6rem;
}
.testimonials .quote {
  font-family: var(--serif-display); font-size: 1.5rem; font-style: italic;
  color: var(--burgundy-deep); line-height: 1.4; margin: 0 0 1rem;
  min-height: 3.6em; transition: opacity .6s ease;
}
.testimonials .quote.fade { opacity: 0; }
.testimonials .attrib { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink-soft); text-transform: uppercase; }
.testimonials .attrib b { color: var(--gold); font-weight: 600; }
.banner-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1rem; }
.banner-controls button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  color: var(--burgundy); font-size: 1.1rem; padding: .2rem .4rem;
}
.banner-controls button:hover { color: var(--gold); }
.dots { display: flex; gap: .45rem; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: var(--gold-soft); border: none; cursor: pointer;
}
.dots button.active { background: var(--burgundy); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin: 0 0 3rem; }
.card {
  background: var(--paper-deep); border: 1px solid var(--paper-line);
  border-top: 3px solid var(--gold); padding: 1.5rem 1.4rem; text-decoration: none;
  color: var(--ink); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card .card-eyebrow { font-family: var(--sans); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .98rem; }
.card .more { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--burgundy); font-weight: 600; }

/* Section landing index */
.section-index { margin-top: 2rem; }
.cat-group { margin-bottom: 2.2rem; }
.cat-title {
  font-family: var(--serif-display); font-size: 1.35rem; color: var(--gold);
  border-bottom: var(--rule); padding-bottom: .4rem; margin-bottom: .9rem;
}
.article-index { list-style: none; padding: 0; margin: 0; }
.article-index li { margin: 0 0 .15rem; }
.article-index a {
  display: block; padding: .5rem .75rem; border-left: 2px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.article-index a:hover { border-left-color: var(--gold); background: rgba(176,141,63,.06); }
.lang-flag { font-family: var(--sans); font-size: .72rem; color: var(--gold); margin-left: .4rem; }

/* Article page */
.article { max-width: 740px; margin: 0 auto; padding-top: 2.6rem; }
.article-head { text-align: center; margin-bottom: 2rem; }
.article-head h1 { margin-bottom: .6rem; }
.article-crumbs { font-family: var(--sans); font-size: .78rem; letter-spacing: .05em;
  color: var(--ink-soft); margin-bottom: 1rem; text-transform: uppercase; }
.article-crumbs a { color: var(--gold); }
.article-body { font-size: 1.12rem; }
.article-body p { margin: 0 0 1.3rem; }
.article-body .caption {
  font-family: var(--serif-display); font-style: italic; color: var(--ink-soft);
  font-size: 1.02rem; text-align: center; margin: .4rem 0 1.4rem;
}
.article-rule { border: none; border-top: var(--rule); margin: 2.4rem 0 0; }

/* Photos gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--paper-line); padding: 8px; background: #fff; box-shadow: var(--shadow); }
.gallery figcaption { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft);
  text-align: center; margin-top: .5rem; letter-spacing: .03em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-card { background: var(--paper-deep); border: 1px solid var(--paper-line);
  padding: 1.6rem 1.6rem 1.8rem; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card a { word-break: break-all; }
.contact-card .big { font-size: 1.2rem; color: var(--burgundy); font-weight: 600; }

.archive-note { text-align: center; margin-top: 1.6rem; font-style: italic; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--burgundy-deep); color: #f3e7d3; margin-top: 3rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.6rem 1.4rem 2.2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.footer-name { font-family: var(--serif-display); font-size: 1.5rem; margin: 0 0 .6rem; color: #fff; }
.footer-lead { color: #e6d7bd; font-style: italic; margin: 0 0 .8rem; }
.footer-eyebrow { font-family: var(--sans); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: .8rem; }
.site-footer p { margin: 0 0 .4rem; font-size: .95rem; }
.site-footer .footer-note p { color: #cdb896; font-size: .88rem; }
.footer-meta { color: #a98d5f; }

/* Responsive */
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .home-hero .hero-copy .eyebrow { }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { display: block; padding: .6rem .4rem; }
  .lang-switch { display: none; }
  .lang-switch.inline { display: flex; }
}

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

/* Print */
@media print {
  .site-header, .site-footer, .banner-controls, .nav-toggle { display: none; }
  body { background: #fff; }
}
