@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+KR:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f6f8fa;
  --bg-soft: rgba(246, 248, 250, 0.94);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(208, 215, 222, 0.9);
  --text: #24292f;
  --muted: #57606a;
  --heading: #1f2328;
  --accent: #0969da;
  --accent-strong: #1f6feb;
  --accent-warm: #9a6700;
  --success: #1a7f37;
  --shadow: 0 18px 42px rgba(31, 35, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans KR", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(9, 105, 218, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 250, 0.94)),
    linear-gradient(135deg, #ffffff 0%, #f6f8fa 52%, #eef3f8 100%);
  z-index: -2;
}

.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(208, 215, 222, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 215, 222, 0.55) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 88%);
  z-index: -1;
}

.site-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  position: static;
  z-index: 10;
  box-shadow: 0 14px 34px rgba(31, 35, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.1), rgba(26, 127, 55, 0.08));
  border: 1px solid var(--panel-border);
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-strong);
  background: rgba(9, 105, 218, 0.1);
  transform: translateY(-1px);
}

.site-main {
  padding-top: 32px;
}

.section-eyebrow,
.hero-eyebrow,
.card-eyebrow,
.metric-label,
.pill {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.page-hero,
.hero,
.home-shell,
.sidebar-card,
.feed-intro,
.feed-card,
.priority-grid,
.project-grid,
.focus-grid,
.panel-grid,
.writing-grid,
.post-shell {
  animation: rise 680ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.page-hero,
.sidebar-card,
.feed-intro,
.feed-card,
.priority-card,
.panel,
.project-card,
.focus-card,
.writing-card,
.post-shell {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-panel,
.page-hero,
.sidebar-card,
.feed-intro,
.feed-card,
.priority-card,
.post-shell {
  padding: 34px;
}

.hero-copy h1,
.feed-intro h1,
.page-hero h1,
.page-hero h2,
.post-header h1,
.sidebar-card h2,
.feed-card h2,
.section-heading h2,
.project-card h2,
.writing-card h2,
.panel h2,
.focus-card h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  max-width: 10ch;
}

.feed-intro h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: none;
  white-space: nowrap;
}

.page-hero h1,
.post-header h1 {
  margin-top: 12px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

.page-hero h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-lede,
.page-intro,
.post-summary,
.sidebar-card p,
.feed-card p,
.panel p,
.project-card p,
.writing-card p,
.focus-card p {
  color: var(--muted);
}

.hero-lede,
.page-intro {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 1.08rem;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.home-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
  width: 100%;
}

.home-content {
  min-width: 0;
  display: grid;
  gap: 22px;
  width: 100%;
}

.sidebar-card,
.feed-intro,
.feed-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  width: 100%;
}

.sidebar-card {
  display: grid;
  gap: 14px;
}

.sidebar-profile {
  gap: 16px;
}

.sidebar-profile__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.1);
}

.sidebar-profile__body {
  display: grid;
  gap: 6px;
}

.sidebar-profile__body .profile-card__role {
  margin: 0;
}

.sidebar-title {
  font-size: 1.3rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(246, 248, 250, 0.9);
  border: 1px solid rgba(208, 215, 222, 0.8);
  color: var(--heading);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.sidebar-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(9, 105, 218, 0.2);
  background: rgba(9, 105, 218, 0.06);
}

.sidebar-nav strong {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.sidebar-links {
  display: grid;
  gap: 10px;
}

.sidebar-links .button {
  justify-content: space-between;
}

.feed-section {
  display: grid;
  gap: 18px;
}

.feed-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.feed-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-header > div {
  min-width: 0;
}

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

.entry-summary {
  color: var(--heading);
  font-size: 1.04rem;
}

.entry-note {
  margin: 0;
  padding: 14px 16px;
  background: rgba(246, 248, 250, 0.9);
  border: 1px solid rgba(208, 215, 222, 0.82);
  border-radius: var(--radius-sm);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-note strong {
  color: var(--heading);
}

.entry-meta,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.entry-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246, 248, 250, 0.94);
  border: 1px solid rgba(208, 215, 222, 0.85);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-badges,
.tag-list,
.post-tags,
.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-badges span,
.tag-list li,
.post-tags li,
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 105, 218, 0.14);
  background: rgba(9, 105, 218, 0.06);
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.84rem;
}

.tag-list {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tag-list li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.entry-actions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cta-row,
.card-links,
.footer-links,
.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(180deg, #218bff, #0969da);
  border-color: rgba(9, 105, 218, 0.9);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--heading);
}

.hero-panel {
  display: grid;
  gap: 24px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -38% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(9, 105, 218, 0.12), transparent 65%);
}

.profile-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
}

.profile-card__avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.1);
}

