:root {
  --ink: #172026;
  --paper: #f7f5ee;
  --paper-deep: #ece9df;
  --panel: #fffefa;
  --muted: #5d6769;
  --line: #d7d8d0;
  --teal: #207b78;
  --teal-soft: #d7ece8;
  --coral: #c95749;
  --coral-soft: #f7e1dc;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.09);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(215, 216, 208, 0.86);
  background: rgba(247, 245, 238, 0.93);
  backdrop-filter: blur(15px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand strong { display: block; font-size: 1.06rem; letter-spacing: 0; }
.brand small { display: block; margin-top: 2px; color: var(--teal); font-size: 0.65rem; font-weight: 800; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; white-space: nowrap; }
.nav a { padding: 9px 11px; border-radius: 7px; color: #354247; font-size: 0.92rem; font-weight: 750; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); outline: none; }

.hero {
  position: relative;
  min-height: min(640px, calc(100vh - 67px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 78px);
  background: #edf0ea;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,245,238,.97) 0%, rgba(247,245,238,.90) 38%, rgba(247,245,238,.18) 75%); }
.hero-image { position: absolute; inset: 0; background: url("./assets/newtoki-safety-hero.png") center / cover no-repeat; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin-bottom: 15px; color: var(--teal); font-size: 0.78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1 { margin-bottom: 20px; font-size: clamp(2.3rem, 5.4vw, 5.15rem); line-height: 1.08; letter-spacing: 0; }
.hero-copy { max-width: 610px; color: #435054; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 15px; border: 1px solid var(--ink); border-radius: 7px; font-weight: 850; }
.button.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button.secondary { background: rgba(255,255,255,.58); }
.notice { margin-top: 18px; color: #5a5650; font-size: .81rem; line-height: 1.65; }

.topic-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.topic-strip a { min-height: 58px; display: grid; place-items: center; padding: 12px; border-right: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 800; text-align: center; }
.topic-strip a:hover { color: #fff; background: #263239; }

.section { max-width: 1190px; margin: 0 auto; padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 44px) 0; }
.section-header { max-width: 760px; margin-bottom: 28px; }
h2 { margin-bottom: 13px; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 1.16rem; line-height: 1.4; }
.section-header p:not(.eyebrow), .card p, .article p, .term-card p, .faq-list p, .footer p, .callout p { color: var(--muted); font-size: 1rem; line-height: 1.78; }

.page-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-link { min-height: 165px; display: block; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); }
.page-link:nth-child(2) { border-top-color: var(--coral); }
.page-link:nth-child(3) { border-top-color: #737d5c; }
.page-link:nth-child(4) { border-top-color: #46566b; }
.page-link span { display: block; margin-bottom: 14px; color: var(--teal); font-size: .74rem; font-weight: 900; }
.page-link p { margin-bottom: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.editor-note { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; margin-top: clamp(56px, 8vw, 88px); padding: clamp(42px, 7vw, 72px) clamp(18px, 6vw, 72px); background: var(--teal-soft); border-top: 1px solid #c4dfda; border-bottom: 1px solid #c4dfda; }
.editor-note h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.editor-note p { margin: 0 0 14px; color: #36504f; line-height: 1.8; }
.editor-note p:last-child { margin-bottom: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 28px; align-items: start; }
.article { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); }
.article h2 { margin-top: 42px; font-size: clamp(1.38rem, 2.35vw, 2rem); }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 18px; }
.article a { color: var(--teal); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article ul { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.side-nav { position: sticky; top: 91px; display: grid; gap: 8px; padding: 17px; border-left: 2px solid var(--teal); background: rgba(255,255,255,.42); }
.side-nav strong { margin-bottom: 4px; color: var(--teal); font-size: .72rem; letter-spacing: 0; }
.side-nav a { color: #4d5a5d; font-size: .9rem; font-weight: 760; }
.side-nav a:hover { color: var(--teal); }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term-card { padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.term-card h3 { font-size: 1.32rem; }
.term-card p { margin-bottom: 0; }
.term-card:nth-child(3n+2) { background: #fbf1ed; }
.term-card:nth-child(3n) { background: #edf5f1; }

.callout { padding: 25px; border-left: 5px solid var(--coral); border-radius: 0 7px 7px 0; background: var(--coral-soft); }
.callout p { margin-bottom: 0; color: #70453e; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.card span { display: block; margin-bottom: 12px; color: var(--coral); font-size: .78rem; font-weight: 900; }
.card p { margin-bottom: 0; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.faq-list summary { padding: 17px 19px; cursor: pointer; color: #263337; font-weight: 850; }
.faq-list p { margin: 0; padding: 0 19px 18px; }
.faq-list details[open] { border-color: #9fcac3; }
.faq-list details[open] summary { color: var(--teal); }

.page-hero { padding: clamp(64px, 10vw, 110px) clamp(18px, 6vw, 78px) clamp(48px, 7vw, 76px); background: var(--ink); color: #fff; }
.page-hero .breadcrumb { margin-bottom: 18px; color: rgba(255,255,255,.62); font-size: .86rem; font-weight: 750; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero h1 { max-width: 900px; font-size: clamp(2rem, 4.7vw, 4.3rem); }
.page-hero .page-summary { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 1.06rem; line-height: 1.8; }

.footer { max-width: 1190px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 88px auto 0; padding: 28px clamp(18px, 5vw, 44px); border-top: 1px solid var(--line); }
.footer .brand img { width: 40px; height: 40px; }
.footer p { max-width: 360px; margin: 0; font-size: .86rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: #526064; font-size: .86rem; font-weight: 760; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nav { width: 100%; padding-bottom: 1px; }
  .hero { min-height: 610px; align-items: end; }
  .hero::after { background: linear-gradient(180deg, rgba(247,245,238,.78), rgba(247,245,238,.96) 65%, rgba(247,245,238,.99)); }
  .hero-image { background-position: 62% center; opacity: .82; }
  .topic-strip, .page-links, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-note, .article-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-nav strong { grid-column: 1 / -1; }
  .footer { align-items: flex-start; flex-direction: column; margin-top: 66px; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 1rem; }
  .brand small { display: none; }
  .nav a { padding: 8px 9px; font-size: .84rem; }
  .hero { min-height: 555px; }
  h1 { font-size: 2.35rem; }
  .topic-strip, .page-links, .terms, .mini-grid { grid-template-columns: 1fr; }
  .topic-strip a { min-height: 45px; }
  .side-nav { grid-template-columns: 1fr; }
  .editor-note { gap: 19px; }
}
