/* Team AI Lab editorial factsheet. Tokens from DESIGN.md. Flat planes only. */

:root {
  --background: #F7F5F0;
  --surface: #EEEAE1;
  --surface-strong: #DCD6CA;
  --primary: #151515;
  --ink-muted: #595650;
  --signal: #0B5FFF;
  --signal-text: #FFFFFF;
  --evidence: #A6281B;
  --evidence-text: #FFFFFF;
  --highlight: #F3C04E;
  --highlight-text: #151515;
  --context: #006C69;
  --context-text: #FFFFFF;
  --outline: #8A857B;
  --caution: #8A5200;
  --caution-text: #FFFFFF;
  --inverse-text: #F7F5F0;
  --font-body: Pretendard, "Noto Sans KR", sans-serif;
  --font-display: "Archivo Narrow", Pretendard, sans-serif;
  --font-meta: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
  --measure: 68ch;
  --page: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background: #F7F5F0;
}

body {
  margin: 0;
  background: #F7F5F0;
  color: #151515;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  border-radius: 0px;
  font: inherit;
  color: inherit;
}

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

a {
  color: #0B5FFF;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #0B5FFF;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 5;
  background: #151515;
  color: #F7F5F0;
  padding: 8px 16px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.identity-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #F7F5F0;
  border-bottom: 1px solid #8A857B;
}

.identity-inner,
.scene-inner,
.site-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 6%;
  padding-right: 6%;
}

.identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 8px;
}

.logo {
  color: #151515;
  text-decoration: none;
  font-family: "Archivo Narrow", Pretendard, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.domain {
  margin: 0;
  color: #595650;
  font-family: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
  font-size: 0.95rem;
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #151515;
  padding: 4px;
}

.lang-switch span[aria-hidden="true"] {
  color: #595650;
  font-family: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
}

.lang-switch button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
  font-weight: 700;
}

.lang-switch button[aria-pressed="true"] {
  background: #151515;
  color: #F7F5F0;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding-bottom: 12px;
}

.site-nav a {
  color: #151515;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: #0B5FFF;
}

.nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.context-label,
.evidence-label,
.caution-label {
  display: inline-block;
  border-radius: 2px;
  padding: 4px 8px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
}

.context-label {
  background: #006C69;
  color: #FFFFFF;
}

.evidence-label {
  background: #A6281B;
  color: #FFFFFF;
}

.caution-label {
  background: #8A5200;
  color: #FFFFFF;
}

.scene {
  padding: 64px 0;
  border-bottom: 1px solid #DCD6CA;
}

.scene-kicker {
  margin: 0 0 12px;
  color: #595650;
  font-family: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
  font-size: 0.95rem;
}

h1,
.h-display {
  font-family: "Archivo Narrow", Pretendard, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

html[lang="ko"] h1,
html[lang="ko"] .h-display {
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 16px;
  font-family: "Archivo Narrow", Pretendard, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.02;
}

html[lang="ko"] h2,
html[lang="ko"] h3 {
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.lede,
.measure {
  max-width: 68ch;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
}

.claim-block {
  background: #151515;
  color: #F7F5F0;
  padding: 40px 6%;
}

.claim-block .scene-inner {
  padding-left: 0;
  padding-right: 0;
}

.claim-block h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
}

.claim-block p {
  max-width: 68ch;
  color: #F7F5F0;
  font-size: 1.15rem;
}

.claim-block a {
  color: #F3C04E;
}

.badge a {
  color: #0B5FFF;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.badge {
  background: #EEEAE1;
  color: #151515;
  border: 1px solid #8A857B;
  padding: 16px;
  min-height: 100%;
}

.badge dt {
  margin: 0 0 8px;
}

.badge dd {
  margin: 0;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 24px;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  background: #EEEAE1;
  border-top: 4px solid #151515;
  padding: 16px;
}

.role-list li:nth-child(2) {
  border-top-color: #0B5FFF;
}

.viewer {
  background: #EEEAE1;
  border: 1px solid #8A857B;
  padding: 16px;
}

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

.tablist button {
  min-height: 44px;
  border: 1px solid #151515;
  background: #F7F5F0;
  cursor: pointer;
  padding: 8px 12px;
  text-align: left;
}

.tablist button[aria-selected="true"] {
  background: #0B5FFF;
  color: #FFFFFF;
  border-color: #0B5FFF;
}

.stage-panel,
.suite-panel {
  margin-top: 16px;
  background: #F7F5F0;
  border: 1px solid #DCD6CA;
  padding: 24px;
}

.stage-panel ol,
.suite-panel ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.data-mark {
  display: inline-block;
  background: #F3C04E;
  color: #151515;
  padding: 8px 12px;
  font-family: "Archivo Narrow", Pretendard, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}

.meta {
  color: #595650;
  font-family: "Courier Prime", "Noto Sans Mono CJK KR", monospace;
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

caption {
  text-align: left;
  caption-side: bottom;
  padding-top: 8px;
  color: #595650;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #8A857B;
  padding: 12px 10px;
}

th {
  background: #DCD6CA;
  font-weight: 700;
}

.product-name {
  font-weight: 700;
}

.evidence-card {
  background: #F7F5F0;
  border: 1px solid #8A857B;
  border-radius: 4px;
  padding: 24px;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.inverse-frame {
  background: #151515;
  color: #F7F5F0;
  padding: 40px 24px;
}

.inverse-frame a {
  color: #F3C04E;
}

.site-footer {
  background: #EEEAE1;
  color: #151515;
  padding: 24px 0 40px;
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 78ch;
}

.note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .badge-row,
  .role-list,
  .founder-grid {
    grid-template-columns: 1fr 1fr;
  }

  .claim-block h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .badge-row,
  .role-list,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .scene {
    padding: 40px 0;
  }

  .lang-switch {
    margin-left: 0;
  }

  h1 {
    font-size: 2.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .identity-bar {
    position: static;
  }

  .viewer[data-enhanced="true"] [role="tabpanel"] {
    display: block !important;
  }

  a {
    text-decoration: underline;
  }
}
