:root {
  --surface: #f6f7f4;
  --paper: #ffffff;
  --ink: #172126;
  --muted: #5b666a;
  --border: #d9dfda;
  --primary: #0d7c74;
  --primary-soft: #e7f3f1;
  --warning: #b7791f;
  --critical: #b42318;
  --shadow: 0 18px 48px rgba(23, 33, 38, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(217, 223, 218, 0.78);
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--paper);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 124, 116, 0.2);
}

.button.secondary {
  background: var(--paper);
  color: var(--primary);
  box-shadow: none;
}

.hero {
  min-height: 500px;
  height: min(620px, calc(100vh - 64px));
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  background-image: url("./assets/path-doctor-screenshot-dashboard.png");
  background-size: min(1450px, 100vw) auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #172126;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 18, 20, 0.62);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: #a7e2dc;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 4.8rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

.below-hint {
  padding: 20px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.below-hint-inner,
.section,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.below-hint-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-title {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  word-break: keep-all;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.article-card,
.callout,
.download-panel,
.article-nav {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.card strong,
.article-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.card p,
.article-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.screenshot-band {
  background: #172126;
}

.screenshot-band .section-title {
  max-width: 760px;
  color: var(--paper);
}

.screenshot-band .section-title h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  text-wrap: balance;
  word-break: keep-all;
}

.screenshot-band .section-title p {
  color: rgba(255, 255, 255, 0.72);
  word-break: keep-all;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.shot {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(54px, auto);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0f171b;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #edf2ef;
}

.shot figcaption {
  align-content: center;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

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

.article-card {
  min-height: 170px;
  padding: 22px;
  text-decoration: none;
}

.article-card:hover {
  border-color: rgba(13, 124, 116, 0.52);
}

.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.site-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.site-card p {
  color: var(--muted);
}

.site-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(13, 124, 116, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.site-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.site-meta div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
}

.site-meta dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.site-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.compact-list {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.compact-list li + li {
  margin-top: 12px;
}

.registry-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.registry-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.registry-table > div:first-child {
  border-top: 0;
  background: var(--primary-soft);
}

.registry-table span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.download-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.download-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.download-panel p {
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  background: var(--paper);
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.article-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.article-shell {
  padding: 70px 0;
}

.article-shell.narrow {
  width: min(940px, calc(100% - 32px));
}

.article-kicker {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.article-hero h1 {
  max-width: 900px;
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  line-height: 1.16;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.16rem;
  word-break: keep-all;
}

.article-body {
  padding: 54px 0;
}

.article-body h2 {
  margin-top: 42px;
  font-size: 1.8rem;
}

.article-body h3 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.article-body p,
.article-body li {
  color: #344044;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2ee;
  color: #0f3632;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--primary);
  box-shadow: none;
}

.callout.warning {
  border-left-color: var(--warning);
}

.callout.critical {
  border-left-color: var(--critical);
}

.article-nav {
  margin-top: 44px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: none;
}

.article-nav a {
  padding: 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .grid,
  .article-list,
  .directory-grid,
  .screenshots,
  .download-panel,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .site-meta,
  .registry-table > div {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 500px;
    height: auto;
    background-size: auto 92%;
    background-position: center center;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 2.85rem);
  }

  .hero p {
    max-width: 20.5rem;
    font-size: 0.98rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: clamp(1.75rem, 8.4vw, 2.15rem);
    line-height: 1.18;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .section-title p {
    font-size: 1rem;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .article-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .section,
  .article-shell {
    padding: 48px 0;
  }
}
