/* Pottsville Service Kiosk — shared styling for landing & content pages.
   Royal purple & gold theme drawn from the Pottsville pelican crest. */
:root {
  --plum-0: #15082a;
  --plum-1: #21103c;
  --plum-2: #321a55;
  --plum-3: #45266f;
  --grape:  #6a3fa0;
  --gold-0: #ffeeb6;
  --gold-1: #ffd24a;
  --gold-2: #f0b429;
  --gold-3: #c2891c;
  --ink: #f3ecff;
  --muted: #c3b1de;
  --line: rgba(255, 210, 74, 0.22);
  --card: rgba(69, 38, 111, 0.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--plum-3) 0%, var(--plum-1) 48%, var(--plum-0) 100%),
    var(--plum-0);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 26px),
    radial-gradient(circle at 80% 110%, rgba(255,210,74,0.06), transparent 55%);
  mix-blend-mode: screen;
}

a { color: inherit; }
.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2.6rem) clamp(2rem, 5vw, 4rem); }

/* ---------------- Top bar ---------------- */
.topbar { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem);
  padding-bottom: clamp(1rem, 2.4vh, 1.8rem); border-bottom: 2px solid var(--gold-3);
  position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent); opacity: 0.5; }
.topbar .crest { display: flex; align-items: center; flex: 0 0 auto; }
.topbar .crest img { height: clamp(56px, 8vw, 96px); width: auto; max-width: 30vw;
  object-fit: contain; display: block;
  filter: drop-shadow(0 3px 9px rgba(0,0,0,0.5)); }
.topbar .tt { flex: 1 1 auto; min-width: 0; }
.topbar h1 {
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.03em; line-height: 1.05;
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  background: linear-gradient(180deg, var(--gold-0), var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar .tt .sub { font-family: 'Marcellus', serif; color: var(--muted);
  letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.35rem;
  font-size: clamp(0.6rem, 1.1vw, 0.95rem); }

.back-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none; color: var(--muted);
  font-family: 'Marcellus', serif; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: clamp(0.62rem, 1.05vw, 0.88rem);
  border: 1.5px solid var(--gold-3); border-radius: 999px;
  padding: 0.6em 1.2em; transition: background 0.25s, color 0.25s;
}
.back-btn:hover { background: rgba(255,210,74,0.14); color: var(--gold-0); }

/* ---------------- Section heading ---------------- */
.section-head { text-align: center; margin: clamp(1.6rem, 4vh, 3rem) 0 clamp(1rem, 2.4vh, 1.8rem); }
.section-head h2 {
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.05em;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  background: linear-gradient(180deg, var(--gold-0), var(--gold-2) 65%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head .lead { color: var(--muted); font-family: 'Marcellus', serif;
  letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.5rem;
  font-size: clamp(0.62rem, 1.1vw, 0.92rem); }

/* ---------------- Menu cards (hub pages) ---------------- */
.cards { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(1.4rem, 3vh, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(165deg, rgba(69,38,111,0.55), rgba(33,16,60,0.62));
  border: 1.5px solid var(--gold-3); border-radius: 18px;
  padding: clamp(1.6rem, 4vh, 2.8rem) clamp(1.2rem, 3vw, 2rem);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.3), 0 8px 26px rgba(0,0,0,0.28);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(255,210,74,0.18), transparent 60%); opacity: 0.6; }
.card:hover, .card:active { transform: translateY(-4px); border-color: var(--gold-1);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.3), 0 14px 34px rgba(0,0,0,0.4); }
.card .ico { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.5rem; position: relative;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45)); }
.card h3 { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.04em; position: relative;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem); color: var(--gold-0); line-height: 1.15; }
.card p { color: var(--muted); margin-top: 0.5rem; position: relative;
  font-size: clamp(0.78rem, 1.3vw, 1rem); line-height: 1.4; }

/* ---------------- Info panels ---------------- */
.panel {
  background: linear-gradient(165deg, rgba(69,38,111,0.42), rgba(33,16,60,0.5));
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.28);
}
.panel h3 {
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-1); font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: clamp(0.6rem, 1.6vh, 1rem);
  display: flex; align-items: center; gap: 0.5em;
}
.grid2 { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.kv { display: flex; flex-direction: column; gap: 0.75rem; }
.kv .row { display: flex; gap: 0.8em; align-items: baseline; padding-bottom: 0.7rem;
  border-bottom: 1px dotted var(--line); }
.kv .row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .k { flex: 0 0 7.5em; font-family: 'Marcellus', serif; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold-2); font-size: clamp(0.6rem, 1vw, 0.8rem); }
.kv .v { flex: 1 1 auto; color: var(--ink); font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 1.45; }
.kv .v a { color: var(--gold-0); text-decoration: none; }

