@charset "UTF-8";
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight, .highlight .w {
  color: light-dark(#24292f, #c9d1d9);
  background-color: light-dark(#f6f8fa, #161b22);
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
  color: light-dark(#cf222e, #ff7b72);
}

.highlight .gr {
  color: light-dark(#f6f8fa, #f0f6fc);
}

.highlight .gd {
  color: light-dark(#82071e, #ffdcd7);
  background-color: light-dark(#ffebe9, #67060c);
}

.highlight .nb {
  color: light-dark(#953800, #ffa657);
}

.highlight .nc {
  color: light-dark(#953800, #ffa657);
}

.highlight .no {
  color: light-dark(#953800, #ffa657);
}

.highlight .nn {
  color: light-dark(#953800, #ffa657);
}

.highlight .sr {
  color: light-dark(#116329, #7ee787);
}

.highlight .na {
  color: light-dark(#116329, #7ee787);
}

.highlight .nt {
  color: light-dark(#116329, #7ee787);
}

.highlight .gi {
  color: light-dark(#116329, #aff5b4);
  background-color: light-dark(#dafbe1, #033a16);
}

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

.highlight .kc {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .l, .highlight .ld, .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .sb {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .bp {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .ne {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .nl {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .py {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi, .highlight .vm {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .o, .highlight .ow {
  color: light-dark(#0550ae, #79c0ff);
}

.highlight .gh {
  color: light-dark(#0550ae, #1f6feb);
  font-weight: bold;
}

.highlight .gu {
  color: light-dark(#0550ae, #1f6feb);
  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: light-dark(#0a3069, #a5d6ff);
}

.highlight .nd {
  color: light-dark(#8250df, #d2a8ff);
}

.highlight .nf, .highlight .fm {
  color: light-dark(#8250df, #d2a8ff);
}

.highlight .err {
  color: light-dark(#f6f8fa, #f0f6fc);
  background-color: light-dark(#82071e, #8e1519);
}

.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cp, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: light-dark(#6e7781, #8b949e);
}

.highlight .gl {
  color: light-dark(#6e7781, #8b949e);
}

.highlight .gt {
  color: light-dark(#6e7781, #8b949e);
}

.highlight .ni {
  color: light-dark(#24292f, #c9d1d9);
}

.highlight .si {
  color: light-dark(#24292f, #c9d1d9);
}

.highlight .ge {
  color: light-dark(#24292f, #c9d1d9);
  font-style: italic;
}

.highlight .gs {
  color: light-dark(#24292f, #c9d1d9);
  font-weight: bold;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#fdfcf8, #121212);
  --text: light-dark(#222, #c4c2bc);
  --heading: light-dark(#111, #f0efe9);
  --muted: light-dark(#777, #aaa);
  --border: light-dark(#ddd8cf, #333);
  --accent: light-dark(#2a4d7a, #8ab4f8);
  --accent-light: light-dark(#b0bec5, rgba(138, 180, 248, 0.3));
  --code-bg: light-dark(#f0efe9, #1e1e1e);
  --code-text: light-dark(#333, #e8e6e3);
  --pre-bg: light-dark(#f6f8fa, #161b22);
  --table-border: light-dark(#e5e0d6, #2e2e2e);
  --table-header: light-dark(#c9c2b4, #4a4a4a);
  --card-bg: light-dark(#fdfcf8, #1a1a1a);
  --lightbox-bg: rgba(14, 13, 12, 0.94);
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

#container {
  max-width: 720px;
  margin: 60px auto 100px;
  padding: 0 28px;
}

h1, h2 {
  color: var(--heading);
  font-weight: normal;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.15em;
  text-align: left;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5em 0 0.7em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25em;
}
h2::before {
  content: "§ ";
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration-color: var(--accent);
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 0.85em;
  color: var(--code-text);
  border: 1px solid var(--border);
}

pre {
  background: var(--pre-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1em 1.2em;
  margin: 1.5em 0 1.4em;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 3em 0;
}
figure img {
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}
figure figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75em;
  font-style: italic;
  text-align: center;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.site-header a {
  text-decoration: none;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.site-header nav a {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 20px;
  border-bottom: 1px solid var(--border);
}
.site-header nav a:hover {
  color: var(--heading);
}
.site-header nav a.theme-toggle {
  border-bottom: none;
  font-size: 1rem;
  padding-left: 4px;
}

.subtitle {
  text-align: left;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5em;
  font-size: 1.05rem;
}

.meta, .post-date {
  font-size: 0.85rem;
}

.meta {
  color: var(--muted);
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6em;
}

.post-date {
  color: var(--heading);
  font-weight: 500;
  white-space: nowrap;
  order: 2;
}

section {
  margin-top: 2em;
}

ul {
  padding-left: 1.2em;
  color: var(--text);
  list-style-type: square;
}

li {
  margin-bottom: 0.8em;
  padding-left: 0.2em;
  color: var(--text);
}
li strong {
  color: var(--heading);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0 2em;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
table th, table td {
  padding: 0.6em 0.7em;
  text-align: right;
  border-bottom: 1px solid var(--table-border);
}
table th {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--table-header);
}
table th:first-child, table td:first-child {
  text-align: left;
  color: var(--heading);
}
table tbody tr:last-child td {
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin: 2.5em 0 3em;
}
.gallery figure {
  margin: 0;
}
.gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
}
.gallery a:hover, .gallery a:focus-visible {
  border-color: var(--muted);
}
.gallery img {
  display: block;
  width: 100%;
  border: none;
  transition: transform 0.4s ease;
}
.gallery a:hover img {
  transform: scale(1.04);
}
.gallery figcaption {
  margin-top: 0.7em;
  text-align: left;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 6vh 5vw;
  overflow: auto;
  text-align: center;
  background: var(--lightbox-bg);
}
.lightbox:target {
  display: block;
}
.lightbox img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.lightbox p.caption {
  max-width: 60ch;
  margin: 1.2em auto 0;
  color: var(--border);
  font-size: 0.95rem;
  font-style: italic;
}
.lightbox .lightbox-close {
  position: fixed;
  top: 10px;
  right: 14px;
  padding: 8px 12px;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--heading);
  text-decoration: none;
  opacity: 0.7;
}
.lightbox .lightbox-close:hover, .lightbox .lightbox-close:focus-visible {
  opacity: 1;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 16px;
  margin-top: 100px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: var(--heading);
}
footer .footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer .footer-links a {
  color: var(--text);
  font-size: 1.1rem;
}
footer .footer-links a:hover {
  color: var(--heading);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  background: var(--card-bg);
  max-width: 480px;
  margin-top: 2em;
}
.contact-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}
.contact-card p {
  margin: 0.5em 0;
}
.contact-card code {
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

@media (max-width: 600px) {
  #container {
    margin: 20px auto 60px;
    padding: 0 16px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }
  .site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 8px 12px;
  }
  .site-header nav a {
    margin-left: 0;
    font-size: 1.05rem;
    padding: 6px 0;
    flex: 1 1 auto;
    text-align: center;
    min-width: 60px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lightbox {
    padding: 5vh 16px;
  }
  .lightbox img {
    max-height: 70vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery img {
    transition: none;
  }
}