/* =========================================================================
   Adult Life — "Around the Table"
   Warm and grown-up: ivory and charcoal, a serif voice (Fraunces), and the
   four ministries each in their own brand colour with their own wordmark.
   Resting state is the finished state.
   ========================================================================= */
main.table {
  --ivory: #F7F2EA; --ivory-2: #EFE7DA; --char: #1C1A17; --stone: #8A8378;
  --mens: #2E7D4F; --ladies: #F5B3C8; --hispana: #1C6F6B; --marrieds: #F2B33D;
  --serif: "Fraunces", Georgia, serif;
  --tint: var(--ivory-2); --on: #000;
  color: var(--char); background: var(--ivory);
}
.table h1, .table h2, .table h3 { font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 144; letter-spacing: -.02em; line-height: 1; text-transform: none; color: var(--char); }
.table h2 em, .table h1 em { font-style: italic; font-weight: 500; }
.table .eyebrow { font-weight: 700; letter-spacing: .2em; color: var(--stone); }
.table .h-xl { font-family: var(--serif); font-size: clamp(38px, 5vw, 80px) !important; line-height: 1; text-transform: none; font-weight: 600; }
.table .sec { padding: clamp(64px, 9vw, 130px) 0; }
.table .wrap { max-width: 1280px; }
.table .btn { border-radius: 999px; font-weight: 700; letter-spacing: .03em; text-transform: none; font-size: 15px; min-height: 52px; padding: 0 26px; }
.table .btn-ink { background: var(--char); color: #fff; } .table .btn-ink:hover { background: #000; }
.table .btn-ghost { border-color: var(--char); color: var(--char); }
.table .btn-white { background: #fff; color: var(--char); } .table .btn-white:hover { background: var(--ivory-2); }
.table p { line-height: 1.6; }

/* ---------- hero: the room fades in from black, place cards along the bottom ---------- */
.a-hero3 { position: relative; overflow: hidden; background: #000; color: #fff; min-height: clamp(600px, 92svh, 900px); display: grid; grid-template-rows: 1fr auto; padding: calc(var(--hdr) + 6vh) 0 clamp(24px, 4vh, 40px); }
.a-h3-bg { position: absolute; inset: 0; z-index: 0; }
.a-h3-bg img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.a-h3-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, #000 36%, rgba(0,0,0,.55) 52%, rgba(0,0,0,.05) 74%), linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 34%); }
.a-h3-in { position: relative; z-index: 1; align-self: center; }
.table .a-h3-h { margin: 14px 0 20px; font-size: clamp(44px, 5.2vw, 88px); line-height: 1; color: #fff; }
.table .a-h3-h em { color: #F5B3C8; white-space: nowrap; }
.table .a-h3-when { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); color: #fff; }
.table .a-h3-sub { margin: 0 0 28px; max-width: 44ch; font-size: 17px; color: rgba(255,255,255,.8); }
.table .a-btn-solid { background: #fff; color: var(--char); } .table .a-btn-solid:hover { background: var(--ivory-2); color: var(--char); }
.table .a-btn-red { background: var(--red); color: #fff; } .table .a-btn-red:hover { background: #fff; color: var(--char); }
.a-h3-places { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 6vh, 64px); }
.a-h3-places a { display: grid; place-items: center; height: 84px; border-radius: 18px; background: rgba(20,18,16,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); transition: box-shadow .25s, transform .3s var(--ease), background-color .25s; }
.a-h3-places img { height: 44px; width: auto; max-width: 80%; object-fit: contain; }
.a-h3-places a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--c), 0 14px 30px rgba(0,0,0,.4); background: rgba(20,18,16,.85); }
.a-h3-places a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) {
  .a-hero3 { min-height: 0; padding-top: calc(var(--hdr) + 46vw); }
  .a-h3-bg img { width: 100%; height: 62vw; object-position: 60% 30%; }
  .a-h3-bg::after { background: linear-gradient(180deg, rgba(0,0,0,.3) 0, rgba(0,0,0,.1) 22vw, rgba(0,0,0,.75) 46vw, #000 60vw, #000 100%); } /* fully black before the photo ends */
  .table .a-h3-h em { white-space: normal; }
  .a-h3-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .a-h3-places a { height: 68px; } .a-h3-places img { height: 32px; }
}
@media (max-width: 480px) { .table .a-hero3 .row-btns { display: grid; grid-template-columns: minmax(0, 1fr); } }

/* ---------- (retired) hero: the window opens ---------- */
.a-hero.st { height: 180vh; background: var(--ivory); }
.a-hero-pin { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ivory); display: grid; place-items: center; padding: calc(var(--hdr) + 2vh) 0 6vh; }
html:not([data-anim]) .a-hero.st { height: auto !important; }
html:not([data-anim]) .a-hero-pin { position: relative; height: auto; min-height: 100svh; }
.a-window { position: absolute; inset: 0; z-index: 0; clip-path: inset(calc(12vh - var(--hp, 0) * 12vh) calc(28vw - var(--hp, 0) * 28vw) calc(10vh - var(--hp, 0) * 10vh) round calc(36px - var(--hp, 0) * 36px)); }
.a-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,23,.15), rgba(28,26,23,calc(.45 + var(--hp, 0) * .3))); }
.a-window img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.08 - var(--hp, 0) * .08)); }
.a-hero-wrap { position: relative; z-index: 2; text-align: center; color: #fff; transform: translateY(calc(var(--hp, 0) * -6vh)); }
.a-logo { width: min(260px, 44vw); height: auto; margin: 0 auto 22px; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); opacity: calc(1 - var(--hp, 0) * 2.5); }
.a-title { margin: 0 0 16px; display: grid; gap: 10px; color: #fff; }
.a-title .a-small { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; }
.a-title .a-big { font-size: clamp(42px, 6.6vw, 104px); line-height: .98; max-width: 14ch; margin: 0 auto; }
.a-title .a-big em { color: var(--marrieds); }
.table .a-sub { font-weight: 600; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; opacity: .9; }
.table .a-when { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); margin: 0 0 24px; }
.a-hero .row-btns { justify-content: center; opacity: calc(1 - var(--hp, 0) * 3); }
.a-hero .btn-ink { background: #fff; color: var(--char); } .a-hero .btn-ghost { border-color: #fff; color: #fff; }
.a-hero .scroll { position: absolute; left: 50%; bottom: 4vh; translate: -50% 0; z-index: 4; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--char); opacity: calc(1 - var(--hp, 0) * 4); display: grid; justify-items: center; gap: 8px; }
.a-hero .scroll i { width: 1px; height: 36px; background: var(--char); }

