/* 아름교회 v3 — OKLCH · Noto · 벤토 (정적 Direct Upload) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Noto+Serif+KR:wght@400;600;700&display=swap");

:root {
  --surface: #f8f6f1;
  --surface-muted: #efeadf;
  --cream: #fffdf9;
  --ink: #1a2e26;
  --ink-muted: #4a6358;
  --ink-faint: #7a9186;
  --forest: #1e3d32;
  --forest-deep: #122820;
  --accent: #a67c3a;
  --accent-light: #c9a55a;
  --accent-soft: #f2ead8;
  --line: rgba(26, 46, 38, 0.1);
  --line-strong: rgba(26, 46, 38, 0.18);
  --glass: rgba(255, 253, 249, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --parchment: var(--surface);
  --gold: var(--accent);
  --gold-light: var(--accent-light);
  --gold-pale: var(--accent-soft);
  --teal: #3d6b5c;
  --teal-dark: #2a5246;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.font-display,
.home-hero-title,
.bento-label,
.page-cover h1,
.home-donation h2,
.home-news h2,
.section-head h2,
.page-title,
.page-section h2,
.card h2,
.quote {
  font-family: "Noto Serif KR", serif;
}

a { color: inherit; text-decoration: none; }

.section-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* —— 헤더 —— */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.15);
}

header.site-header.header--hero {
  border-bottom-color: rgba(255, 253, 249, 0.12);
  background: rgba(18, 40, 32, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  color: var(--cream);
}

header.header--hero .logo img {
  filter: brightness(0) invert(1);
  height: 2.5rem;
}

header.site-header .logo img {
  height: 2.5rem;
  width: auto;
  max-width: min(52vw, 200px);
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  header.site-header .logo img,
  header.header--hero .logo img { height: 3rem; max-width: 240px; }
}

nav.desktop {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

nav.desktop a {
  position: relative;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.28s var(--ease-out);
}

nav.desktop a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.28s var(--ease-out);
}

nav.desktop a:hover { color: var(--ink); }
nav.desktop a.active { color: var(--ink); }
nav.desktop a.active::after { transform: scaleX(1); }

header.header--hero nav.desktop a {
  color: rgba(255, 253, 249, 0.72);
}
header.header--hero nav.desktop a:hover,
header.header--hero nav.desktop a.active {
  color: var(--cream);
}
header.header--hero nav.desktop a.active::after {
  background: var(--accent-light);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: all 0.25s;
}

header.header--hero .header-social a {
  border-color: rgba(255, 253, 249, 0.22);
  color: rgba(255, 253, 249, 0.8);
}

.header-social a:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--ink);
}

header.header--hero .header-social a:hover {
  background: rgba(255, 253, 249, 0.1);
  color: var(--cream);
}

.header-social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
}

body.page-home main.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* —— 버튼 —— */
.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.28s var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(18, 40, 32, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(255, 253, 249, 0.35);
  background: rgba(255, 253, 249, 0.08);
  color: var(--cream);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 253, 249, 0.55);
  background: rgba(255, 253, 249, 0.14);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
.btn-secondary:hover { background: var(--surface-muted); }

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 1.75rem;
}

.surface-card {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px -6px rgba(18, 40, 32, 0.08);
}

/* —— 홈 히어로 —— */
.home-hero {
  position: relative;
  min-height: min(100dvh, 920px);
  color: var(--cream);
  overflow: hidden;
}

.home-hero-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% -10%, rgba(166, 124, 58, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 70% 60% at 100% 20%, rgba(61, 107, 92, 0.14) 0%, transparent 48%),
    linear-gradient(168deg, var(--forest-deep) 0%, var(--forest) 42%, var(--ink) 100%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03) translate(1%, -0.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-aurora { animation: none; }
}

.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 72%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .home-hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 6rem 2.5rem 5rem;
    min-height: min(100dvh, 920px);
  }
}

.home-hero-kicker,
.home-hero-copy .section-kicker { color: var(--accent-light); }

.home-hero-title {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-hero-title em {
  font-style: normal;
  color: var(--accent-light);
}

.home-hero-lead {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 253, 249, 0.78);
}

.home-hero-tags {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-hero-tags li {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 253, 249, 0.18);
  background: rgba(255, 253, 249, 0.08);
  color: rgba(255, 253, 249, 0.9);
}

.home-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero-card {
  padding: 1.5rem;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .home-hero-card { padding: 2rem; max-width: 22rem; margin-left: auto; }
}

