/* GRACE — 로즈·모브 · 원형 이미지 · 큰 말씀 타이포 */
.pt-shell-grace {
  --pt-primary: #B9798A;
  --pt-rose-deep: #8E5566;
  --pt-ink: #4A3B3E;
  --pt-muted: #85777A;
  --pt-line: #E4DADC;
  --pt-soft: #F6F1F1;
  --pt-bg: #FBF9F8;
  --pt-greige: #EFEAE9;
  --pt-radius: 26px;
  --pt-display: "Gowun Batang", "Noto Serif KR", serif;
  --pt-header-bg: rgba(251, 249, 248, 0.94);
  --pt-footer-bg: #3D3235;
  --pt-footer-ink: #F3ECEE;
  --pt-footer-muted: #BFAFB3;
  --pt-page-hero-bg: linear-gradient(120deg, #F3E9EB 0%, #FBF9F8 70%);
}
.pt-shell-grace .pt-brand-text strong { font-family: Pretendard, sans-serif; }

/* Hero */
.gr-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: var(--pt-greige);
}
.gr-hero-arc {
  position: absolute;
  right: -12vw;
  top: -30%;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pt-primary) 30%, transparent);
  pointer-events: none;
}
.gr-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.gr-hero-figure {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #E6D9DC;
  box-shadow: 0 30px 70px rgba(142, 85, 102, 0.22);
}
.gr-hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-hero-title {
  margin: 0;
  --pt-heading-font: var(--pt-display);
  font-family: var(--pt-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.gr-lead {
  display: block;
  color: var(--pt-ink);
  font-size: clamp(30px, 3.6vw, 48px);
}
.gr-emph {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  color: var(--pt-primary);
  font-size: clamp(46px, 6.4vw, 86px);
  z-index: 0;
}
.gr-emph::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.12em;
  height: 0.28em;
  background: color-mix(in srgb, var(--pt-primary) 22%, transparent);
  z-index: -1;
}
.gr-hero-sub {
  max-width: 32em;
  margin: 26px 0 0;
  color: var(--pt-muted);
  font-size: 16.5px;
  line-height: 1.8;
}
.gr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* Headings */
.gr-heading {
  margin: 0;
  text-align: center;
  font-family: Pretendard, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--pt-ink);
}
.gr-heading em { font-style: normal; color: var(--pt-primary); }
.gr-heading-sub { margin: 10px 0 0; text-align: center; color: var(--pt-muted); font-size: 15px; }

/* First visit quick menu */
.gr-first { padding: 88px 0 72px; }
.gr-quick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}
.gr-quick[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 860px; }
.gr-quick[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 700px; }
.gr-quick[data-count="3"],
.gr-quick[data-count="2"],
.gr-quick[data-count="1"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 540px; }
.gr-quick a { display: grid; justify-items: center; gap: 14px; text-decoration: none; }
.gr-quick-ico {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--pt-primary) 14%, white);
  color: var(--pt-rose-deep);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gr-quick a:hover .gr-quick-ico { background: var(--pt-primary); color: #fff; transform: translateY(-4px); }
.gr-quick strong { font-size: 15.5px; font-weight: 700; color: var(--pt-ink); }

/* Sermon + worship */
.gr-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 72px;
}
.gr-sermon,
.gr-worship {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--pt-radius);
}
.gr-sermon { background: #EDE6E7; }
.gr-sermon-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.6);
}
.gr-sermon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(237, 230, 231, 0.2) 0%, rgba(237, 230, 231, 0.92) 55%);
}
.gr-sermon-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin-left: 40%;
  padding: 48px 44px 44px 0;
}
.gr-sermon:not(.has-thumb) .gr-sermon-body { margin-left: 0; padding-left: 44px; }
.gr-sermon:not(.has-thumb)::after { display: none; }
.gr-label {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--pt-ink) 25%, transparent);
  color: var(--pt-ink);
  font-size: 15px;
  font-weight: 700;
}
.gr-sermon-title {
  margin: 0 0 18px;
  --pt-heading-font: var(--pt-display);
  font-family: var(--pt-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--pt-ink);
}
.gr-sermon-title a { text-decoration: none; }
.gr-sermon-title a:hover { color: var(--pt-primary); }
.gr-sermon-meta { display: grid; gap: 4px; margin: 0 0 24px; font-size: 14.5px; }
.gr-sermon-meta div { display: flex; gap: 10px; }
.gr-sermon-meta dt { min-width: 32px; color: var(--pt-muted); }
.gr-sermon-meta dd { margin: 0; color: var(--pt-ink); font-weight: 600; }
.gr-sermon-empty { margin: 0 0 22px; color: var(--pt-muted); }
.gr-sermon .pt-btn { margin-top: auto; }

