:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1e8;
  --muted: #bbb3a4;
  --teal: #6bf7d8;
  --amber: #ffab5e;
  --stone: #c3b598;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(107, 247, 216, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 171, 94, 0.12), transparent 30%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 16px;
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.hero,
.section,
.site-footer {
  opacity: 1;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
  padding: 84px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.site-footer h2,
.project-copy h3 {
  margin: 0;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
  max-width: 9ch;
}

.hero-text,
.project-copy p,
.github-panel p,
address {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 24px 0 0;
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.download-card {
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
}

.button:hover,
.button:focus-visible,
.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--text), #b7ffe8);
  color: #111;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.button-disabled {
  cursor: default;
  opacity: 0.82;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.inline-link {
  display: inline;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-panel,
.github-panel {
  display: grid;
  gap: 14px;
}

.status-card,
.github-panel,
.download-card,
.project-card,
.site-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 20px;
  border-radius: 24px;
}

.status-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 32px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section h2,
.site-footer h2 {
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 34px;
  overflow: hidden;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--stone);
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 18px;
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.feature-list li::before {
  content: "/";
  margin-right: 10px;
  color: var(--teal);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.single-shot {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-shot {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.gallery-shot img {
  height: 100%;
  object-fit: cover;
}

.offset-shot {
  margin-top: 42px;
}

.large-shot img {
  min-height: 100%;
}

.accent-teal {
  box-shadow: inset 0 0 0 1px rgba(107, 247, 216, 0.18);
}

.accent-amber {
  box-shadow: inset 0 0 0 1px rgba(255, 171, 94, 0.18);
}

.accent-stone {
  box-shadow: inset 0 0 0 1px rgba(195, 181, 152, 0.18);
}

.spellhex-card {
  background:
    linear-gradient(135deg, rgba(35, 54, 26, 0.42), rgba(95, 49, 18, 0.26)),
    var(--panel);
}

.spellhex-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.spellhex-shot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.24)),
    #12110d;
}

.spellhex-shot img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.hero-phone-shot {
  grid-row: span 2;
}

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

.download-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
}

.download-type,
.download-meta {
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card strong {
  font-size: 1.7rem;
}

.github-panel {
  padding: 28px;
  border-radius: 28px;
  justify-items: start;
}

.speiseplan-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.mobile-shot img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0d0d0d;
  padding: 16px;
}

.desktop-shot img {
  aspect-ratio: 1440 / 1180;
  object-fit: cover;
}

.speiseplan-desktop {
  grid-column: 1 / -1;
}

.wide-mobile-shot {
  min-height: 320px;
}

.legal-section {
  padding-top: 10px;
}

.legal-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--text);
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 28px;
  border-radius: 34px;
}

address {
  font-style: normal;
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .project-card,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 48px;
  }

  .project-gallery,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .speiseplan-gallery {
    grid-template-columns: 1fr;
  }

  .spellhex-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offset-shot {
    margin-top: 0;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }

  .hero,
  .section,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .project-card,
  .github-panel,
  .site-footer {
    padding: 20px;
  }

  .spellhex-gallery {
    grid-template-columns: 1fr;
  }

  .hero-phone-shot {
    grid-row: auto;
  }
}
