/* 부처님.kr 안내 사이트 (index / about / guide / articles / policy pages). The 3D temple (temple.html) uses style.css. */
:root {
  --night: #14110f;
  --night2: #221c18;
  --paper: #fbf6ec;
  --card: #fffdf8;
  --ink: #2a211c;
  --muted: #6c6056;
  --line: #eadfcb;
  --gold: #b9801f;
  --gold2: #e9b955;
  --red: #b8432f;
  --lotus: #df6189;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #8f2f1f; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(20, 17, 15, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f5ead6; border-bottom: 1px solid rgba(233, 185, 85, 0.18); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff4dc; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #e8dcc6; text-decoration: none; font-size: 15px; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.head-cta { flex: none; }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; padding-bottom: 6px; }
  .nav a { font-size: 14px; padding: 6px 9px; }
  .head-cta { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; text-decoration: none; padding: 11px 20px; font-size: 15px; line-height: 1.2; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #f6cf72, #e1a73d); color: #2a1a06; box-shadow: 0 6px 20px rgba(225, 167, 61, 0.35); }
.btn-gold:hover { color: #1d1204; box-shadow: 0 10px 26px rgba(225, 167, 61, 0.45); }
.btn-ghost { border-color: rgba(255, 244, 220, 0.55); color: #fff4dc; background: rgba(20, 17, 15, 0.25); }
.btn-ghost:hover { color: #fff; background: rgba(20, 17, 15, 0.45); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-line:hover { color: var(--ink); border-color: var(--gold2); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-xl { padding: 17px 30px; font-size: 19px; }

/* hero */
.hero { position: relative; min-height: min(88svh, 820px); display: flex; align-items: flex-end; color: #fff8ea; background: var(--night); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 10, 8, 0.72) 0%, rgba(14, 10, 8, 0.35) 45%, rgba(14, 10, 8, 0) 70%), linear-gradient(0deg, rgba(14, 10, 8, 0.78) 0%, rgba(14, 10, 8, 0) 45%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.hero .eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold2); background: rgba(20, 17, 15, 0.45); border: 1px solid rgba(233, 185, 85, 0.4); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.18; margin: 16px 0 14px; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); max-width: 560px; margin: 0 0 28px; color: #f6ead4; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .meta { margin-top: 18px; font-size: 14px; color: #e5d6bd; }
@media (max-width: 760px) {
  .hero { min-height: 86svh; }
  .hero picture img { object-position: 22% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(14, 10, 8, 0.9) 0%, rgba(14, 10, 8, 0.55) 45%, rgba(14, 10, 8, 0.05) 75%); }
  .hero .wrap { padding: 90px 0 36px; }
  .hero .ctas .btn-xl { width: 100%; }
}

/* sections */
section.band { padding: 76px 0; }
section.band.alt { background: #f4ecdd; }
section.band.dark { background: var(--night); color: #f3e7d1; }
.sec-head { max-width: 720px; margin-bottom: 34px; }
.sec-head .kicker { color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; }
.dark .sec-head .kicker { color: var(--gold2); }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin: 6px 0 12px; letter-spacing: -0.015em; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.dark .sec-head p { color: #cbbda6; }
@media (max-width: 760px) { section.band { padding: 54px 0; } }

.grid { display: grid; gap: 20px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.g3, .grid.g2, .grid.g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .pad { padding: 20px 22px 22px; }
.card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card .img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #e9dcc3; }
.feat-mini { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; }
.feat-mini .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #fbeccd; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold2); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.temples { display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); }
.temple { border-radius: var(--radius); padding: 20px 18px; background: #2a231e; border: 1px solid #3a3029; color: #efe2cb; display: flex; flex-direction: column; gap: 6px; min-height: 168px; }
.temple b { font-size: 19px; color: #fff4dc; }
.temple span { font-size: 14px; color: #bfae95; }
.temple .badge { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #3a3029; color: #bfae95; }
.temple.open { background: linear-gradient(160deg, #3b2b17, #2a1f14); border-color: rgba(233, 185, 85, 0.55); }
.temple.open .badge { background: var(--gold2); color: #2a1a06; text-decoration: none; }
@media (max-width: 960px) { .temples { grid-template-columns: repeat(2, 1fr); } .temple.open { grid-column: 1 / -1; min-height: 0; } }

.posts { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.post { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.post:hover { border-color: var(--gold2); transform: translateY(-2px); color: var(--ink); }
.post small { color: var(--gold); font-weight: 700; }
.post b { font-size: 18px; line-height: 1.4; }
.post span { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notice-list li { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.notice-list time { flex: none; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; color: #fff4dc; }
.cta-band p { color: #cbbda6; margin: 0 0 26px; }

/* article / document pages */
.doc-hero { background: var(--night); color: #f3e7d1; padding: 54px 0 40px; }
.doc-hero .crumb { font-size: 14px; color: #bfae95; }
.doc-hero .crumb a { color: #e9cf98; }
.doc-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.3; margin: 10px 0 10px; color: #fff4dc; letter-spacing: -0.015em; }
.doc-hero p { margin: 0; color: #cbbda6; font-size: 17px; max-width: 720px; }
.doc { padding: 44px 0 70px; }
.prose { max-width: 760px; font-size: 17.5px; }
.prose h2 { font-size: 25px; margin: 2.1em 0 0.6em; line-height: 1.4; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin: 1.7em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--gold2); background: #f6eddc; border-radius: 0 12px 12px 0; color: #4a3d33; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: #f4ecdd; }
.prose .note { font-size: 15px; color: var(--muted); }
.prose .placeholder { background: #fff1c9; border: 1px dashed #d9a63c; padding: 1px 6px; border-radius: 6px; }
.article-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.article-end { margin-top: 44px; padding: 24px; border-radius: var(--radius); background: var(--night); color: #efe2cb; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.article-end p { margin: 0; }
.more { margin-top: 40px; }
.more h2 { font-size: 20px; margin: 0 0 14px; }

/* footer */
.site-foot { background: #0f0c0b; color: #a99a85; font-size: 14.5px; padding: 44px 0 34px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
.site-foot b { color: #f0e3cb; }
.site-foot ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #d8c8ad; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid #2a231e; font-size: 13.5px; line-height: 1.7; }
