/* Quiet Stoop Community Church — v3 Custom, rebuilt from scratch. Morning light: cream, evergreen, terracotta.
   EB Garamond + Outfit. Motion only under prefers-reduced-motion: no-preference. */
:root {
  --cream: #fbf7ef; --paper: #f3ecdd; --green: #20352c; --green-2: #2d4a3d; --ink: #1d2620; --ink-2: #4f5a52;
  --terra: #a9482a; --terra-d: #8b3a21; --gold: #c99a3c; --sky: #dbe8ef;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif; --sans: Outfit, "Segoe UI", system-ui, sans-serif;
}
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.05rem/1.65 var(--sans); }
a { color: var(--terra-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
h1 em, h2 em { font-style: italic; color: var(--terra); }
.c3-wrap { width: min(1180px, 100% - 2.4rem); margin-inline: auto; }
.c3-kick { font: 600 .76rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--green-2); margin: 0 0 .9rem; }

/* header */
.h3-head { position: sticky; top: var(--banner-h, 3.8rem); z-index: 40; display: flex; align-items: center; gap: .6rem; padding: .3rem 1rem; background: rgba(251, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #e6dcc6; }
.h3-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--green); min-height: 44px; justify-content: center; line-height: 1; white-space: nowrap; }
.h3-logo span { font: 600 1.45rem var(--serif); }
.h3-logo small { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin-top: .2rem; }
.h3-nav { display: none; }
.h3-nav a, .h3-burger nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .8rem .75rem; display: inline-flex; min-height: 44px; align-items: center; }
.h3-nav a:hover { color: var(--terra); }
.h3-pill { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.h3-burger { position: relative; }
.h3-burger summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .95rem; border: 1px solid #cfc3a8; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.h3-burger summary::-webkit-details-marker { display: none; }
.h3-burger nav { position: absolute; right: 0; top: calc(100% + .5rem); background: #fff; border: 1px solid #e6dcc6; border-radius: 16px; padding: .5rem; display: grid; min-width: 12rem; box-shadow: 0 20px 50px rgba(32, 53, 44, .2); }
@media (min-width: 960px) { .h3-nav { display: flex; margin-left: auto; } .h3-pill { margin-left: .6rem; } .h3-burger { display: none; } .h3-head { padding: .35rem 2rem; } }
@media (max-width: 400px) { .h3-pill { padding: 0 .8rem; font-size: .82rem; } .h3-logo span { font-size: 1.25rem; } }

/* hero */
.c3-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.c3-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(70rem 30rem at 50% -10%, #fff7da 0, rgba(255, 247, 218, 0) 60%), linear-gradient(180deg, #e7f0f3 0%, #f6f1e3 55%, var(--cream) 100%); }
.c3-rays { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; opacity: .85; }
.c3-rays .rays { transform-origin: 600px -40px; }
.c3-hero-head { width: min(900px, 100% - 2.4rem); margin: 0 auto; }
.c3-hero .c3-kick { color: var(--green-2); }
.c3-hero h1 { font-size: clamp(3.2rem, 11vw, 7rem); line-height: .92; letter-spacing: -.025em; color: var(--green); }
.c3-hero h1 em { display: block; }
.c3-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; margin: 1rem auto 0; }
.c3-arch-wrap { position: relative; width: min(1040px, 100% - 2.4rem); margin: 2.6rem auto 0; }
.c3-arch { border-radius: 999px 999px 28px 28px / 46% 46% 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 50px 90px -50px rgba(32, 53, 44, .7); outline: 1px solid rgba(201, 154, 60, .6); outline-offset: 10px; }
.c3-arch img { width: 100%; height: 100%; object-fit: cover; }
.c3-next { position: relative; margin: -4rem auto 0; width: min(22rem, 92%); background: #fff; border-radius: 22px; padding: 1.3rem 1.4rem 1.4rem; text-align: left; box-shadow: 0 30px 60px -30px rgba(32, 53, 44, .55); border: 1px solid #ece2cc; }
.c3-next p { margin: 0; }
.c3-next-k { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.c3-next-t { font: 500 2rem/1.1 var(--serif); color: var(--green); margin: .2rem 0 !important; }
.c3-next-c { color: var(--ink-2); font-size: .98rem; }
.c3-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.4rem; margin-top: 1rem; border-radius: 999px; background: var(--terra); color: #fff; font-weight: 600; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.c3-btn:hover { background: var(--terra-d); transform: translateY(-2px); color: #fff; }
@media (min-width: 760px) {
  .c3-arch { aspect-ratio: 16 / 9; border-radius: 520px 520px 28px 28px / 300px 300px 28px 28px; }
  .c3-next { position: absolute; right: -1rem; bottom: -2.4rem; margin: 0; }
}

/* sunday timeline */
.c3-sunday { padding: clamp(5rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem); }
.c3-sunday-in { display: grid; gap: 2.6rem; }
.c3-sun-photo { margin: 0; }
.c3-sun-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(32, 53, 44, .6); }
.c3-sun-photo figcaption { font: italic 1.05rem var(--serif); color: var(--ink-2); margin-top: .7rem; }
.c3-time { --p: 1; list-style: none; margin: 1.8rem 0 0; padding: 0 0 0 1.6rem; position: relative; }
.c3-time::before, .c3-time::after { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: .4rem; width: 2px; background: #e3d8c0; }
.c3-time::after { background: linear-gradient(var(--gold), var(--terra)); bottom: auto; height: calc((100% - .8rem) * var(--p)); }
.c3-time li { position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: .9rem 0 1.1rem; border-bottom: 1px solid #ece2cc; }
.c3-time li::before { content: ""; position: absolute; left: -1.6rem; top: 1.3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 3px solid var(--terra); z-index: 1; }
.c3-time time { font: 500 1.6rem/1.1 var(--serif); color: var(--terra); }
.c3-time h3 { font-size: 1.6rem; color: var(--green); margin-bottom: .2rem; }
.c3-time p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .c3-sunday-in { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; align-items: start; } .c3-sun-photo { position: sticky; top: 9rem; } }

/* plan a visit */
.c3-visit { background: var(--green); color: #eef3ee; padding: clamp(4.5rem, 10vw, 7rem) 0; position: relative; overflow: hidden; }
.c3-visit::before { content: ""; position: absolute; width: 50rem; height: 50rem; right: -20rem; top: -25rem; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 60, .25), transparent 60%); }
.c3-visit h2 { color: #fff; } .c3-visit h2 em { color: #f0c77e; }
.c3-visit .c3-kick { color: #f0c77e; }
.c3-visit-head { max-width: 44rem; position: relative; }
.c3-visit-head > p:not(.c3-kick) { color: #cfdcd2; font-size: 1.08rem; }
.c3-chips { display: none; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 .8rem; position: relative; }
.plan-on .c3-chips { display: flex; }
.c3-chips button, .c3-filter button { min-height: 48px; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 500 .98rem var(--sans); cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.c3-chips button:hover { transform: translateY(-2px); border-color: #f0c77e; }
.c3-chips button[aria-pressed="true"] { background: #f0c77e; border-color: #f0c77e; color: var(--green); }
.c3-chips button[aria-pressed="true"]::before { content: "✓ "; }
.c3-count { display: none; color: #cfdcd2; font-size: .92rem; margin: 0 0 1.2rem; position: relative; }
.plan-on .c3-count { display: block; }
.c3-tips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.plan-on .c3-tips { margin-top: 0; }
.c3-tips li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 1.3rem 1.3rem 1.2rem; }
.c3-tips li[hidden] { display: none; }
.c3-tips h3 { font-size: 1.55rem; color: #fff; }
.c3-tips p { margin: 0; color: #d8e3da; }
@media (min-width: 700px) { .c3-tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .c3-tips { grid-template-columns: repeat(4, 1fr); } }

/* events */
.c3-events { padding: clamp(4.5rem, 10vw, 7rem) 0; background: var(--paper); }
.c3-ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.c3-filter { display: none; flex-wrap: wrap; gap: .5rem; }
.js .c3-filter { display: flex; }
.c3-filter button { border-color: #cdbf9f; color: var(--green); }
.c3-filter button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.c3-ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.c3-ev-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.1rem; align-items: center; background: #fff; border-radius: 20px; padding: 1.1rem; border: 1px solid #e6dcc6; transition: transform .3s ease, box-shadow .3s ease; }
.c3-ev-list li:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(32, 53, 44, .5); }
.c3-ev-list li[hidden] { display: none; }
.c3-ev-list .d { display: grid; place-items: center; text-align: center; aspect-ratio: 1; border-radius: 16px; background: var(--cream); border: 1px solid #e6dcc6; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); line-height: 1.1; padding: .4rem; }
.c3-ev-list .d b { font: 500 2.2rem/1 var(--serif); color: var(--terra); letter-spacing: 0; }
.c3-ev-list h3 { font-size: 1.6rem; color: var(--green); margin-bottom: .2rem; }
.c3-ev-list p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.c3-feature { position: relative; overflow: hidden; color: #fff; background: #1b1410 !important; border: 0 !important; min-height: 15rem; align-items: end !important; }
.c3-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.c3-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(20, 14, 10, .92)); }
.c3-feature > * { position: relative; z-index: 1; }
.c3-feature .d { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(4px); }
.c3-feature .d b { color: #f6cf86; }
.c3-feature h3 { color: #fff; } .c3-feature p { color: #f1e6d6; }
@media (min-width: 860px) {
  .c3-ev-list { grid-template-columns: repeat(3, 1fr); }
  .c3-ev-list li { grid-template-columns: 1fr; align-items: start; }
  .c3-ev-list .d { width: 5rem; }
  .c3-feature { grid-column: span 3; grid-template-columns: 6rem 1fr !important; min-height: 20rem; align-items: end !important; }
}

/* groups bento */
.c3-groups { padding: clamp(4.5rem, 10vw, 7rem) 0; }
.c3-bento { display: grid; gap: 1rem; margin-top: 2rem; }
.c3-bento article { background: #fff; border: 1px solid #e6dcc6; border-radius: 22px; padding: 1.5rem; transition: transform .3s ease; }
.c3-bento article:hover { transform: translateY(-3px); }
.c3-bento h3 { font-size: 1.8rem; color: var(--green); }
.c3-bento p { margin: 0; color: var(--ink-2); }
.c3-bento .b-photo { padding: 0; overflow: hidden; position: relative; min-height: 22rem; display: flex; align-items: end; color: #fff; border: 0; }
.c3-bento .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c3-bento .b-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(20, 30, 24, .9)); }
.c3-bento .b-photo div { position: relative; z-index: 1; padding: 1.5rem; }
.c3-bento .b-photo h3 { color: #fff; } .c3-bento .b-photo p { color: #e6efe8; }
.c3-bento .b-wide { background: linear-gradient(135deg, #fff6e2, #f5e2c0); border-color: #ecd6aa; }
.c3-bento .b-wide h3 { color: var(--terra-d); }
@media (min-width: 760px) { .c3-bento { grid-template-columns: repeat(2, 1fr); } .c3-bento .b-photo { grid-row: span 2; } .c3-bento .b-wide { grid-column: span 2; } }
@media (min-width: 1040px) { .c3-bento { grid-template-columns: 1.3fr 1fr 1fr; } .c3-bento .b-wide { grid-column: span 2; } }

/* find us */
.c3-find { padding: clamp(4.5rem, 10vw, 7rem) 0; background: linear-gradient(180deg, var(--cream), var(--sky)); }
.c3-find-in { display: grid; gap: 2rem; align-items: center; }
.c3-map { border-radius: 26px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 40px 80px -40px rgba(32, 53, 44, .6); }
.c3-map svg { width: 100%; height: auto; display: block; }
.c3-find h2 { color: var(--green); }
.c3-find-copy > p:not(.c3-kick) { color: var(--ink-2); }
.c3-office { margin: 1.2rem 0 0; }
.c3-office div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #d8ccb0; }
.c3-office dt { color: var(--ink-2); } .c3-office dd { margin: 0; font-weight: 600; }
@media (min-width: 900px) { .c3-find-in { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; } }

.c3-foot { background: var(--green); color: #d8e3da; text-align: center; padding: 2.4rem 1rem 2.8rem; font-size: .95rem; }
.c3-foot p { margin: .3rem 0; }
.c3-foot-logo { font: 500 1.7rem var(--serif); color: #fff; }
.c3-foot a { color: #f0c77e; display: inline-block; padding: .7rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .c3-rays .rays { animation: rays 16s ease-in-out infinite alternate; }
  @keyframes rays { from { transform: rotate(-3deg); opacity: .7; } to { transform: rotate(3deg); opacity: 1; } }
  .c3-rays .bird { animation: fly 22s linear infinite; }
  @keyframes fly { from { transform: translate(-140px, 30px); } 50% { transform: translate(60px, -10px); } to { transform: translate(260px, 20px); } }
  .c3-arch img { animation: drift 20s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.03) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
  html.js .c3-hero-head > * { animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; }
  html.js .c3-hero-head > :nth-child(2) { animation-delay: .12s; } html.js .c3-hero-head > :nth-child(3) { animation-delay: .25s; }
  html.js .c3-arch { animation: archIn 1.6s cubic-bezier(.2, .7, .1, 1) .2s both; }
  html.js .c3-next { animation: rise 1s cubic-bezier(.2, .7, .1, 1) .8s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes archIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
  .c3-tips li { animation: tipIn .5s ease both; }
  .c3-ev-list li:not([hidden]) { animation: tipIn .5s ease both; }
  @keyframes tipIn { from { opacity: 0; transform: translateY(10px); } }
  .map-pulse { transform-box: fill-box; transform-origin: center; animation: mpulse 2.6s ease-out infinite; }
  @keyframes mpulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
}
/* gold dust and arch halo */
.c3-arch-wrap::before { content: ""; position: absolute; inset: -2.2rem -1.4rem auto; height: 70%; border-radius: 999px 999px 0 0 / 60% 60% 0 0; border: 1px solid rgba(201, 154, 60, .35); border-bottom: 0; pointer-events: none; }
.c3-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, rgba(201, 154, 60, .7) 0 1.5px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, .9) 0 1px, transparent 1.5px); background-size: 140px 160px, 90px 110px; background-position: 0 0, 40px 60px; opacity: .5; mask-image: linear-gradient(180deg, #000, transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .c3-hero::after { animation: dust 40s linear infinite; } @keyframes dust { to { background-position: 0 -320px, 40px -160px; } } }