.tick { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.tick li { display: flex; gap: 0.7em; align-items: flex-start;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 1.4; }
.tick li::before { content: "✓"; flex: 0 0 auto; color: var(--plum-0);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8em; font-weight: 700; margin-top: 0.1em; }

/* highlight banner */
.banner {
  margin-top: clamp(1.4rem, 3vh, 2.4rem); text-align: center;
  border: 1.5px solid var(--gold-2); border-radius: 16px;
  padding: clamp(1.2rem, 3vh, 2rem);
  background: linear-gradient(165deg, rgba(106,63,160,0.4), rgba(33,16,60,0.55));
  position: relative; overflow: hidden;
}
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(255,210,74,0.2), transparent 60%); }
.banner .eyebrow { font-family: 'Marcellus', serif; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-2); font-size: clamp(0.6rem, 1.1vw, 0.92rem); position: relative; }
.banner h3 { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 3vw, 2.2rem); color: var(--gold-0); margin: 0.4rem 0; position: relative; }
.banner p { color: var(--ink); font-size: clamp(0.9rem, 1.5vw, 1.15rem); position: relative; }

/* gallery */
.gallery { display: grid; gap: clamp(0.6rem, 1.6vw, 1rem); margin-top: clamp(1.2rem, 3vh, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; border: 1.5px solid var(--line); display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3); }

/* calendar embed */
.cal-frame {
  border: 1.5px solid var(--gold-3); border-radius: 16px; overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.28), 0 10px 30px rgba(0,0,0,0.32);
  height: clamp(440px, 64vh, 760px);
}
.cal-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.cal-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.06em;
  color: var(--plum-0);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-radius: 999px; padding: 0.8em 1.8em;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  box-shadow: 0 8px 22px rgba(255,210,74,0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cal-btn:hover, .cal-btn:active { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,210,74,0.32); }

/* ---------------- Members' stories ---------------- */
.story-cards { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: clamp(1.6rem, 4vh, 2.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.story-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: linear-gradient(165deg, rgba(69,38,111,0.55), rgba(33,16,60,0.62));
  border: 1.5px solid var(--gold-3); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.3), 0 8px 26px rgba(0,0,0,0.28);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.story-card:hover, .story-card:active { transform: translateY(-5px); border-color: var(--gold-1);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.3), 0 16px 36px rgba(0,0,0,0.42); }
.story-card .photo { width: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: center 18%; display: block; border-bottom: 2px solid var(--gold-3);
  filter: saturate(0.92); }
.story-card .body { padding: clamp(1.1rem, 2.6vw, 1.6rem); text-align: center; }
.story-card h3 { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.03em;
  color: var(--gold-0); font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.story-card .years { font-family: 'Marcellus', serif; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-2); margin-top: 0.35rem;
  font-size: clamp(0.62rem, 1.05vw, 0.85rem); }
.story-card p { color: var(--muted); margin-top: 0.7rem; line-height: 1.5;
  font-size: clamp(0.82rem, 1.3vw, 1rem); }
.story-card .cta { display: inline-block; margin-top: 0.9rem; color: var(--gold-1);
  font-family: 'Marcellus', serif; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: clamp(0.62rem, 1.05vw, 0.82rem); }

/* featured stories link (on the RSL page) */
.stories-feature {
  display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 1.8rem);
  text-decoration: none; color: var(--ink);
  margin: clamp(1.2rem, 3vh, 2rem) 0;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  border: 1.5px solid var(--gold-2); border-radius: 16px;
  background: linear-gradient(165deg, rgba(106,63,160,0.42), rgba(33,16,60,0.6));
  box-shadow: inset 0 0 26px rgba(0,0,0,0.3), 0 8px 26px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stories-feature:hover, .stories-feature:active { transform: translateY(-3px);
  border-color: var(--gold-1); box-shadow: inset 0 0 26px rgba(0,0,0,0.3), 0 14px 32px rgba(0,0,0,0.42); }
.sf-photos { flex: 0 0 auto; display: flex; }
.sf-photos img { width: clamp(54px, 8vw, 78px); height: clamp(64px, 9.6vw, 94px);
  object-fit: cover; object-position: center 18%; border-radius: 10px;
  border: 1.5px solid var(--gold-3); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.sf-photos img:nth-child(2) { margin-left: -18px; }
.sf-text { flex: 1 1 auto; min-width: 0; }
.sf-eyebrow { display: block; font-family: 'Marcellus', serif; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-2); font-size: clamp(0.58rem, 1vw, 0.82rem); }
.sf-title { display: block; font-family: 'Cinzel', serif; font-weight: 600; color: var(--gold-0);
  letter-spacing: 0.02em; line-height: 1.15; margin: 0.2rem 0 0.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem); }