/* ---------- place settings ---------- */
.a-places { background: var(--char); padding: 18px 0; }
.a-places .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pl { display: grid; place-items: center; min-height: 72px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.06); transition: background-color .3s, transform .3s; }
.pl:hover { transform: translateY(-3px); }
.pl img { height: 36px; width: auto; max-width: 100%; }
.pl-mens:hover { background: var(--mens); } .pl-ladies:hover { background: var(--ladies); } .pl-hispana:hover { background: var(--hispana); } .pl-marrieds:hover { background: var(--marrieds); }
.pl-mens img, .pl-hispana img { filter: brightness(0) invert(1); }

/* ---------- sunday nights ---------- */
.a-nights { background: var(--ivory); }
.a-ngrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.a-nights h2 { font-size: clamp(36px, 4.6vw, 72px); margin: 0 0 20px; max-width: 18ch; }
.a-nights h2 em { color: var(--mens); }
.a-nights p:not(.eyebrow) { font-size: clamp(17px, 1.3vw, 20px); max-width: 56ch; margin: 0; }
.a-sched { margin: 0; padding: clamp(22px, 2.4vw, 32px); background: #fff; border-radius: 24px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(28,26,23,.08); }
.a-sched div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ivory-2); }
.a-sched div:last-child { border-bottom: 0; padding-bottom: 0; }
.a-sched dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.a-sched dd { margin: 0; font-weight: 600; font-size: 15px; }

