@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/syne-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --void: #000000;
  --panel: #0a0a0a;
  --fog: #e8e8e8;
  --fog-dim: #8a8a8a;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #ffd400;
  --accent-soft: rgba(255, 212, 0, 0.12);
  --button-primary: #d4a574;
  --button-primary-hover: #e5b98a;
  --blinky: #f66363;
  --maze: rgba(33, 33, 222, 0.2);
  --ok: #7dcf8a;
  --bad: #ff6b6b;
  --font-display: "Syne", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--fog);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(255, 212, 0, 0.18);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 20;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dark canvas + arcade leftovers from javan.de */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 90% -8%, rgba(246, 99, 99, 0.16), transparent 52%),
    radial-gradient(60% 45% at 0% 100%, rgba(255, 212, 0, 0.07), transparent 48%),
    linear-gradient(180deg, #050505 0%, var(--void) 40%, #000 100%);
}

.maze {
  position: absolute;
  inset: -2px;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 46px,
      var(--maze) 46px 47px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      var(--maze) 46px 47px
    );
  mask-image: radial-gradient(ellipse 80% 70% at 85% 8%, #000 0%, transparent 72%);
}

.dots {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle, var(--accent) 1.15px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  mask-image: radial-gradient(ellipse 70% 55% at 88% 12%, #000 0%, transparent 68%);
  animation: dots-drift 22s linear infinite;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

.glow--blinky {
  width: 46vmax;
  height: 46vmax;
  right: -16vmax;
  top: -22vmax;
  background: radial-gradient(circle, rgba(246, 99, 99, 0.22), transparent 64%);
}

.glow--pac {
  width: 32vmax;
  height: 32vmax;
  left: -12vmax;
  bottom: -14vmax;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.1), transparent 66%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

@keyframes dots-drift {
  from {
    background-position: 12px 12px;
  }
  to {
    background-position: 12px 36px;
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-3%, 5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: max(clamp(2.25rem, 8vh, 5.5rem), env(safe-area-inset-top, 0px));
  padding-right: max(clamp(1.5rem, 6vw, 4.5rem), env(safe-area-inset-right, 0px));
  padding-bottom: max(5.25rem, calc(4rem + env(safe-area-inset-bottom, 0px)));
  padding-left: max(clamp(1.5rem, 6vw, 4.5rem), env(safe-area-inset-left, 0px));
  max-width: 42rem;
}

.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.85rem;
}

.lockup__ghost {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 4px;
  transition: transform 0.18s ease;
}

.lockup__ghost:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ghost {
  width: clamp(2.75rem, 9vw, 3.85rem);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.lockup__pellets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.1rem 0;
}

.pellet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 212, 0, 0.45);
}

.pellet--power {
  width: 12px;
  height: 12px;
  animation: power-blink 0.7s steps(1) infinite;
}

@keyframes power-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.22;
  }
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-transform: none;
  overflow-wrap: anywhere;
}

.headline {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f5f5f5;
  max-width: 28ch;
}

.lede {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fog-dim);
  max-width: 36rem;
}

.lede--follow:last-of-type {
  margin-bottom: 2rem;
}

.join {
  display: grid;
  gap: 1rem;
}

.fields {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .fields {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0.75rem;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.label em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.field input {
  width: 100%;
  min-height: 3rem;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #ffffff;
  border-radius: 0;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(138, 138, 138, 0.75);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #111;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--fog-dim);
  cursor: pointer;
}

.consent input {
  margin: 0.1rem 0 0;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
}

.submit {
  justify-self: start;
  appearance: none;
  border: 1px solid var(--button-primary);
  cursor: pointer;
  background: var(--button-primary);
  color: #111111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 3rem;
  padding: 0.95rem 1.45rem;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

@media (max-width: 559px) {
  .submit {
    justify-self: stretch;
    width: 100%;
  }

  .stage {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  }
}

.hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fog-dim);
}

.status {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.status[hidden] {
  display: none;
}

.status--ok {
  color: var(--ok);
}

.status--err {
  color: var(--bad);
}

.posts {
  margin-top: 2.5rem;
  padding-top: 2.15rem;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease-out 0.32s both;
}

.posts h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fog-dim);
  max-width: 36rem;
}

.posts h2 a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.post-list a {
  display: grid;
  gap: 0.28rem;
  color: inherit;
  text-decoration: none;
  padding: 0.7rem 0;
  min-height: 2.75rem;
  touch-action: manipulation;
}

.post-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
}

.post-list a:focus-visible .post-title {
  border-bottom-color: var(--accent);
}

.post-list time {
  color: var(--fog-dim);
  font-size: 0.92rem;
}

.author {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease-out 0.28s both;
}

.author__signoff {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem 1.1rem;
  align-items: center;
  margin-top: 1.05rem;
}

.author__photo {
  width: clamp(5.75rem, 22vw, 7.25rem);
  height: clamp(5.75rem, 22vw, 7.25rem);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 46%;
  display: block;
  background: var(--panel);
}

.author h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.author p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--fog-dim);
  max-width: 36rem;
}

.author p + p {
  margin-top: 0.7rem;
}

.author a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
  touch-action: manipulation;
}

.legal-bar {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.15rem max(1.15rem, env(safe-area-inset-right, 0px))
    max(1.1rem, env(safe-area-inset-bottom, 0px))
    max(1.15rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: rgba(138, 138, 138, 0.5);
}

.legal-bar a {
  color: inherit;
  text-decoration: none;
  border: 0;
  padding: 0.35rem 0;
  touch-action: manipulation;
}

.legal-bar a[aria-current="page"] {
  color: rgba(138, 138, 138, 0.75);
}

@media (max-width: 559px) {
  .legal-bar a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (hover: hover) {
  .lockup__ghost:hover {
    transform: translateY(-2px);
  }

  .field input:hover {
    border-color: rgba(255, 212, 0, 0.45);
  }

  .consent a:hover,
  .posts h2 a:hover,
  .author a:hover,
  .legal-back a:hover,
  .legal a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  .legal-back a:hover span {
    border-bottom-color: var(--accent);
  }

  .post-list a:hover .post-title {
    border-bottom-color: var(--accent);
  }

  .submit:hover:not(:disabled) {
    border-color: var(--button-primary-hover);
    background: var(--button-primary-hover);
    color: #111111;
    transform: translateY(-1px);
  }

  .legal-bar a:hover {
    color: rgba(180, 180, 180, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots,
  .glow,
  .author,
  .posts,
  .pellet--power {
    animation: none !important;
  }
}

/* Privacy / legal page */
.legal-body {
  background: var(--void);
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding-top: max(clamp(2rem, 6vw, 4rem), env(safe-area-inset-top, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(4.5rem, calc(3.25rem + env(safe-area-inset-bottom, 0px)));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  color: var(--fog);
}

.legal-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: none;
  touch-action: manipulation;
}

.legal-back a span {
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
}

.ghost-mini {
  width: 1.35rem;
  height: 1.35rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.legal-meta {
  margin: 0 0 1.75rem;
  color: var(--fog-dim);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.legal p,
.legal li {
  line-height: 1.55;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
}

.legal-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--fog-dim);
}
