@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ============================================================
   이른 아침의 바닷가 — 공용 디자인 시스템
   팔레트 5색만. 그라데이션·이모지·알약버튼·글로우 없음.
   ============================================================ */

:root {
  --bg:      #FAFDFD;
  --ink:     #1A2E35;
  --ink-2:   #5C7A85;
  --accent:  #0E7C94;
  --line:    #E4EFF1;

  --shadow:  0 1px 3px rgba(26,46,53,.06);
  --wrap:    1080px;
  --pad:     24px;
  --gap-sec: 140px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(14,124,148,.14); }

/* ---------- 레이아웃 ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }

section.band { padding-top: var(--gap-sec); }
section.band:first-of-type { padding-top: 96px; }
.band-last { padding-bottom: var(--gap-sec); }

/* ---------- 상단 내비 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.nav .brand {
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav .links a {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: color .2s ease; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a[aria-current="page"] { color: var(--accent); }

/* ---------- 타이포 ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p  { margin: 0; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-2);
}
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
strong, b { font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #0a5f72; }
.link-u { border-bottom: 1px solid rgba(14,124,148,.28); transition: border-color .2s ease; }
.link-u:hover { border-color: var(--accent); }

code {
  font-family: var(--mono); font-size: .875em;
  background: #F1F7F8; border: 1px solid var(--line);
  padding: .5px 5px; border-radius: 4px; color: var(--ink);
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 히어로 ---------- */
.hero { padding: 88px 0 0; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-top: 20px; }
.hero-wave { display: block; width: 100%; height: 64px; margin-top: 56px; }
.hero-wave path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.hero-wave path.accent { stroke: rgba(14,124,148,.30); }

/* ---------- 섹션 헤더 ---------- */
.sec-head { display: grid; grid-template-columns: 148px 1fr; gap: 32px; align-items: start; }
.sec-head .idx { font-size: 13px; color: var(--ink-2); padding-top: 8px; letter-spacing: 0.04em; }
.sec-head .lead { margin-top: 12px; max-width: 62ch; }
.sec-body { margin-top: 40px; }
.sec-body.indent { padding-left: 180px; }

/* ---------- 정의형 리스트 ---------- */
.dl { border-top: 1px solid var(--line); }
.dl > div {
  display: grid; grid-template-columns: 148px 1fr; gap: 32px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.dl dt { font-size: 14px; color: var(--ink-2); margin: 0; }
.dl dd { margin: 0; font-size: 16px; }

/* ---------- 리스트 ---------- */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
}
ul.plain > li::before {
  content: ""; width: 14px; height: 1px; background: var(--ink-2);
  margin-top: 15px; opacity: .5;
}
ul.plain > li:first-child { border-top: 1px solid var(--line); }

/* ---------- 카드 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; box-shadow: var(--shadow);
}
a.card { display: block; color: inherit; transition: border-color .2s ease; }
a.card:hover { border-color: #CFE3E7; color: inherit; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 6px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: #0a5f72; border-color: #0a5f72; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: #CFE3E7; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-text {
  background: none; border: 0; padding: 0; min-height: 44px;
  color: var(--ink-2); font-family: var(--sans); font-size: 13px; cursor: pointer;
  transition: color .2s ease;
}
.btn-text:hover { color: var(--ink); }

/* ---------- 태그 (알약 금지) ---------- */
.tag {
  display: inline-block; border-radius: 3px; padding: 2px 7px;
  font-size: 12px; font-weight: 500; line-height: 1.5;
  border: 1px solid var(--line); color: var(--ink-2); background: #fff;
  white-space: nowrap;
}
.tag-accent { border-color: rgba(14,124,148,.30); color: var(--accent); }
.tag-solid  { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 표 ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tbl th, table.tbl td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl thead th {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 10px;
}
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 체크박스 ---------- */
input.chk {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex: none; margin: 0; cursor: pointer;
  border: 1px solid #CFE3E7; border-radius: 4px; background: #fff;
  position: relative; transition: border-color .2s ease, background-color .2s ease;
}
input.chk:hover { border-color: var(--accent); }
input.chk:checked { background: var(--accent); border-color: var(--accent); }
input.chk:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px;
  width: 4px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(43deg);
}
input.chk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 진행선 ---------- */
.meter { height: 2px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; }

/* ---------- 폼 ---------- */
.field {
  width: 100%; min-height: 44px; font-size: 16px; font-family: var(--sans);
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 0 14px; outline: none; transition: border-color .2s ease;
}
.field::placeholder { color: #9FB6BC; }
.field:focus { border-color: var(--accent); }

/* ---------- 스크롤 등장 (1회, opacity + 8px) ---------- */
.rise { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.rise.in { opacity: 1; transform: none; }

/* ---------- 푸터 ---------- */
.foot {
  margin-top: var(--gap-sec); border-top: 1px solid var(--line);
  padding: 32px 0 64px; font-size: 13px; color: var(--ink-2);
}
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  :root { --gap-sec: 100px; }
  .sec-head { grid-template-columns: 110px 1fr; gap: 24px; }
  .sec-body.indent { padding-left: 134px; }
  .dl > div { grid-template-columns: 120px 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --gap-sec: 80px; --pad: 20px; }
  .hero { padding-top: 56px; }
  .hero-wave { height: 44px; margin-top: 40px; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; }
  .sec-head .idx { padding-top: 0; }
  .sec-body.indent { padding-left: 0; }
  .sec-body { margin-top: 28px; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .card { padding: 20px; }
  .nav .inner { gap: 16px; height: 56px; }
  .nav .links { gap: 16px; }
  .nav .links a { font-size: 13px; }
  table.tbl { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- 그로밋 (아내 페이지 + 여행 페이지, 작게) ---------- */
.gromit {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--line); background: #F2F8F9;
}
.gromit-box { width: 168px; flex: none; }
.gromit-box figcaption { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
@media (max-width: 640px) { .gromit-box { width: 132px; } }
