:root {
  color-scheme: light;
  --bg: #fef7ff;
  --surface: #ffffff;
  --surface-muted: #f3ebfa;
  --surface-raised: #f9f1ff;
  --surface-strong: #e8dfee;
  --text: #1d1a24;
  --muted: #4a4455;
  --muted-soft: #7b7487;
  --line: #ccc3d8;
  --line-soft: rgba(115, 46, 228, 0.12);
  --accent: #630ed4;
  --accent-bright: #7c3aed;
  --accent-soft: #ede0ff;
  --secondary: #565e74;
  --secondary-soft: #dae2fd;
  --ink: #332f39;
  --hover-text: #630ed4;
  --shadow: 0 10px 24px rgba(51, 47, 57, 0.08);
  --container: 1280px;
  --gutter: 32px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131313;
  --surface: #201f1f;
  --surface-muted: #1c1b1b;
  --surface-raised: #2a2a2a;
  --surface-strong: #353534;
  --surface-container-lowest: #0e0e0e;
  --text: #e5e2e1;
  --muted: #c6c2c0;
  --muted-soft: #8f8b8a;
  --line: #494454;
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #d0bcff;
  --accent-bright: #a078ff;
  --accent-soft: rgba(208, 188, 255, 0.1);
  --secondary: #4cd7f6;
  --secondary-soft: rgba(76, 215, 246, 0.1);
  --ink: #e5e2e1;
  --hover-text: #d8d4d2;
  --shadow: 0 0 20px rgba(208, 188, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body > .site-main {
  min-height: 100vh;
  display: flex;
  flex: 1;
  flex-direction: column;
}

body > .site-main > .site-footer {
  margin-top: auto;
}

body::selection {
  background: rgba(124, 58, 237, 0.18);
  color: var(--accent);
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(254, 247, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 12px rgba(51, 47, 57, 0.04);
}

.header-layout {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--accent);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.print-nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.print-nav-link:hover {
  border-color: var(--accent-bright);
  color: var(--hover-text);
}

.theme-toggle {
  display: inline-flex;
  min-width: 92px;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theme-toggle-label {
  min-width: 38px;
  text-align: center;
}

.theme-toggle:hover {
  border-color: var(--accent-bright);
  color: var(--hover-text);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: inset -4px -4px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .site-header {
  background: rgba(19, 19, 19, 0.84);
  box-shadow: 0 0 15px rgba(208, 188, 255, 0.1);
}

html[data-theme="dark"] .site-brand {
  color: var(--secondary);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(32, 31, 31, 0.74);
  box-shadow: 0 0 15px rgba(208, 188, 255, 0.08);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .print-nav-link:hover {
  border-color: var(--secondary);
}

html[data-theme="dark"] .theme-toggle-icon {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(76, 215, 246, 0.45);
}

html[data-theme="dark"] body::selection {
  background: rgba(208, 188, 255, 0.3);
  color: var(--accent);
}

html[data-theme="dark"] .site-main {
  background: var(--bg);
}

html[data-theme="dark"] .site-hero::before {
  background:
    linear-gradient(rgba(208, 188, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 188, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 19, 19, 0.08), rgba(19, 19, 19, 0.96));
  background-size: 40px 40px, 40px 40px, auto;
  opacity: 0.7;
}

html[data-theme="dark"] .site-hero h1 {
  text-shadow: 0 0 10px rgba(208, 188, 255, 0.5);
}

html[data-theme="dark"] .eyebrow {
  border-color: rgba(76, 215, 246, 0.3);
  background: rgba(76, 215, 246, 0.05);
  color: var(--secondary);
}

html[data-theme="dark"] .eyebrow::before {
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(76, 215, 246, 0.8);
}

html[data-theme="dark"] .section-kicker {
  color: var(--muted-soft);
}

html[data-theme="dark"] .section {
  border-top: 0;
}

html[data-theme="dark"] .current-section,
html[data-theme="dark"] .post-content {
  background: var(--bg);
}

html[data-theme="dark"] .about-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .compact-card,
html[data-theme="dark"] .current-projects-card,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .post-hero-media,
html[data-theme="dark"] .post-content img {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(32, 31, 31, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .about-card:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .compact-card:hover,
html[data-theme="dark"] .current-projects-card:hover,
html[data-theme="dark"] .about-links a:hover {
  border-color: rgba(208, 188, 255, 0.3);
  box-shadow: 0 0 20px rgba(208, 188, 255, 0.08);
}

html[data-theme="dark"] .about-links a {
  border-color: rgba(208, 188, 255, 0.3);
  background: var(--surface-raised);
}

html[data-theme="dark"] .about-links a::after {
  color: rgba(208, 188, 255, 0.72);
}

html[data-theme="dark"] .about-links a:nth-child(even) {
  border-color: rgba(76, 215, 246, 0.3);
}

html[data-theme="dark"] .about-links a:nth-child(even)::after {
  color: rgba(76, 215, 246, 0.72);
}

html[data-theme="dark"] .about-links a:nth-child(even):hover {
  box-shadow: 0 0 20px rgba(76, 215, 246, 0.12);
}

html[data-theme="dark"] .section-heading h2::before {
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(76, 215, 246, 0.5);
}

html[data-theme="dark"] .about-card::after,
html[data-theme="dark"] .project-card::after,
html[data-theme="dark"] .compact-card::after,
html[data-theme="dark"] .current-projects-card::after,
html[data-theme="dark"] .post-meta::after {
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(76, 215, 246, 0.6);
}

html[data-theme="dark"] .tag-list li {
  border-color: rgba(76, 215, 246, 0.3);
  background: rgba(76, 215, 246, 0.1);
  color: var(--secondary);
}

html[data-theme="dark"] .button,
html[data-theme="dark"] .link-row a {
  border-color: rgba(208, 188, 255, 0.24);
  background: rgba(32, 31, 31, 0.55);
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .link-row a:hover {
  box-shadow: 0 0 15px rgba(208, 188, 255, 0.28);
}

html[data-theme="dark"] .button-secondary {
  border-color: rgba(76, 215, 246, 0.3);
  background: rgba(76, 215, 246, 0.05);
  color: var(--secondary);
}

html[data-theme="dark"] .button-secondary:hover {
  box-shadow: 0 0 15px rgba(76, 215, 246, 0.32);
}

html[data-theme="dark"] .project-thumbnail {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(208, 188, 255, 0.14), rgba(76, 215, 246, 0.08)),
    var(--surface-strong);
}

html[data-theme="dark"] .project-card {
  display: block;
}

html[data-theme="dark"] .project-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.08), rgba(19, 19, 19, 0.42) 48%, rgba(19, 19, 19, 0.94));
  content: "";
  pointer-events: none;
}

html[data-theme="dark"] .project-card .project-thumbnail {
  position: static;
  inset: auto;
  height: auto;
  min-height: 0;
  border-bottom: 0;
}

html[data-theme="dark"] .project-card .project-thumbnail::after {
  content: none;
}

html[data-theme="dark"] .project-card .project-thumbnail img,
html[data-theme="dark"] .project-card .project-thumbnail iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.74;
}

html[data-theme="dark"] .project-card:hover .project-thumbnail img,
html[data-theme="dark"] .project-card:hover .project-thumbnail iframe {
  opacity: 0.9;
}

html[data-theme="dark"] .project-card .project-card-body {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px;
  text-align: left;
}

html[data-theme="dark"] .project-card .tag-list {
  justify-content: flex-start;
}

html[data-theme="dark"] .compact-card,
html[data-theme="dark"] .current-projects-card {
  background: rgba(19, 19, 19, 0.62);
}

html[data-theme="dark"] .current-projects-card {
  overflow: visible;
}

html[data-theme="dark"] .current-projects-media .project-thumbnail {
  border-radius: 6px;
}

html[data-theme="dark"] .post-about {
  background: var(--bg);
}

html[data-theme="dark"] .back-link {
  color: var(--secondary);
}

html[data-theme="dark"] .post-about::before {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(229, 226, 225, 0.045) 50%, var(--bg) 100%);
  content: "";
}

html[data-theme="dark"] .post-hero-media {
  box-shadow: 0 0 22px rgba(76, 215, 246, 0.12);
}

html[data-theme="dark"] .post-content p,
html[data-theme="dark"] .post-content li {
  color: var(--muted);
}

html[data-theme="dark"] .post-content code {
  border-color: rgba(208, 188, 255, 0.16);
  background: var(--surface-container-lowest);
  color: var(--accent);
}

html[data-theme="dark"] .post-content pre {
  border-color: rgba(76, 215, 246, 0.16);
  border-left-color: var(--secondary);
  box-shadow: none;
}

html[data-theme="dark"] .post-content pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

html[data-theme="dark"] .post-content blockquote {
  border-left-color: var(--secondary);
}

html[data-theme="dark"] .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--surface-container-lowest);
}

.site-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 56px 0 48px;
  border-bottom: 0;
}

