
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-dim: #5a5a5a;
  --border: #e4e4e4;
  --accent: #2f5d8a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 760px;
  --edge: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  color: var(--text);
}
.nav-name:hover { text-decoration: none; opacity: 0.75; }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px var(--edge) 48px;
}

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

.hero-tagline {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-links { display: flex; gap: 18px; margin-top: 8px; }
.hero-links a { font-size: 0.95rem; font-weight: 500; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--edge);
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}

.photo-placeholder {
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-radius: 6px;
}

.about-copy p { color: var(--text-dim); }

@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-placeholder { max-width: 140px; }
}

.skills { margin-top: 36px; }
.skills h3 { font-size: 1rem; margin-bottom: 14px; }

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
}

.project {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);

  align-items: start;   
}
.project:last-child { border-bottom: none; }

.project-image .photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.project-body h3 { font-size: 1.1rem; margin-bottom: 4px; }

.project-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-desc { color: var(--text-dim); font-size: 0.95rem; }

.project-links { display: flex; gap: 16px; margin-top: 4px; }
.project-links a { font-size: 0.9rem; font-weight: 500; }

@media (max-width: 600px) {
  .project { grid-template-columns: 1fr; }
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--edge) 64px;
  border-top: 1px solid var(--border);
}

.footer-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.photo-placeholder img,
.about-photo img,
.project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.about-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-image2 img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.project-list li:last-child { border-bottom: none; }

.project-list-title {
  font-weight: 500;
  margin-right: auto;
}

.project-list a {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.photo-hero { padding-bottom: 24px; }

.gallery-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px var(--edge) 48px;
}

/* Columns let photos keep their own aspect ratios (mixed portrait/landscape) */
.gallery {
  column-count: 3;
  column-gap: 16px;
}

.gallery figure {
  margin: 0 0 16px;
  break-inside: avoid;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.gallery a:hover img { opacity: 0.9; }

.gallery figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.nav-links a.current { color: var(--text); }

@media (max-width: 800px) { .gallery { column-count: 2; } }
@media (max-width: 480px) { .gallery { column-count: 1; } }