:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c2a2e;
  --muted: #5c6b6e;
  --fjord: #14424f;
  --fjord-2: #1f6e7c;
  --accent: #e2572b;
  --border: #e4e0d6;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(20, 40, 45, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--fjord-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: linear-gradient(120deg, var(--fjord), var(--fjord-2));
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; opacity: .9; }

.nav a {
  color: rgba(255,255,255,0.85);
  margin-left: 18px;
  font-weight: 500;
}
.nav a:hover { color: #fff; text-decoration: none; }

.main { padding: 32px 20px 60px; }

.hero {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}
.hero h1 { font-size: 2rem; margin: 0 0 10px; color: var(--fjord); }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c8481f; text-decoration: none; }
.btn-ghost { border-color: var(--fjord-2); color: var(--fjord-2); }
.btn-ghost:hover { background: var(--fjord-2); color: #fff; text-decoration: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 40px 0 16px;
}
.section-head h1, .section-head h2 { margin: 0; color: var(--fjord); }
.see-all { font-weight: 600; font-size: .9rem; white-space: nowrap; }

h1, h2, h3 { color: var(--fjord); }
.muted { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); font-style: italic; }

.badge {
  display: inline-block;
  background: var(--fjord);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.post-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.post-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--fjord), var(--fjord-2));
}
.post-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.post-card-body { padding: 14px 16px; }
.post-card-body h3 { margin: 4px 0 4px; font-size: 1.05rem; }

.timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 18px;
}
.timeline-mini-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-mini-item:last-child { border-bottom: none; }
.timeline-mini-day {
  color: var(--accent);
  font-weight: 700;
  min-width: 32px;
}

.timeline { position: relative; margin-top: 24px; }
.timeline-item {
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-marker {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fjord);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.timeline-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  flex: 1;
}
.timeline-content h3 { margin: 2px 0 8px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  background: #eef2f0;
  color: var(--fjord);
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }

.post .badge { margin-bottom: 10px; }
.post h1 { margin: 0 0 6px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.content { margin-top: 18px; white-space: normal; }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; border: none; cursor: pointer; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.admin-row-actions { display: flex; gap: 14px; align-items: center; }
.admin-row-actions form { margin: 0; }
.link-danger {
  background: none;
  border: none;
  color: #c8481f;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.link-danger:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.6rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