.site-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(99, 14, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 14, 212, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 22%, rgba(124, 58, 237, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(254, 247, 255, 0.92));
  background-size: 40px 40px, 40px 40px, auto, auto;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--secondary);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow {
  color: #00796b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 121, 107, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 121, 107, 0.08);
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00a884;
  content: "";
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.28;
}

.hero-intro,
.lead,
.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-intro {
  max-width: 700px;
  margin: 24px auto 0;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.button,
.link-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

.button:hover,
.link-row a:hover {
  border-color: var(--accent-bright);
  color: var(--hover-text);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: #ffffff;
}

.button-primary:hover {
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 32px 0 64px;
}

.section + .section {
  border-top: 0;
}

.about-card,
.project-card,
.compact-card,
.current-projects-card,
.post-meta {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.about-card::after,
.project-card::after,
.compact-card::after,
.current-projects-card::after,
.post-meta::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  content: "";
}

.about-card,
.project-card,
.compact-card,
.current-projects-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.about-card {
  padding: 28px;
}

.about-heading {
  margin-bottom: 32px;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: start;
  column-gap: 40px;
  row-gap: 10px;
  padding: 32px;
}

.about-panel > h3 {
  grid-column: 1 / -1;
}

.about-panel .section-kicker {
  color: var(--accent);
}

.about-panel .lead {
  max-width: 560px;
  margin-top: 0;
  margin-bottom: 0;
}

.about-panel-copy,
.about-panel-details {
  align-self: start;
  justify-self: start;
  text-align: left;
}

.about-panel-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
}

