:root {
  --ink: #111318;
  --paper: #f4f0e7;
  --card: #fffdf8;
  --white: #ffffff;
  --orange: #ff624b;
  --orange-dark: #a92f22;
  --yellow: #dfff48;
  --lime: #dfff48;
  --sky: #72d8ff;
  --focus: #5865ff;
  --muted: #64676f;
  --line: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
  background:
    radial-gradient(circle at 7% 15%, rgba(223, 255, 72, 0.62) 0 4px, transparent 5px),
    radial-gradient(circle at 93% 22%, rgba(255, 98, 75, 0.34) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 86%, rgba(114, 216, 255, 0.52) 0 4px, transparent 5px),
    var(--paper);
  background-size: 42px 42px, 58px 58px, 50px 50px, auto;
}

a {
  color: #174d65;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a:hover {
  color: #8f2e1e;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-bottom: clamp(58px, 9vw, 94px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 19px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  margin-bottom: 46px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 17px;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-1deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(42px, 8vw, 74px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 650;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.meta-strip span {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 250, 240, 0.9);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.article-card {
  padding: clamp(25px, 5vw, 52px);
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-section {
  scroll-margin-top: 24px;
}

.article-section + .article-section {
  margin-top: 58px;
  padding-top: 50px;
  border-top: 1.5px solid #9c9488;
}

h2 {
  margin-bottom: 17px;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.article-card p,
.article-card li,
.definition-list dd {
  color: #4f4a43;
  font-size: 15px;
  line-height: 1.78;
  letter-spacing: -0.01em;
}

.article-card p:last-child,
.article-card li:last-child {
  margin-bottom: 0;
}

.article-card ul,
.article-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 23px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.info-box {
  padding: 21px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}

.info-box p {
  margin: 0;
  font-size: 14px;
}

.definition-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  background: var(--white);
}

.definition-list > div + div {
  border-top: 1px solid #bcb3a6;
}

.definition-list dt {
  font-size: 14px;
  font-weight: 950;
}

.definition-list dd {
  margin: 0;
  font-size: 14px;
}

.notice {
  margin: 22px 0 0;
  padding: 19px 21px;
  color: #4f3029;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.7;
  background: #ffe7df;
  border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0;
}

.notice.is-blue {
  color: #153d4e;
  background: #dff3fb;
  border-left-color: #2585aa;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 22px;
  background: var(--ink);
  border-radius: 16px;
}

.contact-card strong,
.contact-card span {
  display: block;
}

.contact-card strong {
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 15px;
}

.contact-card span {
  color: #e8e0d5;
  font-size: 13px;
  line-height: 1.55;
}

.contact-card a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  background: var(--yellow);
  border-radius: 10px;
}

.ad-zone {
  display: grid;
  min-height: 280px;
  align-content: start;
  margin-top: 46px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #aaa298;
  border-radius: 14px;
}

.ad-zone[hidden] {
  display: none;
}

.ad-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 70px;
  padding: 28px 0 6px;
  border-top: 1.5px solid var(--ink);
}

.footer-copy strong,
.footer-copy span {
  display: block;
}

.footer-copy strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    margin-bottom: 58px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 940px);
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: clamp(39px, 14vw, 58px);
  }

  .article-card {
    padding: 25px 19px;
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .article-section + .article-section {
    margin-top: 44px;
    padding-top: 40px;
  }

  .contact-card,
  .site-footer {
    display: grid;
  }

  .contact-card a {
    width: fit-content;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
