/* 아트불이 디자인 시스템 — design/Main.dc.html · Mobile.dc.html · 아트불이_디자인가이드.md 기준 */
:root {
  --lotus-mist: #FBF4F1;
  --lotus-pink: #F8E3E6;
  --lotus-pink-2: #F4D9DE;
  --card-tint: #FDF0F2;
  --rose: #A84A62;
  --rose-hover: #7E2F45;
  --petal: #C9647A;
  --petal-light: #F2B8C4;
  --night: #24141C;
  --night-2: #1A0F15;
  --night-3: #140B10;
  --ink: #2A1820;
  --ink-2: #4F3A40;
  --ink-3: #6A5258;
  --ink-4: #7A5F66;
  --on-dark: #FBF4F1;
  --on-dark-2: #F2D3D9;
  --on-dark-3: #E6CFD4;
  --on-dark-4: #D9BFC5;
  --line: #EED6D9;
  --line-2: #F0D3D8;
  --line-3: #E2C2C9;
  --gold: #E2B547;
  --gold-deep: #C9962E;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --max: 1240px;
  --gutter: 32px;
  --section-y: 120px;
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --section-y: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lotus-mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) { body { font-size: 16px; } }
img { max-width: 100%; }
a { color: var(--rose); }
a:hover { color: var(--rose-hover); }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 12px 16px; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 금빛 효과 ── */
.gold-text {
  background: linear-gradient(110deg, #9A6B12 0%, #E8C25A 18%, #FFF6C2 32%, #F1CF63 46%, #B8861C 60%, #FCE48E 78%, #9A6B12 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: aburi-shine 7s linear infinite;
}
.gold-btn {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #A8761A 0%, #E9C55A 25%, #FFF3B0 45%, #E2B547 60%, #C1902A 80%, #F5D77A 100%);
  background-size: 220% auto;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(255,244,190,.7), 0 8px 28px rgba(226,181,71,.45), 0 0 0 1px #A8761A;
  animation: aburi-shine 7s linear infinite;
}
.gold-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: aburi-sweep 3.6s ease-in-out infinite;
}
.gold-line { height: 2px; background: linear-gradient(90deg, transparent, #E9C55A 20%, #FFF3B0 50%, #E9C55A 80%, transparent); }
.spark { position: absolute; pointer-events: none; animation: aburi-twinkle 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,236,150,.9)); }
@keyframes aburi-shine { to { background-position: 220% center; } }
@keyframes aburi-sweep { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes aburi-twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .gold-text, .gold-btn, .gold-btn::after, .spark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── 레이아웃 ── */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.stack { display: flex; flex-direction: column; }
.label { font-family: var(--sans); font-size: 15px; letter-spacing: .2em; color: var(--rose); font-weight: 700; }
.label.on-dark { color: var(--petal-light); }
.h-section { font-size: 46px; line-height: 1.32; }
.h-page { font-size: 54px; line-height: 1.25; }
.lead { font-size: 19px; color: var(--ink-2); }
@media (max-width: 767px) {
  .h-section { font-size: 29px; }
  .h-page { font-size: 32px; }
  .lead { font-size: 16.5px; }
  .label { font-size: 13px; }
}
.dark { position: relative; overflow: hidden; color: var(--on-dark); background: radial-gradient(ellipse 50% 60% at 12% 20%, rgba(240,170,185,.22) 0%, rgba(240,170,185,0) 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.dark a:not(.gold-btn):not(.btn) { color: var(--on-dark-2); }
.pinkbg { background: linear-gradient(180deg, var(--lotus-pink) 0%, var(--lotus-pink-2) 100%); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  text-decoration: none; font-size: 17px; font-weight: 700; font-family: inherit;
  border: 0; cursor: pointer;
}
.btn-lg { min-height: 64px; padding: 0 38px; font-size: 20px; }
.btn-outline { border: 1px solid var(--petal); color: var(--rose); background: transparent; }
.btn-outline:hover { background: #fff; }
.btn-ghost-dark { border: 1px solid var(--petal-light); background: rgba(240,170,185,.10); color: #FBE7EB !important; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 767px) { .btn-lg { min-height: 58px; font-size: 18px; width: 100%; } }

/* ── 카드 ── */
.card { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; }
.card-soft { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 12px 32px rgba(122,40,64,.10); }
.card-event {
  display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 32px 28px;
  background: linear-gradient(180deg, #fff 0%, var(--card-tint) 100%);
  border: 1px solid var(--line-2); border-radius: 20px 20px 4px 4px;
  text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(201,100,122,.10);
}
.card-event:hover { color: var(--ink); border-color: var(--petal-light); }
.card-dark { padding: 32px 36px; border-radius: 24px; background: rgba(240,170,185,.08); box-shadow: inset 0 0 0 1px rgba(233,197,90,.5); }
.photo-gold { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--gold); }
.photo-arch { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 200px 200px 16px 16px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 10px var(--lotus-mist), 0 0 0 11px #EBC4CC, 0 30px 60px rgba(42,24,32,.25); }
.ph-lotus { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border-radius: 16px; border: 1px dashed var(--gold-deep); background: radial-gradient(ellipse at 50% 60%, rgba(255,214,110,.18), transparent 70%), rgba(240,170,185,.06); color: var(--on-dark-4); font-size: 14px; text-align: center; padding: 16px; }
.ph-lotus.light { color: var(--ink-4); background: var(--card-tint); }

/* ── 배지·태그 ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card-tint); color: var(--rose); border: 1px solid var(--line-2); white-space: nowrap; }
.badge.gold { background: #FFF7DD; color: #7A5A12; border-color: #EAD38A; }
.badge.gray { background: #F4EFF0; color: var(--ink-3); border-color: #E3D9DB; }
.badge.warn { background: #FFF1E6; color: #8A4A12; border-color: #F0C9A5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px;
  font-size: 17px; background: #FFFAFB; font-family: inherit; color: var(--ink); font-weight: 400;
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field .hint { font-weight: 400; font-size: 13.5px; color: var(--ink-4); }
.field [aria-invalid="true"] { border-color: #B3261E; background: #FFF5F5; }
.form-error { color: #B3261E; font-size: 15px; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--rose); flex: none; margin-top: 3px; }

/* ── 표·목록 ── */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--card-tint); font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; }
.muted { color: var(--ink-4); }
.small { font-size: 14px; }
.notice { padding: 16px 20px; border-radius: 12px; background: #FFF9EA; border: 1px solid #EAD38A; color: #5E4710; font-size: 15px; }
.breadcrumb { font-size: 14px; color: var(--ink-4); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-3); }
details > summary { cursor: pointer; }

/* 페이지 머리 (서브페이지) */
.page-hero { position: relative; overflow: hidden; color: var(--on-dark); background: radial-gradient(ellipse 55% 80% at 80% 30%, rgba(240,170,185,.32) 0%, rgba(240,170,185,0) 62%), radial-gradient(ellipse 30% 50% at 82% 40%, rgba(255,214,110,.28) 0%, rgba(255,214,110,0) 70%), linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.page-hero p { margin: 0; color: var(--on-dark-2); font-size: 19px; max-width: 720px; }
@media (max-width: 767px) { .page-hero .wrap { padding-top: 48px; padding-bottom: 48px; } .page-hero p { font-size: 16px; } }
  .site-header { position: sticky; top: 0; z-index: 30; background: rgba(26,15,21,.88); border-bottom: 1px solid rgba(233,197,90,.35); backdrop-filter: blur(6px); }
  .bar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex: none; }
  .brand .ko { font-family: var(--serif); font-weight: 900; font-size: 26px; }
  .brand .en { font-size: 13px; letter-spacing: .26em; font-weight: 700; }
  .main-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 16px; font-weight: 500; }
  .main-nav a { color: #F2DDE2; text-decoration: none; padding: 6px 0; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: #FFF3B0; box-shadow: inset 0 -2px 0 #E9C55A; }
  .actions { display: flex; gap: 10px; flex: none; }
  .menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 20px; border-top: 1px solid rgba(233,197,90,.25); }
  .mobile-menu a:not(.btn) { color: #F2DDE2; text-decoration: none; font-size: 18px; padding: 12px 4px; border-bottom: 1px solid rgba(242,184,196,.15); }
  .mobile-menu .btn { margin-top: 12px; }
  .mobile-menu[hidden] { display: none; }
  @media (max-width: 1180px) { .main-nav { gap: 16px; font-size: 15px; } }
  @media (max-width: 1060px) {
    .main-nav, .actions { display: none; }
    .menu-btn { display: inline-flex; }
    .bar { min-height: 64px; }
    .brand .ko { font-size: 22px; }
    .brand .en { font-size: 11px; letter-spacing: .22em; }
  }
  .site-footer { background: var(--night-3); color: #CDB3B9; }
  .inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 15px; line-height: 1.8; }
  .name { font-family: var(--serif); font-size: 22px; color: var(--on-dark); font-weight: 700; }
  .links { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
  .links a { color: #CDB3B9; }
  .links a.strong { color: var(--on-dark); }
  @media (max-width: 767px) { .inner { padding-bottom: 110px; font-size: 14px; } }
  .mobile-cta { display: none; }
  @media (max-width: 767px) {
    .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(var(--c, 1), minmax(0, 1fr)); gap: 8px; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(251,244,241,.97); border-top: 1px solid var(--line); }
    .mobile-cta[data-cols="2"] { --c: 2; }
    .mobile-cta .btn { min-height: 54px; }
  }
