:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-hover: #181a15;
  --line: #2b2b30;
  --text: #f3f2ec;
  --muted: #9c9b93;
  --dim: #6f6e67;
  --accent: #d8ff4a;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 650px at 85% -15%, #1b2410 0%, transparent 58%),
    var(--bg);
  font-family: Pretendard, system-ui, "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid rgba(43, 43, 48, 0.85);
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 6px;
}

.site-header nav a {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.site-header nav a[aria-current="page"] {
  border: 1px solid var(--line);
}

.wrap {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.hero {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.summary {
  display: flex;
  gap: 44px;
  margin: 48px 0 0;
}

.summary div {
  display: grid;
  gap: 5px;
}

.summary dt {
  color: var(--dim);
  font-size: 0.78rem;
}

.summary dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 20px;
  align-items: center;
  padding: 34px 0 20px;
}

.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.search input:focus {
  border-color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.result-count {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 0.84rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resource-card:hover {
  border-color: #596a28;
  background: var(--panel-hover);
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.badge.primary {
  border-color: #4e5f23;
  color: var(--accent);
}

.resource-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.description {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.file-info {
  color: var(--dim);
  font-size: 0.78rem;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  text-decoration: none;
}

.actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.actions .download {
  border-color: var(--accent);
  color: #111;
  background: var(--accent);
  font-weight: 700;
}

.actions .download:hover {
  color: #111;
  filter: brightness(0.9);
}

.empty {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer {
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
  text-align: center;
}

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

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

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1040px);
    padding-top: 52px;
  }

  .summary {
    gap: 24px;
  }

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

  .filters {
    justify-content: flex-start;
  }

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

@media (max-width: 460px) {
  .summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-card {
    min-height: 0;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
