:root {
  color-scheme: dark;

  --text-primary: #ffffff;
  --text-secondary: #c2c9d6;
  --text-muted: #838e9e;

  --deepslate-bg: #15181f;
  --deepslate-border: #2c3240;
  --deepslate-border-light: #3e4759;
  --deepslate-bevel-top: rgba(255, 255, 255, 0.14);
  --deepslate-bevel-bottom: rgba(0, 0, 0, 0.65);

  --mc-gold: #facc15;
  --mc-green: #22c55e;
  --mc-orange: #fb923c;
  --mc-blue: #38bdf8;
  --discord-blurple: #5865f2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 780px;
}

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

html {
  scroll-behavior: smooth;
  background-color: #120e0a;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: #110d0a;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(rgba(14, 10, 8, 0.72), rgba(14, 10, 8, 0.72)),
    url('assets/dirt.png');
  background-size: 100% 100%, 100% 100%, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed;
  image-rendering: pixelated;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 80px 20px;
}

.page-wrapper {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mc-orange);
  letter-spacing: -0.01em;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.7);
}

.hero-bio {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.hero-bio strong {
  color: #ffffff;
  font-weight: 600;
}

.commission-note {
  font-size: 0.9375rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.commission-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mc-green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.mc-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #1e232d;
  background-image: 
    linear-gradient(rgba(30, 35, 45, 0.75), rgba(20, 24, 32, 0.85)),
    url('assets/deepslate.png');
  background-size: 100% 100%, 48px 48px;
  image-rendering: pixelated;
  border: 2px solid var(--deepslate-border);
  border-radius: 4px;
  box-shadow: 
    inset 1px 1px 0 0 var(--deepslate-bevel-top),
    inset -1px -1px 0 0 var(--deepslate-bevel-bottom),
    0 2px 6px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.mc-button:hover {
  border-color: var(--deepslate-border-light);
  transform: translateY(-1px);
  box-shadow: 
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px -1px 0 0 var(--deepslate-bevel-bottom),
    0 4px 10px rgba(0, 0, 0, 0.6);
}

.mc-button:active {
  transform: translateY(1px);
  box-shadow: 
    inset -1px -1px 0 0 var(--deepslate-bevel-top),
    inset 1px 1px 0 0 var(--deepslate-bevel-bottom);
}

.mc-button-discord {
  background-color: #5865f2;
  background-image: none;
  border-color: #4752c4;
  box-shadow: 
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.35),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(88, 101, 242, 0.3);
}

.mc-button-discord:hover {
  background-color: #4f5be3;
  border-color: #3c45a5;
  box-shadow: 
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.45),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-copy-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.projects-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-headline {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.6);
}

.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deepslate-card {
  position: relative;
  background-color: var(--deepslate-bg);
  background-image: 
    linear-gradient(rgba(21, 24, 31, 0.88), rgba(16, 19, 25, 0.94)),
    url('assets/deepslate_tiles.png');
  background-size: 100% 100%, 64px 64px;
  background-repeat: no-repeat, repeat;
  image-rendering: pixelated;
  border: 2px solid var(--deepslate-border);
  border-radius: 6px;
  box-shadow: 
    inset 1px 1px 0 0 var(--deepslate-bevel-top),
    inset -1px -1px 0 0 var(--deepslate-bevel-bottom),
    0 4px 16px rgba(0, 0, 0, 0.6);
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.deepslate-card:hover {
  border-color: var(--deepslate-border-light);
  transform: translateY(-2px);
  box-shadow: 
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 0 var(--deepslate-bevel-bottom),
    0 8px 24px rgba(0, 0, 0, 0.7);
}

.card-icon-frame {
  width: 56px;
  height: 56px;
  background-color: #0d1015;
  background-image: 
    linear-gradient(rgba(13, 16, 21, 0.85), rgba(13, 16, 21, 0.85)),
    url('assets/deepslate.png');
  background-size: 100% 100%, 32px 32px;
  image-rendering: pixelated;
  border: 2px solid #222733;
  border-radius: 4px;
  box-shadow: 
    inset -1px -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 1px 1px 0 0 rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-header-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mc-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-paper {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.tag-forge {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.tag-fabric {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tag-downloads {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.tag-registry {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 620px;
}

.redirect-btn {
  width: 36px;
  height: 36px;
  background-color: #1a1e27;
  border: 2px solid var(--deepslate-border);
  border-radius: 4px;
  box-shadow: 
    inset 1px 1px 0 0 var(--deepslate-bevel-top),
    inset -1px -1px 0 0 var(--deepslate-bevel-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.deepslate-card:hover .redirect-btn {
  background-color: var(--mc-orange);
  color: #ffffff;
  border-color: #ea580c;
  transform: translate(2px, -2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.redirect-btn svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .deepslate-card {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .card-icon-frame {
    grid-column: 1 / 2;
  }
  .redirect-btn {
    grid-column: 2 / 3;
  }
  .card-body {
    grid-column: 1 / 3;
  }
}

.page-footer {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 10px 18px;
  background-color: #1a1e27;
  border: 2px solid var(--deepslate-border-light);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  z-index: 999;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice svg {
  width: 16px;
  height: 16px;
  color: var(--mc-green);
}