.gr-worship {
  padding: 44px 44px 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(150deg, #C38C9A 0%, #9E6575 100%);
  color: #fff;
}
.gr-worship h2 {
  margin: 0 0 22px;
  --pt-heading-font: var(--pt-display);
  font-family: var(--pt-display);
  font-size: 24px;
}
.gr-worship table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gr-worship th,
.gr-worship td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); text-align: left; vertical-align: top; }
.gr-worship th { width: 44%; font-weight: 600; }
.gr-worship td { font-weight: 700; }
.gr-worship td small { display: block; font-weight: 500; opacity: 0.8; font-size: 12.5px; }
.gr-worship-empty { opacity: 0.85; }
.gr-worship-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.gr-worship-more:hover { background: #fff; color: var(--pt-rose-deep); }

/* Boards */
.gr-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 24px 0 88px;
}
.gr-boards > :only-child { grid-column: 1 / -1; }
.gr-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--pt-ink);
}
.gr-board-head h2 {
  margin: 0;
  padding-left: 14px;
  border-left: 5px solid var(--pt-primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.gr-board ul { margin: 0; padding: 0; list-style: none; }
.gr-board a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--pt-line);
  text-decoration: none;
  font-size: 15.5px;
}
.gr-board a:hover span { color: var(--pt-primary); }
.gr-board span { min-width: 0; flex: 1; }
.gr-board b { color: var(--pt-primary); }
.gr-board time { flex-shrink: 0; color: var(--pt-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Albums */
.gr-sketch { padding: 88px 0; background: var(--pt-greige); }
.gr-sketch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.gr-sketch-item { display: grid; gap: 6px; text-decoration: none; }
.gr-sketch-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1.1;
  overflow: hidden;
  border-radius: 14px;
  background: #E2D6D8;
  color: var(--pt-primary);
}
.gr-sketch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gr-sketch-item:hover img { transform: scale(1.05); }
.gr-sketch-item strong { margin-top: 10px; font-size: 17px; font-weight: 700; }
.gr-sketch-item small { color: var(--pt-muted); font-size: 13px; }

/* Visit */
.gr-visit { padding: 72px 0 96px; }
.gr-visit-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: #fff;
}
.gr-visit-pastor { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gr-visit-text { flex: 1; min-width: 0; }
.gr-visit-text h2 { margin: 0 0 6px; font-family: var(--pt-display); font-size: 22px; }
.gr-visit-text p { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; color: var(--pt-muted); font-size: 14.5px; }
.gr-visit-text span { display: inline-flex; align-items: center; gap: 6px; }
.gr-visit-text .pt-icon { color: var(--pt-primary); }

@media (max-width: 1024px) {
  .gr-hero-inner { gap: 40px; }
  .gr-quick,
  .gr-quick[data-count] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
  .gr-duo { grid-template-columns: 1fr; }
  .gr-sketch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .gr-hero { padding: 36px 0 48px; }
  .gr-hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .gr-hero-figure { width: min(78vw, 320px); margin-inline: auto; }
  .gr-hero-sub { margin-inline: auto; font-size: 15px; }
  .gr-hero-actions { justify-content: center; }
  .gr-hero-arc { width: 140vw; right: -70vw; top: -20%; }
  .gr-first { padding: 56px 0 48px; }
  .gr-quick,
  .gr-quick[data-count] { gap: 18px 8px; margin-top: 30px; }
  .gr-quick-ico { width: 76px; height: 76px; border-radius: 22px; }
  .gr-quick strong { font-size: 13.5px; }
  .gr-duo { gap: 18px; padding-bottom: 48px; }
  .gr-sermon,
  .gr-worship { min-height: 0; border-radius: 22px; }
  .gr-sermon-body { margin-left: 0; padding: 30px 24px; }
  .gr-sermon::after { background: rgba(237, 230, 231, 0.86); }
  .gr-worship { padding: 30px 24px; }
  .gr-boards { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .gr-board a { padding: 14px 2px; font-size: 15px; }
  .gr-sketch { padding: 56px 0; }
  .gr-sketch-grid { gap: 16px 12px; margin-top: 28px; }
  .gr-sketch-item strong { font-size: 15px; margin-top: 6px; }
  .gr-visit { padding: 48px 0 64px; }
  .gr-visit-card { flex-direction: column; text-align: center; border-radius: 26px; padding: 28px 22px; gap: 16px; }
  .gr-visit-text p { justify-content: center; }
}
