/* Pinpal 웹 (pinpal.sggd.store) — 시작 화면 시안 B 색감: 하늘 파랑, 크림, 진한 갈색 테두리, 금색 */
:root {
  --sky: #38a0e6;
  --sky-deep: #1f7fc8;
  --sky-light: #e8f5fe;
  --cream: #fff6e0;
  --ink: #3b2417;
  --ink-soft: #5b4636;
  --gold: #f2c14e;
  --gold-deep: #c98e2c;
  --paper: #fffdf7;
  --line: #e7d9bf;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--sky-deep); }

.hero {
  position: relative;
  background: var(--sky) url("img/hero.jpg") center 70% / cover no-repeat;
  image-rendering: pixelated;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px 20px;
  border-bottom: 4px solid var(--ink);
}
.hero.tall { min-height: 360px; }
.hero a.home { display: block; line-height: 0; }
.hero img.logo {
  width: min(320px, 78vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(59, 36, 23, 0.35));
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 2px solid var(--line);
}
nav.top a, .lang a {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
nav.top a[aria-current="page"], .lang a.on { background: var(--gold); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.lang { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }

h1 { font-size: 26px; line-height: 1.35; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 6px; }
p.meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
ul { padding-left: 20px; }
li { margin: 4px 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
th { background: var(--cream); }

.card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 0 var(--line);
}
.card.sky { background: var(--sky-light); }

.mail {
  display: inline-block;
  margin: 4px 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid a.card { display: block; color: var(--ink); text-decoration: none; margin: 0; }
.grid a.card strong { display: block; font-size: 17px; }

footer {
  border-top: 2px solid var(--line);
  padding: 20px 16px 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
footer img { vertical-align: middle; border-radius: 8px; margin-right: 6px; }

/* 한·영: JS가 있으면 고른 언어만, 없으면 둘 다 보임 */
html.js [data-lang] { display: none; }
html.js[data-show="ko"] [data-lang="ko"], html.js[data-show="en"] [data-lang="en"] { display: block; }
