@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/open-sans-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/open-sans-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/open-sans-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/open-sans-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/playfair-display-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/playfair-display-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/playfair-display-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/playfair-display-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #ffffff;
  --ink: #1f1f1f;
  --green: #4a5a2a;
  --green-soft: #7d8c5c;
  --gold: #d6ad55;
  --black: #0a0a0a;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 38rem; margin: 0 auto; padding: 24px 24px 72px; }
main.wide { max-width: 54rem; }

a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

/* Page links */
.site-nav { text-align: center; padding: 16px 24px 0; }
.site-nav ul, .links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.5rem; }
.site-nav a { display: inline-block; padding: 0.4rem 0; }
.site-nav a[aria-current="page"] { text-decoration: none; color: var(--ink); }
.links { margin-top: 0.5rem; flex-direction: column; align-items: center; gap: 0.6rem; }

/* Headings */
h1, h2, h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  color: var(--green);
  text-wrap: balance;
}
h1 { font-weight: 700; font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.15; }
h2 { font-weight: 700; font-size: 1.75rem; line-height: 1.25; margin: 0 0 1.5rem; text-align: center; }
h3 { font-weight: 400; font-size: 1.25rem; line-height: 1.35; margin: 2.5rem 0 0.6rem; }
h4 { font: inherit; font-weight: 700; color: var(--green); margin: 1.5rem 0 0.1rem; }
p { text-wrap: pretty; }
.rule { width: 100%; height: 1px; background: var(--green-soft); opacity: 0.6; margin: 0 0 3.5rem; }
section { margin-top: 3.5rem; }
.centre { text-align: center; }

