@import url("./tokens.css");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 120% 70% at 50% -15%,
      rgba(132, 98, 168, 0.14),
      transparent 55%
    ),
    radial-gradient(circle at 90% 90%, rgba(40, 40, 48, 0.45), transparent 42%);
  line-height: 1.5;
}

a {
  color: var(--accent-muted);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(18, 18, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.logo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.8125rem;
}

.site-nav a {
  color: var(--dim);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--dim);
}

.section {
  padding: 20px 0 48px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.section-desc {
  margin: 0 0 22px;
  font-size: 0.875rem;
  color: var(--ghost);
  max-width: 60ch;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.project-card:hover {
  border-color: rgba(132, 98, 168, 0.45);
  background: rgba(24, 24, 28, 0.95);
}

.project-card.coming-soon {
  border-style: dashed;
  border-color: rgba(90, 90, 96, 0.5);
  opacity: 0.72;
}

.project-card.coming-soon:hover {
  border-color: rgba(132, 98, 168, 0.35);
  opacity: 0.85;
}

.project-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-muted);
  border: 1px solid rgba(132, 98, 168, 0.35);
  border-radius: 3px;
  width: fit-content;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.project-card p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(138, 138, 150, 0.15);
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid rgba(120, 120, 132, 0.45);
  border-radius: var(--radius);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  background: rgba(210, 210, 220, 0.1);
  border-color: var(--border);
}

.btn-primary {
  background: rgba(44, 44, 52, 1);
  border-color: rgba(132, 98, 168, 0.5);
}

.about-panel {
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
}

.about-panel p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--dim);
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9375rem;
}

.site-footer {
  margin-top: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--ghost);
}

@media (max-width: 600px) {
  .hero {
    padding-top: 36px;
  }

  .site-nav {
    gap: 6px 14px;
  }
}
