@charset "UTF-8";
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --soft: #e8e8e5;
  --icon: #222222;
  --container: 690px;
  --nav-width: 690px;
}

[data-theme=dark] {
  --bg: #0f0f10;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --soft: #1f1f22;
  --icon: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

.site-main {
  min-height: calc(100vh - 160px);
}

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

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

.site-header {
  padding-top: 42px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  font-weight: 400;
}

.site-nav a {
  color: var(--text);
}

.site-nav a:hover {
  opacity: 0.75;
}

.theme-toggle {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 19px;
  height: 19px;
  display: block;
}

.site-footer {
  padding: 88px 0 36px;
}

.footer-inner {
  width: min(var(--nav-width), 100% - 56px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon);
  transition: opacity 0.2s ease;
}

.footer-icon-link:hover {
  opacity: 0.7;
}

.footer-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* IMAGE */
.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* OPTIONAL: subtle zoom animation */
.lightbox.is-open .lightbox-image {
  animation: lightboxFade 0.2s ease;
}

@keyframes lightboxFade {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* HOME HERO */
.home-hero {
  padding-top: 78px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 30px;
  align-items: start;
}

/* TITLE */
.home-hero h1 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* TEXT */
.home-hero-copy p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.home-hero-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* AVATAR */
.hero-avatar-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7e7e4;
}

/* FALLBACK AVATAR */
.hero-avatar-fallback {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #e7e7e4;
  position: relative;
}

.hero-avatar-fallback::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 50%;
  width: 46px;
  height: 46px;
  background: #666;
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-avatar-fallback::after {
  content: "";
  position: absolute;
  bottom: 23px;
  left: 50%;
  width: 92px;
  height: 58px;
  background: #666;
  border-radius: 58px 58px 20px 20px;
  transform: translateX(-50%);
}

/* OPTIONAL: subtle polish */
.hero-avatar,
.hero-avatar-fallback {
  transition: transform 0.2s ease;
}

.hero-avatar:hover {
  transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .home-hero {
    padding-top: 52px;
  }
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-avatar-wrap {
    justify-content: flex-start;
    padding-top: 0;
  }
  .hero-avatar,
  .hero-avatar-fallback {
    width: 120px;
    height: 120px;
  }
  .home-hero h1 {
    font-size: 24px;
  }
  .home-hero-copy p {
    font-size: 16px;
  }
}
/* BLOG INDEX */
.blog-index {
  padding-top: 75px;
}

/* TITLE */
.blog-index h1 {
  margin: 0 0 26px;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* LIST */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ITEM */
.post-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  font-size: 18px;
}

/* TITLE */
.post-list-item-title {
  line-height: 1.5;
}

.post-list-item-title a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.post-list-item-title a:hover {
  opacity: 0.7;
}

/* DATE */
.post-list-item-date {
  color: var(--muted);
  white-space: nowrap;
  font-size: 16px;
}

/* OPTIONAL: subtle divider (clean look) */
.post-list-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft);
}

.post-list-item:last-child {
  border-bottom: none;
}

/* OPTIONAL: slightly tighter rhythm */
.post-list {
  gap: 14px;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .blog-index {
    padding-top: 52px;
  }
  .post-list-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .post-list-item-date {
    font-size: 14px;
  }
}
/* POST PAGE */
.post-page {
  padding-top: 68px;
}

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

/* HEADER */
.post-header h1 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.post-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

/* FEATURED IMAGE */
.post-featured {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.post-featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* CONTENT */
.post-content {
  font-size: 18px;
  line-height: 1.75;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table {
  margin: 0 0 22px;
}

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

.post-content li + li {
  margin-top: 0.35rem;
}

/* HEADINGS */
.post-content h2 {
  margin: 46px 0 20px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.post-content h3 {
  margin: 36px 0 18px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.post-content h4 {
  margin: 28px 0 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

/* LINKS */
.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  opacity: 0.75;
}

/* INLINE CODE */
.post-content code {
  background: #f0f0ee;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

[data-theme=dark] .post-content code {
  background: #2a2a2a;
}

/* SYNTAX HIGHLIGHTING — Rouge div.highlight */
.post-content div.highlight {
  background: #f6f8fa;
  border-radius: 8px;
  border: 1px solid #e8e8e5;
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-content div.highlight pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  background: none;
  border-radius: 0;
}

.post-content div.highlight pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.875em;
}

[data-theme=dark] .post-content div.highlight {
  background: #161b22;
  border-color: #30363d;
}

/* BLOCKQUOTE */
.post-content blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--soft);
  color: var(--muted);
}

/* IMAGES */
.post-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* HORIZONTAL RULE */
.post-content hr {
  border: 0;
  border-top: 1px solid var(--soft);
  margin: 36px 0;
}

/* TABLES */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.post-content th,
.post-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft);
}

