:root {
  --navy: #12304a;
  --teal: #087f7a;
  --teal-dark: #05645f;
  --ink: #172b3a;
  --muted: #5d6d79;
  --line: #d8e2e8;
  --soft: #f3f7f9;
  --ok: #137a45;
  --warn: #9a5b00;
  --bad: #b42318;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 48, 74, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--teal-dark); }
a:hover { text-decoration-thickness: 2px; }
img, canvas { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 44px; border: 0; border-radius: 10px; padding: .7rem 1rem; background: var(--teal); color: #fff; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: var(--teal-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
.button.secondary, button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.header-inner, main, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--navy); font-size: 1.15rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--teal); }
nav ul { display: flex; list-style: none; gap: .25rem; padding: 0; margin: 0; flex-wrap: wrap; }
nav a { color: var(--ink); padding: .65rem .7rem; text-decoration: none; border-radius: 8px; font-size: .94rem; }
nav a[aria-current="page"], nav a:hover { background: var(--soft); color: var(--teal-dark); }
main { padding: 2rem 0 4rem; }
.hero { padding: 1rem 0 2rem; }
.eyebrow { color: var(--teal-dark); font-weight: 800; margin: 0 0 .3rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; }
h1 { margin: .2rem 0 .7rem; font-size: clamp(2rem, 7vw, 3.3rem); letter-spacing: -.04em; }
h2 { margin-top: 2.4rem; font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.08rem; }
.lead { max-width: 720px; font-size: 1.08rem; color: var(--muted); }
.privacy-note { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .7rem; border-radius: 999px; background: #eaf8f5; color: #075e58; font-size: .9rem; font-weight: 750; }
.tool-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .tool-panel, .content-box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: clamp(1rem, 4vw, 1.5rem); }
.card h2, .card h3 { margin-top: 0; }
.card { text-decoration: none; color: inherit; }
.card:hover { border-color: #8fc9c5; transform: translateY(-2px); }
.tool-panel { margin-top: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field.full { grid-column: 1 / -1; }
label, legend { color: var(--navy); font-weight: 760; }
input, textarea, select { width: 100%; border: 1px solid #aebdc6; border-radius: 9px; background: #fff; color: var(--ink); padding: .72rem .8rem; }
textarea { min-height: 230px; resize: vertical; }
.hint { margin: 0; color: var(--muted); font-size: .88rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0 0; }
.metric { background: var(--soft); border-radius: 10px; padding: .8rem; }
.metric dt { color: var(--muted); font-size: .85rem; }
.metric dd { margin: .15rem 0 0; color: var(--navy); font-size: 1.35rem; font-weight: 850; overflow-wrap: anywhere; }
.status { margin-top: 1rem; border-left: 5px solid var(--teal); border-radius: 8px; padding: .8rem 1rem; background: var(--soft); font-weight: 700; }
.status.ok { border-color: var(--ok); background: #eef9f2; color: #0d6338; }
.status.warn { border-color: var(--warn); background: #fff7e8; color: #754600; }
.status.bad { border-color: var(--bad); background: #fff1f0; color: #8f1f17; }
.check-list { padding-left: 1.25rem; }
.check-list li { margin: .4rem 0; }
.preview { min-height: 180px; background: var(--soft); border: 1px dashed #9cb0bb; border-radius: 12px; display: grid; place-items: center; padding: 1rem; margin-top: 1rem; overflow: hidden; }
.preview img { max-height: 420px; object-fit: contain; }
.result-name { display: block; overflow-wrap: anywhere; padding: .9rem; background: var(--soft); border-radius: 9px; font-weight: 850; color: var(--navy); }
.ad-slot { margin: 2.5rem 0; min-height: 72px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-size: .82rem; background: #fafcfd; }
.prose { max-width: 820px; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }
details { border-top: 1px solid var(--line); padding: .8rem 0; }
summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.site-footer { background: var(--navy); color: #d9e5ec; padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.not-found { text-align: center; padding: 10vh 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: .8rem 0; }
  nav { width: 100%; overflow-x: auto; }
  nav ul { width: max-content; flex-wrap: nowrap; }
  main { padding-top: 1.2rem; }
  .tool-grid, .card-grid, .form-grid, .metrics { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  textarea { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