/* ---------- the four chapters ---------- */
.a-chap { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 150px) 0; }
.c-mens { background: var(--mens); color: #fff; } .c-ladies { background: var(--ladies); color: var(--char); } .c-hispana { background: var(--hispana); color: #fff; } .c-marrieds { background: var(--marrieds); color: var(--char); }
.a-chap .eyebrow { color: inherit; opacity: .8; }
.a-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.a-chap:nth-of-type(even) .a-text { order: 2; }
.a-n { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; opacity: .8; }
.a-n b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; letter-spacing: 0; line-height: 1; }
.a-wm { display: block; width: min(420px, 80%); height: auto; margin: 0 0 22px; }
.c-mens .a-wm, .c-hispana .a-wm { filter: brightness(0) invert(1); }
.c-ladies .a-wm, .c-marrieds .a-wm { filter: brightness(0); }
.a-text p:not(.eyebrow):not(.a-n) { font-size: clamp(16px, 1.2vw, 18px); margin: 0 0 .9em; max-width: 56ch; }
.a-text .row-btns { margin-top: 20px; }
.a-btn { background: #fff; color: var(--char); } .a-btn:hover { background: var(--char); color: #fff; }
.a-media { display: grid; gap: 18px; }
.a-video { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.a-video img { width: 100%; height: 100%; object-fit: cover; display: block; }

.a-lead { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; background: rgba(255,255,255,.92); color: var(--char); border-radius: 18px; }
.a-lead img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.a-lead b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.a-lead span { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.a-lk { margin: 0 0 4px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.a-leads { display: grid; gap: 10px; }
.a-leads .a-lk { margin: 0 0 2px 4px; color: inherit; opacity: .8; }

/* ---------- around the table ---------- */
.a-table { background: var(--ivory-2); }
.a-table h2 em { color: var(--marrieds); }
.a-gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.a-gal figure { margin: 0; overflow: hidden; border-radius: 16px; transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease-std, ease); background: #fff; padding: 8px 8px 10px; box-shadow: 0 16px 36px rgba(28,26,23,.12); }
.a-gal figure:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.a-gal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 10px; }
.a-explore { background: var(--ivory); }
.a-explore h2 em { color: var(--mens); }

/* ---------- next ---------- */
.a-next { background: var(--char); color: #fff; text-align: center; padding: clamp(90px, 13vw, 180px) 0; }
.a-next h2, .a-next .eyebrow { color: #fff; }
.a-next h2 { font-size: clamp(44px, 6.8vw, 110px); margin: 0 0 26px; }
.a-next h2 em { color: var(--marrieds); }
.a-next .row-btns { justify-content: center; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .a-hero.st { height: 160vh; }
  .a-window { clip-path: inset(calc(10vh - var(--hp, 0) * 10vh) calc(6vw - var(--hp, 0) * 6vw) calc(8vh - var(--hp, 0) * 8vh) round calc(24px - var(--hp, 0) * 24px)); }
  .a-title .a-big { font-size: clamp(36px, 11vw, 56px); }
  .a-places .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl img { height: 26px; }
  .a-ngrid, .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-chap:nth-of-type(even) .a-text { order: 0; }
  .a-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
/* phone: stronger scrim behind the hero title, and the ministries line fits inside the window */
@media (max-width: 820px) {
  .a-window::after { background: linear-gradient(180deg, rgba(28,26,23,.55), rgba(28,26,23,calc(.68 + var(--hp, 0) * .2))); }
  .table .a-sub { font-size: 11px; letter-spacing: .08em; padding: 0 10vw; }
  .a-title .a-big { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
}
@media (max-width: 820px) {
  .a-hero-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 120%; translate: -50% -50%; background: radial-gradient(ellipse at center, rgba(28,26,23,.6) 0%, rgba(28,26,23,.35) 45%, transparent 72%); z-index: -1; pointer-events: none; }
}
