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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --ash: #5c5c5c;
  --line: #d9d9d9;
  --line-2: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.58);
  --r: 28px;
  --unit: 8px;
  --bar: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(140% 90% at 6% -12%, #ececec 0%, rgba(255, 255, 255, 0) 58%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 96px);
  background-attachment: fixed;
  font-family: "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* 顶部细条 */
.strip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  max-width: 100%;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.22em;
  overflow: hidden;
  white-space: nowrap;
}

.strip-l {
  flex: 1;
  min-width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

/* 页头 */
.masthead {
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.masthead-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  max-width: 100%;
}

.masthead-in > * {
  min-width: 0;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 0 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.brand-t {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pop {
  position: relative;
  min-width: 0;
}

.pop-r {
  justify-self: end;
}

.nav-pop > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-pop > summary::-webkit-details-marker {
  display: none;
}

.nav-pop > summary:hover,
.nav-pop[open] > summary {
  background: var(--ink);
  color: var(--paper);
}

.nav-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.pop-r .nav-list {
  left: auto;
  right: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
}

.nav-list a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 粘性胶囊锚点条 */
.anchor-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}

.rail {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill:hover,
.pill.is-on {
  background: var(--ink);
  color: var(--paper);
}

.pill:hover {
  transform: translateY(-2px);
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: 45vh;
  max-width: 100%;
  padding: 28px 16px 34px;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.hero-slash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48%, 340px);
  background: var(--ink);
  -webkit-clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6.4vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.hero-desc {
  margin: 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  height: 190px;
  max-width: 100%;
  will-change: transform;
}

.hero-figure .hero-a {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  filter: grayscale(1) contrast(1.05);
}

.hero-figure .hero-b {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 46%;
  height: 62%;
  object-fit: cover;
  border: 6px solid var(--paper);
  border-radius: 18px;
  transform: rotate(2.5deg);
  filter: grayscale(1);
}

/* 主体：左侧索引 + 正文 */
main {
  display: block;
  max-width: 100%;
  overflow-x: clip;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1264px;
  margin: 0 auto;
  padding: 26px 16px;
}

.layout > * {
  min-width: 0;
}

.index-aside {
  align-self: start;
  min-width: 0;
  border-top: 4px solid var(--ink);
  padding-top: 12px;
}

.index-aside small {
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--ash);
}

.index-aside h2 {
  margin: 6px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
}

.index-list a:hover .idx-t {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.idx-n {
  min-width: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.content article {
  scroll-margin-top: calc(var(--bar) + 16px);
  margin: 0 0 20px;
  padding: 24px 18px;
  max-width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content article > *:first-child {
  margin-top: 0;
}

.content article > *:last-child {
  margin-bottom: 0;
}

.content h2 {
  margin: 0 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.content h3 {
  margin: 1.4em 0 0.5em;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.content small {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ash);
}

.content p {
  margin: 0 0 1em;
  max-width: 68ch;
  overflow-wrap: break-word;
}

.content ul,
.content ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.content li {
  margin: 0.3em 0;
  overflow-wrap: break-word;
}

.content a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  overflow-wrap: break-word;
}

.content img {
  margin: 1em 0;
  max-width: 100%;
  border-radius: 20px;
}

.content figure {
  margin: 1em 0;
  max-width: 100%;
}

.content figcaption {
  font-size: 15px;
  color: var(--ash);
}

.content blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--ink);
  background: rgba(0, 0, 0, 0.035);
}

.content pre {
  margin: 1em 0;
  padding: 14px 16px;
  max-width: 100%;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  overflow-wrap: break-word;
}

.content pre code {
  white-space: pre;
  overflow-wrap: normal;
}

.content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.content hr {
  margin: 1.6em 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

/* 页脚 */
.foot {
  margin-top: 24px;
  padding: 36px 16px 22px;
  max-width: 100%;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

.foot-form {
  max-width: 1264px;
  margin: 0 auto 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.foot-form small {
  font-size: 14px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.7);
}

.foot-form h2 {
  margin: 8px 0 16px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sub-l {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 540px;
}

.sub-row input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.sub-row input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.sub-row button {
  min-height: 46px;
  padding: 0 26px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.sub-row button:hover {
  background: var(--ink);
  color: var(--paper);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1264px;
  margin: 0 auto;
}

.foot-grid > * {
  min-width: 0;
}

.foot-grid dt {
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--paper);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.68);
}

.foot-grid dd {
  margin: 0;
  font-size: 16px;
  overflow-wrap: break-word;
}

.foot-grid dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.foot-grid dd a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-base {
  max-width: 1264px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: break-word;
}

/* 断点 */
@media (min-width: 720px) {
  .content article {
    margin-bottom: 26px;
    padding: 34px 38px;
  }

  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 960px) {
  .masthead-in {
    padding: 12px 40px;
  }

  .brand {
    font-size: 19px;
    gap: 10px;
    padding: 0 8px;
  }

  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
    padding: 44px 40px 52px;
  }

  .hero-copy {
    grid-column: 1 / 7;
  }

  .hero-figure {
    grid-column: 7 / 13;
    height: clamp(220px, 26vh, 300px);
  }

  .hero-slash {
    width: min(42%, 460px);
  }

  .layout {
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    gap: 36px;
    padding: 46px 40px;
  }

  .index-aside {
    position: sticky;
    top: calc(var(--bar) + 14px);
  }

  .index-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .foot {
    padding: 48px 40px 24px;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}

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