.about-panel-details .tag-list {
  margin-top: 0;
}

.about-panel-details .link-row {
  justify-content: flex-start;
}

.about-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 24px;
}

.about-links a {
  min-height: 76px;
  justify-content: space-between;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.about-links a::after {
  color: var(--muted-soft);
  content: "->";
  font-size: 1rem;
}

.about-card:hover,
.project-card:hover,
.compact-card:hover,
.current-projects-card:hover {
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

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

.tag-list li {
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 2px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: #25005a;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-heading h2::before {
  width: 32px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent-bright);
  content: "";
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(var(--section-columns, 2), minmax(0, 1fr));
  gap: var(--gutter);
}

.project-card,
.compact-card,
.current-projects-card {
  overflow: hidden;
}

.project-card-body {
  padding: 24px;
}

.project-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(86, 94, 116, 0.08)),
    var(--surface-strong);
  overflow: hidden;
}

.project-thumbnail img,
.project-thumbnail iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.project-thumbnail-video {
  position: relative;
}

.project-card h3 a,
.compact-card h3 a,
.current-projects-card h3 a {
  text-decoration: none;
}

.project-card h3 a:hover,
.compact-card h3 a:hover,
.current-projects-card h3 a:hover {
  color: var(--hover-text);
}

.project-card p,
.compact-card p,
.current-projects-card p {
  color: var(--muted);
}

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

#other-projects .compact-card h3 {
  margin: 0;
}

#other-projects .compact-card p {
  margin: 10px 0 0;
}