.home-hero-card-title {
  font-family: "Noto Serif KR", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.home-hero-card-sub {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.home-hero-card-address {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.home-hero-card-btn { margin-top: 1.25rem; }

/* —— 벤토 탐색 —— */
.home-explore {
  background: var(--surface);
  padding-bottom: 0.5rem;
}

.section-head {
  padding: 2rem 1.25rem 0.75rem;
}

.section-head h2 {
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.bento-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 1.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.bento-scroll::-webkit-scrollbar { display: none; }

.bento-grid { display: none; }

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11.5rem;
  padding: 1.15rem;
  border-radius: 1.75rem;
  color: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
  width: min(78vw, 18rem);
  scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -16px rgba(18, 40, 32, 0.45);
  transition: transform 0.35s var(--ease-out), filter 0.35s;
}

.bento-tile:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.bento-tile--lg { min-height: 13rem; }

.bento-index {
  position: absolute;
  right: -0.25rem;
  top: 0.5rem;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 253, 249, 0.07);
  pointer-events: none;
}

.bento-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, 0.28);
  background: rgba(255, 253, 249, 0.1);
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.bento-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 253, 249, 0.65);
  z-index: 1;
}

.bento-label {
  display: block;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 1.45rem;
  font-weight: 600;
  z-index: 1;
}

.bento-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 253, 249, 0.72);
  z-index: 1;
}

.bento-tile--about {
  background: linear-gradient(145deg, var(--forest-deep), var(--forest), #2a5246);
}
.bento-tile--staff {
  background: linear-gradient(155deg, #2a5246, var(--forest));
}
.bento-tile--worship {
  background: linear-gradient(160deg, var(--ink), var(--forest-deep));
}
.bento-tile--board {
  background: linear-gradient(140deg, #3d3528, var(--forest));
}
.bento-tile--welcome {
  background: linear-gradient(150deg, #3a4f62, #2a5246);
}

@media (min-width: 768px) {
  .bento-scroll { display: none; }
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding: 0 1.25rem 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
  }
  .bento-grid .bento-tile {
    width: auto;
    min-height: 13rem;
  }
  .bento-grid .bento-tile--lg {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 20rem;
    padding: 1.5rem;
  }
  .bento-grid .bento-tile--lg .bento-label { font-size: 1.85rem; }
}

/* —— 바로가기 —— */
.quick-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0 1.25rem 2rem;
  background: var(--surface);
}

@media (min-width: 640px) {
  .quick-cards { grid-template-columns: 1fr 1fr; }
}

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 10.5rem;
  padding: 1.35rem;
  border-radius: 1.75rem;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s;
}

.quick-card:hover { transform: translateY(-3px); }

.quick-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  font-family: "Noto Serif KR", serif;
}

.quick-card p {
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

.quick-card--dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 16px 40px rgba(18, 40, 32, 0.22);
}
.quick-card--dark p { color: rgba(255, 253, 249, 0.7); }

.quick-card--light {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 40, 32, 0.06);
}
.quick-card--light p { color: var(--ink-muted); }

.quick-card-link {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
}
.quick-card-link--forest { color: var(--forest); }

.home-video-wrap {
  padding: 0 1.25rem 2rem;
  background: var(--surface);
}

.video-box {
  background: var(--forest);
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 249, 0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 16px 40px rgba(18, 40, 32, 0.18);
}

.video-box-title {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.video-box .video-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.home-donation {
  background: var(--cream);
  padding: 3rem 1.25rem;
  text-align: center;
}

.home-donation h2 {
  font-size: 1.65rem;
  font-weight: 600;
}

.home-donation-box {
  margin: 1.5rem auto 0;
  max-width: 24rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.home-donation-box .account {
  margin-top: 0.5rem;
  font-family: "Noto Serif KR", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
}

.home-donation-box .note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.home-news {
  padding: 2rem 1.25rem;
  background: var(--surface);
}

.home-news h2 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.home-scripture {
  position: relative;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--forest);
  color: var(--cream);
}

.home-scripture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 1px;
  background: rgba(201, 165, 90, 0.45);
}

.home-scripture blockquote {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  max-width: 32rem;
  margin: 0 auto;
}

.home-scripture cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--accent-light);
  font-weight: 600;
}

.home-footer {
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.home-footer p:first-child {
  font-family: "Noto Serif KR", serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.85rem;
}

/* —— 서브페이지 커버 —— */
.page-cover {
  margin: -1rem -1rem 1.5rem;
  min-height: min(48vh, 22rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 1.75rem 1.75rem;
}

.page-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 40, 32, 0.28);
}

.page-cover-index {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Noto Serif KR", serif;
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  color: rgba(255, 253, 249, 0.07);
}

.page-cover-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  color: var(--cream);
}

