:root{
  --paper: #EFEBE0;
  --paper-dark: #E4DFCE;
  --ink: #1B2119;
  --ink-soft: #565C4C;
  --line: #C9C2AD;
  --moss: #55703C;
  --lake: #2E6B72;
  --slate: #4A5568;
  --ember: #C1531B;
  --white: #FBF9F3;
}

* { box-sizing: border-box; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1,h2,h3 { font-family:'Archivo', sans-serif; margin:0; }
a { color: inherit; }
.wrap{ max-width: 1080px; margin:0 auto; padding: 0 28px; }

/* ---------- HEADER / FOOTER (shared) ---------- */
header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 28px; max-width: 1080px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; }
.brand img{ width:46px; height:46px; }
.brand span{ font-family:'Permanent Marker', cursive; font-size: 1.3rem; letter-spacing: 0.5px; }
nav{ display:flex; gap: 28px; font-weight:600; font-size:0.95rem; flex-wrap: wrap; }
nav a{ text-decoration:none; border-bottom: 2px solid transparent; padding-bottom:3px; }
nav a:hover, nav a.active{ border-color: var(--ember); }

footer{
  padding: 40px 28px 50px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: 12px;
  max-width:1080px; margin:0 auto;
  color: var(--ink-soft); font-size:0.88rem;
}
footer .brand span{ font-size:1rem; }

/* ---------- GENERIC PAGE HEAD ---------- */
.page-head{ max-width: 1080px; margin: 10px auto 40px; padding: 0 28px; }
.page-head h1{ font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight:900; }
.page-head p{ color: var(--ink-soft); margin-top:10px; max-width: 56ch; }

/* ---------- BUTTONS ---------- */
.cta, button.cta{
  display:inline-block; margin-top: 0;
  background: var(--ink); color: var(--white);
  padding: 13px 26px; text-decoration:none;
  font-weight:600; font-size:0.98rem;
  border-radius: 3px; border:none; cursor:pointer;
  font-family: inherit;
}
.cta:hover{ background: var(--ember); }

.register, button.register{
  text-decoration:none; font-weight:600; font-size:0.92rem;
  padding: 9px 18px; border: 2px solid var(--ink); border-radius:3px;
  white-space: nowrap; background: transparent; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.register:hover{ background: var(--ink); color: var(--white); }
.register:disabled{ opacity:0.4; cursor:not-allowed; }
.register:disabled:hover{ background:transparent; color:var(--ink); }

/* ---------- HERO ---------- */
.hero{
  max-width: 1080px; margin: 20px auto 70px; padding: 0 28px;
  display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items:center;
}
.hero h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.12; max-width: 11ch; }
.hero p{ margin-top: 18px; max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; }
.hero-art{ background: var(--white); border: 3px solid var(--ink); border-radius: 6px; padding: 18px; transform: rotate(1.4deg); }
.hero-art img{ width:100%; display:block; }

/* ---------- SECTION HEADS ---------- */
section{ padding: 10px 0 70px; }
.section-head{ max-width: 1080px; margin: 0 auto 40px; padding:0 28px; }
.section-head h2{ font-size: 1.9rem; font-weight:700; }
.section-head p{ color: var(--ink-soft); margin-top:8px; max-width: 52ch; }