.sf-sub { display: block; color: var(--muted); font-size: clamp(0.78rem, 1.3vw, 1rem); line-height: 1.4; }
.sf-go { flex: 0 0 auto; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.05em;
  color: var(--plum-0); background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-radius: 999px; padding: 0.6em 1.3em; font-size: clamp(0.78rem, 1.4vw, 1.05rem); white-space: nowrap; }
@media (max-width: 560px) {
  .stories-feature { flex-wrap: wrap; }
  .sf-go { margin-left: auto; }
}

/* article / long-form reading */
.article { max-width: 840px; margin: 0 auto; }
.story-hero { text-align: center; margin: clamp(1.4rem, 3.5vh, 2.6rem) 0 clamp(1.2rem, 3vh, 2rem); }
.story-hero .portrait { max-height: clamp(240px, 42vh, 400px); width: auto; max-width: 100%;
  border-radius: 14px; border: 2px solid var(--gold-3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); display: inline-block; }
.story-hero h2 { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 4vw, 2.8rem); margin-top: clamp(0.8rem, 2vh, 1.2rem);
  background: linear-gradient(180deg, var(--gold-0), var(--gold-2) 65%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-hero .years { font-family: 'Marcellus', serif; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.5rem;
  font-size: clamp(0.66rem, 1.2vw, 1rem); }

.prose { color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.75; }
.prose p { margin-bottom: 1.05em; }
.prose h3.sec { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.03em;
  color: var(--gold-1); font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  margin: clamp(2rem, 4.5vh, 3.2rem) 0 0.3rem; padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.5em; }
.prose h3.sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose .kicker { font-family: 'Marcellus', serif; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2); font-size: clamp(0.62rem, 1.05vw, 0.85rem); margin-bottom: 1.2em; }
.prose figure { margin: clamp(1.2rem, 3vh, 2rem) 0; text-align: center; }
.prose figure img { max-width: min(100%, 420px); max-height: 46vh; width: auto; border-radius: 12px;
  border: 1.5px solid var(--gold-3); box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  filter: saturate(0.92); }
.prose figure.left, .prose figure.right { max-width: 300px; margin: 0.4rem 0 1rem; }
@media (min-width: 720px) {
  .prose figure.right { float: right; margin: 0.4rem 0 1rem 1.8rem; }
  .prose figure.left  { float: left;  margin: 0.4rem 1.8rem 1rem 0; }
}
.prose figcaption { font-family: 'Marcellus', serif; color: var(--muted); letter-spacing: 0.08em;
  font-size: clamp(0.68rem, 1.1vw, 0.85rem); margin-top: 0.5rem; }
.prose .pullquote { margin: clamp(1.4rem, 3.5vh, 2.4rem) auto; max-width: 90%;
  border-left: 3px solid var(--gold-2); padding: 0.4rem 0 0.4rem 1.4rem;
  font-style: italic; color: var(--gold-0); font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5; clear: both; }
.prose .end { clear: both; text-align: center; color: var(--gold-2); letter-spacing: 0.4em;
  margin: clamp(1.6rem, 4vh, 2.6rem) 0 0; }

/* service record table */
.svc { width: 100%; border-collapse: collapse; margin: 1rem 0 0.5rem; clear: both;
  font-size: clamp(0.8rem, 1.35vw, 1.02rem); }
.svc th { font-family: 'Cinzel', serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold-0); text-align: left; padding: 0.55em 0.7em;
  border-bottom: 2px solid var(--gold-2); background: rgba(50,26,85,0.6); }
.svc td { padding: 0.5em 0.7em; border-bottom: 1px solid var(--line); color: var(--ink); }
.svc tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.svc .nm { font-family: 'Marcellus', serif; color: var(--gold-1); white-space: nowrap; }

/* footer */
.site-foot { position: relative; z-index: 1; text-align: center; color: rgba(195,177,222,0.6);
  font-family: 'Marcellus', serif; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: clamp(0.55rem, 0.9vw, 0.78rem); padding: clamp(1.4rem, 4vh, 2.6rem) 1rem; }

@media (max-width: 640px) {
  .kv .k { flex-basis: 6em; }
}
