:root{
  --bg: #131313;
  --text: #808080;
  --muted: #6B6B6B;
  --line: #E3E1DB;
  --accent: #3457D5;
  --white: #ffffff;
}

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

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ color: var(--accent); }

.wrap{
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
header .name{
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
header nav a{
  margin-left: 20px;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
header nav a:hover,
header nav a[aria-current="page"]{ color: var(--text); }


section{
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
header + section{ border-top: none; }

h1{
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
h2{
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 28px;
}
.intro{
  color: var(--muted);
  max-width: 46ch;
}


.project-image{
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.project-image-vertical {
    width: 75%;
    aspect-ratio: 3/4;
    background: var(--line);
    border-radius: 6px;
    display: block;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 13px;
}

.side-by-side {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.side-left,
.side-right {
    width: 48.7%;
    aspect-ratio: 4/3;
    background: var(--line);
    border-radius: 6px;
    object-fit: cover;
}

.side-by-side-triple {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.side-left-triple,
.side-middle-triple,
.side-right-triple {
    width: 31.7%;
    aspect-ratio: 1/1;
    background: var(--line);
    border-radius: 6px;
    object-fit: cover;
}

.project-card{
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
}
.project-card:last-child{ margin-bottom: 0; }
.project-card h3{
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.project-card .meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.project-card p{
  color: var(--muted);
  max-width: 56ch;
}
.project-card .link{
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.project-card:hover h3{ text-decoration: underline; }

.back-link{
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 20px;
}
.back-link:hover{ color: var(--text); }
.project-meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.project-body p{
  color: var(--muted);
  max-width: 80ch;
  margin-bottom: 16px;
}
.project-body h3{
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.about p{
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 16px;
}
.skills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.skills span{
  font-size: 13px;
  background: var(--line);
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--text);
}

.contact a.email{
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.contact a.email:hover{ text-decoration: underline; }
.social{
  margin-top: 16px;
  font-size: 14px;
}
.social a{
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
}
.social a:hover{ color: var(--text); }

@media (max-width: 480px){
  header nav a{ margin-left: 14px; }
  h1{ font-size: 28px; }
}
