/* Noderer family site — clean minimal */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b66;
  --border: #e7e5dd;
  --accent: #6b7d6f;
  --accent-hover: #4f5e54;
  --max-width: 720px;
  --max-width-wide: 1040px;
  --radius: 4px;
  --space: 1.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.site--wide { max-width: var(--max-width-wide); }

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: none;
}
.site-title:hover { color: var(--accent); border-bottom: none; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  border-bottom: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero { margin: 3rem 0 4rem; }
.hero h1 { margin-bottom: 0.25em; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
}

.section + .section { margin-top: 3rem; }

.site-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
}
.gallery .photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8e4d8, #d4cfc0);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Blog list */
.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.posts li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.posts li:first-child { padding-top: 0; }
.posts li:last-child { border-bottom: none; }
.posts h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25em;
}
.posts h2 a {
  color: var(--text);
  border-bottom: none;
}
.posts h2 a:hover { color: var(--accent); }
.posts time {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5em;
}
.posts .excerpt { color: var(--text); margin: 0; }

/* Post page */
.post header { margin-bottom: 2rem; }
.post time {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5em;
}
.post h1 { margin-bottom: 0.25em; }
.post-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: none;
}
.post-back:hover { color: var(--accent); }

/* Password gate */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.gate-card {
  max-width: 360px;
  width: calc(100% - 2rem);
  padding: 2rem;
  text-align: center;
}
.gate h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25em;
}
.gate p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.gate input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 120ms ease;
}
.gate input[type="password"]:focus {
  border-color: var(--accent);
}
.gate button {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms ease;
}
.gate button:hover { background: var(--accent-hover); }
.gate .gate-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #b54a3b;
  min-height: 1.2em;
}

/* Hide content until gate passes (set by auth.js) */
body[data-locked="true"] > :not(.gate) { display: none; }

@media (max-width: 600px) {
  .site { padding: 2rem 1.25rem 3rem; }
  h1 { font-size: 1.85rem; }
  .site-header { margin-bottom: 2rem; }
}
