@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --neon: #87ff71;
  --sun: #ffce5c;
  --ink: #192617;
  --paper: #fffdf0;
  --leaf: #f2ffe9;
  --line: 3px;
  --shadow: 7px 7px 0 rgba(25, 38, 23, 0.92);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--neon);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  opacity: 0.12;
}

a { color: var(--ink); }

/* ---------- 顶部两行 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--neon);
  border-bottom: var(--line) solid var(--ink);
}

.bar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(14px, 4vw, 40px);
}

.brand {
  display: inline-block;
  min-height: 44px;
  padding: 6px 16px;
  background: var(--sun);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.55;
  transform: rotate(-1.2deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.bar-stripes {
  width: 78px;
  height: 20px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 14px);
}

.menu-sum {
  display: none;
  list-style: none;
  cursor: pointer;
  background: var(--sun);
  border-top: var(--line) solid var(--ink);
  padding: 11px clamp(14px, 4vw, 40px);
  min-height: 46px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 16px;
}
.menu-sum::-webkit-details-marker { display: none; }
.menu-sum::marker { content: ""; }
.menu-sum-t { display: inline-block; }
.menu-sum-t::before { content: "▚ "; }
.menu-wrap[open] .menu-sum-t::before { content: "▞ "; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 4px clamp(10px, 3vw, 32px) 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.menu-list a {
  display: block;
  min-height: 44px;
  padding: 9px 13px;
  line-height: 1.6;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--sun);
  border-color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(26px, 6vw, 58px) clamp(16px, 4vw, 40px) clamp(34px, 7vw, 60px);
  border-bottom: 6px solid var(--ink);
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(62px, 19vw, 180px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  top: 6%;
  left: -46px;
  width: 132px;
  height: 132px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  mix-blend-mode: multiply;
  transform: rotate(8deg);
}

.hero-tri {
  position: absolute;
  right: -18px;
  bottom: 10%;
  width: 0;
  height: 0;
  border-left: 54px solid transparent;
  border-right: 54px solid transparent;
  border-bottom: 92px solid var(--ink);
  opacity: 0.9;
  transform: rotate(-14deg);
}

.hero-squiggle {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 74px;
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 11px);
  border-radius: 999px;
  transform: rotate(-8deg);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  transform: rotate(-7deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.hero-mark-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mark svg { width: 62%; height: 62%; }

.hero-h1 {
  margin: 0;
  font-size: clamp(29px, 6.2vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 46ch;
  color: #22331f;
  font-size: 17px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  margin-top: 6px;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--ink);
  color: var(--neon);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--sun);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--sun);
  outline: none;
}

/* ---------- 正文 + 右栏 ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px clamp(14px, 4vw, 34px) 64px;
  align-items: start;
}

.doc { min-width: 0; }

.doc > section {
  position: relative;
  --r: 0.25deg;
  margin: 0 0 26px;
  padding: clamp(18px, 3.2vw, 32px);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-bottom: 9px solid var(--sun);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r));
  scroll-margin-top: 122px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc > section:nth-of-type(even) { --r: -0.32deg; }
.doc > section:last-child { margin-bottom: 0; }

.doc > section:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 10px 10px 0 rgba(25, 38, 23, 0.92);
}

.doc h2 {
  margin: 0.15em 0 0.6em;
  font-size: clamp(21px, 2.7vw, 29px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  border-bottom: var(--line) dashed var(--ink);
  padding-bottom: 0.35em;
}

.doc h3 {
  margin: 1.2em 0 0.5em;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.doc p { margin: 0 0 1em; }
.doc p:last-child { margin-bottom: 0; }

.doc a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sun);
  text-underline-offset: 3px;
}

.doc ul, .doc ol { padding-left: 1.35em; margin: 0 0 1em; }
.doc li { margin: 0.35em 0; }
.doc li::marker { color: #3d5a34; font-weight: 700; }

.doc strong { background: linear-gradient(transparent 62%, var(--sun) 62%); }

.doc img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: #fff;
}

.doc blockquote {
  margin: 1em 0;
  padding: 0.7em 1.1em;
  background: var(--leaf);
  border-left: 8px solid var(--neon);
  border-radius: 0 10px 10px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
}

.doc th, .doc td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.doc th { background: var(--sun); }

.doc code, .doc pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.doc code { background: var(--leaf); padding: 0.1em 0.4em; border-radius: 5px; }
.doc pre { overflow-x: auto; background: var(--leaf); padding: 12px; border-radius: 10px; }

.doc hr { border: none; border-top: var(--line) dotted var(--ink); margin: 1.4em 0; }

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 96px;
  padding: 16px 16px 18px;
  background: var(--sun);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 rgba(25, 38, 23, 0.92);
  transform: rotate(0.8deg);
}

.rail-kicker {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 12px;
  color: var(--neon);
  background: var(--ink);
  border-radius: 999px;
}

.rail-title {
  margin: 10px 0 6px;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.rail-list {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
}

.rail-list a {
  display: block;
  min-height: 44px;
  padding: 9px 6px;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px dotted rgba(25, 38, 23, 0.45);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--paper);
  border-radius: 8px;
  outline: none;
}

.rail-top {
  display: inline-block;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--neon);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 页脚四栏 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 42px clamp(14px, 4vw, 40px) 22px;
  background: var(--ink);
  color: var(--neon);
  border-top: 6px solid var(--sun);
}

.foot-mega {
  margin: 0;
  font-size: clamp(28px, 5.6vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--sun);
  transform: rotate(-1.6deg);
  word-break: break-word;
}

.foot-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sun);
  border-bottom: 3px dotted var(--neon);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-list a {
  display: block;
  min-height: 44px;
  padding: 9px 0;
  line-height: 1.6;
  font-size: 16px;
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px dashed rgba(135, 255, 113, 0.28);
}

.foot-list a:hover,
.foot-list a:focus-visible { color: var(--sun); outline: none; }

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 3px solid rgba(135, 255, 113, 0.32);
  font-size: 16px;
}

.foot-mini { display: flex; gap: 8px; flex-wrap: wrap; }

.foot-mini a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--neon);
  text-decoration: none;
  border: 2px solid rgba(135, 255, 113, 0.5);
  border-radius: 999px;
}

.foot-mini a:hover,
.foot-mini a:focus-visible { background: var(--sun); color: var(--ink); border-color: var(--sun); outline: none; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .has-js .doc > section,
  .has-js .rail,
  .has-js .foot > section {
    opacity: 0;
    transform: translateY(16px) rotate(var(--r, 0deg));
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .has-js .doc > section.is-in,
  .has-js .rail.is-in,
  .has-js .foot > section.is-in {
    opacity: 1;
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  .has-js .doc > section.is-in:hover { transform: translateY(-3px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; transform: none; }
  .rail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
}

@media (max-width: 760px) {
  .bar { position: static; }
  .menu-sum { display: block; }
  .menu-wrap:not([open]) > .menu-list { display: none; }
  .menu-list { flex-direction: column; gap: 2px; }
  .menu-list a { border-radius: 10px; border-color: rgba(25, 38, 23, 0.22); }
  .bar-stripes { width: 54px; }
  .doc > section, .doc > section:nth-of-type(even) { --r: 0deg; transform: none; }
  .doc > section { scroll-margin-top: 16px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .hero-blob { left: -60px; }
}

@media (max-width: 520px) {
  .foot { grid-template-columns: 1fr; }
  .rail-list { grid-template-columns: 1fr; }
  .hero-tri { right: -30px; opacity: 0.65; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
