* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: #1a1a1a; background: #fff; }
.wrapper { width: 96%; max-width: 700px; margin: 0 auto; padding: 0 10px 4rem; }
.navbar { position: sticky; top: 0; background-color: #fff; z-index: 1000; width: 100%; padding: 16px 0 12px; }
.navbar-content { display: flex; align-items: center; justify-content: space-between; width: 96%; max-width: 1724px; margin: 0 auto; padding-right: 2.5%; }
.logo img { height: 52px; }
.icon-links { display: flex; gap: 24px; align-items: center; }
.icon-link { color: black; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.icon-link:hover { color: #527979; }
.github-icon { font-size: 19px; }
.page-nav { display: flex; justify-content: space-between; align-items: baseline; padding-top: calc(1rem + 4px); padding-bottom: 0; margin-bottom: 24px; }
.page-nav-left { display: flex; gap: 1.75rem; }
.page-nav-right { display: flex; gap: 1.25rem; }
.page-nav a { color: #1a1a1a; text-decoration: none; font-family: "EB Garamond", Georgia, serif; font-size: 18px; }
.page-nav-right a { font-size: 16px; color: #666; }
.page-nav a:hover { color: #527979; }
.header-image { width: 100vw; margin-left: calc(-50vw + 50%); height: 60vh; background: #f4f4f4; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; border-top: 1px solid black; border-bottom: 1px solid black; }
.header-image img, .header-image video { width: 100%; height: 100%; object-fit: cover; }
h1 { font-family: "EB Garamond", serif; font-size: 32px; font-weight: 500; margin: 0 0 .35em; }
h2 { font-family: "EB Garamond", serif; font-size: 26px; font-weight: 400; margin: 2.5em 0 .5em; scroll-margin-top: 100px; }
h3 { font-family: "Jost", sans-serif; font-size: 15.5px; font-weight: 500; margin: 1.75em 0 .5em; text-transform: uppercase; letter-spacing: .05em; }
h4 { font-family: "EB Garamond", serif; font-size: 18px; font-weight: 500; margin: 1.5em 0 .25em; }
p { margin: 0 0 1em; font-family: "EB Garamond", Georgia, serif; font-size: 18px; letter-spacing: .01em; }
hr { border: none; border-top: .5px solid black; margin: 2.5em 0; }
strong { font-weight: 500; }
code { font-family: "JetBrains Mono", monospace; font-size: 14px; background: #f4f4f4; padding: .15em .4em; border-radius: 3px; }
pre { font-family: "JetBrains Mono", monospace; font-size: 13px; background: #f4f4f4; padding: 1em 1.25em; border-radius: 4px; overflow-x: auto; line-height: 1.45; margin: 0 0 1.25em; }
pre code { background: none; padding: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font-size: 14px; }
th, td { border: 1px solid #e0e0e0; padding: .6em .8em; text-align: left; letter-spacing: .01em; }
th { background: #f9f9f9; font-weight: 500; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin: .3em 0; font-family: "EB Garamond", Georgia, serif; font-size: 18px; letter-spacing: .01em; }
.meta { font-size: 14px; color: #666; margin-top: 3em; padding-top: 1em; border-top: .5px solid #e0e0e0; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 18px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; position: relative; top: -8px; right: 32px; z-index: 100; }
.hamburger span { display: block; width: 100%; height: 2px; background: #1a1a1a; transition: transform .2s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; top: calc(100% - 38px); right: 22px; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: calc(1rem - 4px) 1.5rem 1rem calc(1.5rem - 4px); z-index: 99; }
.mobile-menu.open { display: flex; flex-direction: column; gap: .75rem; }
.mobile-menu a { color: #666; text-decoration: none; font-family: "EB Garamond", Georgia, serif; font-size: 16px; }
.mobile-menu a:hover { color: #527979; }
/* Optional reusable media placeholder. Remove the whole element when real media is added. */
.media-placeholder { width: 100%; min-height: 180px; border: 1px dashed #999; background: #f4f4f4; color: #666; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 13px; }
@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .header-image { height: 52vh; }
  .page-nav { position: relative; }
  .page-nav-right { display: none; }
  .hamburger { display: flex; }
}
