:root {
  --bg: #fffdf8;
  --text: #2a2a2a;
  --muted: #8a8378;
  --accent: #b5543b;
  --border: #e8e2d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

header {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

.site-name a {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav {
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
}

nav a {
  padding: 0.4rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

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

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 { font-size: 1.9rem; margin-top: 0; }
h2 { font-size: 1.35rem; margin-top: 2rem; }

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

img { max-width: 100%; border-radius: 6px; }

blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

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

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list a { text-decoration: none; font-size: 1.15rem; }
.post-list a:hover { text-decoration: underline; }

.date { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  background: #f3efe6;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 2rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.photo-section { margin-bottom: 2.5rem; }

.photo-desc { color: var(--muted); margin: -0.5rem 0 1rem; }
.photo-desc p { margin: 0 0 0.5rem; }

.photo-grid.collapsed a:nth-child(n+4) { display: none; }

.photo-grid a { position: relative; }

.photo-grid.collapsed .expand-trigger::after {
  content: "+" attr(data-more) " more";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* --- mobile nav --- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }

  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  nav.open { display: flex; }

  nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  nav a:last-child { border-bottom: none; }

  nav a.active {
    border-bottom: 1px solid var(--border);
    font-weight: bold;
  }
}
