:root {
  --ink: #102018;
  --muted: #5a6b5e;
  --paper: #f3f7f3;
  --green: #2f8a4e;
  --green-dark: #174a2b;
  --line: rgba(16, 32, 24, .12);
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.5;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(47, 138, 78, .12), transparent 55%),
    linear-gradient(180deg, #eef5ef 0%, #f3f7f3 28%, #fff 100%);
}
a { color: inherit; }
img { max-width: 100%; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(243, 247, 243, .86);
  border-bottom: 1px solid rgba(16, 32, 24, .06);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-dark);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
}
.top-link {
  margin-left: auto;
  color: rgba(23, 74, 43, .72);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.top-link:hover { color: var(--green-dark); }

.hero {
  color: #fff;
  background:
    radial-gradient(640px 360px at 18% -10%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(165deg, #0d2416 0%, #174a2b 48%, #1f6a3a 100%);
}
.hero .wrap { padding-top: 56px; padding-bottom: 92px; }
.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.kicker.dark { color: var(--green); }
h1, h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
}
h1 { font-size: clamp(36px, 6vw, 64px); max-width: 14ch; }
h2 { font-size: 32px; color: var(--green-dark); }
.lead, .muted { color: rgba(255,255,255,.8); }
.lead { max-width: 62ch; font-size: 18px; }
.muted { color: var(--muted); }

.wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.wrap.wide { width: min(1120px, calc(100% - 32px)); }
.wrap.narrow { width: min(460px, calc(100% - 32px)); }
.sheet { margin-top: -48px; padding-bottom: 48px; }
.sheet.flat { margin-top: 36px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(13, 36, 22, .08);
}
.success p { color: var(--muted); max-width: 62ch; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px; }
  .place-other { grid-column: 1 / -1; }
}
.place-other[hidden] { display: none; }

.field { display: grid; gap: 8px; margin-top: 18px; }
.grid .field { margin-top: 0; }
.field-label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
label { font-size: 14px; font-weight: 800; }
.hint { color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 24, .18);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(47, 138, 78, .28);
  border-color: var(--green);
}
[aria-invalid="true"] { border-color: #b42318; }
.field-error, .form-error { margin: 0; color: #b42318; font-size: 14px; font-weight: 800; }
.form-error { margin-top: 16px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.actions p { margin: 0; color: var(--muted); font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #123820; }
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid rgba(23, 74, 43, .28);
}
.btn-ghost:hover { background: rgba(47, 138, 78, .08); }
.btn-block { width: 100%; margin-top: 18px; }
@media (min-width: 720px) {
  .actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .success .btn { margin-top: 8px; }
}

.admin-bar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.admin-bar h1 { max-width: none; color: var(--ink); font-size: clamp(32px, 4vw, 44px); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-actions form { margin: 0; }
@media (min-width: 800px) {
  .admin-bar { flex-direction: row; justify-content: space-between; align-items: end; }
}
.empty {
  border: 1px dashed rgba(23, 74, 43, .28);
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  color: var(--muted);
}
.rows { display: grid; gap: 12px; }
.row {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.row p { margin: 0; }
.strong { font-weight: 800; }
.when, .note { color: var(--muted); }
.note { white-space: pre-wrap; }
.row a { color: var(--green-dark); font-weight: 800; }
.row-delete { margin: 0; }
.row-delete button {
  border: 0;
  background: transparent;
  color: #9f2d24;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.row-delete button:hover { text-decoration: underline; }
.row-head { display: none; }
@media (min-width: 980px) {
  .rows { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
  .row, .row-head {
    display: grid;
    grid-template-columns: 150px 1.1fr 1fr 1fr 1.1fr auto;
    gap: 12px;
    align-items: start;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
  }
  .row-head {
    display: grid;
    background: #eef5ef;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-top: 0;
  }
}

.foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 28px;
  border-top: 1px solid rgba(16, 32, 24, .06);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot span { color: rgba(16, 32, 24, .25); padding: 0 6px; }
.foot a { color: var(--muted); }
.admin-link { color: var(--green-dark); font-weight: 800; text-decoration: none; }
@media (min-width: 720px) {
  .foot { flex-direction: row; justify-content: space-between; align-items: center; width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
}
