* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, system-ui, sans-serif;
  background: #f3f1ea;
  color: #222;
  padding-bottom: 70px;
}
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; margin: 8px 0 16px; }
a { color: #0f6e56; }

.card {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}
.meta { color: #7c7a72; font-size: 13px; }
.desc { display: block; color: #55534c; font-size: 14px; margin-top: 4px; }
.empty { color: #7c7a72; text-align: center; padding: 24px 0; }
.flash { background: #fbe9e7; color: #a32d2d; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.back { display: inline-block; margin-bottom: 4px; text-decoration: none; font-size: 15px; }

.adventure-card strong, .article-card strong { display: block; font-size: 17px; margin-bottom: 2px; }

input, textarea, button, select {
  font: inherit;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd9cd;
  border-radius: 10px;
  margin-top: 10px;
  background: #fff;
}
textarea { resize: vertical; }
button, .btn {
  background: #0f6e56;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
}
.row { display: flex; gap: 10px; align-items: flex-end; }
.row label { flex: 1; font-size: 13px; color: #55534c; }
details summary { cursor: pointer; font-weight: 600; }

.entry-form textarea { margin-top: 0; }
.filebtn {
  flex: 1;
  border: 1px dashed #b4b2a9;
  border-radius: 10px;
  padding: 11px;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  background: #faf9f5;
}
.row button { flex: 1; margin-top: 10px; }

.entry-head { display: flex; gap: 8px; align-items: baseline; }
.entry-head .meta { flex: 1; }
.entry-head form { display: inline; }
.linkbtn { background: none; border: none; color: #b4b2a9; width: auto; padding: 0; margin: 0; font-size: 15px; }
.entry-body { margin-top: 6px; white-space: pre-wrap; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.photo-grid.single { grid-template-columns: 1fr; }
.photo-grid img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 10px; display: block;
}
.photo-grid.single img { height: auto; max-height: 420px; }

.searchbar input { margin: 0 0 14px; }
.article-head { display: flex; align-items: baseline; gap: 12px; }
.article-head h1 { flex: 1; }
.editlink { font-size: 14px; text-decoration: none; white-space: nowrap; }
.prose { line-height: 1.65; }
.prose p { margin: 10px 0; }
.prose img { max-width: 100%; border-radius: 10px; }
.prose h1, .prose h2, .prose h3 { margin: 18px 0 8px; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid #ddd9cd; padding: 6px 10px; }

.fab {
  position: fixed;
  right: 20px; bottom: 84px;
  width: 56px; height: 56px;
  background: #0f6e56; color: #fff;
  border-radius: 50%;
  font-size: 30px; line-height: 56px; text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #e5e2d8;
  padding-bottom: env(safe-area-inset-bottom);
}
nav a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  text-decoration: none;
  color: #7c7a72;
  font-size: 14px;
}
nav a.active { color: #0f6e56; font-weight: 600; }

.login-box { max-width: 340px; margin: 18vh auto 0; text-align: center; }
.login-box h1 { margin-bottom: 20px; }
