/* Moulton Village Scarecrow Competition — village fete aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,900&family=Spline+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #f5ecd7;
  --paper-deep: #ece0c4;
  --ink: #2a2118;
  --ink-soft: #5a4d3a;
  --crow: #1c1814;
  --harvest: #c2562a;
  --harvest-deep: #9c3d18;
  --wheat: #d9a441;
  --field: #5c7a3a;
  --field-deep: #44612a;
  --line: #cbb78f;
  --shadow: 0 2px 0 rgba(42,33,24,.18), 0 8px 24px rgba(42,33,24,.12);
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Spline Sans', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(217,164,65,.18), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(92,122,58,.16), transparent 42%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 1.25rem; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-weight: 600; font-size: 1.5rem; }
.tag { font-family: 'Fraunces', serif; font-style: italic; color: var(--harvest-deep); font-size: 1.1rem; }

header.masthead {
  text-align: center; padding: 1.5rem 0 1rem; border-bottom: 3px double var(--line);
  margin-bottom: 1.5rem;
}
header.masthead h1 { color: var(--crow); }
header.masthead .emojis { font-size: 2.4rem; display: block; margin-bottom: .1rem; letter-spacing: .15em; }
header.masthead .place { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.1rem, 4vw, 1.6rem); color: var(--harvest-deep); letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: -.1em; }
header.masthead .title { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2.2rem, 8vw, 3.6rem); color: var(--crow); line-height: 1.02; letter-spacing: -.02em; margin: 0; }

.card {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

label { display: block; font-weight: 600; margin: .9rem 0 .3rem; font-size: .95rem; }
input[type=text], input[type=email], textarea, input[type=password] {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--harvest); border-color: var(--harvest); }
textarea { resize: vertical; min-height: 80px; }
input[type=file] { font: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem;
  padding: .75rem 1.4rem; border: none; border-radius: 12px; cursor: pointer;
  background: var(--harvest); color: #fff; box-shadow: 0 3px 0 var(--harvest-deep);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--harvest-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--harvest-deep); }
.btn.field { background: var(--field); box-shadow: 0 3px 0 var(--field-deep); }
.btn.field:active { box-shadow: 0 1px 0 var(--field-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.full { width: 100%; }

#map { height: 60vh; min-height: 360px; border-radius: var(--radius); border: 1.5px solid var(--line); box-shadow: var(--shadow); }

.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }
.notice { padding: 2rem 1rem; text-align: center; }
.notice .crow { font-size: 3rem; }

.list { display: grid; gap: .8rem; }
.scarecrow {
  display: flex; gap: .9rem; align-items: center; background: var(--paper-deep);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem; box-shadow: var(--shadow);
}
.scarecrow img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--line); flex: none; }
.scarecrow .meta { flex: 1; min-width: 0; }
.scarecrow .meta strong { font-family: 'Fraunces', serif; font-size: 1.1rem; }
.seen-toggle { flex: none; }
.chk { width: 28px; height: 28px; accent-color: var(--field); }

.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  background: var(--crow); color: var(--paper); padding: .7rem 1.2rem; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 9999; font-weight: 500; max-width: 90vw;
}
.hidden { display: none !important; }
.leaflet-popup-content { font-family: 'Spline Sans', sans-serif; }
.leaflet-popup-content img { width: 100%; border-radius: 8px; margin-bottom: .4rem; }

/* Supporters */
.supporter {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: var(--paper-deep); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 1rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  min-width: 140px; transition: transform .1s;
}
.supporter:hover { transform: translateY(-2px); }
.supporter img { max-width: 120px; max-height: 70px; object-fit: contain; }
.supporter .sname { font-family: 'Fraunces', serif; font-weight: 600; font-size: .95rem; }

/* Key dates list */
.daterow { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.daterow:last-child { border-bottom: none; }
.daterow .dlabel { color: var(--ink-soft); }
.daterow .ddate { font-family: 'Fraunces', serif; font-weight: 600; text-align: right; }
