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

:root {
  --bg: #08080c;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ef;
  --text-muted: #8888a0;
  --accent: #00e5c7;
  --accent-dim: rgba(0, 229, 199, 0.12);
  --accent-glow: rgba(0, 229, 199, 0.35);
  --retro: #ff6b9d;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:is(h1, h2, h3, h4, p, li, span, a, label, input, select, button, code) {
  overflow: visible;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-bottom: 0.05em;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.nav-active {
  color: var(--accent);
}

.page-main {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 80px);
  padding-block: 4rem;
}

.page-hero--compact {
  min-height: auto;
  padding-block: 3rem 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, var(--text) 30%, var(--retro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Art gallery */
.art-gallery {
  padding-block: 2rem 5rem;
}

.art-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.art-search {
  flex: 1 1 200px;
}

.art-search input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.art-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.art-search input:focus {
  border-color: rgba(255, 107, 157, 0.45);
}

.art-sort {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.art-sort-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.art-sort select {
  padding: 0.65rem 2rem 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.art-sort select:focus {
  border-color: rgba(255, 107, 157, 0.45);
}

.art-empty {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 2rem 0;
  line-height: 1.75;
  padding-bottom: 0.05em;
}

.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;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.art-piece {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.art-piece[hidden] {
  display: none;
}

.art-image-outline {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.art-piece:hover .art-image-outline {
  border-color: rgba(255, 107, 157, 0.4);
}

.art-image-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.6;
}

.art-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-inline: 0.25rem;
}

.art-piece-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  padding-bottom: 0.05em;
}

.art-collection {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.55;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-dim), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 157, 0.06), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  padding-block: 4rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: var(--accent-dim);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-tagline {
  font-family: var(--font-body);
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  line-height: 1.4;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Sections */
section {
  padding-block: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.section-header h2::after {
  content: "";
  display: block;
  height: 0.15em;
}

.section-header p {
  font-family: var(--font-body);
  color: var(--text-muted);
  max-width: 28rem;
  margin-inline: auto;
  line-height: 1.85;
}

/* Services */
.services {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: visible;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(0, 229, 199, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.service-card h3::after,
.service-desc::after,
.section-header p::after,
.hero-tagline::after,
.pricing-note p::after,
.homelab-text p::after {
  content: "";
  display: block;
  height: 0.2em;
}

.service-desc {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.95;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.85;
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-price p + p {
  margin-top: 0.35rem;
}

.price-note {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.service-more-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.service-more-link:hover {
  color: var(--text);
}

/* Info pages */
.info-content {
  padding-block: 1rem 5rem;
}

.info-content-inner {
  max-width: 42rem;
}

.info-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.info-block {
  margin-bottom: 2.5rem;
}

.info-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.info-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.info-list li + li {
  margin-top: 0.5rem;
}

.info-pricing {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.85;
}

.info-pricing p + p {
  margin-top: 0.35rem;
}

.info-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-back-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.info-back-link:hover {
  color: var(--accent);
}

.pricing-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--retro);
}

.pricing-note p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding-bottom: 0.1em;
}

.pricing-note strong {
  color: var(--text);
}

.pricing-example {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.softmod-note {
  margin-top: 1rem;
  border-left-color: var(--accent);
}
.homelab-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.homelab-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  padding-bottom: 0.05em;
}

.homelab-text p {
  font-family: var(--font-body);
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.85;
}

.minecraft-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 260px;
}

.minecraft-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.minecraft-ip {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 199, 0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: rgba(0, 229, 199, 0.2);
}

.copy-btn.copied {
  color: var(--bg);
  background: var(--accent);
}

/* Contact */
.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: rgba(0, 229, 199, 0.3);
  transform: translateY(-3px);
}

.contact-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.9375rem;
  color: var(--text);
  word-break: break-word;
  line-height: 1.75;
  padding-bottom: 0.05em;
}

.contact-card:hover .contact-value {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 0.05em;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1.25rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .homelab-inner {
    grid-template-columns: 1fr;
  }

  .minecraft-card {
    width: 100%;
  }
}
