:root {
  --ink: #1c1b1a;
  --paper: #eef9fa;
  --muted: #584f5e;
  --accent: #a82a52;
  --border: #8a8fce;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

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

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

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  padding-top: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
}

/* Work / project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-thumb {
  background: linear-gradient(135deg, var(--border), var(--paper));
  border: 1px solid var(--border);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.9rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
}

/* About */
.about p {
  color: var(--muted);
  max-width: 560px;
}

/* Contact */
.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