.page-cover--about { background: linear-gradient(145deg, var(--forest-deep), var(--forest)); }
.page-cover--staff { background: linear-gradient(155deg, #2a5246, var(--forest)); }
.page-cover--worship { background: linear-gradient(160deg, var(--ink), var(--forest-deep)); }
.page-cover--board { background: linear-gradient(140deg, #3d3528, var(--forest)); }
.page-cover--welcome { background: linear-gradient(150deg, #3a4f62, #2a5246); }

.page-cover-back {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.55);
  margin-bottom: 0.75rem;
}

.page-cover-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 253, 249, 0.65);
}

.page-cover h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.go-top {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 45;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 8px 24px rgba(18, 40, 32, 0.3);
}
.go-top.show { opacity: 1; pointer-events: auto; }

.hero {
  background: var(--forest);
  color: var(--cream);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
}
.hero h1 { font-size: 1.75rem; margin-top: 0.25rem; }
.hero p { margin-top: 0.75rem; opacity: 0.85; font-size: 0.95rem; }

.card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(18, 40, 32, 0.05);
}

.card h2 { font-size: 1rem; margin-bottom: 0.5rem; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.grid3 a {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.quote cite {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--forest);
}

table tr { border-bottom: 1px solid var(--line); }
table td { padding: 0.85rem 0; font-size: 0.9rem; }
table td:last-child { text-align: right; color: var(--forest); font-weight: 500; }

.tabs { display: flex; gap: 0.4rem; overflow-x: auto; margin-bottom: 0.75rem; }
.tabs button {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink-muted);
}
.tabs button.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* —— 하단 네비 —— */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.bottom-nav-inner {
  pointer-events: auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  width: 100%;
  max-width: 24rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 1.75rem;
  padding: 0.3rem 0.2rem;
  box-shadow: 0 24px 48px rgba(18, 40, 32, 0.18);
}

.bottom-nav a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.35rem 0.15rem;
  border-radius: 1.25rem;
  transition: color 0.28s var(--ease-out);
}

.bottom-nav a.active {
  color: var(--ink);
}

.bottom-nav a.active::before {
  content: "";
  position: absolute;
  inset: 0.35rem 0.25rem;
  background: rgba(26, 46, 38, 0.08);
  border-radius: 1rem;
  z-index: 0;
}

.bottom-nav .nav-icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 2px;
}

.install-bar {
  position: fixed;
  bottom: 5.25rem;
  left: 0.75rem;
  right: 0.75rem;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 12px 40px rgba(18, 40, 32, 0.12);
  z-index: 55;
  display: none;
}
.install-bar.show { display: flex; gap: 0.65rem; align-items: flex-start; }
.install-bar .icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-bar p.title { font-size: 0.85rem; font-weight: 700; }
.install-bar p.body { font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.15rem; }
.install-bar button.close {
  border: none;
  background: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
}

.page-kicker { font-size: 0.62rem; font-weight: 600; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; }
.page-title { font-size: 1.5rem; font-weight: 600; margin-top: 0.15rem; }
.page-sub { font-size: 0.85rem; color: var(--ink-muted); margin: 0.35rem 0 1rem; }

.section-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-nav a {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.25s;
}
.section-nav a.active,
.section-nav a[aria-current="true"] {
  background: var(--ink);
  color: var(--cream);
}

.page-section { margin-top: 1.5rem; scroll-margin-top: 5rem; }
.page-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  font-family: "Noto Serif KR", serif;
}

.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.pillar {
  background: var(--accent-soft);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.8rem;
  border: 1px solid rgba(166, 124, 58, 0.2);
}
.pillar strong { display: block; margin-bottom: 0.2rem; }

.schedule-table {
  width: 100%;
  background: var(--cream);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.schedule-table th {
  background: var(--surface-muted);
  text-align: left;
}

.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.staff-card {
  background: var(--cream);
  border-radius: 1rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--line);
}
.staff-photo {
  aspect-ratio: 3/4;
  background: var(--surface-muted);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 2rem;
}

.welcome-form label { display: block; margin-bottom: 0.85rem; font-size: 0.85rem; }
.welcome-form input,
.welcome-form textarea,
.welcome-form select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--cream);
}
.welcome-form button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

footer.note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  padding: 2rem 1rem 1rem;
}

@media (min-width: 1024px) {
  body { padding-bottom: 2rem; }
  nav.desktop { display: flex; }
  .bottom-nav { display: none !important; }
  .install-bar { display: none !important; }
  main:not(.home-main) { max-width: 56rem; padding: 1.5rem 2rem; }
  .quick-cards,
  .home-video-wrap,
  .section-head { padding-left: 2rem; padding-right: 2rem; max-width: 72rem; margin-left: auto; margin-right: auto; }
  .go-top { bottom: 1.5rem; }
}
