/* Christian Hammerl — personal developer studio. All assets are local. */
:root {
  color-scheme: dark;
  --bg: #141a22;
  --surface: #1b2430;
  --surface-raised: #243141;
  --text: #edf2f8;
  --muted: #a4b2c3;
  --border: #334254;
  --accent: #8dbdff;
  --accent-secondary: #86c9ce;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
img, svg, video { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.15; text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; }
p { margin: 0 0 1.1rem; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.accent { color: var(--accent); }
.site-header, main, .site-footer { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.brand-mark { display: grid; place-content: center; position: relative; width: 47px; height: 47px; border: 1px solid #52677f; border-radius: 13px; font-family: var(--mono); font-size: 23px; letter-spacing: -.12em; }
.brand-mark span { position: absolute; right: 7px; bottom: 5px; color: var(--accent); }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; font-size: 13px; }
.main-nav a { display: inline-flex; align-items: center; gap: .8rem; padding-block: .65rem; color: var(--muted); }
.main-nav a:hover, .main-nav .current { color: var(--text); }
.main-nav .current::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: 10px; font-weight: 400; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--accent-secondary); box-shadow: 0 0 0 4px #86c9ce10; }
.home { padding-bottom: 65px; }
.hero { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 0 1rem; padding-block: 55px 15px; }
.hero-description > :last-child { margin-bottom: 0; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > .eyebrow { margin-bottom: 1.9rem; font-size: 15px; letter-spacing: .02em; text-transform: none; color: var(--text); }
.hero h1 { font-size: clamp(3.2rem, 6.5vw, 5.65rem); line-height: 1.05; font-weight: 600; letter-spacing: -.065em; }
.hero h1 em { display: inline-block; padding-right: .04em; color: var(--accent); }
.hero-period { display: inline-block; margin-left: .06em; color: var(--accent); font-size: .7em; font-weight: 400; }
.hero-description { max-width: 440px; margin: 1.8rem 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-visual { min-width: 0; position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbit-art { position: absolute; width: 114%; max-width: none; inset: -7%; pointer-events: none; }
.code-window { width: 83%; position: relative; transform: rotate(-4deg); filter: drop-shadow(0 25px 25px #0004); }
.floating-code { position: absolute; right: 4%; bottom: 16%; display: grid; place-items: center; width: 69px; height: 69px; transform: rotate(10deg); background: var(--accent-secondary); color: #182c3e; border: 5px solid var(--bg); border-radius: 18px; font: 600 25px var(--mono); box-shadow: 0 10px 24px #0003; }
.journal-section { padding-top: 70px; }
.section-heading { display: flex; align-items: center; gap: 1.7rem; margin-bottom: 35px; }
.section-heading .eyebrow { margin: 0; flex-shrink: 0; }
.section-line { width: 100%; height: 1px; background: var(--border); }
.journal-section > h2 { margin-bottom: 35px; font-size: 2.5rem; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 45px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.list-heading a { color: var(--muted); font: 10px var(--mono); }
.article-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.article-list li { border-top: 1px solid var(--border); }
.article-list li:last-child { border-bottom: 1px solid var(--border); }
.article-list a { display: grid; grid-template-columns: 85px 1fr 20px; align-items: baseline; gap: 18px; padding: 20px 0; font-size: 15px; line-height: 1.5; }
.article-list time { color: var(--muted); font: 10px var(--mono); }
.article-arrow { justify-self: end; color: var(--accent); transition: transform .2s; }
.article-list a:hover .article-arrow { transform: translate(2px, -2px); }
.site-footer { padding: 27px 0 22px; border-top: 1px solid var(--border); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-signature { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.social-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.social-icons a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; border-radius: 6px; }
.social-icons a:hover { border-color: var(--border); color: var(--accent); background: var(--surface); }
.social-icons svg { width: 17px; height: 17px; }
.footer-bottom { flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-built { margin-left: 10px; }
.footer-bottom nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.footer-bottom nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.back-top { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; width: 44px; height: 44px; font-size: 18px; }
.page-shell { max-width: 860px; min-height: 60vh; padding-block: 65px 85px; }
.page-heading { margin-bottom: 38px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.back-link { display: inline-flex; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(2.4rem, 5vw, 4rem); overflow-wrap: anywhere; hyphens: auto; }
.lead { margin: 1.5rem 0 0; color: var(--muted); font-size: 18px; }
.prose { color: var(--muted); overflow-wrap: break-word; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 2rem 0 1rem; color: var(--text); }
.prose h1, .prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: 8px; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 2px solid var(--accent); background: var(--surface); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose pre { max-width: 100%; overflow: auto; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.prose code, .prose kbd { font-family: var(--mono); font-size: .9em; }
.prose :not(pre) > code { color: var(--accent-secondary); background: var(--surface-raised); padding: .15em .35em; border-radius: 3px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem 1rem; border: 1px solid var(--border); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.post-meta { display: flex; gap: 15px; margin: 1.5rem 0 0; color: var(--muted); font: 11px var(--mono); }
.tags, .term-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tags { margin-top: 20px; }
.tag { display: inline-flex; gap: 10px; align-items: center; padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; font: 11px var(--mono); color: var(--accent-secondary); }
.tag:hover { border-color: var(--accent); }
.tag span { color: var(--muted); }
.archive-year { margin-top: 40px; }
.archive-year h2 { color: var(--accent-secondary); font: 18px var(--mono); }
.related-posts { margin-top: 60px; }
.related-posts h2 { font-size: 2rem; }
.paginator { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.paginator a { display: grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid var(--border); border-radius: 4px; }
.paginator [aria-current="page"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
@media (min-width: 1500px) { .hero { padding-top: 70px; } }
@media (max-width: 1050px) {
  .site-header, main, .site-footer { width: calc(100% - 64px); }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3.2rem, 6.5vw, 5rem); }
  .footer-built { display: block; margin-left: 0; }
}
@media (max-width: 760px) {
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 96px; gap: 16px; }
  .main-nav { gap: 14px; font-size: 12px; justify-content: flex-end; }
  .main-nav a { gap: 6px; }
  .brand { font-size: 12px; gap: 9px; flex-shrink: 0; }
  .brand-mark { width: 38px; height: 40px; font-size: 20px; border-radius: 10px; }
  .home { padding-bottom: 45px; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-copy > .eyebrow { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(3.35rem, 10.5vw, 5rem); }
  .hero-description { max-width: 440px; font-size: 15px; margin-top: 24px; }
  .hero-visual { width: min(100%, 360px); margin: 8px auto 0; }
  .orbit-art { width: 100%; inset: 0; }
  .code-window { width: 86%; }
  .floating-code { right: 6%; bottom: 14%; width: 58px; height: 58px; font-size: 21px; }
  .journal-section { padding-top: 45px; }
  .section-heading { margin-bottom: 28px; gap: 15px; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .footer-top, .footer-bottom { align-items: flex-start; }
  .footer-bottom { flex-wrap: wrap; }
  .page-shell { padding-block: 40px 60px; }
  .page-heading h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .journal-section > h2 { font-size: 2rem; }
}
@media (max-width: 450px) {
  .site-header { flex-wrap: wrap; justify-content: center; padding-block: 18px; gap: 13px; }
  .brand { margin-right: auto; }
  .main-nav { gap: 12px; }
  .main-nav .current::before { display: none; }
  .footer-top { flex-direction: column; gap: 12px; }
  .social-icons { gap: 8px; }
  .social-icons a { border-color: var(--border); }
  .footer-bottom { gap: 18px; }
  .article-list a { grid-template-columns: 1fr 20px; gap: 8px; }
  .article-list time { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { --bg: #fff; --surface: #f4f4f4; --text: #111; --muted: #444; --accent: #24568f; --border: #ccc; --accent-secondary: #28636b; }
  body { color-scheme: light; }
  .site-header, main, .site-footer { width: 100%; }
  .main-nav, .hero-visual, .social-icons, .back-top, .skip-link { display: none; }
  .hero { display: block; }
  .hero h1 { font-size: 42pt; }
  .site-footer { margin-top: 30px; }
}
