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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #111;
  background: #fff;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
}

.site-title {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #111;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: #111;
}

/* Typography */
h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2.5rem 0 0.4rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.3rem;
}

p {
  margin-bottom: 1rem;
  color: #333;
}

a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #555;
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

li {
  margin-bottom: 0.25rem;
}

/* Post / page header */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.25rem;
}

.post-header time {
  font-size: 0.85rem;
  color: #999;
}

/* Blog list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.post-list li:first-child {
  border-top: 1px solid #f0f0f0;
}

.post-list a {
  text-decoration: none;
  font-size: 0.95rem;
}

.post-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-list time {
  font-size: 0.8rem;
  color: #bbb;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Project list */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.project-list li:first-child {
  border-top: 1px solid #f0f0f0;
}

.project-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.project-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-list p {
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
  color: #666;
}

/* Photography grid */
.photo-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.photo-grid a {
  display: block;
  padding: 0.75rem;
  background: #f8f8f8;
  text-decoration: none;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}

.photo-grid a:hover {
  background: #f0f0f0;
  color: #111;
}

/* Gallery */
.gallery {
  columns: 2;
  column-gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery img {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

@media (max-width: 540px) {
  .gallery {
    columns: 1;
  }
}

/* Footer */
footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #bbb;
}

/* Responsive */
@media (max-width: 540px) {
  header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  nav {
    gap: 1rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