/* ---------- TRAIL / EVENTS ---------- */
.trail{ position: relative; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.trail::before{
  content:""; position:absolute; left: 50%; top: 6px; bottom: 6px; width: 3px;
  background-image: linear-gradient(var(--line) 60%, transparent 0%);
  background-size: 3px 16px; background-repeat: repeat-y;
  transform: translateX(-50%); z-index: 1;
}
.stop{ display:grid; grid-template-columns: 1fr 70px 1fr; align-items:center; column-gap: 24px; margin-bottom: 40px; }
.stop:nth-child(odd) .card{ grid-column: 1; }
.stop:nth-child(even) .card{ grid-column: 3; }
.marker{
  grid-column: 2; justify-self:center; width: 54px; height:54px; border-radius:50%;
  background: var(--paper); border: 3px solid var(--ink);
  display:flex; align-items:center; justify-content:center; position: relative; z-index:2;
}
.marker svg{ width:26px; height:26px; }
.marker.moss{ border-color: var(--moss); } .marker.moss svg{ stroke: var(--moss); }
.marker.lake{ border-color: var(--lake); } .marker.lake svg{ stroke: var(--lake); }
.marker.ember{ border-color: var(--ember); } .marker.ember svg{ stroke: var(--ember); }
.marker.slate{ border-color: var(--slate); } .marker.slate svg{ stroke: var(--slate); }

.card{ background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 22px 24px; }
.card-photo{ width:100%; height:150px; object-fit:cover; border-radius:3px; border:2px solid var(--ink); margin-bottom:14px; }
.event-cover{ width:100%; max-height:360px; object-fit:cover; border-radius:4px; border:2px solid var(--ink); margin:18px 0 24px; }
.stamp{ display:inline-block; font-family:'Permanent Marker', cursive; font-size: 1.05rem; color: var(--ember); transform: rotate(-2deg); margin-bottom: 6px; }
.card h3{ font-size: 1.25rem; margin-bottom:6px; }
.card .place{ color: var(--ink-soft); font-size:0.92rem; margin-bottom:10px; }
.card p.desc{ color: var(--ink-soft); font-size:0.95rem; margin-bottom:16px; }
.card-foot{ display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap:10px; }
.capacity{ font-size:0.85rem; color: var(--ink-soft); }
.empty-note{ color: var(--ink-soft); font-style: italic; padding: 0 28px; }

@media (max-width: 780px){
  .hero{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
  .trail{ padding: 0 20px; }
  .trail::before{ left: 42px; }
  .stop{ grid-template-columns: 44px 1fr; column-gap: 14px; margin-bottom: 24px; }
  .stop:nth-child(odd) .card, .stop:nth-child(even) .card{ grid-column: 2; }
  .marker{ grid-column: 1; grid-row: 1; width: 44px; height:44px; align-self: start; }
  .marker svg{ width:20px; height:20px; }
  .card{ padding: 18px 18px; }
}

/* ---------- REPORTS ---------- */
.reports{ max-width:1080px; margin:0 auto; padding:0 28px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.report-card{ background: var(--white); border:2px solid var(--ink); border-radius:4px; overflow:hidden; }
.report-photo{ height: 170px; background-size: cover; background-position:center; background-color: var(--paper-dark); border-bottom: 2px solid var(--ink); }
.report-card .body{ padding: 16px 18px; }
.report-card .date{ font-size:0.82rem; color: var(--ink-soft); margin-bottom:6px; }
.report-card h3{ font-size:1.05rem; margin-bottom:8px; }
.report-card p{ font-size:0.9rem; color: var(--ink-soft); }
.report-photo-strip{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.report-photo-strip img{ width:110px; height:80px; object-fit:cover; border:2px solid var(--ink); border-radius:3px; }
@media (max-width: 780px){ .reports{ grid-template-columns: 1fr; } }

/* ---------- FORMS (registration + admin) ---------- */
.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-weight:600; font-size:0.92rem; margin-bottom:6px; }
.form-field .help{ font-size:0.82rem; color: var(--ink-soft); margin-top:4px; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel],
.form-field input[type=number], .form-field input[type=datetime-local], .form-field select,
.form-field textarea{
  width:100%; padding: 11px 13px; border: 2px solid var(--ink); border-radius:3px;
  font-family: inherit; font-size:0.98rem; background: var(--white); color: var(--ink);
}
.form-field textarea{ min-height: 90px; resize: vertical; }
.form-field.checkbox{ display:flex; align-items:center; gap:10px; }
.form-field.checkbox label{ margin-bottom:0; font-weight:500; }
.form-note{ padding:14px 16px; background: var(--paper-dark); border-left:3px solid var(--ember); border-radius:3px; font-size:0.9rem; margin: 20px 0; }
.form-status{ margin-top:16px; font-weight:600; }
.form-status.ok{ color: var(--moss); }
.form-status.err{ color: var(--ember); }

/* ---------- ADMIN ---------- */
.admin-shell{ max-width: 1080px; margin: 0 auto; padding: 28px; }
.admin-tabs{ display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.admin-tabs button{
  padding:9px 18px; border:2px solid var(--ink); background: transparent; border-radius:3px;
  font-family:inherit; font-weight:600; cursor:pointer; color: var(--ink);
}
.admin-tabs button.active{ background: var(--ink); color: var(--white); }
.admin-card{ background: var(--white); border:2px solid var(--ink); border-radius:4px; padding:22px 24px; margin-bottom:20px; }
.admin-list-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); gap:12px; flex-wrap:wrap; }
.admin-list-row:last-child{ border-bottom:none; }
.pill{ display:inline-block; padding:3px 10px; border-radius:20px; font-size:0.78rem; font-weight:600; border:1px solid var(--ink-soft); }
.pill.published{ background: var(--moss); color:var(--white); border-color:var(--moss); }
.pill.draft{ background: var(--paper-dark); }
.pill.closed{ background: var(--slate); color:var(--white); border-color:var(--slate); }
.pill.past{ background: var(--ink-soft); color:var(--white); border-color:var(--ink-soft); }
.field-row{ display:grid; grid-template-columns: 1.5fr 1fr 1fr auto auto; gap:10px; align-items:center; margin-bottom:10px; }
.field-row select, .field-row input{ padding:8px 10px; border:2px solid var(--ink); border-radius:3px; font-family:inherit; }
.fixed-fields{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.fixed-fields .chip{ display:inline-flex; align-items:center; gap:6px; padding:7px 13px; background:var(--paper-dark); border:1px solid var(--line); border-radius:20px; font-size:0.85rem; font-weight:600; color:var(--ink-soft); }
.fixed-fields .chip::before{ content:"✓"; color:var(--moss); }
.icon-btn{ background:none; border:none; cursor:pointer; font-size:1.1rem; padding:4px 8px; }
@media (max-width: 780px){ .field-row{ grid-template-columns: 1fr 1fr; } }
