:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #15171a;
  --muted: #5b6470;
  --line: #e8eaed;
  --line-strong: #d6dae0;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 88px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand,
.eyebrow,
h1,
h2,
h3,
.section-card strong,
.long-list li::marker {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--accent);
  border-color: #bfd2ff;
}

.home-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  padding-top: 34px;
}

.profile-column {
  position: relative;
}

.profile-card {
  position: sticky;
  top: 84px;
  padding: 0;
  border: 0;
  background: var(--surface);
}

.profile-photo {
  width: 132px;
  height: 132px;
  max-width: 132px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: center top;
}

.profile-info p,
.prose-block p,
.hero-main p,
.long-list li {
  color: var(--muted);
  line-height: 1.72;
}

.profile-info p:first-child,
.eyebrow,
.hero-main > p:first-child {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.profile-info h1,
.profile-info h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
}

.profile-info p:nth-of-type(2) {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 0.98rem;
}

.profile-info ul {
  margin: 16px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.profile-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px 10px 0 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
}

.profile-info a:hover {
  border-color: #bfd2ff;
  background: #f8fbff;
}

.profile-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.profile-link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.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;
}

.main-column {
  min-width: 0;
}

.subpage-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  padding-top: 34px;
}

.subpage-main {
  min-width: 0;
}

.hero-block {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-main h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-main p:last-child {
  max-width: 48rem;
  margin-top: 16px;
  font-size: 1rem;
}

.hero-summary {
  margin-top: 24px;
}

.hero-summary ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.hero-summary strong {
  display: inline-block;
  margin: 0;
  order: 2;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.hero-summary li,
.hero-summary p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pretext-panel {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.pretext-header,
.pretext-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pretext-header .eyebrow {
  margin: 0;
}

.pretext-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  min-height: 28px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f5f8ff;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pretext-viewport {
  margin-top: 14px;
  padding: 16px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pretext-lines {
  min-height: 88px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.015em;
}

.pretext-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pretext-meta {
  margin: 0;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pretext-date {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.pretext-title-line {
  margin: 0;
  color: var(--text);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(6px);
  animation: pretextLineIn 420ms ease forwards;
}

.pretext-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
  opacity: 0;
  transform: translateY(6px);
  animation: pretextLineIn 420ms ease forwards;
}

.pretext-footer {
  margin-top: 12px;
}

.pretext-footer strong {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.pretext-footer span {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes pretextLineIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding-top: 46px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-header-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.prose-block {
  padding: 0;
}

.prose-block p {
  max-width: 48rem;
}

.section-layout {
  width: min(880px, 100%);
  padding-top: 34px;
}

.page-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.page-title h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--accent);
  flex: 0 0 auto;
}

.title-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.section-toggle:hover {
  opacity: 0.82;
}

.section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.page-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 42rem;
}

.long-list {
  padding-top: 18px;
}

.long-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.long-list li {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.98rem;
}

.long-list li:last-child {
  margin-bottom: 0;
}

.long-list a {
  color: var(--accent);
}

.long-list strong {
  color: var(--text);
}

.brand:hover {
  color: var(--accent);
}

.long-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.long-list li:hover {
  background: transparent;
}

.entry-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.entry-card:hover {
  border-color: #d8deea;
}

.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.entry-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--accent);
  background: #eef4ff;
  flex: 0 0 auto;
}

.entry-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.entry-date {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.entry-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.entry-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.entry-disclosure {
  margin-top: 2px;
}

.entry-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
}

.entry-summary::-webkit-details-marker {
  display: none;
}

.entry-summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
}

.entry-disclosure[open] .entry-summary::before {
  content: "-";
}

.entry-disclosure[open] .entry-summary {
  margin-bottom: 10px;
}

.md-error {
  color: #8a3b2c;
}

.site-footer {
  margin-top: 72px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-card {
    position: static;
  }

  .hero-summary ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pretext-header,
  .pretext-footer {
    align-items: start;
    flex-direction: column;
  }

  .pretext-topline {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 12px;
  }

  .topbar {
    position: static;
  }

  .hero-main h1,
  .page-title h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-summary ul {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .page-title,
  .section-header-bar {
    align-items: start;
    flex-direction: column;
  }
}
