/* VODA visitor stylesheet — plain, dry, information-first design. */

:root {
  --page-teal: #10837e;
  --page-teal-dark: #0c6965;
  --page-teal-tint: #edf5f5;
  --bg: #ffffff;
  --bg-subtle: #f6f7f7;
  --border: #dfe3e4;
  --border-strong: #c2c9cb;
  --ink: #141717;
  --ink-secondary: #464f51;
  --ink-muted: #586265;
  --danger: #9e1c1c;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
  --radius: 3px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: var(--page-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--page-teal-dark);
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--page-teal);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.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-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--page-teal);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------------------------------------------------------- Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  flex: 1 0 auto;
  padding-top: 36px;
  padding-bottom: 72px;
}

/* ---------------------------------------------------------------- Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand-logo {
  height: 24px;
  width: auto;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.menu-button:hover {
  border-color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--page-teal);
  font-weight: 600;
  border-bottom-color: var(--page-teal);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 24px 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  color: var(--ink-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--page-teal-dark);
  text-decoration: underline;
}

.footer-admin-link {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- Typography & Sections */

.page-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-kicker {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--page-teal);
}

.page-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-lead {
  margin: 12px 0 0;
  max-width: 64ch;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.section {
  margin-top: 40px;
}

.section:first-child {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-desc {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

/* ---------------------------------------------------------------- Controls & Buttons */

.btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-primary {
  background: var(--page-teal);
  border-color: var(--page-teal);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--page-teal-dark);
  border-color: var(--page-teal-dark);
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--page-teal);
  text-decoration: none;
}

.text-link:hover {
  color: var(--page-teal-dark);
  text-decoration: underline;
}

/* Filter chips / buttons */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn[aria-pressed="true"],
.filter-btn.is-active {
  background: var(--page-teal);
  border-color: var(--page-teal);
  color: #ffffff;
}

.filter-btn[aria-pressed="true"]:hover,
.filter-btn.is-active:hover {
  background: var(--page-teal-dark);
  border-color: var(--page-teal-dark);
  color: #ffffff;
}

/* Badges / Tags */

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-accent {
  background: var(--page-teal-tint);
  border-color: #c2dfdf;
  color: var(--page-teal-dark);
}

/* Status boxes (loading / empty / error) */

.state-box {
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.state-box p {
  margin: 0;
}

.state-box-error {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--danger);
}

.state-box .btn {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- Home */

.home-intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.home-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-subtitle {
  display: inline-block;
  margin: 6px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  user-select: none;
}

.home-summary {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.feed-item {
  border-bottom: 1px solid var(--border);
}

.feed-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 52px;
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
}

.feed-link:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.feed-link:hover .feed-title {
  color: var(--page-teal-dark);
  text-decoration: underline;
}

.feed-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: break-word;
}

.feed-date {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- About */

.about-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.about-item {
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--border);
}

.about-item:nth-child(2n) {
  padding-left: 24px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.about-num {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--page-teal);
}

.about-item-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.about-item-body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.affiliation-block {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.affiliation-text {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------- Activities */

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.activity-row:first-child {
  padding-top: 0;
}

.activity-row.is-targeted {
  background: var(--page-teal-tint);
  border-left: 3px solid var(--page-teal);
  padding-left: 16px;
  padding-right: 16px;
}

.activity-meta {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.activity-title {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.activity-copy {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-secondary);
  white-space: pre-line;
}

.activity-slider {
  margin-top: 20px;
  max-width: 720px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.activity-stage {
  position: relative;
  background: var(--bg-subtle);
  overflow: hidden;
}

.activity-slide {
  margin: 0;
}

.activity-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  background: var(--bg-subtle);
}

.slider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.slider-btn:hover {
  border-color: var(--ink);
}

.slider-counter {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- Projects */

.tab-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn[aria-selected="true"] {
  color: var(--page-teal);
  font-weight: 600;
  border-bottom-color: var(--page-teal);
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.project-entry.has-photo {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
}

.project-entry:first-child {
  padding-top: 0;
}

.project-entry:last-child {
  border-bottom: 0;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.project-desc {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--ink-secondary);
  white-space: pre-line;
}

.project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.managed-project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--page-teal);
}

.report-section {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.report-title {
  margin: 6px 0 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.report-desc {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.embed-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.project-analysis-frame {
  width: 100%;
  height: 760px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.project-minigame-frame {
  width: 100%;
  height: 760px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* ---------------------------------------------------------------- Board */

.board-pinned {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.board-pinned-label {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.board-pinned-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-pinned-item {
  border-top: 1px solid var(--border);
}

.board-pinned-item:first-child {
  border-top: 0;
}

.board-pinned-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}

.board-pinned-link:hover {
  background: #edf1f1;
}

.board-pinned-link:hover .feed-title {
  color: var(--page-teal-dark);
  text-decoration: underline;
}

.board-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 1 320px;
  max-width: 100%;
}

.board-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
}

.board-search-input::placeholder {
  color: var(--ink-muted);
}

.board-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.board-post-item {
  border-bottom: 1px solid var(--border);
}

.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--ink);
}

.page-btn[aria-current="page"] {
  background: var(--page-teal);
  border-color: var(--page-teal);
  color: #ffffff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.board-detail-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.board-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.board-detail-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.board-detail-body {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.board-detail-actions {
  margin-top: 20px;
}

/* ---------------------------------------------------------------- Apply */

.apply-status {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.apply-heading {
  margin: 10px 0 12px;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.apply-copy {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-secondary);
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-main {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--page-teal);
  }

  .page-title,
  .home-title {
    font-size: 1.5rem;
  }

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

  .about-item,
  .about-item:nth-child(2n) {
    padding: 18px 0;
    border-left: 0;
  }

  .project-entry.has-photo {
    grid-template-columns: 1fr;
  }

  .project-photo {
    order: -1;
  }

  .project-analysis-frame,
  .project-minigame-frame {
    height: 580px;
  }

  .feed-link,
  .board-pinned-link {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
  }

  .feed-date {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
  }

  .board-search {
    flex: 1 1 100%;
  }

  .activity-row.is-targeted {
    padding-left: 12px;
    padding-right: 12px;
  }
}
