/* ---------------------------------------------------------------
   Owen Bovender — personal site
   Clean & minimal. One stylesheet for every page.
--------------------------------------------------------------- */

:root {
  --bg: #fbfbf9;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4df;
  --accent: #2b5d3a;
  --accent-soft: #eaf1ec;
  --max: 680px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 90px;
}

/* ---- Header / nav ---- */
header {
  margin-bottom: 40px;
}

.site-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.site-name a { color: var(--fg); text-decoration: none; }
.site-name a:hover { color: var(--accent); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--fg); font-weight: 600; }

/* ---- Type ---- */
h1 {
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
}
p { margin: 0 0 18px; }

a { color: var(--accent); text-underline-offset: 2px; }

.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }
small { color: var(--muted); }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

/* ---- Images ---- */
figure { margin: 26px 0; }
figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
figcaption {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- Gallery grid ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
  margin-top: 24px;
}
.gallery figure { margin: 0; }
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), #dfe6e0);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}
.ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ---- Bucket list ---- */
.bucket { list-style: none; padding: 0; margin: 26px 0; }
.bucket li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: color .15s ease;
}
.bucket li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 2px solid var(--muted);
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition: all .15s ease;
}
.bucket li .txt { transition: color .15s ease; }
.bucket li.done .txt { color: var(--muted); text-decoration: line-through; }
.bucket li.done::before {
  content: "✓";
  background: var(--accent);
  border-color: var(--accent);
}
.bucket li:hover::before { border-color: var(--accent); }

/* ---- Blog list ---- */
.posts { list-style: none; padding: 0; margin: 24px 0; }
.posts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.posts a { text-decoration: none; color: var(--fg); }
.posts a:hover { color: var(--accent); }
.posts .date {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Links list (contact) ---- */
.links { list-style: none; padding: 0; margin: 24px 0; }
.links li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---- Guestbook ---- */
.gb-form {
  display: grid;
  gap: 12px;
  margin: 24px 0 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.gb-form input, .gb-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--fg);
  width: 100%;
}
.gb-form textarea { min-height: 90px; resize: vertical; }
.gb-form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.gb-form button:hover { opacity: .9; }

.entries { list-style: none; padding: 0; margin: 26px 0 0; }
.entries li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}
.entries .who { font-weight: 600; }
.entries .when { color: var(--muted); font-size: 0.8rem; margin-left: 8px; }
.note {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: #33513c;
  margin: 20px 0;
}

/* ---- Footer ---- */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; }
}
