:root {
  color-scheme: light;
  --blue: #125897;
  --navy: #082b50;
  --ink: #132b42;
  --muted: #466079;
  --pale: #edf5fb;
  --line: #c9dcea;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #104d85; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: .18rem solid #1871be; outline-offset: .2rem; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.1vw, 6.1rem); }
h2 { font-size: clamp(2.65rem, 5.1vw, 4.75rem); margin-bottom: 1.3rem; }
h3 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: .65rem; }
p + p { margin-top: 1rem; }
.wrap { width: min(76rem, calc(100% - 7rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: .75rem; top: .75rem; background: white; padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.header { position: relative; z-index: 1; background: white; }
.nav, .brand, .nav nav, .actions, .footer nav { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: 5.5rem; gap: 1rem; }
.brand { gap: .7rem; font-size: .95rem; font-weight: 800; line-height: 1.15; text-decoration: none; color: var(--navy); }
.brand img { width: 4.25rem; height: 3.45rem; object-fit: contain; }
.nav nav { gap: clamp(.7rem, 2vw, 2rem); }
.nav nav a { font-size: .93rem; font-weight: 700; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }
.menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.button:hover { filter: brightness(.94); }
.blue { background: var(--blue); color: white; }
.white { background: white; color: var(--navy); }
.pale { background: #ddecf7; color: var(--navy); }
.outline { border-color: #aecce4; color: white; }
.actions { flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.hero, .contact { background: var(--navy); color: white; }
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.8rem, 6vw, 5.7rem); }
.hero-copy > p:not(.eyebrow) { max-width: 32ch; margin-top: 1.4rem; color: #e2edf6; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.eyebrow { color: var(--blue); font-size: .87rem; line-height: 1.3; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem; }
.hero .eyebrow, .contact .eyebrow { color: #b9d9f1; }
.hero-photo { background: #184873; aspect-ratio: 1.075; position: relative; overflow: hidden; border-radius: .75rem; }
.hero-photo img { height: 100%; }
.hero-photo figcaption { position: absolute; bottom: .85rem; left: .85rem; background: #082b50f0; color: white; padding: .35rem .7rem; border-radius: .25rem; font-size: .875rem; }
.service-bar { background: var(--pale); border-bottom: 1px solid var(--line); }
.bar-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding-block: 1.25rem; }
.bar-inner b, .bar-inner span { display: block; }
.bar-inner span { font-size: .95rem; color: var(--muted); }
.section { padding-block: clamp(3.15rem, 7vw, 6.1rem); }
.intro, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.8rem, 6vw, 6rem); }
.intro > div:first-child { max-width: 34rem; }
.vision { background: var(--pale); border-left: .27rem solid var(--blue); border-radius: .25rem .65rem .65rem .25rem; padding: clamp(1.55rem, 4.2vw, 3.3rem); }
blockquote { font-size: clamp(1.35rem, 2.45vw, 2.05rem); line-height: 1.35; letter-spacing: -.027em; font-weight: 690; }
details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .6rem; }
summary { cursor: pointer; color: #104d85; font-weight: 750; }
details p { margin-top: .65rem; }
.visit { background: var(--pale); }
address { margin-top: 1.2rem; font-style: normal; }
.schedule { background: white; border-radius: .7rem; padding: clamp(1.15rem, 3.5vw, 2.4rem); }
.schedule dl { margin: .95rem 0 1.15rem; }
.schedule dl div { padding: .72rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.25fr; gap: .65rem; }
.schedule dt { font-weight: 750; }
.schedule dd { margin: 0; }
.lead { max-width: 52ch; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.cards article { background: var(--pale); border-radius: .65rem; overflow: hidden; }
.card-copy { padding: clamp(1.2rem, 3vw, 2rem); }
.card-copy > a { display: inline-block; margin-top: .7rem; font-weight: 700; }
.card-image { height: clamp(10rem, 23vw, 17rem); background: #bed6e8; }
.card-image img { height: 100%; }
.resources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.resources a { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .65rem .15rem; border-bottom: 1px solid var(--line); font-weight: 750; }
.resources span { font-size: .93rem; color: var(--muted); font-weight: 500; text-align: right; }
.contact p { color: #e2edf6; }
.contact-list { display: grid; gap: .8rem; }
.contact-list div { padding: .75rem 0; border-bottom: 1px solid #587790; }
.contact-list a { display: block; color: #e3f2ff; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; padding-block: 1.4rem; font-size: .9rem; }
.footer nav { flex-wrap: wrap; gap: .6rem 1.15rem; }
@media (max-width: 65rem) {
  .wrap { width: min(100% - 3rem, 76rem); }
}
@media (max-width: 55rem) {
  .js .menu { display: block; border: 1px solid var(--line); background: white; color: var(--navy); border-radius: .4rem; padding: .5rem .9rem; font: inherit; font-weight: 750; }
  .js .nav nav { display: none; position: absolute; inset: 100% 0 auto; background: white; padding: .75rem 1.5rem 1.25rem; box-shadow: 0 .65rem .95rem #082b5025; }
  .js .nav nav.is-open { display: flex; align-items: stretch; flex-direction: column; gap: .45rem; }
  .nav nav a { padding: .4rem 0; }
  .nav nav a.button { padding: .65rem 1.1rem; }
  .nav nav { flex-wrap: wrap; }
  .nav { min-height: 4.5rem; }
}
@media (max-width: 41rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .intro, .split, .cards { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.65rem; }
  .hero-photo { aspect-ratio: 1.6; }
  .bar-inner { grid-template-columns: 1fr; gap: .75rem; justify-items: start; }
  .hero-copy > p:not(.eyebrow) { max-width: 37ch; }
  .schedule dl div { grid-template-columns: 1fr; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.recap-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } .recap-photo[hidden] { display: none; }

@media (max-width: 41rem) {
}

.header .nav { gap: 1.5rem; }
.nav nav { gap: clamp(.75rem, 1.6vw, 1.45rem); }
.nav nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
main > section:not(.hero) h1 { font-size: clamp(2.65rem, 5.1vw, 4.75rem); margin-bottom: 1.4rem; }
.advent-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; background: #f5f2ea; border-radius: .8rem; margin-top: 1.5rem; }
.advent-copy { padding: clamp(1.35rem, 4vw, 3.5rem); align-self: center; }
.advent-copy .button { margin-top: 1.25rem; }
.advent-copy .eyebrow { color: #26564b; }
.advent-image { position: relative; overflow: hidden; isolation: isolate; min-height: 17rem; background: radial-gradient(ellipse at 62% 55%, #345746 0%, #132f28 57%, #0a1b17 100%); }
.advent-image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 30%, #efcd81 0 2px, transparent 3px), radial-gradient(circle at 77% 18%, #e7bf69 0 2px, transparent 4px), radial-gradient(circle at 86% 57%, #e7bf69 0 3px, transparent 8px), radial-gradient(circle at 27% 66%, #e7bf69 0 2px, transparent 7px), radial-gradient(circle at 39% 17%, #e7bf69 0 1px, transparent 4px), radial-gradient(circle at 66% 31%, #e7bf69 0 2px, transparent 6px), radial-gradient(ellipse at 56% 49%, #dd9f4138, transparent 36%); }
.advent-candle { position: absolute; width: 18%; max-width: 7rem; height: 37%; bottom: 13%; left: 48%; background: linear-gradient(90deg,#a77a3d,#f8e0a8 48%,#c69b5a); border-radius: 50% 50% .3rem .3rem / 7% 7% .3rem .3rem; box-shadow: 0 1.3rem 1.7rem #080e0a90; }
.advent-candle::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + .5rem); width: 1.45rem; height: 2.5rem; transform: translateX(-50%) rotate(7deg); border-radius: 70% 20% 65% 65%; background: #fff4bb; box-shadow: 0 0 1.8rem .45rem #fbb143a0, inset 0 -.35rem .3rem #f5a435; }
.event-link, .recurring { display: block; margin-top: 1.3rem; }
.recurring h2, .advent-detail h2 { font-size: clamp(1.8rem, 3.7vw, 2.5rem); }
.advent-detail { margin-top: 1.5rem; }
.advent-detail .advent-image { border-radius: .75rem; }
.site-footer { background: var(--navy); color: white; border-top: 1px solid #ffffff30; }
.footer-groups { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 1rem 2rem; padding-block: 2.6rem; }
.footer-groups h2 { font-size: 1.1rem; margin-bottom: .6rem; letter-spacing: 0; }
.footer-groups a { display: block; color: #e3f2ff; font-size: .94rem; margin-bottom: .25rem; }
.footer-groups .footer-brand { font-weight: 800; font-size: 1.05rem; }
.footer-groups p { font-size: .94rem; }
@media (max-width: 55rem) { .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 41rem) {
  .advent-card { grid-template-columns: 1fr; }
  .advent-image { min-height: 13rem; }
}

.nav-group { position: relative; margin: 0; padding: 0; border: 0; }
.nav-group > summary { padding: .55rem .2rem; }
.nav-links { position: absolute; z-index: 3; min-width: 13rem; top: 100%; left: 0; padding: .6rem 1rem; background: white; border: 1px solid var(--line); border-radius: .5rem; box-shadow: 0 .45rem 1rem #082b5020; }
.nav-links a { display: block; padding: .42rem 0; }
.footer-groups { grid-template-columns: repeat(4,minmax(0,1fr)); }
.footer-identity { grid-column: 1 / -1; }
.faq { max-width: 53rem; }
.visit-note, #mitmachen .button { margin-top: 1rem; }
.date-list > div { display: grid; grid-template-columns: minmax(10rem,1fr) 2fr; padding: .8rem 0; gap: .65rem; border-bottom: 1px solid var(--line); }
.date-list dt { font-weight: 750; }
.date-list dd { margin: 0; }
@media (max-width: 55rem) {
  .nav-links { position: static; border: 0; background: var(--pale); box-shadow: none; }
  .js .nav nav.is-open { max-height: 75vh; overflow-y: auto; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 41rem) { .date-list > div { grid-template-columns: 1fr; gap: .15rem; } }

.topic { max-width: 64rem; }
.topic .card-copy h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-bottom: .65rem; }

.home .header { position: absolute; inset: 0 0 auto; background: #101817a8; z-index: 5; }
.home .brand, .home .nav-group > summary { color: white; }
.home .brand img { padding: .2rem; border-radius: .3rem; background: white; }
.hero-cover { position: relative; background: linear-gradient(90deg,#081311ec 0%,#0813119e 50%,#08131155 100%), url("assets/gemeindesaal.jpg") center 46% / cover; }
.hero-content { position: relative; min-height: min(46rem,95svh); padding-top: 8rem; padding-bottom: 4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.hero-cover h1 { font-size: clamp(3.4rem,9vw,8rem); }
.hero-cover .hero-copy > p { max-width: 45ch; }
.next-service { display: inline-grid; align-self: flex-start; padding: .7rem 1rem; border: 1px solid #ffffff70; border-radius: .45rem; background: #111c1bd9; color: white; text-decoration: none; }
.next-service span { color: #edf5ef; font-size: .95rem; }
.next-service:hover strong { text-decoration: underline; }
.opening { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; pointer-events: none; background: #101110; color: white; font-size: clamp(1.9rem,7vw,5.3rem); font-weight: 800; line-height: 1.08; text-align: center; animation: reveal-site .55s ease .38s both; }
@keyframes reveal-site { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
.advent-cover { position: relative; align-items: center; grid-template-columns: minmax(13rem,.75fr) minmax(0,1.25fr); padding: clamp(1.15rem,4vw,3.2rem); background: linear-gradient(105deg,#181e16df,#202211ef),url("assets/adventsflyer.png") center / cover; color: #fff4e4; }
.advent-cover .eyebrow { color: #ffd99f; }
.advent-cover .advent-copy h3 { color: #fff4e4; font-family: Georgia,serif; font-size: clamp(2.3rem,5vw,4.65rem); }
.advent-cover .advent-copy p + p { margin-top: .6rem; }
.flyer-preview { display: block; max-width: 25rem; }
.flyer-preview img { width: 100%; height: auto; border-radius: .45rem; box-shadow: 0 .5rem 1.5rem #0004; }
@media (max-width: 55rem) { .home .js .nav nav, .js .home .nav nav { background: #fff; } .js .home .nav-group > summary { color: var(--navy); } }
@media (max-width: 41rem) {
  .hero-content { padding-top: 6rem; gap: 3rem; min-height: 0; }
  .advent-cover { grid-template-columns: 1fr; }
  .advent-cover .flyer-preview { width: min(100%, 17rem); margin: auto; }
  .advent-cover .advent-copy { padding-inline: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .opening { display: none; } }

.advent-cover {
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(1.1rem,4vw,3rem);
  background: radial-gradient(ellipse at 0% 90%,#293e2b,transparent 60%), #17251d;
}
.advent-cover .advent-copy { min-width: 0; padding: 0; }
.advent-cover .advent-copy h3 { overflow-wrap: anywhere; text-wrap: pretty; font-size: clamp(2rem, 4.4vw, 4rem); }
.advent-cover .eyebrow { line-height: 1.55; }
.advent-cover .advent-illustration { min-width: 0; border-radius: .6rem; background: radial-gradient(ellipse at 55% 49%, #a3672a 0%, #56381f 29%, #27372a 60%, #102019 100%); }
.advent-illustration .advent-candle { background: linear-gradient(90deg,#6f191a,#a63832 50%,#642022); }
.advent-cover .button { max-width: 100%; white-space: normal; }
.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: #080908;
}
.brand-awaiting-intro { visibility: hidden; }
.logo-intro .intro-brand { position: absolute; color: white; }
.logo-intro img {
  flex: none;
  padding: .2rem;
  filter: grayscale(1) invert(1) brightness(3) contrast(1.15);
  mix-blend-mode: screen;
}
@media (max-width: 41rem) {
  .advent-cover { grid-template-columns: minmax(0,1fr); }
  .advent-cover .advent-illustration { min-height: 10rem; }
}

.baptism-hero {
  background: radial-gradient(ellipse at 82% 100%, #407e8f 0, transparent 56%), #142e43;
  color: #fff;
  padding-block: clamp(3.5rem, 10vw, 8rem);
}
.baptism-hero .eyebrow { color: #c2e5f0; }
.baptism-hero p:not(.eyebrow) { max-width: 35rem; margin-block: 1.1rem 1.5rem; font-size: clamp(1.1rem, 2.3vw, 1.4rem); }
#taufgespraech .vision h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }

.footer-groups a { text-decoration: none; }
.footer-groups a:hover, .footer-groups a:focus-visible { color: #fff; }
.next-service-care { font-size: .9rem; margin-top: .3rem; }

.advent-cover {
  background: #17261c;
  grid-template-columns: minmax(0,.63fr) minmax(0,1.37fr);
}
.advent-flyer-art {
  align-self: stretch;
  min-height: 15rem;
  border-radius: .55rem;
  background: linear-gradient(0deg,#28180e35,transparent 48%),
    url("assets/adventsflyer.png") left 77% / 460% auto no-repeat #3a2a1c;
}
@media (max-width: 41rem) {
  .advent-cover { grid-template-columns: minmax(0,1fr); }
  .advent-flyer-art {
    min-height: 0;
    aspect-ratio: 3.2;
    background-position: center, left bottom;
    background-size: cover, 135% auto;
  }
}

.hero-video-toggle { position: absolute; z-index: 2; right: 1rem; bottom: .7rem; background: #111c1bd9; color: white; border: 1px solid #ffffff70; border-radius: .45rem; padding: .42rem .65rem; cursor: pointer; }

.hero-cover { background: #233b3d; }
.hero-photo-motion { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-photo-frame { position: absolute; inset: 0; background: url("assets/waescherhartl.jpg") center 53% / cover no-repeat; transform-origin: 54% 57%; }
.hero-photo-motion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#081311e8,#08131186 53%,#08131136); }


@media (max-width: 41rem) {
 .hero-photo-frame { background-position: 56% center; }
 .hero-photo-motion::after { background: linear-gradient(90deg,#081311c7,#08131159); }
}

.hero-cross-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.hero-photo-motion.has-video .hero-cross-video { opacity:1; }
.hero-photo-motion.has-video::after { background:linear-gradient(90deg,#081311be,#08131150 58%,#0813110a); }
@media(max-width:41rem) {
 .hero-photo-motion.has-video::after { background:linear-gradient(90deg,#081311b8,#08131159); }
}

.advent-cover .advent-flyer-art {
  background: url("assets/advent-winter.jpg") center / cover no-repeat #4f4533;
}
.advent-cover .advent-copy h3 {
  max-width: 100%;
  font-size: clamp(1.75rem, 4.05vw, 3.6rem);
  overflow-wrap: anywhere;
}
.home-welcome { background: var(--pale); }
.home-welcome-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); }
.home-welcome-copy h2 { text-transform: uppercase; }
.home-welcome-photo { overflow: hidden; border-radius: .75rem; }
.home-welcome-photo img { width: 100%; height: auto; }
@media (max-width: 45rem) {
  .home-welcome-grid { grid-template-columns: minmax(0,1fr); }
  .advent-cover .advent-flyer-art { aspect-ratio: 16 / 9; }
}

.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}
.footer-social a:hover, .footer-social a:focus-visible { background: #ffffff20; }
.footer-social svg { width: 1.25rem; height: 1.25rem; }

.recap-gallery { margin-top: 1rem; }
.recap-gallery summary { cursor: pointer; list-style: none; }
.recap-gallery summary::-webkit-details-marker { display: none; }
.recap-gallery .gallery-hide, .recap-gallery[open] .gallery-show { display: none; }
.recap-gallery[open] .gallery-hide { display: inline; }
.photo-strip {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  padding: .2rem 0 .7rem;
  margin: 1rem 0 0;
}
.photo-strip li { flex: 0 0 min(80%, 23rem); min-width: 0; scroll-snap-align: start; }
.photo-strip figure { margin: 0; }
.photo-strip img { display: block; width: 100%; border-radius: .65rem; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-strip figcaption { margin-top: .4rem; color: var(--muted); font-size: .93rem; }

.biergarten-gallery .photo-strip img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: white; }

.recap-gallery-button { margin-top: 1rem; cursor: pointer; font: inherit; font-weight: 750; }
.photo-viewer {
  width: min(96vw, 64rem);
  max-height: 94dvh;
  padding: clamp(.65rem, 2vw, 1.25rem);
  border: 0;
  border-radius: .65rem;
  background: #102332;
  color: white;
}
.photo-viewer::backdrop { background: rgb(0 0 0 / .85); }
.photo-viewer-header, .photo-viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.photo-viewer h2 { color: inherit; font-size: clamp(1rem, 3vw, 1.5rem); margin: 0; }
.photo-viewer figure { margin: .65rem 0; text-align: center; }
.photo-viewer img { width: 100%; height: min(60dvh, 44rem); object-fit: contain; }
.photo-viewer figcaption { font-size: .9rem; margin-top: .35rem; }
.photo-viewer button { min-height: 44px; padding: .45rem .75rem; border: 0; border-radius: .35rem; cursor: pointer; font: inherit; }

.dinner-gallery { padding-top: 0; }
.dinner-gallery h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: .85rem; }
.dinner-cover { width: min(100%, 25rem); aspect-ratio: 4 / 3; border-radius: .65rem; }

.impulse-buttons {
  display: grid;
  gap: .65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.impulse-buttons .button { width: 100%; justify-content: flex-start; gap: .75rem; text-align: left; }
.impulse-icon { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: .35rem; background: white; font-size: 1rem; }


/* Keep long titles, addresses and media inside their columns. */
main, .footer-groups { overflow-wrap: anywhere; }
main audio, main video, main iframe { max-inline-size: 100%; }
.button { max-inline-size: 100%; }
:where(a, button, summary):focus-visible { outline: 2px solid #287bc2; outline-offset: 3px; }
.nav-group:last-of-type .nav-links { left: auto; right: 0; }
.impulse-buttons { max-inline-size: 42rem; }
.dinner-cover { object-position: center; }

@media (max-width: 55rem) {
  .header .nav { gap: .75rem; }
  .menu { min-height: 44px; }
  .nav-group > summary, .nav-links a { min-height: 44px; }
  .js .nav nav.is-open { max-height: calc(100dvh - 4.5rem); overscroll-behavior: contain; }
  .footer-groups nav a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
}

@media (max-width: 41rem) {
  h1 { font-size: clamp(2rem, 8.5vw, 3.4rem); }
  h2 { font-size: clamp(1.75rem, 7.4vw, 2.8rem); }
  .section { padding-block: clamp(2.25rem, 8vw, 3.5rem); }
  .dinner-gallery { padding-top: 0; }
  .resources a { flex-wrap: wrap; }
  .advent-cover .actions { align-items: stretch; flex-direction: column; margin-top: 1.15rem; }
  .advent-cover .actions .button { margin-top: 0; }
  .photo-viewer img { height: min(56dvh, 30rem); }
}

@media (max-width: 23rem) {
  .brand { gap: .45rem; font-size: .82rem; }
  .brand img { width: 3.4rem; height: 2.8rem; }
  .footer-groups { grid-template-columns: minmax(0, 1fr); }
}

.vision-image { width: min(100%, 38rem); height: auto; margin: 1.5rem auto 0; border-radius: .65rem; }

.advent-detail {
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 42rem) {
  .advent-detail {
    grid-template-columns: min(42%, 25rem) minmax(0, 1fr);
  }
}

.calendar, .calendar-housegroups { margin-top: 2rem; }
.calendar-toolbar:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.calendar-toolbar h2, .calendar-housegroups h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin: 0; }
.calendar-toolbar h2 { text-align: center; }
.calendar-events { display: grid; gap: .6rem; padding: 0; list-style: none; }
.calendar-events a { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: .35rem 1rem; align-items: center; padding: .8rem 1rem; background: #edf5fb; border-radius: .45rem; color: var(--navy); text-decoration: none; }
.calendar-events a:hover strong { text-decoration: underline; }
.calendar-housegroups p { margin-top: .65rem; }
@media (max-width: 44rem) { .calendar-events a { grid-template-columns: minmax(0, 1fr); } }

.about-page > .section + .section { padding-top: 0; }
.about-page > .section:not(:last-child) { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.about-page h1, .about-page h2 { margin-bottom: .75rem; }
.about-page h2 { font-size: clamp(1.45rem, 4vw, 2.5rem); }
.about-page p + p { margin-top: .7rem; }

@media (max-width: 45rem) {
  .home-welcome-copy { display: contents; }
  .home-welcome-grid #welcome-title { grid-row: 1; margin-bottom: 0; }
  .home-welcome-grid .home-welcome-photo { grid-row: 2; }
  .home-welcome-body { grid-row: 3; }
}

@media (max-width: 55rem) {
  .js .nav nav.is-open {
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .js .nav nav.is-open > * { flex: 0 0 auto; min-width: 0; }
  .js .nav nav.is-open .nav-links { min-width: 0; }
}
