:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-muted: #efece5;
  --ink: #1a1a17;
  --ink-secondary: #4e4c46;
  --ink-muted: #76736a;
  --line: #e2ddd3;
  --line-strong: #cfc9bc;
  --accent: #1d3a34;
  --accent-hover: #142b26;
  --accent-ink: #f8f7f3;
  --focus: #27584d;
  --max-w: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 72px;
}

/* Header */
.site-header {
  padding-top: 24px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 48px;
}

.site-mark {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-mark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-nav a {
  font-size: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.intro {
  max-width: 670px;
}

.intro h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Catalog sections */
.catalog {
  display: block;
}

.item {
  display: grid;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
  gap: 36px 52px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.item-info {
  min-width: 0;
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.item-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.024em;
}

.item-ver {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.item-desc {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.74;
  color: var(--ink-secondary);
}

/* Spec list */
.specs {
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.58;
}

.spec-row dt {
  color: var(--ink-muted);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Action buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--ink-muted);
}

.arrow {
  font-size: 14px;
  line-height: 1;
}

.direct-files {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.direct-files > span:first-child {
  margin-right: 2px;
  color: var(--ink-muted);
}

.direct-files a {
  color: var(--ink-secondary);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.direct-files a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.direct-files .sep {
  color: var(--line-strong);
}

/* Media / Screenshot */
.item-media {
  margin: 0;
  min-width: 0;
}

.shot-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s ease;
}

.shot-frame-dark {
  background: #171717;
}

.shot-frame:hover {
  border-color: var(--ink-muted);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.zoom-hint {
  white-space: nowrap;
}

/* AI Tips section */
.tips-section {
  padding: 64px 0 12px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.tip-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.tip-item:last-child {
  border-bottom: 0;
  padding-bottom: 36px;
}

.tip-item h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.tip-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--ink-secondary);
}

.tip-prompt {
  margin-top: 12px !important;
  padding: 10px 14px;
  border-left: 2px solid var(--line-strong);
  background: var(--surface-muted);
  border-radius: 0 5px 5px 0;
  font-size: 14px !important;
  line-height: 1.64 !important;
  color: var(--ink) !important;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.prompt-label {
  color: var(--ink-muted);
  font-weight: 600;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding-top: 28px;
}

.note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Lightbox dialog */
.lightbox {
  max-width: min(94vw, 1360px);
  max-height: 92vh;
  width: fit-content;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(20, 20, 18, 0.72);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.lightbox-caption {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.lightbox-close {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--surface-muted);
}

.lightbox-img {
  display: block;
  max-width: min(94vw, 1358px);
  max-height: calc(92vh - 54px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--surface);
}

/* Responsive */
@media (max-width: 920px) {
  .item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 0 20px 56px;
  }

  .site-header {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 32px;
  }

  .site-nav {
    gap: 6px 16px;
  }

  .lead {
    font-size: 15.5px;
  }

  .item {
    padding: 36px 0;
  }

  .item-desc {
    font-size: 15px;
  }

  .spec-row {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    font-size: 13.5px;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .zoom-hint {
    display: none;
  }

  .tips-section {
    padding: 44px 0 8px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .tip-item {
    padding: 22px 0;
  }

  .tip-item h3 {
    font-size: 16.5px;
  }

  .tip-item p {
    font-size: 14.5px;
  }

  .tip-prompt {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    font-size: 13.5px !important;
  }

  .site-footer {
    padding-top: 24px;
  }
}
