:root {
  --bg-light: #fff;
  --text-light: #222;
  --header-light: #f5f5f5;
  --card-light: #fafafa;
  --border-light: #e5e5e5;
  --text-dimmed-light: #777;
  --bg-dark: #181818;
  --text-dark: #eee;
  --header-dark: #232323;
  --card-dark: #222;
  --border-dark: #333;
  --text-dimmed-dark: #999;
}

[data-theme=light] {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --header: var(--header-light);
  --card: var(--card-light);
  --color-border: var(--border-light);
  --color-text-dimmed: var(--text-dimmed-light);
}

[data-theme=light] .theme-toggle .sun {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

[data-theme=light] .theme-toggle .moon {
  transform: translateY(100%) rotate(90deg);
  opacity: 0;
}

[data-theme=dark] {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --header: var(--header-dark);
  --card: var(--card-dark);
  --color-border: var(--border-dark);
  --color-text-dimmed: var(--text-dimmed-dark);
}

[data-theme=dark] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme=dark] .theme-toggle .sun {
  transform: translateY(-100%) rotate(-90deg);
  opacity: 0;
}

[data-theme=dark] .theme-toggle .moon {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Space Mono", monospace;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

@media (min-width: 800px) {
  body {
    display: grid;
    grid-template-columns: 240px 1fr;
  }
}

footer {
  display: none;
}

header.sidebar {
  background: var(--header);
  padding: 1rem;
  text-align: center;
}

@media (min-width: 800px) {
  header.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    padding: 2rem 1rem;
    text-align: left;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
  }
}

header.sidebar .sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
}

header.sidebar .logo {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 2rem;
}

header.sidebar .logo img,
header.sidebar .logo svg {
  max-width: 100%;
  height: auto;
  display: block;
}

header.sidebar .sidebar-nav {
  display: flex;
  flex-direction: column;
}

header.sidebar .sidebar-nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 800px) {
  header.sidebar .sidebar-nav a {
    display: block;
    padding: 0.25rem 0;
    margin: 0;
  }

  header.sidebar .sidebar-nav a[aria-current=page] {
    font-weight: bold;
  }
}

header.sidebar .sidebar-nav-section {
  margin-bottom: 2rem;
}

header.sidebar .sidebar-nav-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-dimmed);
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
}

header.sidebar .sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

header.sidebar .sidebar-footer a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (min-width: 800px) {
  main {
    grid-column: 2/3;
    max-width: none;
    margin: 0;
    padding: 2rem;
  }
}

@media (max-width: 700px) {
  main {
    padding: 0 0.5rem;
  }
}

.blog-post,
.project-set {
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.about-text {
  flex: 2 1 250px;
}

.about-photo img {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.masonry-grid img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.project-images {
  -moz-column-count: 2;
  column-count: 2;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
}

@media (max-width: 600px) {
  .project-images {
    -moz-column-count: 1;
    column-count: 1;
  }
}

.blog-images img,
.project-images img {
  width: 100%;
  height: auto;
  margin: 0 0 1rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  -moz-column-break-inside: avoid;
  break-inside: avoid;
}

.blog-images img:hover,
.project-images img:hover {
  opacity: 0.8;
}

.image-viewer {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  bottom: 0;
  background: rgba(24, 24, 24, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .image-viewer {
    left: 0;
  }
}

.image-viewer .viewer-content {
  position: relative;
  max-width: calc(100% - 8rem);
  max-height: calc(100% - 4rem);
}

.image-viewer .viewer-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
}

.image-viewer .viewer-close,
.image-viewer .viewer-prev,
.image-viewer .viewer-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 1rem;
  line-height: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  transition: color 0.2s;
}

.image-viewer .viewer-close:hover,
.image-viewer .viewer-prev:hover,
.image-viewer .viewer-next:hover {
  color: #ccc;
}

.image-viewer .viewer-close {
  top: 0;
  right: 0;
}

.image-viewer .viewer-prev,
.image-viewer .viewer-next {
  top: 50%;
  transform: translateY(-50%);
}

.image-viewer .viewer-prev {
  left: 0;
}

.image-viewer .viewer-next {
  right: 0;
}

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