/* Pillar Reformed Church */
:root {
  --slate: #365b6d;
  --slate-dark: #23404e;
  --navy: #1b3248;
  --cream: #f7f3ec;
  --sand: #ece4d6;
  --gold: #8a6220;
  --ink: #1f2a30;
  --muted: #55636b;
  --line: #ddd5c6;
  --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: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; font: inherit; font-size: .95rem; color: var(--navy); cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.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: .7rem .25rem; text-decoration: none; color: var(--navy); font-size: 1.02rem; border-bottom: 1px solid #f0ebe2; }
.site-nav a[aria-current="page"] { color: var(--slate); font-weight: 600; }
.site-nav .give a { border: 0; margin-top: .8rem; text-align: center; color: #fff; }
.site-nav .give a:hover, .site-nav .give a:focus-visible { color: #fff; }
@media (min-width: 1080px) {
  .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: .9rem; letter-spacing: .06em; text-transform: uppercase; }
  .site-nav a:hover { color: var(--slate); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--slate); }
  .site-nav .give { margin-left: .5rem; }
  .site-nav .give a { margin: 0; padding: .55rem 1.1rem; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; border: 2px solid var(--navy); line-height: 1.2; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--slate-dark); border-color: var(--slate-dark); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--cream); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: #6f4e19; border-color: #6f4e19; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.center .actions { justify-content: center; }

/* Hero */
.hero { position: relative; color: #fff; background: #1c1a17; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; padding: clamp(4.5rem, 14vw, 9rem) 0; text-align: center; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.1rem, 6.5vw, 3.8rem); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero h1 em { font-style: italic; }
.hero p { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem); max-width: 760px; margin-inline: auto; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .actions { justify-content: center; }

.page-hero { position: relative; background: var(--slate-dark); color: #fff; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .wrap { position: relative; padding: clamp(3rem, 9vw, 5.5rem) 0; text-align: center; }
.page-hero h1 { color: #fff; font-weight: 500; letter-spacing: .02em; margin-bottom: .3em; }
.page-hero p { font-family: var(--serif); font-size: 1.2rem; max-width: 720px; margin: 0 auto; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.cream { background: var(--cream); }
.section.sand { background: var(--sand); }
.section.slate { background: var(--slate); color: #fff; }
.section.slate h2, .section.slate h3 { color: #fff; }
.section.slate a:not(.btn) { color: #fff; }
.eyebrow { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.section.slate .eyebrow { color: #f0d9a8; }
.lead { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }

.times-bar { background: var(--slate); color: #fff; text-align: center; padding: 2.4rem 0; }
.times-bar h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: .2em; }
.times-bar p { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 0 0 1.2rem; }
.times-bar address { font-style: normal; margin-bottom: 1.2rem; opacity: .95; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid.three.collapse { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.cream .card, .sand .card { border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); width: 100%; }

.photo-strip img { width: 100%; height: auto; }

/* People */
.people { display: grid; gap: 2rem; }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: flex; flex-direction: column; gap: 1rem; }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.person .role { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--gold); font-weight: 700; margin: 0; }
.person h3 { margin: 0 0 .3em; font-size: 1.6rem; }
.center .person { align-items: center; text-align: center; }

/* Values list */
.values { counter-reset: v; list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.values li { counter-increment: v; position: relative; padding-left: 3.5rem; }
.values li::before { content: counter(v); position: absolute; left: 0; top: .1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--slate); color: #fff; font-family: var(--serif); font-size: 1.2rem; display: grid; place-items: center; }
.values h3 { margin-bottom: .3em; }
.values .tag { font-style: italic; font-family: var(--serif); font-size: 1.12rem; color: var(--navy); }

.expect { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .expect { grid-template-columns: 1fr 1fr; } }
.expect li { background: #fff; border-left: 4px solid var(--slate); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.expect strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-bottom: .2rem; }

blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
blockquote cite { display: block; font-size: .95rem; font-style: normal; color: var(--muted); margin-top: .3rem; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; cursor: pointer; padding: 0; }
.video button span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 54px; border-radius: 14px; background: rgba(200, 30, 30, .92); display: grid; place-items: center; }
.video button span::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video button:hover span { background: #c00; }
.sermon-list { display: grid; gap: 1.6rem; }
@media (min-width: 720px) { .sermon-list { grid-template-columns: 1fr 1fr; } }
.sermon-list h3 { font-size: 1.15rem; margin: .8rem 0 .2rem; }
.sermon-list p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Ministries */
.ministry { display: grid; gap: 1.5rem; align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.ministry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .ministry { grid-template-columns: 300px 1fr; gap: 2.5rem; } }
.ministry img { border-radius: var(--radius); width: 100%; max-width: 380px; }
.ministry .logo { background: #fff; padding: 1rem; border: 1px solid var(--line); }

/* Dates */
.dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.dates li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; text-align: center; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }

/* Forms */
.form { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--navy); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #b9b0a1; border-radius: var(--radius); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(54, 91, 109, .35); border-color: var(--slate); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form .row > div { margin-bottom: 0; }
@media (max-width: 599px) { .form .row > div + div { margin-top: 1rem; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.1rem; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .95rem; min-height: 40px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Article */
.article { font-size: 1.08rem; }
.article h2 { margin-top: 2.2em; }
.article h3 { margin-top: 1.8em; }
.article .meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--cream); padding: 1.2rem 1.4rem; border-radius: var(--radius); margin: 1.5rem 0 2rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.toc a { display: inline-block; padding: .2rem 0; }
.post-card { display: grid; gap: 1.2rem; align-items: center; text-decoration: none; color: inherit; }
@media (min-width: 700px) { .post-card { grid-template-columns: 280px 1fr; } }
.post-card img { border-radius: var(--radius); }
.post-card h2 { font-size: 1.6rem; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: #e7ecef; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .links li a { display: inline-block; padding: .3rem 0; }
.site-footer address { font-style: normal; }
.site-footer .social a { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; color: #c4ced4; padding-bottom: 1rem; }

/* Font options for the client to compare (HAP-4754): see /font-options, or add ?font=b|c|d|e to any page. */
html[data-font="b"], .font-sample[data-opt="b"] { --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --body-size: 1rem; }
html[data-font="c"], .font-sample[data-opt="c"] { --sans: "Gill Sans", "Gill Sans MT", Seravek, Calibri, "Trebuchet MS", sans-serif; --body-size: 1.05rem; }
html[data-font="d"], .font-sample[data-opt="d"] { --sans: Optima, Candara, "Noto Sans", "Segoe UI", sans-serif; --body-size: 1.02rem; }
html[data-font="e"], .font-sample[data-opt="e"] { --sans: var(--serif); --body-size: 1.08rem; }
html[data-font] body { font-size: var(--body-size); }
html[data-font="b"] body, .font-sample[data-opt="b"] .demo { color: #2b363c; }
html[data-font] .btn, html[data-font] .form label, html[data-font] .site-nav a[aria-current="page"],
.font-sample:not([data-opt="a"]) .demo .btn { font-weight: 500; }
html[data-font] .eyebrow, html[data-font] .person .role, .font-sample:not([data-opt="a"]) .demo .eyebrow { font-weight: 600; }
.font-sample { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 2rem; overflow: hidden; background: #fff; }
.font-sample > header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.font-sample > header h2 { margin: 0; font-size: 1.3rem; }
.font-sample > header p { margin: 0; font-size: .95rem; color: var(--muted); flex-basis: 100%; }
.font-sample .demo { padding: 1.5rem 1.2rem; font-family: var(--sans); font-size: var(--body-size, 1.0625rem); }
.font-sample .demo-hero { background: var(--slate-dark); color: #fff; text-align: center; padding: 2rem 1rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.font-sample .demo-hero h3 { color: #fff; font-weight: 500; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.font-sample .demo-hero p { font-family: var(--serif); font-size: 1.15rem; }
.font-sample .demo-hero .actions { justify-content: center; }
