/* 웨딩페어노트 — 아이보리 + 짙은 초록, Pretendard, 각진 모서리. 꾸밈보다 정보 위주 */
:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #ddd6c6;
  --ink: #1c211f;
  --muted: #5d625e;
  --green: #1f5c4a;
  --green-dark: #154334;
  --on-green: #fffdf8;
  --tint: #e7eee9;

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --small: 0.875rem;
  --body: 1.0625rem;
  --lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --h2: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --h1: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);

  --m: clamp(16px, 4vw, 48px);
  --wide: 1160px;
  --gap: clamp(64px, 8vw, 112px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.65 var(--font); word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
main > section, .mast-in { width: min(100% - 2 * var(--m), var(--wide)); margin-inline: auto; }
h2 { font-size: var(--h2); font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 20px; }

/* ---------- 머리 ---------- */
.mast { border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.logo { flex: none; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.04em; color: var(--green); text-decoration: none; }
.areas { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.areas::-webkit-scrollbar { display: none; }
.areas a { flex: none; padding: 18px 10px; font-size: var(--small); font-weight: 600; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.areas a:hover { color: var(--ink); }
.areas a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
@media (max-width: 1080px) {
  .mast-in { flex-direction: column; align-items: stretch; gap: 0; }
  .logo { padding: 14px 0 2px; }
  .areas { margin-inline: calc(-1 * var(--m)); padding-inline: calc(var(--m) - 10px); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .areas a { padding: 12px 10px; }
}

/* ---------- 첫 화면 ---------- */
.opener { padding-top: clamp(32px, 5vw, 64px); }
.opener-text { max-width: 720px; }
.opener h1 { font-size: var(--h1); font-weight: 800; line-height: 1.2; letter-spacing: -0.045em; }
.lead { margin-top: 16px; font-size: var(--lead); line-height: 1.6; color: var(--muted); max-width: 34em; }
.go-slot { margin-top: 28px; min-height: 60px; }
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 280px; padding: 0 32px; background: var(--green); color: var(--on-green); font-size: 1.125rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.go:hover { background: var(--green-dark); }
.go-note { margin-top: 10px; font-size: var(--small); color: var(--muted); }
.go.docked { position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(100% - 32px, 440px); box-shadow: 0 6px 20px rgba(28, 33, 31, .2); }

/* 포스터 4장: 원본(320px)보다 크게 늘리지 않음 */
.strip { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strip figure { max-width: 320px; }
.strip-img, .solo-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
figcaption { margin-top: 8px; font-size: var(--small); color: var(--muted); }

.opener.has-solo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.solo { width: 100%; max-width: 320px; }

@media (max-width: 820px) {
  .go { width: 100%; min-width: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .opener.has-solo { grid-template-columns: minmax(0, 1fr); }
  .solo { margin-inline: auto; }
}

/* ---------- 박람회 목록 ---------- */
.list { margin-top: var(--gap); }
.rows { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows li > div { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.rows a:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.row-img { flex: none; width: 72px; height: 72px; object-fit: cover; }
.noimg { display: grid; place-items: center; background: var(--tint); color: var(--green); font-weight: 800; }
.row-text { display: grid; gap: 1px; min-width: 0; }
.row-text strong { font-weight: 700; line-height: 1.4; }
.row-text span { font-size: var(--small); color: var(--muted); }
@media (max-width: 820px) { .rows { grid-template-columns: minmax(0, 1fr); } .row-img { width: 60px; height: 60px; } }

/* ---------- 본문 + 옆 메모 ---------- */
.read { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.note { max-width: 700px; }
.note p { margin-bottom: 14px; line-height: 1.8; }
.note h3 { margin: 36px 0 10px; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.plain { list-style: none; padding: 0; margin-bottom: 8px; columns: 2 200px; column-gap: 24px; font-size: 0.9375rem; }
.plain li { padding: 4px 0; break-inside: avoid; }
.plain li::before { content: "· "; color: var(--green); font-weight: 800; }

.side { display: grid; gap: 40px; position: sticky; top: 24px; }
.side-box { border-top: 2px solid var(--ink); padding-top: 16px; }
.side h2 { font-size: 1.1875rem; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: var(--small); margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; }
.check-list li + li { border-top: 1px solid var(--line); }
.check-list label { display: flex; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 0.9375rem; line-height: 1.5; }
.check-list input { flex: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 2px solid var(--green); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.check-list input:checked { background: var(--green); }
.check-list input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--on-green); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check-list strong { display: block; font-weight: 700; }
.check-list label > span { color: var(--muted); }
.check-list strong { color: var(--ink); }
.check-list input:checked + span strong { text-decoration: line-through; color: var(--muted); }
.flow { padding-left: 1.2em; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.flow li { padding: 6px 0; }
.flow li::marker { color: var(--green); font-weight: 800; }
.flow strong { color: var(--ink); }
@media (max-width: 960px) { .read { grid-template-columns: minmax(0, 1fr); gap: 56px; } .side { max-width: 700px; position: static; } }

/* ---------- 질문 ---------- */
.qna { margin-top: var(--gap); }
.qna details { max-width: 860px; border-top: 1px solid var(--line); }
.qna details:last-child { border-bottom: 1px solid var(--line); }
.qna summary { display: flex; gap: 12px; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.qna summary::-webkit-details-marker { display: none; }
.q { flex: none; color: var(--green); font-weight: 800; }
.qna details p { padding: 0 0 18px 26px; max-width: 60ch; color: var(--muted); }

/* ---------- 지역 찾기 ---------- */
.area-index { margin-top: var(--gap); }
.area-index ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; border-top: 2px solid var(--ink); }
.area-index li { border-bottom: 1px solid var(--line); }
.area-index a { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; text-decoration: none; }
.area-index a span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.area-index a:hover, .area-index a[aria-current="page"] { color: var(--green); }
@media (max-width: 820px) { .area-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }

/* ---------- 끝 ---------- */
.foot { margin-top: var(--gap); padding: 32px max(var(--m), (100% - var(--wide)) / 2) 120px; border-top: 1px solid var(--line); background: #efeae0; color: var(--muted); font-size: var(--small); display: grid; gap: 6px; }
.foot p { max-width: 70ch; }
.foot-logo { font-weight: 800; color: var(--green); }

.lost { padding-top: clamp(40px, 8vw, 120px); }
.lost h1 { font-size: var(--h2); font-weight: 800; margin-bottom: 12px; }
.lost a { color: var(--green); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }
