@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Playfair+Display:wght@500;700;800&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&display=swap');

@font-face {
  font-family: "FIRST";
  src: url("/assets/fonts/FIRST-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #4a4a4a;
  --line: rgba(17, 17, 17, .16);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --serif: "Times New Roman", Times, serif;
  --blog-head: "Playfair Display", "Times New Roman", Times, serif;
  --blog-body: "Source Serif 4", "Times New Roman", Times, serif;
  --blog-bg: #f8f6f1;
  --blog-ink: #121212;
  --blog-accent: #c8102e;
  --blog-rule: rgba(18, 18, 18, .18);
  --blog-shadow: rgba(0, 0, 0, .08);
  --blog-logo-filter: invert(0);
}

:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --fg: #f2f2f2;
  --muted: rgba(242, 242, 242, .72);
  --line: rgba(242, 242, 242, .18);
  --blog-bg: #0b0c0f;
  --blog-ink: #f2f2f2;
  --blog-accent: #e31837;
  --blog-rule: rgba(242, 242, 242, .2);
  --blog-shadow: rgba(0, 0, 0, .35);
  --blog-logo-filter: invert(1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.blog {
  background: var(--blog-bg);
  color: var(--blog-ink);
  font-family: var(--blog-body);
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--fg);
}

a:hover {
  opacity: .72;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.home-wrap {
  gap: 24px;
  align-content: start;
}

.blog-wrap {
  place-items: center;
  padding: 28px 18px 80px;
}

.card {
  width: min(680px, 90vw);
  text-align: left;
  padding: 34px 22px 18px;
  margin-left: 0;
  /* optical centering */
  opacity: 0;
  transform: translateY(10px);
  animation: enter .75s ease forwards;
}

.home-card {
  width: min(760px, 92vw);
}

.blog-card {
  width: min(1320px, 96vw);
  margin-left: 0;
  padding: 0;
}

.blog-shell {
  background: color-mix(in srgb, var(--blog-bg) 88%, #ffffff 12%);
  border: 1px solid var(--blog-rule);
  box-shadow: 0 12px 30px var(--blog-shadow);
  padding: 32px 34px 34px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.blog-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.blog-title {
  font-family: var(--blog-head);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0;
}

.blog-subtitle {
  margin: 0;
  font-size: 16px;
  color: color-mix(in srgb, var(--blog-ink) 70%, transparent);
}

.blog-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.blog-nav a {
  text-decoration: none;
  color: var(--blog-ink);
}

.blog-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.blog-controls button {
  all: unset;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  cursor: pointer;
  text-transform: uppercase;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-rule);
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-controls button svg {
  display: block;
}


.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blog-ink);
  margin-bottom: 6px;
}

.blog-back::before {
  content: "←";
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.blog-post {
  border: 1px solid var(--blog-rule);
  background: color-mix(in srgb, var(--blog-bg) 90%, #ffffff 10%);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.blog-post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--blog-rule);
}

.blog-post figure {
  margin: 18px 0;
}

.blog-post figure img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--blog-rule);
}

.blog-post figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--blog-ink) 65%, transparent);
  margin-top: 8px;
}

.blog-post h3,
.blog-post h1 {
  font-family: var(--blog-head);
  margin: 0;
}

.blog-post h3 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.blog-post h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
}

.blog-post p {
  margin: 0;
  color: color-mix(in srgb, var(--blog-ink) 70%, transparent);
  font-size: 16px;
  line-height: 1.7;
}

.blog-post a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--blog-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-post a::after {
  content: "→";
}

.blog-detail {
  display: grid;
  gap: 20px;
}

.blog-detail .blog-post {
  border: none;
  padding: 0;
  background: transparent;
}

.blog-detail .blog-post img {
  height: auto;
  max-height: 520px;
}

.blog-footer {
  border-top: 1px solid var(--blog-rule);
  margin-top: 28px;
  padding-top: 18px;
}

.blog-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-footer a {
  text-decoration: none;
  color: var(--blog-ink);
}

.blog-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-footer .brand img {
  width: 28px;
  height: 28px;
  filter: var(--blog-logo-filter);
}

.blog-footer .legal {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

body.blog,
body.blog .blog-shell,
body.blog .blog-post,
body.blog .blog-aside {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    display: none;
  }
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp .6s ease forwards;
}

.d1 {
  animation-delay: .05s;
}

.d2 {
  animation-delay: .12s;
}

.d3 {
  animation-delay: .18s;
}

.d4 {
  animation-delay: .24s;
}

.d5 {
  animation-delay: .30s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.term {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 100%;
  white-space: nowrap;
}

.title-letter,
.title-gap {
  display: inline-block;
}

.title-letter {
  animation: titleShift 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 38ms);
}

@keyframes titleShift {
  0% {
    font-family: var(--mono);
    transform: translateY(8px) skewX(-10deg);
    opacity: 0;
  }
  30% {
    font-family: "Times New Roman", Times, serif;
    transform: translateY(-2px) skewX(8deg);
    opacity: 1;
  }
  60% {
    font-family: "Times New Roman", Times, serif;
    transform: translateY(0) skewX(-2deg);
  }
  100% {
    font-family: "Times New Roman", Times, serif;
    transform: translateY(0) skewX(0);
    opacity: 1;
  }
}

.meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.home-socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 12px;
}

.home-nav {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.home-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-nav-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease;
}

.home-nav-links a:hover {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
  transform: translateY(-2px);
  opacity: 1;
}

.pron {
  font-style: italic;
  color: var(--fg);
}

.pos {
  font-style: italic;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 18px 0;
  transform-origin: left;
  transform: scaleX(.92);
  animation: ruleGrow .7s ease forwards;
  animation-delay: .18s;
  opacity: 0;
}

@keyframes ruleGrow {
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.def {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.example {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--muted);
  max-width: 60ch;
}

.example b {
  font-weight: 700;
  color: var(--fg);
  font-style: italic;
}

.home-section {
  gap: 16px;
}

.home-section .project-card + .project-card {
  margin-top: 12px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.project-card,
.review-card,
.home-blog-card {
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.project-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 22px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 96%, var(--fg) 4%);
  padding: 22px;
  box-shadow: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-card h3,
.review-card strong {
  margin: 0;
}

.project-card h3 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
}

.project-card p,
.review-card p,
.contact-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-meta {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  align-self: end;
  background: transparent;
}

.project-link:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px color-mix(in srgb, var(--fg) 12%, transparent);
  border-color: color-mix(in srgb, var(--fg) 28%, transparent);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.review-card {
  background: color-mix(in srgb, var(--bg) 96%, var(--fg) 4%);
  border-radius: 18px;
  min-height: 220px;
  align-content: start;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-blog-card {
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 96%, var(--fg) 4%);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-blog-card h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.home-blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px color-mix(in srgb, var(--fg) 10%, transparent);
  border-color: color-mix(in srgb, var(--fg) 24%, transparent);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px color-mix(in srgb, var(--fg) 10%, transparent);
  border-color: color-mix(in srgb, var(--fg) 24%, transparent);
}

.review-stars {
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--fg);
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--serif);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--fg) 36%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent);
  transform: translateY(-1px);
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.contact-turnstile {
  display: flex;
  justify-content: flex-start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-submit {
  all: unset;
  cursor: pointer;
  border: 1px solid var(--fg);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background 0.2s ease, box-shadow 0.22s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.contact-status {
  min-height: 20px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

/* TIX */
body.tix {
  background: #ffffff;
  color: var(--fg);
}

.tix-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.tix-header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tix-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.tix-logo {
  width: 30px;
  height: 30px;
  display: block;
}

.tix-brand-name {
  font-size: 12px;
}

.tix-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .2em;
}

.tix-nav a {
  text-decoration: none;
  color: var(--fg);
}

.tix-account {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}

.tix-main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 28px 0 90px;
  display: grid;
  gap: 28px;
}

.tix-banner {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 30px;
  box-shadow: 0 16px 34px color-mix(in srgb, #000000 6%, transparent);
}

.tix-banner-title {
  margin: 0;
  display: grid;
  gap: 10px;
}

.tix-banner-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 7vw, 68px);
  letter-spacing: -0.02em;
}

.tix-banner-copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.tix-banner-note {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

.tix-section {
  display: grid;
  gap: 16px;
}

.tix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tix-event {
  border: 1px solid var(--line);
  padding: 20px 18px;
  display: grid;
  gap: 12px;
  width: 100%;
  position: relative;
  background: #ffffff;
}

.tix-event h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tix-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tix-button {
  all: unset;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  color: var(--fg);
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tix-button:hover {
  background: var(--fg);
  color: var(--bg);
}

.tix-empty {
  margin-top: 18px;
}

.tix-widget-block {
  display: grid;
  gap: 16px;
}

.tix-widget-title {
  margin: 0;
  font-size: 16px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.tix-contact-card {
  border: 1px solid var(--line);
  padding: 22px 24px;
  background: #ffffff;
  display: grid;
  gap: 12px;
}

.tix-contact-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.01em;
}

.tix-contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.tix-cta {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  padding: 8px 14px;
  width: fit-content;
  color: var(--fg);
}

.tix-widget .pretix-widget {
  margin-top: 0;
}

@media (max-width: 720px) {
  .tix-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tix-nav {
    gap: 12px 18px;
  }

  .tix-account {
    align-self: flex-start;
  }
}

body.tix #themeToggleFooter {
  display: none;
}


@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
    align-items: center;
  }

  .card {
    text-align: left;
    margin-left: 0;
  }

  .home-nav-links {
    gap: 10px;
  }

  .home-socials {
    justify-content: flex-start;
  }

  .project-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* LEGAL */
body.legal .legal-container {
  width: min(860px, 92vw);
  margin: 0 auto;
  padding: 56px 18px 36px;
}

body.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: lowercase;
}

body.legal .meta {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

body.legal h2 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fg);
  text-transform: lowercase;
}

body.legal p,
body.legal li {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

body.legal hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* FOOTER */
.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

.footer .left,
.footer .right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.footer .legal,
.footer .controls,
.footer .meta2 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}

.footer button {
  all: unset;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.footer .meta2 {
  margin-top: 10px;
}

/* HEADER (Minecart LCD only here) */
@font-face {
  font-family: "Minecart LCD";
  src: url("/assets/fonts/Minecart%20LCD.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .logo {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  transform: none !important;
}

.site-header .title {
  font-family: "Minecart LCD", var(--mono);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}

.site-header .right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.site-header button {
  all: unset;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fg) 35%, transparent);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .stagger,
  .rule {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── COOKIE CONSENT BANNER ── */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

#consent-banner.consent-visible {
  transform: translateY(0);
  opacity: 1;
}

#consent-banner.consent-hidden {
  transform: translateY(100%);
  opacity: 0;
}

#consent-banner .consent-text {
  max-width: 480px;
}

#consent-banner .consent-text a {
  color: var(--fg);
  text-underline-offset: 3px;
}

#consent-banner .consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#consent-banner button {
  all: unset;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid var(--fg);
  color: var(--fg);
  transition: background 0.15s, color 0.15s;
}

#consent-banner button:hover {
  background: var(--fg);
  color: var(--bg);
}

#consent-banner button[data-consent-accept] {
  background: var(--fg);
  color: var(--bg);
}

#consent-banner button[data-consent-accept]:hover {
  opacity: .85;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px) scale(1.08);
  opacity: 1;
}

.social-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

:root[data-theme="dark"] .social-link img {
  filter: invert(1);
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  flex: 1;
}

.blog-aside {
  border: 1px solid var(--blog-rule);
  padding: 16px;
  background: color-mix(in srgb, var(--blog-bg) 92%, #ffffff 8%);
}

.blog-aside h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--blog-rule);
  padding-bottom: 10px;
}

.blog-latest {
  display: grid;
  gap: 14px;
}

.blog-latest a {
  text-decoration: none;
  color: var(--blog-ink);
  font-family: var(--blog-head);
  font-size: 18px;
  line-height: 1.2;
}

.blog-latest span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--blog-ink) 65%, transparent);
  margin-bottom: 4px;
}

.blog-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--blog-ink) 70%, transparent);
  margin-top: 6px;
}

.blog-meta strong {
  color: var(--blog-ink);
}
.blog-theme-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.blog-theme-float button {
  all: unset;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-rule);
  background: color-mix(in srgb, var(--blog-bg) 88%, #ffffff 12%);
  color: var(--blog-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-theme-float button svg {
  display: block;
}
