:root {
  --sky: #e7f3ee;
  --cream: #fbf6ea;
  --paper: #fffdf7;
  --soil: #4a3428;
  --soil-soft: #6b4a3a;
  --leaf: #2f6a45;
  --leaf-deep: #1f4a30;
  --moss: #7da36a;
  --line: rgba(74, 52, 40, 0.14);
  --shadow: 0 10px 28px rgba(48, 32, 20, 0.12);
  --font-display: "Fraunces", Palatino, Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--soil);
  background:
    radial-gradient(1200px 500px at 50% -80px, #f4e7b8 0%, transparent 60%),
    linear-gradient(180deg, #d8ecc8 0%, var(--sky) 28%, var(--cream) 100%);
  min-height: 100dvh;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea { font-family: inherit; }
.wrap { width: min(640px, 100%); margin: 0 auto; padding: 16px 16px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand span { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--soil-soft); }
.text-link { color: var(--leaf-deep); font-weight: 800; font-size: 0.85rem; text-decoration: none; border-bottom: 1px dashed rgba(31,74,48,0.4); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  margin: 0 0 14px;
}
.kicker { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: var(--moss); margin: 0 0 6px; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
h1 { font-size: 1.7rem; line-height: 1.15; }
h2 { font-size: 1.2rem; }
.lede { color: var(--soil-soft); margin: 0 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 11px 16px; font-weight: 800; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper); background: var(--leaf); box-shadow: 0 4px 0 var(--leaf-deep);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--leaf-deep); }
.btn-ghost { background: #efe6d4; color: var(--soil); box-shadow: 0 4px 0 #d9cdb4; }
.btn-small { padding: 7px 10px; font-size: 0.8rem; box-shadow: 0 3px 0 var(--leaf-deep); }
.btn-ghost.btn-small { box-shadow: 0 3px 0 #d9cdb4; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
label.field { display: block; margin: 0 0 10px; font-weight: 800; font-size: 0.82rem; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600;
}
label.field textarea { min-height: 70px; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row-3 { display: grid; grid-template-columns: 72px 1fr 88px; gap: 8px; align-items: end; }
.chip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.chip {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  background: #f6efe2; border: 2px solid transparent; border-radius: 16px; padding: 10px 12px;
  font: inherit; color: inherit; font-weight: 800;
}
.chip.is-on { border-color: var(--leaf); background: #eef6ea; }
.chip span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--soil-soft); }
.plot {
  background: #f6efe2; border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 8px; margin: 0 0 8px;
}
.plot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.plot-head b { font-family: var(--font-display); }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.thumb { position: relative; background: #efe6d4; border-radius: 12px; overflow: hidden; min-height: 110px; }
.thumb img { width: 100%; height: 110px; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 6px; right: 6px; }
.status { font-size: 0.8rem; font-weight: 700; color: var(--soil-soft); margin: 0 0 10px; }
.legal { text-align: center; font-size: 0.78rem; color: var(--soil-soft); margin: 8px 4px 0; }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(12px);
  background: var(--soil); color: var(--paper); padding: 10px 14px; border-radius: 999px;
  font-weight: 800; font-size: 0.85rem; opacity: 0; pointer-events: none; transition: 0.2s ease; z-index: 40;
  max-width: 90%;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.slug { font-family: ui-monospace, monospace; font-size: 0.85rem; }
html.is-shot { scroll-behavior: auto; }
