/* 토큰 출처: 앱 lib/app/theme.dart AppColors(전보 디스패치) — 값은 CLAUDE.md 표에 파일:줄로 적었다.
   글꼴은 앱 번들 TTF(assets/fonts)를 woff2 로 줄여 자체 호스팅(외부 CDN 없음). */
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 400; font-style: normal; font-display: swap; src: url("./fonts/plex-kr-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 700; font-style: normal; font-display: swap; src: url("./fonts/plex-kr-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("./fonts/jbmono.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-weight: 400; font-style: normal; font-display: swap; src: url("./fonts/special-elite.woff2") format("woff2"); }

:root {
  --bg: #e8dfc9;         /* AppColors.paper — 낡은 전보 용지 */
  --surface: #f0e9d6;    /* AppColors.surface — 카드 낱장 */
  --surface-2: #ddd2b3;  /* AppColors.paperDark — 얹힌 면 */
  --ink: #221d14;        /* AppColors.ink — 타자기 잉크 */
  --muted: #5c5344;      /* AppColors.inkFaded */
  --line: #8a7a52;       /* AppColors.line — 점선 테두리(글자색으로는 쓰지 않는다) */
  --accent: #a6321f;     /* AppColors.accent — 관인 빨강 */
  --on-accent: #f0e9d6;  /* 관인 위 글자: surface */
  --navy: #2e4256;       /* AppColors.accentNavy */
  --sans: "IBM Plex Sans KR", "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wire: "Special Elite", "Courier New", monospace;
}
* { 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; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

.site-header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto; padding: 16px; border-bottom: 1px dashed var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--navy); font-weight: 700; text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
h1 { font-size: clamp(1.6rem, 5.4vw, 2.4rem); line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.35; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
h3 { font-size: 1.05rem; margin: 14px 0 6px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.05rem; }

/* 전보 머리표 */
.wire { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--wire); letter-spacing: .08em; font-size: .9rem; color: var(--navy); }
.wire .no { font-family: var(--mono); letter-spacing: 0; }
.stamp { display: inline-block; transform: rotate(-3deg); border: 2px solid var(--accent); color: var(--accent); padding: 1px 10px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; border-radius: 3px; }

.hero { display: grid; gap: 20px; align-items: start; }
.hero-art { border: 1px solid var(--line); background: var(--surface); padding: 8px; }
.hero-art img { width: 100%; }
.hero-art figcaption { font-size: .85rem; color: var(--muted); padding: 8px 2px 0; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; } }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--surface); border: 1px dashed var(--line); padding: 14px; }
.card img { width: 100%; margin-bottom: 8px; border: 1px solid var(--line); }
.card h3 { margin-top: 4px; }
.card .date { font-family: var(--mono); font-size: .85rem; color: var(--navy); }
.card p:last-child { margin-bottom: 0; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border-left: 4px solid var(--accent); padding: 10px 14px; }
.facts b { display: block; }

.note { margin-top: 36px; padding: 14px; background: var(--surface-2); color: var(--ink); font-size: .92rem; }
.note p:last-child { margin-bottom: 0; }

.faq-list details { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list details p { margin: 8px 0 0; color: var(--muted); }
.support-form { display: grid; gap: 14px; max-width: 560px; }
.support-form label { display: grid; gap: 4px; font-weight: 700; }
.support-form input, .support-form select, .support-form textarea { width: 100%; max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.support-form button { justify-self: start; min-height: 44px; padding: 10px 22px; border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.support-form button:hover { background: var(--ink); }
#form-status { min-height: 1.5em; margin: 0; color: var(--navy); }

.policy { max-width: 760px; }
.policy .meta { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.policy ul { padding-left: 1.3em; margin: 0 0 12px; }
.policy li { margin-bottom: 4px; }
.policy table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 16px; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px dashed var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 110px; }
.policy th { background: var(--surface-2); }

footer { max-width: 960px; margin: 0 auto; padding: 20px 16px 32px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; }
footer a { color: var(--navy); }
footer a.privacy-link { font-weight: 800; color: var(--accent); }
/* scn_1775 원본은 위아래에 종이색 띠가 있어 그림 부분만 보이게 자른다 */
.card img.crop-1775 { aspect-ratio: 960 / 432; object-fit: cover; object-position: center 46%; }
.note a { color: var(--navy); font-weight: 700; }
figure { margin: 0; }
.grid + .lead { margin-top: 18px; }
