@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.48);
  --yellow: #fae100;
  --yellow-deep: #e5cf00;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.portfolio-onboarding {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.portfolio-onboarding[hidden] {
  display: none;
}

.portfolio-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.06);
  opacity: 0;
  transition: opacity 160ms ease;
}

.portfolio-onboarding-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.portfolio-onboarding.is-visible .portfolio-onboarding-backdrop {
  opacity: 1;
}

.portfolio-onboarding.is-visible .portfolio-onboarding-dialog {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-onboarding-kicker {
  margin: 0 0 10px;
  color: rgba(17, 17, 17, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-onboarding-dialog h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.portfolio-onboarding-copy {
  margin: 10px 0 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: 0.94rem;
  line-height: 1.65;
}

.portfolio-onboarding-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.portfolio-onboarding-primary {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  color: var(--ink);
}

.portfolio-onboarding-primary::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 3px;
  background: rgba(17, 17, 17, 0.35);
}

body::before {
  display: none;
  content: none;
}

a {
  color: inherit;
}

code {
  padding: 0.08em 0.35em;
  background: rgba(250, 225, 0, 0.28);
  border-radius: 6px;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.92em;
}

.page-shell,
.article-shell {
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 0 16px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.top-nav {
  display: inline-flex;
  justify-self: center;
  gap: 20px;
  align-items: center;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 0;
  transition: color 160ms ease;
}

.top-nav a.is-current,
.top-nav a:hover {
  color: var(--ink);
}

.header-spacer {
  justify-self: end;
  width: min(340px, 100%);
  height: 48px;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: min(340px, 100%);
  justify-self: end;
  height: 48px;
  padding: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 0.98rem;
}

.search-box span {
  white-space: nowrap;
}

.home-main {
  display: grid;
  gap: 32px;
  padding-top: 12px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 32px;
  align-items: start;
}

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.graph-section h1,
.article-header h1,
.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.graph-stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.graph-stage.is-dragging {
  cursor: grabbing;
}

#graph {
  display: block;
  width: 100%;
  height: 580px;
}

.graph-focus {
  display: none;
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.graph-focus-title {
  margin: 0;
  font-size: 1.36rem;
  letter-spacing: -0.04em;
}

.graph-focus-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.related-panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.related-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  min-height: 580px;
  padding-top: 2px;
}

.related-head {
  margin-bottom: 0;
  display: grid;
  gap: 0;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.related-card {
  display: block;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  text-decoration: none;
}

.related-empty {
  padding-top: 16px;
  border-top: 2px solid var(--line);
  color: var(--muted);
}

.related-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.related-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.related-card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.empty-copy {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-meta li {
  padding: 6px 10px;
  background: #f5f5f5;
  font-size: 0.82rem;
}

.history-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  text-decoration: none;
  font-weight: 700;
}

.history-link::after,
.back-link::after {
  content: "→";
}

.page-footer {
  padding-top: 16px;
  margin-top: 12px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.node {
  cursor: pointer;
  transition: opacity 180ms ease;
}

.node circle {
  transition:
    transform 180ms ease,
    stroke-width 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.node-label {
  fill: rgba(17, 17, 17, 0.86);
  font-size: 12px;
  pointer-events: none;
}

.node.keyword .node-label {
  font-size: 11px;
}

.node-label.is-multiline tspan {
  dominant-baseline: hanging;
}

.node.concept circle {
  fill: var(--ink);
  stroke: #ffffff;
  stroke-width: 2.5px;
}

.node.keyword circle {
  fill: var(--yellow-deep);
  stroke: #ffffff;
  stroke-width: 2px;
}

.node.is-active circle {
  stroke-width: 4px;
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(229, 207, 0, 0.38));
  animation: selectedPulse 1.6s ease-in-out infinite;
}

.pulse-ring {
  fill: rgba(229, 207, 0, 0.12);
  stroke: rgba(229, 207, 0, 0.5);
  stroke-width: 1.5px;
}

.node.is-dimmed {
  opacity: 0.16;
}

.edge {
  stroke: var(--line);
  stroke-width: 1.2px;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  transition: opacity 180ms ease, stroke-width 180ms ease;
  vector-effect: non-scaling-stroke;
}

.edge.related {
  stroke: var(--line-strong);
  stroke-width: 1.7px;
  stroke-dasharray: 10 8;
}

.edge.is-highlight {
  stroke: rgba(17, 17, 17, 0.8);
  stroke-width: 2.8px;
}

@keyframes selectedPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
  100% {
    transform: scale(1);
  }
}

.edge.is-dimmed {
  opacity: 0.12;
}

.article-body {
  background: #ffffff;
}

.article-header {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-inline: 28px;
  padding-block: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.article-meta li {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 320px);
  gap: 48px;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-inline: 28px;
  padding-top: 34px;
  align-items: start;
}

.article-content {
  max-width: 760px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 1.7em 0 0.55em;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-content p,
.article-content li {
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.9;
}

.article-content ul {
  padding-left: 1.1rem;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  color: var(--muted);
}

.article-figure {
  margin: 1.5rem 0;
}

.article-image {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.article-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-main {
  display: grid;
  gap: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 8px;
}

.portfolio-hero {
  display: grid;
  gap: 14px;
  padding: 12px 0 32px;
  border-bottom: 1px solid var(--line);
}

.portfolio-identity {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.portfolio-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  background: #f5f5f5;
}

.portfolio-intro {
  min-width: 0;
}

.portfolio-name {
  margin: 0 0 6px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.portfolio-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.portfolio-lead {
  max-width: none;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  white-space: nowrap;
}

.portfolio-contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: rgba(17, 17, 17, 0.64);
  font-size: 0.84rem;
  line-height: 1.45;
}

.portfolio-contact-inline span {
  position: relative;
}

.portfolio-contact-inline span:not(:first-child)::before {
  content: "/";
  margin-right: 12px;
  color: rgba(17, 17, 17, 0.28);
}

.portfolio-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.portfolio-proof-strip article {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.portfolio-proof-strip strong {
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.portfolio-proof-strip span {
  color: rgba(17, 17, 17, 0.74);
  font-size: 0.94rem;
  line-height: 1.5;
}

.portfolio-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 40px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.portfolio-label {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.portfolio-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: rgba(17, 17, 17, 0.8);
}

.portfolio-content {
  display: grid;
  gap: 0;
  width: 100%;
}

.portfolio-content p {
  margin: 0;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.8;
}

.portfolio-entry,
.portfolio-side-detail {
  padding: 20px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.portfolio-side-detail {
  padding: 0;
}

.portfolio-content > :first-child {
  padding-top: 0;
  border-top: 0;
}

.portfolio-entry-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.portfolio-company-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #ffffff;
}

.portfolio-company-logo-text {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.portfolio-company-logo-aws {
  width: 100%;
  max-width: 56px;
  height: auto;
  align-self: center;
  justify-self: start;
}

.portfolio-entry h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.portfolio-entry-meta {
  margin: 6px 0 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-entry-copy {
  margin-top: 4px;
  max-width: none;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: nowrap;
}

.portfolio-accordion-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.portfolio-project-summary {
  width: 100%;
  max-width: none;
}

.portfolio-detail-label {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-bullets {
  display: grid;
  gap: 3px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.6;
}

.portfolio-media-grid img {
  width: 100%;
  display: block;
  background: #f5f5f5;
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 520px;
}

.portfolio-entry-gallery {
  max-width: none;
  margin: 18px 0 8px;
}

.portfolio-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.portfolio-media-grid-compact {
  max-width: 920px;
  gap: 12px;
}

.portfolio-media-grid-compact img {
  aspect-ratio: auto;
}

.portfolio-media-grid-architecture {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.portfolio-media-grid-architecture img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 720px;
  padding: 14px;
  background: #ffffff;
}

.portfolio-media-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-media-grid-tight {
  grid-template-columns: minmax(0, 560px);
}

.portfolio-media-grid-app img {
  aspect-ratio: 0.82;
  object-fit: contain;
  max-height: 340px;
  padding: 12px;
  background: #f7f7f5;
}

.portfolio-detail {
  border-top: 0;
}

.portfolio-detail + .portfolio-detail {
  padding-top: 6px;
}

.portfolio-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: start;
  padding: 9px 0;
  cursor: pointer;
  list-style: none;
}

.portfolio-detail summary::after {
  content: "";
  width: 32px;
  height: 1px;
  margin-top: 8px;
  background: rgba(17, 17, 17, 0.18);
  align-self: start;
  transition: width 180ms ease, background-color 180ms ease;
}

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

.portfolio-detail summary:hover::after,
.portfolio-detail[open] summary::after {
  width: 52px;
  background: rgba(17, 17, 17, 0.42);
}

.portfolio-detail-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portfolio-detail-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: transform 180ms ease, color 180ms ease;
}

.portfolio-detail-impact {
  color: rgba(17, 17, 17, 0.86);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-detail-meta {
  color: rgba(17, 17, 17, 0.74);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  margin-top: 1px;
  transition: color 180ms ease;
}

.portfolio-detail summary:hover .portfolio-detail-title,
.portfolio-detail[open] .portfolio-detail-title {
  transform: translateX(2px);
}

.portfolio-detail summary:hover .portfolio-detail-meta {
  color: rgba(17, 17, 17, 0.9);
}

.portfolio-detail[open] .portfolio-detail-meta {
  color: rgba(17, 17, 17, 0.58);
}

.portfolio-detail-body {
  max-width: 980px;
  padding: 6px 0 10px;
  transition:
    height 220ms cubic-bezier(0.2, 0, 0, 1),
    opacity 180ms ease,
    transform 180ms ease;
  will-change: height, opacity, transform;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.portfolio-video-embed {
  width: 100%;
  max-width: 920px;
  margin-top: 10px;
  aspect-ratio: 16 / 9;
  background: #111111;
}

.portfolio-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.portfolio-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  padding-bottom: 2px;
}

.portfolio-section-secondary .portfolio-label {
  color: rgba(17, 17, 17, 0.88);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.portfolio-section-secondary .portfolio-content {
  max-width: none;
  width: 100%;
  gap: 0;
  padding-top: 6px;
}

.portfolio-section-secondary .portfolio-detail + .portfolio-detail {
  padding-top: 6px;
}

.portfolio-section-secondary .portfolio-media-grid,
.portfolio-section-secondary .portfolio-video-embed {
  margin-top: 10px;
}

.portfolio-section-secondary .portfolio-detail-body {
  max-width: 980px;
}

.portfolio-section-secondary .portfolio-media-grid-architecture {
  max-width: 1120px;
}

.portfolio-section-secondary .portfolio-media-grid-architecture img {
  max-height: 860px;
}

.portfolio-section-secondary .portfolio-detail-title {
  font-size: 0.98rem;
}

.portfolio-section-secondary .portfolio-detail-impact {
  font-size: 0.9rem;
  color: rgba(17, 17, 17, 0.72);
}

.portfolio-group {
  display: grid;
  gap: 0;
}

.portfolio-group-title {
  margin: 0 0 12px;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-archive-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
}

.portfolio-archive-list li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.05);
}

.portfolio-archive-list li:first-child {
  border-top: 0;
}

.portfolio-archive-list strong {
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.portfolio-archive-list span {
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.portfolio-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-keywords span {
  padding: 6px 10px;
  background: #f5f5f5;
  font-size: 0.82rem;
}

.article-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 24px;
}

.article-side-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-side-block h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.side-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.side-list,
.side-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.side-list li,
.side-link-list li {
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.6;
}

.side-link-list a {
  text-decoration: none;
}

.side-details {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-details div {
  display: grid;
  gap: 4px;
}

.side-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-details dd {
  margin: 0;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.65;
}

.notes-main {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.notes-count {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.notes-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 20px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-inline: 20px;
  padding-bottom: 6px;
}

.notes-toolbar-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notes-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.5;
}

.notes-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.notes-sort-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.notes-sort-button.is-active {
  color: var(--ink);
}

.notes-list {
  display: grid;
  gap: 0;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-inline: 20px;
}

.note-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  text-decoration: none;
  transition: border-color 160ms ease;
}

.note-row:hover {
  border-color: rgba(17, 17, 17, 0.18);
}

.note-date {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.note-row h2 {
  margin: 0 0 4px;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.note-row-body {
  min-width: 0;
}

.note-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.note-empty {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 20px 0;
  border-top: 1px solid var(--line);
}

.notes-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(980px, 100%);
  margin: 6px auto 0;
  padding-inline: 20px;
}

.pagination-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.pagination-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

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

  .related-panel {
    min-height: 0;
  }

  .article-side {
    position: static;
  }

  .portfolio-side-project {
    grid-template-columns: 1fr;
  }

  .notes-list,
  .notes-pagination {
    grid-template-columns: 1fr;
  }

  .notes-sort-controls {
    justify-content: flex-start;
    justify-self: start;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portfolio-section {
    padding: 30px 0;
  }

  .portfolio-entry-copy {
    white-space: normal;
  }

  .portfolio-detail summary {
    grid-template-columns: 1fr;
  }

  .portfolio-detail-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .article-shell {
    width: min(var(--max-width), calc(100vw - 24px));
    padding-top: 14px;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
  }

  .top-nav,
  .search-box {
    min-width: 100%;
    justify-self: start;
  }

  .header-spacer {
    display: none;
  }

  .graph-stage,
  #graph {
    min-height: 460px;
    height: 460px;
  }

  .graph-focus {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .notes-toolbar,
  .notes-list,
  .note-empty,
  .notes-pagination,
  .portfolio-hero,
  .portfolio-section {
    padding-inline: 0;
  }

  .article-header,
  .article-layout {
    padding-inline: 0;
  }

  .portfolio-identity,
  .portfolio-contact-inline,
  .portfolio-entry-head,
  .portfolio-media-grid,
  .portfolio-proof-strip,
  .portfolio-feature-blocks {
    grid-template-columns: 1fr;
  }

  .portfolio-detail summary {
    grid-template-columns: 1fr;
  }

  .portfolio-detail-meta {
    text-align: left;
  }

  .portfolio-avatar {
    width: 96px;
    height: 96px;
  }

  .portfolio-hero {
    padding-bottom: 38px;
  }

  .portfolio-hero h1 {
    max-width: none;
  }
}