.post-content th {
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .post-page {
    padding-top: 52px;
  }
  .post-header h1 {
    font-size: 24px;
  }
  .post-meta {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .post-content {
    font-size: 16px;
    line-height: 1.7;
  }
  .post-content h2 {
    font-size: 21px;
    margin: 36px 0 16px;
  }
  .post-content h3 {
    font-size: 19px;
    margin: 30px 0 14px;
  }
  .post-content h4 {
    font-size: 17px;
  }
  .post-content table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
}
/* PAGE */
.page-section {
  padding-top: 68px;
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-content {
  font-size: 18px;
  line-height: 1.75;
}

.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content pre,
.page-content table {
  margin: 0 0 22px;
}

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

.page-content li + li {
  margin-top: 0.35rem;
}

/* HEADINGS */
.page-content h2 {
  margin: 46px 0 20px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-content h3 {
  margin: 36px 0 18px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-content h4 {
  margin: 28px 0 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

/* LINKS */
.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  opacity: 0.75;
}

/* CODE */
.page-content code,
.page-content pre {
  background: var(--soft);
}

.page-content code {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.page-content pre {
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
}

.page-content pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.95em;
}

/* BLOCKQUOTE */
.page-content blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--soft);
  color: var(--muted);
}

/* IMAGES */
.page-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* HORIZONTAL RULE */
.page-content hr {
  border: 0;
  border-top: 1px solid var(--soft);
  margin: 36px 0;
}

/* TABLES */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft);
}

.page-content th {
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .page-section {
    padding-top: 52px;
  }
  .page-header h1 {
    font-size: 24px;
  }
  .page-content {
    font-size: 16px;
    line-height: 1.7;
  }
  .page-content h2 {
    font-size: 21px;
    margin: 36px 0 16px;
  }
  .page-content h3 {
    font-size: 19px;
    margin: 30px 0 14px;
  }
  .page-content h4 {
    font-size: 17px;
  }
  .page-content table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
}
/* PHOTOS PAGE */
.photo-grid {
  column-width: 260px;
  column-gap: 18px;
  margin-top: 8px;
}

.photo-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 18px;
}

.photo-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.photo-button:hover img {
  transform: scale(1.03);
}

.photo-variant-0 img {
  border-radius: 12px;
}

.photo-variant-1 img {
  border-radius: 18px;
}

.photo-variant-2 img {
  border-radius: 10px;
}

.photo-variant-3 img {
  border-radius: 14px;
}

.photo-variant-4 img {
  border-radius: 20px;
}

/* PROJECT LIST PAGE */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.project-item {
  border-bottom: 1px solid var(--soft);
  padding-bottom: 20px;
}

.project-item:last-child {
  border-bottom: 0;
}

.project-item-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: opacity 0.2s ease;
}

.project-item-link:hover {
  opacity: 0.8;
}

.project-item-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.project-item-excerpt {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.project-item-stack,
.project-detail-stack {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.project-item-year {
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}

/* PROJECT DETAIL PAGE */
.project-detail-stack {
  margin: 0 0 24px;
}

/* PROJECT GALLERY */
.project-gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .project-item-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .project-item-year {
    padding-top: 0;
  }
  .project-item-title {
    font-size: 20px;
  }
  .project-item-excerpt {
    font-size: 16px;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .photo-grid {
    column-width: 220px;
    column-gap: 16px; /* slightly tighter */
  }
  .photo-item {
    margin-bottom: 16px;
  }
}
@media (max-width: 520px) {
  .photo-grid {
    column-width: 100%;
    column-gap: 0;
  }
  .photo-item {
    margin-bottom: 16px;
  }
}
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight, .highlight .w {
  color: #24292f;
  background-color: #f6f8fa;
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
  color: #cf222e;
}

.highlight .gr {
  color: #f6f8fa;
}

.highlight .gd {
  color: #82071e;
  background-color: #ffebe9;
}

.highlight .nb {
  color: #953800;
}

.highlight .nc {
  color: #953800;
}

.highlight .no {
  color: #953800;
}

.highlight .nn {
  color: #953800;
}

.highlight .sr {
  color: #116329;
}

.highlight .na {
  color: #116329;
}

.highlight .nt {
  color: #116329;
}

.highlight .gi {
  color: #116329;
  background-color: #dafbe1;
}

.highlight .ges {
  font-weight: bold;
  font-style: italic;
}

.highlight .kc {
  color: #0550ae;
}

.highlight .l, .highlight .ld, .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #0550ae;
}

.highlight .sb {
  color: #0550ae;
}

.highlight .bp {
  color: #0550ae;
}

.highlight .ne {
  color: #0550ae;
}

.highlight .nl {
  color: #0550ae;
}

.highlight .py {
  color: #0550ae;
}

.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi, .highlight .vm {
  color: #0550ae;
}

.highlight .o, .highlight .ow {
  color: #0550ae;
}

.highlight .gh {
  color: #0550ae;
  font-weight: bold;
}

.highlight .gu {
  color: #0550ae;
  font-weight: bold;
}

.highlight .s, .highlight .sa, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .sx, .highlight .s1, .highlight .ss {
  color: #0a3069;
}

.highlight .nd {
  color: #8250df;
}

.highlight .nf, .highlight .fm {
  color: #8250df;
}

.highlight .err {
  color: #f6f8fa;
  background-color: #82071e;
}

.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cp, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #6e7781;
}

.highlight .gl {
  color: #6e7781;
}

.highlight .gt {
  color: #6e7781;
}

.highlight .ni {
  color: #24292f;
}

.highlight .si {
  color: #24292f;
}

.highlight .ge {
  color: #24292f;
  font-style: italic;
}

.highlight .gs {
  color: #24292f;
  font-weight: bold;
}

/*# sourceMappingURL=main.css.map */