/* Rochester Reformed Presbyterian Church */
:root {
  --wine: #8c263c;
  --wine-dark: #5c1727;
  --wine-deep: #3d0f1a;
  --gold: #f0c75e;
  --cream: #faf6f0;
  --sand: #f1e9df;
  --ink: #2b2427;
  --muted: #5f5357;
  --line: #e4d9cf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, iframe { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--wine-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin: 0 0 .7rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--wine); background: var(--wine); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--wine-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--wine-deep); border-color: #fff; }
.btn-line { background: transparent; color: var(--wine); }
.btn-line:hover { background: var(--wine); color: #fff; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* Header */
.notice { background: var(--wine-deep); color: #f6ece6; font-size: .95rem; text-align: center; padding: .55rem 0; }
.notice a { color: var(--gold); font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; padding: .5rem 0; }
.brand img { height: 44px; width: auto; }
.brand span { font: 500 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--wine-dark); font: 600 .95rem var(--sans); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(61,15,26,.08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav a { display: block; padding: .75rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--wine); font-weight: 700; }
.site-nav .nav-cta a { margin-top: 1rem; border: 0; text-align: center; background: var(--wine); color: #fff; border-radius: 999px; }
@media (min-width: 1200px) {
  .brand img { height: 50px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .6rem; font-size: .95rem; border-radius: 6px; }
  .site-nav a:hover { color: var(--wine); background: var(--sand); }
  .site-nav .nav-cta a { margin: 0 0 0 .5rem; padding: .55rem 1.1rem; }
  .site-nav .nav-cta a:hover { background: var(--wine-dark); color: #fff; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--wine-deep); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40,8,16,.92) 0%, rgba(61,15,26,.78) 48%, rgba(61,15,26,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 12vw, 8rem) 0; }
.hero h1 { color: #fff; max-width: 17em; }
.hero .eyebrow { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; max-width: 34em; color: #f3e8e3; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.page-hero { position: relative; color: #fff; background: var(--wine-deep); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40,8,16,.88), rgba(61,15,26,.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(3.2rem, 9vw, 5.5rem) 0 clamp(2.2rem, 6vw, 3.5rem); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .7rem 0 0; color: #f3e8e3; max-width: 40em; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--gold); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.alt { background: #fff; }
.section.sand { background: var(--sand); }
.section-head { max-width: 700px; margin-bottom: 2.2rem; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section.alt .card { background: var(--cream); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }
.split img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

.verse { background: var(--wine); color: #fff; text-align: center; padding: clamp(3rem, 8vw, 5rem) 0; position: relative; overflow: hidden; }
.verse.photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verse.photo::after { content: ""; position: absolute; inset: 0; background: rgba(61,15,26,.84); }
.verse blockquote { position: relative; z-index: 1; margin: 0 auto; max-width: 820px; font: italic 400 clamp(1.3rem, 3vw, 1.8rem)/1.5 var(--serif); }
.verse cite { display: block; margin-top: 1rem; font: 600 .85rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.verse .btn { position: relative; z-index: 1; margin-top: 1.8rem; }

/* Content pages */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.subnav a:hover { border-color: var(--wine); }
.prose h2 { margin-top: 2.6rem; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose section { scroll-margin-top: 100px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: "\271A"; position: absolute; left: 0; top: .05em; color: var(--wine); font-size: .9rem; }
.pull { border-left: 4px solid var(--gold); background: #fff; padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; font: italic 1.15rem/1.55 var(--serif); margin: 2rem 0; }
.pull cite { display: block; font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); font-style: normal; margin-top: .6rem; }
.links-list { list-style: none; padding: 0 !important; display: grid; gap: .8rem; }
.links-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1.1rem; margin: 0; }

/* Leaders */
.leader { display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.leader:first-of-type { border-top: 0; padding-top: 0; }
.leader img { width: 100%; max-width: 280px; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; border-radius: var(--radius); }
.leader .role { font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin: -.2rem 0 .9rem; }
@media (min-width: 760px) { .leader { grid-template-columns: 240px 1fr; gap: 2.5rem; } }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }

/* Bulletins */
.bulletins { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.bulletins a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.bulletins a:hover { border-color: var(--wine); color: var(--wine); }
.bulletins a span { color: var(--wine); font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* Embeds */
.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed iframe { width: 100%; border: 0; }
.cal-month { display: none; }
@media (min-width: 760px) { .cal-month { display: block; } .cal-agenda { display: none; } }

/* Directions */
.dir { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.dir ol { margin: 0; padding-left: 1.2rem; }
.dir li { margin-bottom: .5rem; }

/* Form */
.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.2rem); }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .two { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1px solid #cdbfb3; border-radius: 8px; background: var(--cream); min-height: 46px; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(140,38,60,.25); border-color: var(--wine); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; cursor: pointer; }
.form .opt { font-weight: 400; color: var(--muted); }

/* Footer */
.site-footer { background: var(--wine-deep); color: #eadcd6; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-logo { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer h2 { font: 600 .85rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.times dt { font-weight: 600; color: #fff; }
.times dd { margin: 0 0 .7rem; }
.times { margin: 0; }
.foot-links a { text-decoration: none; display: inline-block; padding: .1rem 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; color: #cdb9b2; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer > .hp-badge, .site-footer .hp-badge { margin-top: 1.25rem; }

/* 404 */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
