@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg:      #0c0c0c;
  --surface: #141414;
  --surface-2:#171717;
  --text:    #e2d9cc;
  --muted:   #7a7166;
  --accent:  #c9a96e;
  --border:  #252525;
  --max-w:   1040px;
  --reading-w: 760px;
  --serif:   'Playfair Display', Georgia, serif;
  --body:    'Lora', Georgia, serif;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-name:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

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

/* ── Main ────────────────────────────────────────────── */

.main-content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  flex: 1;
}

/* ── Typography ──────────────────────────────────────── */

.page-content {
  max-width: var(--reading-w);
}

.page-content h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.page-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.4rem;
}

.page-content p {
  color: var(--text);
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.page-content p:last-child {
  margin-bottom: 0;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-content a:hover {
  border-bottom-color: var(--accent);
}

.page-content ul,
.page-content ol {
  margin: 0.5rem 0 1.25rem 1.4rem;
}

.page-content li {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0;
}

.page-content strong {
  color: var(--text);
  font-weight: 500;
}

.page-content em {
  font-style: italic;
  color: var(--muted);
}

.page-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--accent);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.page-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.4rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
}

.page-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.resume-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-preview-link {
  display: block;
  margin: 1.25rem 0 1rem;
  border-bottom: none !important;
}

.resume-preview {
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resume-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.28);
}

.resume-download-btn {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 0.38rem 0.8rem;
  letter-spacing: 0.03em;
}

/* ── Home page - hero variant ────────────────────────── */

.page-content.is-home h1 {
  font-size: 3.6rem;
  margin-bottom: 1.25rem;
}

.page-content.is-home {
  max-width: 100%;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero-meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
}

.home-portrait {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.home-portrait img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.featured-project {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: 10px;
  padding: 1.2rem 1.1rem;
  margin: 1.4rem 0 2rem;
}

.featured-project h3 {
  margin-top: 0;
  font-style: normal;
  font-size: 1.2rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.project-links a {
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  overflow: hidden;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 0.95rem;
}

.project-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.35;
}

.project-title a {
  color: var(--text);
  border-bottom: none;
}

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

.project-impact {
  color: var(--text);
  margin: 0.55rem 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-tags {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ── Collections / Tags pages ────────────────────────── */

.post-list {
  margin-top: 2rem;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:first-child {
  border-top: 1px solid var(--border);
}

.post-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: normal;
  margin: 0 0 0.3rem;
}

.post-item h3 a {
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.18s ease;
}

.post-item h3 a:hover {
  color: var(--accent);
}

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tag-chip {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tag-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--body);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

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

.footer-credit {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer-credit a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 580px) {
  .site-header {
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .main-content {
    padding-top: 2.75rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .page-content h1 {
    font-size: 2rem;
  }

  .page-content.is-home h1 {
    font-size: 2.4rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
