:root {
  --bg: #0a0c10;
  --panel: rgba(255,255,255,.055);
  --ink: #eef2f7;
  --muted: #9aa6b2;
  --line: rgba(255,255,255,.1);
  --accent: #f5820a;
  --accent2: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.amule-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.amule-page main {
  flex: 1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,12,16,.92);
  backdrop-filter: blur(10px);
}

.brand,
nav,
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand,
nav a,
.project-card,
.site-footer a,
.link-row a {
  text-decoration: none;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #0a0c10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
.site-footer a:hover,
.link-row a:hover {
  color: var(--accent2);
}

.hero,
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 32px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-eyebrow {
  margin: 14px 0 0;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 26px;
}

.intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.project-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,130,10,.48);
  background: rgba(255,255,255,.078);
}

.project-card.primary {
  border-color: rgba(245,130,10,.42);
}

.project-card-image {
  display: block;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 12px;
  object-fit: contain;
}

.project-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-card-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 86px;
}

.project-card-identity .tag {
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.25;
}

.tag {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.compact {
  padding-bottom: 54px;
}

.detail-section {
  padding-top: 22px;
}

.detail-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-card li + li {
  margin-top: 8px;
}

.detail-link {
  color: var(--accent2);
  font-weight: 700;
}

.link-row {
  margin-top: 16px;
}

.link-row a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.detail-footer {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 32px;
  background: rgba(255,255,255,.025);
  text-align: center;
}

.detail-footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-footer .footer-links a {
  font-size: 13px;
}

.detail-footer .footer-projects {
  width: min(100%, 380px);
  padding: 12px 16px;
  border: 1px solid rgba(245,130,10,.16);
  border-radius: 10px;
  background: rgba(10,12,16,.28);
  font-size: 14px;
}

.detail-footer .footer-copy {
  font-size: 12px;
  color: rgba(154,166,178,.7);
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .detail-card {
    grid-template-columns: 1fr;
  }
}
