/* 원본과 같은 Pretendard 계열의 로컬 서브셋을 사용한다. 내부 이름과 이용조건은 OFL 파일을 따른다. */
@font-face { font-family: 'Mubinso Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poom-pretendard-regular.woff2') format('woff2'); }
@font-face { font-family: 'Mubinso Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poom-pretendard-medium.woff2') format('woff2'); }
@font-face { font-family: 'Mubinso Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poom-pretendard-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Mubinso Sans'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('/assets/fonts/poom-pretendard-bold.woff2') format('woff2'); }
:root {
  --background: 40 30% 97%; --foreground: 200 14% 20%; --card: 40 33% 99%;
  --primary: 166 42% 24%; --primary-foreground: 40 33% 97%; --secondary: 160 24% 90%;
  --muted: 40 22% 93%; --muted-foreground: 200 8% 42%; --border: 40 18% 87%;
  --bronze: 36 52% 49%; --destructive: 0 72% 45%; --footer: 0 0% 11%;
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; color: hsl(var(--foreground)); background: hsl(var(--background)); font-family: 'Mubinso Sans', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: hsl(var(--primary)); text-underline-offset: 5px; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid hsl(var(--bronze)); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.35; letter-spacing: -.02em; }
h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.4; letter-spacing: -.01em; }
h3 { font-size: 21px; line-height: 1.5; }
small { font-size: 17px; }
[hidden] { display: none !important; }
.container { width: min(1152px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: -100px; left: 12px; padding: 12px 20px; background: hsl(var(--card)); }
.skip:focus { top: 8px; }
.header { border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background) / .97); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; text-decoration: none; color: hsl(var(--foreground)); font-weight: 600; }
.nav a[aria-current=page] { color: hsl(var(--primary)); box-shadow: inset 0 -2px hsl(var(--primary)); }
.nav .nav-intake { padding-inline: 20px; border-radius: 28px; border: 1px solid hsl(var(--primary) / .25); color: hsl(var(--primary)); }
main { padding-block: 32px 80px; min-height: 55vh; }
.stack > * + * { margin-top: 52px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 44px 40px; }
.hero-picture, .hero-picture img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-picture img { object-fit: cover; object-position: center 58%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, hsl(var(--background) / .8) 8%, hsl(var(--background) / .3) 42%, transparent); }
.hero-content { max-width: 560px; }
.eyebrow { display: inline-flex; padding: 6px 16px; border: 1px solid hsl(var(--border)); border-radius: 99px; background: hsl(var(--card) / .8); color: hsl(var(--primary)); font-weight: 600; font-size: 17px; }
.hero h1 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 42px); }
.hero-lockup { display: inline-flex; flex-direction: column; max-width: 100%; }
.hero-lockup img { width: 0; min-width: 100%; margin-top: 10px; }
.hero-description { margin-top: 16px; max-width: 40ch; color: hsl(var(--muted-foreground)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; min-width: 44px; gap: 8px; padding: 12px 28px; border: 1px solid hsl(var(--primary) / .3); border-radius: 99px; background: hsl(var(--card) / .85); color: hsl(var(--primary)); font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.button.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); box-shadow: 0 14px 34px -14px hsl(var(--primary) / .65); }
.button:hover { border-color: hsl(var(--primary)); }
.button:disabled { opacity: .6; cursor: wait; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chips li { display: flex; align-items: center; gap: 12px; line-height: 1.45; }
.chips b, .chips span { display: block; }
.chip-icon { display: grid; place-items: center; min-width: 44px; height: 44px; color: hsl(var(--primary)); border: 1px solid hsl(var(--border)); border-radius: 50%; background: hsl(var(--card)); }
.muted, .chips span { color: hsl(var(--muted-foreground)); }
.memorial { padding: 36px; background: hsl(var(--secondary) / .5); border: 1px solid hsl(var(--border)); border-radius: 24px; }
.memorial h2 { margin-top: 12px; text-wrap: balance; }
.subtitle { font-size: 19px; color: hsl(var(--muted-foreground)); font-weight: 400; }
.memorial-grid, .grid-three, .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.memorial-grid { margin-top: 24px; }
.memory-card { overflow: hidden; border-radius: 20px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.memory-card img { width: 100%; height: 174px; object-fit: cover; }
.memory-card div { padding: 20px; }
.memory-card p { margin-top: 6px; color: hsl(var(--muted-foreground)); }
.text-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.card { padding: 24px; border: 1px solid hsl(var(--border)); border-radius: 20px; background: hsl(var(--card)); box-shadow: 0 20px 44px -32px hsl(var(--primary) / .4); }
.card p + p, .card h3 + p { margin-top: 8px; }
.recommend { max-width: 900px; margin: 0 auto 28px; text-align: center; color: hsl(var(--muted-foreground)); }
.page-intro { margin: 8px 0 32px; }
.page-intro .eyebrow { margin-bottom: 16px; }
.page-intro p { max-width: 750px; margin-top: 12px; color: hsl(var(--muted-foreground)); }
.narrow { max-width: 800px; margin-inline: auto; }
.notice { padding: 20px 24px; border-radius: 16px; border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.notice p + p { margin-top: 8px; }
.catalog-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.narrow .catalog-grid { grid-template-columns: 1fr; }
.product { display: flex; flex-direction: column; gap: 12px; }
.product .price { color: hsl(var(--primary)); font-size: 30px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.product ul { margin: 0; padding-left: 22px; }
.product .button { margin-top: auto; }
.product .fit { color: hsl(var(--muted-foreground)); }
.catalog-message { grid-column: 1 / -1; }
.form { padding: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label, .field-title { font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 56px; background: hsl(var(--background)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 14px 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.consent-copy { padding: 20px; background: hsl(var(--muted)); border-radius: 12px; margin-bottom: 12px; white-space: pre-line; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; cursor: pointer; padding-block: 12px; }
.consent input { appearance: none; width: 24px; height: 24px; min-width: 24px; margin: 3px 0 0; border: 2px solid hsl(var(--primary)); border-radius: 5px; background: hsl(var(--card)); display: grid; place-content: center; }
.consent input:checked { background: hsl(var(--primary)); }
.consent input:checked::after { content: '✓'; color: hsl(var(--primary-foreground)); font-size: 19px; line-height: 1; }
.form .submit { width: 100%; margin-top: 20px; }
.form-status { margin-top: 16px; white-space: pre-line; }
.form-status.error { color: hsl(var(--destructive)); }
.form-status:empty { display: none; }
.turnstile { margin-top: 16px; min-height: 65px; max-width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-lines { margin: 20px 0; }
.contact-lines p { padding-block: 8px; }
.contact-lines a { display: inline-flex; min-height: 44px; align-items: center; }
.articles { display: grid; gap: 20px; }
.articles article { scroll-margin-top: 24px; }
.articles time { display: block; margin-bottom: 8px; color: hsl(var(--muted-foreground)); }
.legal { display: grid; gap: 24px; }
.legal ol { margin: 12px 0 0; padding-left: 24px; }
.footer { background: hsl(var(--footer)); color: hsl(var(--primary-foreground)); padding: 44px 0 36px; }
.footer-logo { width: 150px; padding: 10px; border-radius: 12px; background: hsl(var(--card)); margin-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: inherit; }
.footer-details p { margin-top: 4px; }
.footer .copyright { opacity: .8; margin-top: 24px; }
.no-script { padding: 16px; background: hsl(var(--muted)); }
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 12px; min-height: 76px; flex-wrap: wrap; padding-block: 12px; }
  .brand img { width: 44px; height: 44px; }
  .nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .nav .nav-intake { padding-inline: 12px; }
  main { padding-top: 24px; }
  .hero { padding: 40px 20px; border-radius: 24px; }
  .hero::after { background: linear-gradient(180deg, hsl(var(--background) / .95), hsl(var(--background) / .82) 50%, hsl(var(--background) / .45)); }
  .hero-picture img { object-position: center 56%; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .hero .actions { flex-direction: column; }
  .chips { grid-template-columns: 1fr; }
  .memorial { padding: 24px 20px; }
  .memorial-grid, .grid-three { grid-template-columns: 1fr; }
  .memory-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .memory-card img { height: 100%; min-height: 180px; }
  .memory-card div { padding: 16px; }
  .form { padding: 24px 20px; }
  .stack > * + * { margin-top: 40px; }
}
@media (max-width: 350px) {
  .memory-card { display: block; }
  .memory-card img { height: 160px; min-height: 0; }
  .nav { gap: 4px 16px; justify-content: flex-start; }
  .form { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