/* Home: cover, after the brochure cover */
.cover { background: var(--black); padding: 0 16px; }
.arch {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.5rem;
  text-align: center;
  color: #fff;
  border-radius: 15rem 15rem 0 0;
  background: linear-gradient(180deg, #47682f 0%, #2c4420 30%, #101a0c 65%, #0a0d08 100%);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 0 14px 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 0;
  border-radius: 15rem 15rem 0 0;
  pointer-events: none;
}
.cover h1, .cover .memory, .cover .dates {
  color: var(--gold);
  font-family: "Playfair Display", "Times New Roman", serif;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cover h1 span, .cover .memory {
    background: linear-gradient(100deg, #b98a35 0%, #f1d283 45%, #c99a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.cover .memory { font-size: clamp(1rem, 4.4vw, 1.3rem); text-transform: uppercase; letter-spacing: 0.01em; }
.gold-flourish { width: 7rem; height: 1px; margin: 1.1rem auto 1.3rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cover h1 { line-height: 1; text-transform: uppercase; }
.cover h1 .first { display: block; font-size: clamp(1.5rem, 7vw, 2.1rem); }
.cover h1 .last { display: block; font-weight: 400; font-size: clamp(4rem, 21vw, 6.25rem); line-height: 0.95; }
.cover .dates { font-size: 1.25rem; margin-top: 0.5rem; }
.oval {
  display: block;
  width: min(74%, 17.5rem);
  height: auto;
  border-radius: 50%;
  margin: 2.25rem auto;
  outline: 1.5px solid var(--gold);
  outline-offset: 5px;
}
.cover .venue { font-weight: 600; font-size: 1.0625rem; }
.cover .when { font-size: 1.0625rem; margin-top: 0.2rem; }
.cover .map { margin-top: 0.9rem; }
.cover a { color: #fff; }
.gold-line { height: 1px; background: var(--gold); opacity: 0.7; margin: 2rem -1.25rem 1.4rem; }
.cover .farewell { font-family: "Playfair Display", serif; font-style: italic; font-weight: 700; font-size: 1.75rem; }

/* Order of service and programme */
.part-title { text-transform: uppercase; }
.order ol { padding-left: 1.6rem; color: var(--green); font-family: "Playfair Display", serif; }
.order li { padding: 0.15rem 0; }
.order li ul { list-style: none; padding: 0.1rem 0 0.2rem; font-style: italic; }
.people { list-style: none; padding: 0; text-align: center; color: var(--green); font-family: "Playfair Display", serif; }
.people li { padding: 0.45rem 0; }
.people .name { font-size: 1.125rem; }
.people .role { display: block; font-style: italic; font-size: 1rem; }
.people a[href^="tel:"] { font-family: "Open Sans", sans-serif; font-style: normal; font-size: 1.125rem; }
.label { text-align: center; text-transform: uppercase; font-weight: 700; font-size: 1rem; margin-top: 2.25rem; }

/* Verse panels, after the brochure's outlined ovals */
.panel {
  border: 1px solid var(--green-soft);
  border-radius: 12rem;
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: var(--green);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.9;
}
.panel .ref { font-style: normal; font-size: 1.25rem; margin-bottom: 1rem; }
.panel p + p { margin-top: 1.2rem; }
.thanks {
  margin: 3.5rem -24px -72px;
  padding: 3rem 24px 5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef2e6 45%, #c6d6b4 100%);
  color: var(--green);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
}
.thanks .oval { margin-top: 0; }
.thanks p + p { margin-top: 0.4rem; }
.thanks .links { font-family: "Open Sans", sans-serif; font-style: normal; font-size: 1.0625rem; margin-top: 2.5rem; }

/* Reading pages */
.prose h2 { color: #000; text-align: left; }
.prose p + p { margin-top: 1.1rem; }
.page-title { text-align: center; padding: 2rem 0 2.5rem; }
.page-title p { margin-top: 0.6rem; color: var(--green); font-family: "Playfair Display", serif; font-size: 1.125rem; }
figure { margin: 2rem 0; }
figure img, .gallery img { display: block; width: 100%; height: auto; background: #eef0ea; }
figure.narrow { max-width: 20rem; margin-left: auto; margin-right: auto; }
.gallery { column-count: 2; column-gap: 8px; }
.gallery img { margin-bottom: 8px; break-inside: avoid; }

/* Verses */
.verse { margin-top: 1rem; }
.refrain { padding-left: 1.25rem; }
.quote { margin: 1.5rem 0; font-style: italic; font-size: 1rem; }
.quote .verse:first-child { margin-top: 0; }
.hymn { margin-top: 3.5rem; color: var(--green); }
.hymn h3 { margin-top: 0; text-align: center; font-size: 1.375rem; }
.jump { list-style: none; padding: 0; }
.jump li { padding: 0.2rem 0; }
.jump .part { color: var(--green); font-family: "Playfair Display", serif; text-transform: uppercase; margin-top: 1.25rem; }
.back { margin-top: 1.5rem; font-size: 1rem; }

@media (min-width: 46rem) {
  .langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
  .gallery { column-count: 3; }
  .links { flex-direction: row; gap: 0.35rem 1.5rem; }
}

/* Laptop and wider: the cover fills the whole screen */
@media (min-width: 60rem) {
  main.home { max-width: 62rem; }
  .cover {
    padding: 0;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #47682f 0%, #2c4420 30%, #101a0c 68%, #0a0d08 100%);
  }
  .arch {
    flex: 1;
    max-width: none;
    border-radius: 0;
    background: none;
    padding: 4vh 6vw 3vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    grid-template-areas: "head photo" "details photo" "line line" "farewell farewell";
    column-gap: 4vw;
    align-items: center;
  }
  .arch::before { display: none; }
  .cover-head { grid-area: head; align-self: end; padding-bottom: 2.5rem; }
  .cover-details { grid-area: details; align-self: start; }
  .cover .oval { grid-area: photo; width: min(100%, 60vh); margin: 0 auto; outline-offset: 8px; }
  .gold-line { grid-area: line; margin: 4vh -6vw 2.5vh; }
  .cover .farewell { grid-area: farewell; font-size: 2rem; }
  .cover .memory { font-size: 1.6rem; }
  .gold-flourish { width: 10rem; }
  .cover h1 .first { font-size: clamp(2.1rem, 3.4vw, 3.25rem); }
  .cover h1 .last { font-size: clamp(6.25rem, 11vw, 10.5rem); }
  .cover .dates { font-size: 1.6rem; }
  .cover .venue, .cover .when { font-size: 1.25rem; }
  .order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 5rem; }
  .order-grid > div + div { border-left: 1px solid var(--green-soft); padding-left: 5rem; }
  .order-grid h3:first-child { margin-top: 1rem; }
  .thanks { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 19rem); padding-right: calc(50vw - 19rem); }
}
