:root {
  --paper: #faf7f2;
  --ink: #2e2a26;
  --ink-soft: #5a544c;
  --line: #ddd4c6;
  --accent: #7a8b73;
  --accent-deep: #566152;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.7;
}

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

nav.sitenav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

nav.sitenav .wrap {
  max-width: 720px;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 18px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.sitenav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.sitenav a:hover {
  color: var(--ink);
}

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

header.hero {
  text-align: center;
  padding: 64px 24px 26px;
  border-bottom: 1px solid var(--line);
}

.hero img.portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.hero .dates {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero .dates span.sep { margin: 0 10px; color: var(--accent); }

header.hero.compact {
  padding: 40px 24px 12px;
}
header.hero.compact img.portrait {
  width: 88px;
  height: 88px;
}
header.hero.compact h1 {
  font-size: 1.6rem;
}

section {
  padding: 48px 0;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin: 0 0 20px;
}

.story p { margin: 0 0 16px; font-size: 1.08rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

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

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  background: none;
  border: none;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  background: none;
  border: none;
  padding: 16px;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.details dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 10px;
  font-size: 1rem;
  margin: 0;
}

.details dt { color: var(--ink-soft); }
.details dd { margin: 0; }

.map-embed {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
}

.guestbook-entry {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.guestbook-entry:last-child { border-bottom: none; }
.guestbook-entry .entry-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.guestbook-entry .name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
}
.guestbook-entry .timestamp {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.guestbook-entry .msg { margin: 0; }
.guestbook-empty {
  color: var(--ink-soft);
  font-style: italic;
}

.guestbook-form {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.guestbook-form p.note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0;
}

.guestbook-form label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
}

.guestbook-form textarea { min-height: 100px; resize: vertical; }

.guestbook-form button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--accent-deep);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.guestbook-form button:hover { background: var(--accent); }

footer {
  text-align: center;
  padding: 40px 24px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