.profile-card__name {
  margin: 0;
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.profile-card__subname {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-card__role,
.microcopy,
.post-meta,
.footer-links a {
  color: var(--muted);
}

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

.metric {
  padding: 18px;
  background: rgba(246, 248, 250, 0.86);
  border: 1px solid rgba(208, 215, 222, 0.82);
  border-radius: var(--radius-md);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.focus-grid,
.priority-grid,
.project-grid,
.panel-grid,
.writing-grid {
  display: grid;
  gap: 18px;
}

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

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.focus-card,
.priority-card,
.project-card,
.writing-card,
.panel {
  padding: 24px;
}

.project-card,
.writing-card,
.panel,
.focus-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.focus-card h3,
.sidebar-card h2,
.feed-card h2,
.priority-card h2,
.project-card h2,
.writing-card h2,
.panel h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.priority-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 260px;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.priority-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -28% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(9, 105, 218, 0.1), transparent 68%);
  pointer-events: none;
}

.priority-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 105, 218, 0.2);
  box-shadow: 0 22px 48px rgba(31, 35, 40, 0.12);
}

.priority-card p {
  margin: 0;
  color: var(--muted);
}

.priority-card .section-eyebrow {
  color: var(--accent);
}

.priority-card h2 {
  margin: 0;
  max-width: 10ch;
}

.priority-card-projects {
  background:
    linear-gradient(135deg, rgba(9, 105, 218, 0.08), rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
}

.priority-card-articles {
  background:
    linear-gradient(135deg, rgba(26, 127, 55, 0.06), rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
}

.priority-card__meta {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  margin-top: auto;
}

.priority-card__meta strong {
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
}

.priority-card__meta span,
.priority-card__link {
  color: var(--muted);
  font-size: 0.92rem;
}

.priority-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-weight: 600;
}

.priority-card__link::after {
  content: "->";
  color: var(--accent);
}

.project-card__top,
.writing-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 0;
}

.status-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(26, 127, 55, 0.1);
  border: 1px solid rgba(26, 127, 55, 0.18);
  color: var(--success);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card__details,
.info-list {
  margin-top: 18px;
}

.project-card .tag-list,
.project-card .card-links {
  margin-top: 0;
}

.project-card .card-links {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 3px;
  align-items: stretch;
}

.project-card .card-links .button {
  flex: 1 1 220px;
}

.info-list li {
  flex: 1 1 240px;
  min-height: 0;
  padding: 16px;
  background: rgba(246, 248, 250, 0.9);
  border: 1px solid rgba(208, 215, 222, 0.82);
  border-radius: var(--radius-sm);
}

.info-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
}

.writing-card__meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
}

.page-stack,
.post-cta {
  margin-top: 22px;
}

.post-shell {
  max-width: 860px;
  margin: 0 auto;
}

.post-summary {
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.prose {
  margin-top: 28px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 2.2rem 0 0.8rem;
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

.prose p,
.prose li,
.prose blockquote {
  color: var(--text);
}

.prose a,
.footer-links a:hover,
.text-link {
  color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose code {
  padding: 0.15rem 0.35rem;
  background: #f6f8fa;
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95em;
}

.prose pre {
  padding: 18px;
  overflow-x: auto;
  background: #f6f8fa;
  border: 1px solid rgba(208, 215, 222, 0.9);
  border-radius: var(--radius-md);
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 18px;
  border-left: 3px solid rgba(9, 105, 218, 0.35);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 26px 10px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  justify-content: flex-end;
}

.microcopy {
  font-size: 0.92rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1000px) {
  .home-shell,
  .hero,
  .priority-grid,
  .project-grid,
  .panel-grid,
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .home-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-sidebar,
  .home-content {
    align-self: stretch;
    width: 100%;
    max-width: none;
  }

  .home-sidebar > *,
  .home-content > * {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

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

  .home-sidebar {
    position: static;
  }

  .site-footer,
  .section-heading {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    margin-top: 0;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 22px;
    backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(31, 35, 40, 0.06);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --content-width: min(1120px, calc(100vw - 24px));
  }

  .site-shell {
    padding-top: 14px;
  }

  .site-header,
  .hero-copy,
  .hero-panel,
  .sidebar-card,
  .feed-intro,
  .feed-card,
  .page-hero,
  .priority-card,
  .panel,
  .project-card,
  .focus-card,
  .writing-card,
  .post-shell {
    padding: 22px;
  }

  .site-header {
    gap: 10px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 6px);
    padding: 8px 10px;
    text-align: center;
  }

  .cta-row,
  .card-links,
  .post-cta {
    width: 100%;
    align-items: stretch;
  }

  .cta-row .button,
  .post-cta .button {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .project-card .card-links .button {
    flex: 1 1 100%;
  }

  .project-card,
  .project-card > * {
    min-width: 0;
    max-width: 100%;
  }

  .project-card {
    width: 100%;
  }

  .project-card p,
  .project-card .project-card__top,
  .project-card .info-list,
  .project-card .tag-list,
  .project-card .card-links {
    width: 100%;
    max-width: 100%;
  }

  .project-card__top > :first-child,
  .project-card .info-list li,
  .project-card .card-links .button {
    min-width: 0;
    max-width: 100%;
  }

  .project-card .card-links {
    padding-top: 14px;
    padding-bottom: 0;
  }

  .info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feed-intro h1 {
    white-space: normal;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }
}