.current-section {
  background: var(--bg);
}

.current-projects-list {
  display: grid;
  grid-template-columns: repeat(var(--section-columns, 1), minmax(0, 1fr));
  gap: var(--gutter);
}

.current-projects-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.current-projects-media {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 0 16px 16px;
}

.current-projects-media .project-thumbnail {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 6px;
}

.current-projects-media .tag-list {
  margin: 0;
  padding: 18px;
}

.current-projects-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
}

.current-projects-body .lead {
  margin-bottom: 0;
}

.site-footer {
  border-top: 0;
  background: rgba(243, 235, 250, 0.72);
  color: var(--text);
  padding: 48px 0;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.site-footer strong {
  display: block;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
}

.post-header {
  padding: 20px 0 10px;
  background: transparent;
}

.post-header-layout {
  width: min(var(--container), calc(100% - 64px));
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--hover-text);
}

.post-about {
  position: relative;
  overflow: hidden;
  padding: 32px 0 80px;
}

.post-about::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(124, 58, 237, 0.08) 50%, var(--bg) 100%);
  content: "";
  pointer-events: none;
}

.post-about-layout {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.post-about h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
}

.post-hero-tags {
  margin: 0 0 24px;
}

.post-intro {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 40px;
  color: var(--muted-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.post-meta-line span + span::before {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-bright);
  content: "";
}

.post-hero-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: 1px solid rgba(29, 26, 36, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(86, 94, 116, 0.08)),
    var(--surface-strong);
  box-shadow: 0 18px 42px rgba(51, 47, 57, 0.12);
}

.post-hero-media img,
.post-hero-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.post-meta {
  padding: 22px;
}

.post-meta div + div {
  margin-top: 16px;
}

.post-meta span {
  display: block;
  color: var(--muted-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
}

.post-content {
  padding: 0 0 96px;
  background: rgba(254, 247, 255, 0.72);
}

.post-container {
  max-width: 760px;
}

.post-content h2 {
  margin: 48px 0 18px;
  font-size: 2rem;
  line-height: 1.3;
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content h3 {
  margin: 28px 0 16px;
}

.post-content p,
.post-content li {
  color: #30343a;
  font-size: 1.125rem;
}

.post-content p {
  margin: 0 0 18px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
}

.post-content a {
  color: var(--accent);
  font-weight: 700;
}

.post-content code {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 2px 5px;
  background: #fdfbff;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

.post-content pre {
  overflow-x: auto;
  border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent-bright);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.post-content figure {
  margin: 40px 0;
}

.post-content img {
  max-width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-content blockquote {
  margin: 32px 0;
  border-left: 4px solid var(--accent-bright);
  padding: 4px 0 4px 20px;
  color: var(--muted);
}

.post-content .youtube-embed {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 32px auto;
}

.post-content .youtube-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.post-content .demo-game {
  width: min(1120px, calc(100vw - 64px));
  height: auto;
  margin: 32px 0;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-content .demo-game iframe,
.post-content .demo-game canvas {
  width: 100%;
  min-height: 640px;
  display: block;
  border: 0;
}

.post-content details {
  overflow: visible;
}

.post-content pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-layout {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    min-height: 72px;
    padding-block: 16px;
  }

  .site-hero {
    min-height: auto;
    padding-block: 52px;
  }

  .hero-grid,
  .about-panel,
  .project-grid,
  .compact-grid,
  .about-links,
  .current-projects-card {
    grid-template-columns: 1fr;
  }

  .current-projects-media {
    border-bottom: 0;
  }

  .footer-layout {
    align-items: center;
    flex-direction: column;
  }

  .post-about-layout {
    max-width: 900px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .site-hero,
  .section,
  .post-about,
  .post-content {
    padding-block: 32px 64px;
  }

  .post-header {
    padding-top: 20px;
  }

  .post-about {
    padding-top: 24px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .about-card,
  .project-card-body {
    padding: 22px;
  }

  .post-hero-media {
    aspect-ratio: 16 / 10;
  }
}
