

@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  
  --bg:        #0B0F14;
  --bg-2:      #141A21;   
  --bg-3:      #1C242D;   
  --line:      #263039;
  --line-2:    #36434F;

  --ink:       #E8EDF2;
  --ink-2:     #A9B6C3;
  --ink-3:     #778693;

  --brand:     #4FBFB8;
  --brand-2:   #7FD6D0;   
  --brand-ink: #06312F;   
  --brand-dim: #14332F;   

  --ok:        #4ADE80;
  --warn:      #FBBF24;
  --bad:       #F87171;

  --r:    4px;    
  --r-lg: 8px;    
  --w:    72rem;  

  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: break-word;
  
  word-break: keep-all;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; word-break: keep-all; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); text-decoration: underline; }

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

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 46rem;
}

.small { font-size: 0.9rem; color: var(--ink-2); }

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

section { padding: 4rem 0; }
section + section { padding-top: 0; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.88);
  
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand span { color: var(--brand); }
.brand small {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  vertical-align: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.btn-com {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.btn-com:hover {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

@media (max-width: 640px) {
  
  .site-nav .nav-link { display: none; }
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 4rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--brand); }
.legal { color: var(--ink-3); font-size: 0.85rem; }

.lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-3) center/cover no-repeat;
  border: 0;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
}

.lite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, 0.10) 0%,
              rgba(0, 0, 0, 0.05) 45%,
              rgba(0, 0, 0, 0.55) 100%);
  transition: background 0.2s ease;
}
.lite:hover::after { background: rgba(0, 0, 0, 0.22); }

.lite-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.18s ease, transform 0.18s ease;
}
.lite:hover .lite-play,
.lite:focus-visible .lite-play {
  background: var(--brand);
  border-color: var(--brand);
  transform: translate(-50%, -50%) scale(1.06);
}
.lite-play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.lite:hover .lite-play svg { fill: var(--brand-ink); }

.lite-dur {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 1;
  padding: 0.1rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 3px;
}

.lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero { padding: 3.5rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

.hero-grid > div:only-child {
  grid-column: 1 / -1;
  max-width: 46rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.5rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.topic {
  padding: 1.1rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.topic:hover { border-color: var(--line-2); background: var(--bg-3); }
.topic h3 { margin-bottom: 0.3rem; color: var(--ink); }
.topic p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.topic .n {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 1.8rem;
}
.filters button {
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button[aria-pressed="true"] {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.6rem 1.3rem;
}
.card[hidden] { display: none; }
.card h3 {
  margin: 0.75rem 0 0.3rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}
.card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.tag {
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  border-radius: 3px;
}

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.empty h3 { color: var(--ink); margin-bottom: 0.5rem; }
.empty p { color: var(--ink-2); margin: 0 auto; max-width: 32rem; }

.cross {
  margin-top: 1rem;
  padding: 2rem 1.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.cross h3 { color: var(--ink); margin-bottom: 0.3rem; font-size: 1.1rem; }
.cross p { color: var(--ink-2); margin: 0; }
.cross a {
  padding: 0.6rem 1.2rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  border-radius: var(--r);
  white-space: nowrap;
}
.cross a:hover { background: var(--brand-2); text-decoration: none; }

main h2 {
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
main h2:first-of-type { border-top: 0; padding-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
  
  display: block;
  overflow-x: auto;
}
th, td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}
th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
td { color: var(--ink-2); }
td strong { color: var(--ink); }

code {
  padding: 0.1rem 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--brand-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  
  overflow-wrap: anywhere;
}

main ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0 0 1rem;
  color: var(--ink-2);
}
main ul li { margin-bottom: 0.4rem; }
main ol { padding-left: 1.3rem; margin: 0 0 1rem; color: var(--ink-2); }
