/* --- Avalonia Group — Design tokens --- */
:root {
  --color-stone: #f5f1eb;
  --color-stone-dark: #e8e2d8;
  --color-slate: #2c3e50;
  --color-slate-light: #3d5266;
  --color-bedrock: #1a252f;
  --color-accent: #4a6b5a;
  --color-accent-light: #6b8f7a;
  --color-text: #2c3e50;
  --color-text-muted: #5a6c7d;
  --font-serif: "Roboto Slab", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --container: min(90vw, 1100px);
  --radius: 6px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-stone);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-light); text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-md); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(245, 241, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-stone-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-bedrock);
  text-decoration: none;
}

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

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-slate);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--color-stone);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bedrock)
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?w=1920&q=80") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 37, 47, 0.75) 0%, rgba(44, 62, 80, 0.6) 50%, rgba(37, 53, 68, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: var(--space-2xl);
}

.hero-text-box {
  background: rgba(26, 37, 47, 0.55);
  backdrop-filter: blur(10px);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius);
  max-width: 52ch;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-text-box .hero-tagline {
  margin-bottom: 0;
}

.hero-cta {
  margin-top: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 32ch;
  margin: 0 auto var(--space-lg);
  opacity: 0.95;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-stone);
  color: var(--color-bedrock);
  border: none;
}

.btn-primary:hover {
  background: var(--color-stone-dark);
  text-decoration: none;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* --- About --- */
.about {
  padding: var(--space-2xl) 0;
  background: var(--color-stone);
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-bedrock);
  margin: 0 0 var(--space-lg);
}

.about-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.about-text p {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

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

.about-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-details li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: var(--space-xs);
  color: var(--color-text-muted);
}

.about-details li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* --- Portfolio --- */
.portfolio {
  padding: var(--space-2xl) 0;
  background: var(--color-stone-dark);
}

.portfolio h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-bedrock);
  margin: 0 0 var(--space-xs);
}

.portfolio-intro {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
}

.portfolio-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
  background: var(--color-stone);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.portfolio-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-stone-dark);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-content {
  padding: var(--space-md);
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-bedrock);
  margin: 0 0 var(--space-xs);
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.portfolio-card-content p:last-of-type {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* --- Contact --- */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--color-stone);
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-bedrock);
  margin: 0 0 var(--space-xs);
}

.contact-intro {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

.contact-details p {
  margin: 0 0 var(--space-sm);
}

.contact-details a { font-weight: 500; }

/* --- Footer --- */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--color-bedrock);
  color: var(--color-stone);
  font-size: 0.9rem;
}

.site-footer a { color: var(--color-stone); }
.site-footer p { margin: 0; }
