/* 오리그네 — 단오 민화 톤. 팔레트 = 앱 아이콘(app-store/icon/icon-1024.png) 픽셀 그대로.
   출처·대비 계산은 ../CLAUDE.md "디자인" 절. 서체는 공식 OFL 원본 자체 호스팅(외부 CDN 없음). */

@font-face {
  font-family: "Gowun Batang";
  src: url("fonts/GowunBatang-Bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("fonts/IBMPlexSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("fonts/IBMPlexSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3e8d2;            /* 한지 — 아이콘 배경 */
  --surface: #fbf5e9;       /* 한지 밝은 변형 — 카드 */
  --surface-soft: #efe1c4;  /* 한지 진한 변형 — 띠 섹션 */
  --ink: #2a211b;           /* 잉크 — 아이콘 외곽선 */
  --muted: #4a3526;         /* 그네 나무 갈색 — 아이콘 가지 */
  --accent: #c8452f;        /* 주홍 — 아이콘 해. 장식·굵은 면 전용(한지 위 본문 3.98:1 미달) */
  --accent-strong: #a93a27; /* 주홍 진한 변형 — 링크·강조 글자(한지 위 5.2:1) */
  --duck: #f2c14e;          /* 오리 노랑 — 주 버튼 면(잉크 글자 9.4:1) */
  --changpo: #4e7d5b;       /* 창포 — 장식 */
  --changpo-strong: #3f6b4c;/* 창포 진한 변형 — 글자(한지 위 5.06:1) */
  --line: #2a211b;
  --shadow: 4px 4px 0 #2a211b;
  --display: "Gowun Batang", "AppleMyungjo", "Nanum Myeongjo", serif;
  --body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

main > section { max-width: var(--max); margin: 0 auto; padding: 56px 20px; }
.section-lead { color: var(--muted); max-width: 40em; }
.eyebrow { font-weight: 700; color: var(--changpo-strong); letter-spacing: .08em; font-size: .9rem; margin: 0 0 .4em; }

/* 헤더 */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 8px; border: 2px solid var(--line); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 2px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.breadcrumb { max-width: var(--max); margin: 0 auto; padding: 0 20px; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

/* 히어로 */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
}
.hero .tagline { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--accent-strong); margin-bottom: .6em; }
.hero .lead { font-size: 1.08rem; max-width: 30em; }
.badge {
  display: inline-block;
  font-weight: 700; font-size: .85rem;
  padding: 4px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 18px;
}
.badge .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--changpo); margin-right: 6px; vertical-align: 1px; }

.swing-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.swing-stage::before {  /* 해 — 아이콘의 주홍 원 */
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); right: 2%; top: 4%;
}
.swing-card {
  position: relative;
  width: min(340px, 78%);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--line);
  overflow: hidden;
  transform-origin: 50% -40%;
  animation: swing 3.2s ease-in-out infinite alternate;
}
@keyframes swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .swing-card { animation: none; } }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-block;
  font-weight: 700; text-decoration: none;
  padding: 11px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--ink);
  background: var(--surface);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.primary { background: var(--duck); }
.btn:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }

/* 한 판의 흐름 */
.band { background: var(--surface-soft); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.band > section { max-width: var(--max); margin: 0 auto; padding: 56px 20px; }
.loop { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.loop-step {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  counter-increment: step;
}
.loop-step::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--duck); border: 2px solid var(--line);
  font-weight: 700; margin-bottom: 10px;
}
.loop-step h3 { margin-bottom: .3em; }
.loop-step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* 판정 */
.judge { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.judge-card { border: 3px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); box-shadow: var(--shadow); }
.judge-card .grade { font-family: var(--display); font-weight: 700; font-size: 1.8rem; margin: 0 0 .2em; }
.judge-card.perfect { background: var(--duck); }
.judge-card p:last-child { margin: 0; }

/* 하늘길 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.feature-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature-card h3 { display: flex; align-items: center; gap: 10px; }
.feature-card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--line); flex: none; }
.feature-card p { margin: 0; color: var(--muted); }

/* 원칙 */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.principle { border-top: 4px solid var(--changpo); padding-top: 14px; }
.principle h3 { margin-bottom: .3em; }
.principle p { margin: 0; color: var(--muted); }

.notice {
  border: 3px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.notice p { margin-bottom: .6em; }
.notice .cta-row { justify-content: center; }

/* 지원 */
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-list details { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.3rem; color: var(--accent-strong); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; color: var(--muted); }

.support-form { display: grid; gap: 14px; max-width: 560px; margin-top: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.support-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.support-form input, .support-form select, .support-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.support-form button {
  justify-self: start; font: inherit; font-weight: 700; cursor: pointer;
  padding: 11px 22px; background: var(--duck); color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.support-form button:disabled { opacity: .6; cursor: wait; }
.support-form #form-status { margin: 0; min-height: 1.4em; color: var(--muted); }

.contact-card { display: inline-block; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 20px; font-weight: 700; }

/* 방침 */
.policy { max-width: 820px; }
.policy .meta-date { color: var(--muted); font-size: .95rem; }
.policy h2 { font-size: 1.35rem; margin-top: 1.8em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .35em; }
.policy .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.policy table { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--line); font-size: .95rem; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy th { background: var(--surface-soft); }

/* 푸터 */
footer {
  border-top: 3px solid var(--line);
  padding: 28px 20px 36px;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}
footer p { margin: 0 0 .4em; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .swing-stage { order: -1; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  main > section, .band > section { padding: 40px 16px; }
  .site-header, .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .loop, .judge, .feature-grid { grid-template-columns: 1fr; }
}
