:root {
  color-scheme: dark;
  --bg: #000000; --surface: #000000; --surface-alt: #080808;
  --line: #383838; --line-strong: #888888; --card-border: #E3E3E3;
  --text: #F3F3F3; --muted: #BFBFBF; --accent: #B7F0B1;
  --blue: #B2CCFF; --amber: #FFBA3E; --danger: #FFB2A7;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; border-radius: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1248px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; color: #000; background: var(--blue); font-weight: 700; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #000; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.brand img { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .9375rem; padding-block: 24px; position: relative; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.menu-button { display: none; color: var(--text); background: #000; border: 1px solid var(--card-border); padding: 8px 14px; min-height: 44px; }
#main { min-height: 70vh; }
#main:focus { outline: none; }
.eyebrow { font-family: var(--mono); font-size: .875rem; font-weight: 500; letter-spacing: .035em; color: var(--muted); }
.eyebrow-accent { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 11px 19px; border: 1px solid var(--card-border); border-radius: 0; background: #000; color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.button-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.button-primary:hover { background: #C9FAC4; color: #000; }
.button-quiet { border-color: transparent; color: var(--muted); }
.button-danger { border-color: var(--danger); color: var(--danger); }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.search-field { display: flex; border: 1px solid var(--line-strong); background: #000; }
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-field input { border: 0; background: transparent; color: var(--text); padding: 12px 14px; min-width: 0; width: 100%; min-height: 48px; font-size: 1rem; outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search-field button { flex-shrink: 0; width: 50px; min-height: 48px; background: transparent; border: 0; color: var(--accent); display: flex; justify-content: center; align-items: center; }
.search-field button:hover { background: #151515; }
.search-icon { width: 22px; height: 22px; }

/* 홈: 브랜드, 신규 프로젝트, 분야 카드. */
.home-page { width: 100%; margin-inline: auto; }
.home-header { text-align: center; padding: 52px 0 40px; }
.home-header h1 { font-family: var(--mono); font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 750; letter-spacing: -.07em; line-height: 1.2; margin: 17px 0 24px; }
.briefing-open { color: var(--accent); background: #000; border: 1px solid var(--accent); padding: 9px 16px; min-height: 44px; font-family: var(--mono); font-size: .9375rem; }
.briefing-open:hover { color: #000; background: var(--accent); }
.home-tagline { border-top: 1px solid var(--line); padding-top: 17px; color: var(--muted); font-size: 1.0625rem; max-width: 560px; margin-inline: auto; }
.home-search { max-width: 440px; margin: 25px auto 0; text-align: left; }
.content-section { padding: 30px 0 36px; border-top: 1px solid var(--line); }
.section-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.035em; }
.section-description { color: var(--muted); font-size: 1rem; margin-top: 8px; }
.section-heading > .text-link { flex-shrink: 0; }
.new-projects-empty { padding: 23px 0; }
.new-projects-empty .section-heading { margin-bottom: 3px; }
.new-projects-note { font-size: 1rem; color: var(--muted); }
.empty-state { border: 1px solid var(--card-border); background: #000; padding: 28px; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 7px; }
.empty-state p { color: var(--muted); font-size: 1rem; }
.empty-state .text-link { margin-top: 8px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card { background: #000; border: 1px solid var(--card-border); padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.category-card:hover, .category-card:focus-visible, .category-card:active { border-color: var(--category-color); }
.category-card:focus-visible { outline-color: var(--category-color); }
.category-topline { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.category-logo { width: 54px; height: 54px; flex-shrink: 0; }
.category-arrow { font-family: var(--mono); font-size: 1.5rem; line-height: 1.3; color: var(--text); }
.category-card:hover .category-arrow, .category-card:focus-visible .category-arrow { color: var(--category-color); }
.category-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; font-size: 1.5rem; font-weight: 650; line-height: 1.4; }
.category-name { font-family: var(--mono); color: var(--category-color); }
.category-label { font-family: var(--sans); font-size: 1rem; color: var(--text); font-weight: 500; }
.category-description { color: var(--muted); font-size: .9375rem; margin-top: 8px; }
.category-count { display: block; margin-top: 15px; color: var(--muted); font-size: .875rem; }
.category-game { --category-color: #FF66FF; }
.category-tools { --category-color: #00FFFF; }
.category-bots { --category-color: #99CCFF; }
.category-skill { --category-color: #FF6600; }
.category-data { --category-color: #66FF33; }
.category-extensions { --category-color: #FFFF00; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--card-border); background: #000; min-width: 0; }
.project-card:hover, .project-card:focus-visible, .project-card:active { border-color: var(--category-color, var(--accent)); }
.project-card:focus-visible { outline-color: var(--category-color, var(--accent)); }
.project-cover { aspect-ratio: 16/8; width: 100%; background: #000; border-bottom: 1px solid var(--line); object-fit: cover; }
.project-cover-placeholder { display: flex; align-items: center; justify-content: center; }
.project-cover-placeholder img { height: 80px; width: 80px; }
.project-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .875rem; }
.category-badge { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--category-color, var(--accent)); }
.new-badge { color: var(--accent); border: 1px solid #73956F; font-size: .875rem; padding: 1px 5px; line-height: 1.5; }
.featured-badge { color: var(--amber); border: 1px solid #9B762D; font-size: .875rem; padding: 1px 5px; line-height: 1.5; }
.status-badge { color: var(--muted); font-size: .875rem; }
.project-card h3 { font-size: 1.375rem; line-height: 1.45; letter-spacing: -.03em; margin-top: 15px; }
.project-summary { color: var(--muted); font-size: 1rem; margin: 10px 0 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 12px; padding-top: 14px; margin-top: auto; font-size: .875rem; color: var(--muted); }
.project-card-footer span:last-child { color: var(--text); }

/* Briefing 원문은 홈의 기본 dialog와 소개 페이지에서 공유합니다. */
.dialog-open { overflow: hidden; }
.briefing-dialog { color: var(--text); background: #000; border: 1px solid var(--card-border); border-radius: 0; width: min(640px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; }
.briefing-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.briefing-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.briefing-header h2 { font-family: var(--mono); font-size: 1.375rem; color: var(--accent); font-weight: 600; }
.briefing-close { flex-shrink: 0; border: 1px solid var(--card-border); background: #000; color: var(--text); padding: 8px 12px; min-height: 44px; font-size: .9375rem; }
.briefing-close:hover { color: var(--accent); border-color: var(--accent); }
.briefing-copy { color: var(--muted); font-size: 1.0625rem; line-height: 1.95; }
.briefing-dialog .briefing-copy { padding: 28px; }
.briefing-copy p + p { margin-top: 22px; }
.briefing-copy strong { color: var(--text); font-weight: 650; }
.about-content { max-width: 720px; margin-inline: auto; padding: 45px 0 70px; }
.about-header { display: flex; align-items: center; gap: 24px; margin-bottom: 35px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.about-header img { width: 76px; height: 76px; flex-shrink: 0; }
.about-header h1 { font-family: var(--mono); color: var(--accent); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.3; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 35px; }
.site-footer { border-top: 1px solid var(--line); background: #000; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 24px; }
.footer-copyright { color: var(--muted); font-size: .875rem; }
.footer-brand { font-family: var(--mono); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .875rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); }

/* 목록과 상세: 작은 메타 정보도 기본 글꼴 기준14px 이상. */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .875rem; color: var(--muted); padding-top: 25px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text); }
.listing-header { display: flex; align-items: center; gap: 26px; padding: 28px 0 34px; }
.listing-logo { width: 86px; height: 86px; flex-shrink: 0; }
.listing-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.04em; line-height: 1.35; margin: 7px 0 10px; }
.listing-header h1 span { color: var(--category-color, var(--accent)); }
.listing-header p { color: var(--muted); font-size: 1rem; }
.listing-total { margin-left: auto; font-family: var(--mono); font-size: 2.5rem; color: var(--category-color, var(--accent)); text-align: right; }
.listing-total small { font-family: var(--sans); color: var(--muted); font-size: .875rem; display: block; letter-spacing: 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.category-tab { border: 1px solid var(--line-strong); padding: 9px 14px; min-height: 46px; font-size: .9375rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.category-tab:hover, .category-tab:focus-visible { border-color: var(--category-color, var(--accent)); color: var(--text); }
.category-tab[aria-current="page"] { border-color: var(--category-color, var(--accent)); color: var(--category-color, var(--accent)); }
.tab-count { font-family: var(--mono); font-size: .875rem; }
.filter-form { display: grid; grid-template-columns: minmax(180px, 1fr) 180px 170px; gap: 16px; padding: 26px 0 20px; align-items: end; }
.filter-label { font-size: .9375rem; color: var(--muted); display: block; margin-bottom: 8px; }
.filter-select { width: 100%; border: 1px solid var(--line-strong); padding: 10px 12px; min-height: 50px; background: #000; color: var(--text); font-size: 1rem; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-bottom: 18px; color: var(--muted); font-size: .9375rem; }
.result-meta strong { color: var(--text); font-weight: 500; }
.listing-results { padding-bottom: 55px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; margin-top: 28px; }
.pagination > span { font-family: var(--mono); font-size: .9375rem; min-width: 68px; text-align: center; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 345px; gap: 45px; padding: 33px 0 60px; align-items: start; }
.detail-article { min-width: 0; }
.detail-intro .project-badges { margin-bottom: 16px; }
.detail-intro h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.35; margin-bottom: 18px; }
.detail-intro > p { font-size: 1.125rem; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.detail-cover { width: 100%; max-height: 480px; object-fit: contain; background: #000; border: 1px solid var(--card-border); margin: 25px 0; }
.detail-description { border-top: 1px solid var(--line); margin-top: 29px; padding-top: 26px; }
.detail-description h2 { font-size: 1.375rem; margin-bottom: 19px; }
.prose { font-size: 1.0625rem; line-height: 1.95; color: #DFDFDF; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.detail-sidebar { position: sticky; top: 108px; border: 1px solid var(--card-border); background: #000; }
.detail-sidebar:hover, .detail-sidebar:focus-within { border-color: var(--category-color, var(--accent)); }
.detail-mobile-jump { display: none; }
.detail-sidebar-heading { display: flex; align-items: center; gap: 13px; padding: 22px; border-bottom: 1px solid var(--line); }
.detail-sidebar-heading img { width: 48px; height: 48px; flex-shrink: 0; }
.detail-sidebar-heading .eyebrow { color: var(--category-color, var(--accent)); }
.detail-sidebar-heading strong { font-size: 1rem; font-weight: 600; }
.detail-links { display: flex; flex-direction: column; gap: 12px; padding: 23px; }
.detail-links .button { justify-content: space-between; word-break: normal; }
.external-note { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.detail-facts { margin: 0; padding: 0 23px 19px; }
.detail-facts > div { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 12px 0; font-size: .9375rem; }
.detail-facts dt { color: var(--muted); flex-shrink: 0; }
.detail-facts dd { margin: 0; text-align: right; }
.detail-actions { padding: 0 23px 23px; }
.detail-actions .button { width: 100%; }
.copy-feedback { font-size: .875rem; color: var(--accent); margin-top: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.tag { font-size: .9375rem; color: var(--muted); border: 1px solid var(--line-strong); padding: 8px 11px; min-height: 44px; display: inline-flex; align-items: center; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.related-section { border-top: 1px solid var(--line); padding: 31px 0 50px; }
.status-notice { background: #151109; border-left: 2px solid var(--amber); padding: 14px 17px; color: #F0D6A5; font-size: 1rem; margin-bottom: 23px; }
.error-page { padding: 75px 0 95px; max-width: 780px; }
.error-page h1 { font-size: 2rem; margin: 18px 0; letter-spacing: -.04em; }
.error-page p { color: var(--muted); margin-bottom: 25px; }
.initial-loading { padding: 90px 0; color: var(--muted); font-size: 1rem; }
.noscript-message { padding: 25px; border: 1px solid var(--amber); color: var(--amber); }
@media (max-width: 1023px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: .875rem; }
  .home-header { padding-top: 38px; }
  .category-card { padding: 21px; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form > div:first-child { grid-column: 1 / -1; }
  .detail-layout { display: flex; flex-direction: column; gap: 30px; }
  .detail-article, .detail-sidebar { width: 100%; }
  .detail-sidebar { position: static; }
  .detail-mobile-jump { display: inline-flex; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .category-grid, .project-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; position: relative; }
  .brand img { width: 36px; height: 36px; }
  .brand-word { font-size: 1.375rem; }
  .menu-button { display: inline-flex; align-items: center; gap: 14px; font-size: .9375rem; }
  .site-nav { display: none; width: 100%; padding-bottom: 13px; flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; padding: 11px 10px; border-top: 1px solid var(--line); font-size: 1rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .home-header { padding-block: 32px; }
  .home-header h1 { margin-top: 19px; margin-bottom: 20px; }
  .home-tagline { font-size: 1rem; }
  .home-search { margin-top: 22px; }
  .content-section { padding-block: 25px 30px; }
  .section-heading { gap: 14px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 1.375rem; }
  .section-heading > .text-link { font-size: .875rem; }
  .new-projects-empty { padding-block: 20px; }
  .category-topline { margin-bottom: 14px; }
  .category-description { font-size: 1rem; }
  .category-count { margin-top: 12px; }
  .empty-state { padding: 22px; }
  .project-cover { aspect-ratio: 16/7; }
  .briefing-dialog { width: calc(100% - 28px); }
  .briefing-header { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .briefing-header h2 { font-size: 1.25rem; }
  .briefing-dialog .briefing-copy { padding: 23px 20px; }
  .briefing-copy { font-size: 1rem; }
  .footer-inner { padding-block: 18px; gap: 2px 20px; }
  .footer-links { gap: 18px; }
  .breadcrumb { padding-top: 16px; }
  .listing-header { gap: 18px; align-items: flex-start; padding-block: 23px 28px; }
  .listing-logo { width: 60px; height: 60px; margin-top: 7px; }
  .listing-total { display: none; }
  .listing-header h1 { font-size: 1.875rem; }
  .listing-header .eyebrow { font-size: .875rem; }
  .category-tabs { gap: 8px; padding-bottom: 20px; }
  .category-tab { padding-inline: 12px; }
  .filter-form { gap: 12px; padding-top: 20px; }
  .detail-layout { padding-top: 25px; padding-bottom: 36px; }
  .detail-intro > p { font-size: 1.0625rem; }
  .detail-links, .detail-sidebar-heading { padding: 20px; }
  .detail-facts { padding-inline: 20px; }
  .about-content { padding-block: 30px 45px; }
  .about-header { gap: 18px; margin-bottom: 26px; }
  .about-header img { width: 60px; height: 60px; }
  .error-page { padding-block: 45px 60px; }
  .error-page h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
