/* Matches wheatatreat.com: white page, dark green ink, near-black buttons.
   Her site uses proxima-nova (Adobe Fonts); Figtree is the closest free stand-in. */
:root {
  --bg: #ffffff;
  --ink: #042f28;
  --text: #272727;
  --muted: rgba(31, 31, 31, 0.6);
  --line: #dcdcdc;
  --soft: #f6f6f4;
  --button: #272727;
  --error: #a3261f;
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.top { display: flex; justify-content: center; margin-bottom: 28px; }



h1, h2 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: 28px; }
h2 { font-size: 24px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.field { margin-bottom: 24px; }

.label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--muted); }

.note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 16px; /* 16px stops iOS zooming into the field */
}
input[type="text"]:focus,
input[type="password"]:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
input::placeholder { color: #9a9a9a; }

.handle { position: relative; }
.handle .at {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.handle input { padding-left: 32px; }

/* Photo picker */
.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1.5px dashed #b9b9b9;
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover, .drop.is-over { border-color: var(--ink); background: #eef2f0; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.drop-title { font-weight: 600; color: var(--ink); }
.drop-hint { font-size: 13px; color: var(--muted); }
/* Phones and touch screens can't drag files, so they get tap wording. The
   desktop layout (.is-wide) with a mouse gets "Choose a photo / or drag it here". */
.for-mouse { display: none; }
.is-wide .for-mouse { display: inline; }
.is-wide .drop-hint.for-mouse { display: block; }
.is-wide .for-touch { display: none; }
@media (pointer: coarse) {
  .is-wide .for-mouse, .is-wide .drop-hint.for-mouse { display: none; }
  .is-wide .for-touch { display: inline; }
}
.drop-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--soft);
  pointer-events: none;
}
.drop.has-photo { border-style: solid; border-color: var(--line); }

.link-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile:empty { display: none; }
.turnstile { margin-bottom: 16px; }

.error {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--error);
}

.submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.submit:hover { opacity: 0.88; }
.submit:disabled { opacity: 0.55; cursor: progress; }

.done { text-align: center; }
.done p { margin: 0 0 20px; }


/* Admin login */
.login { max-width: 420px; padding-top: 56px; }
.wordmark-img { display: block; width: 190px; height: auto; }
.login h1 { font-size: 24px; }
.login-intro { margin: 0 0 22px; color: var(--muted); }
input:disabled { background: var(--soft); color: var(--muted); }

@media (max-width: 420px) {
  .wrap { padding-top: 24px; }
  h1 { font-size: 24px; }
  .card { padding: 20px 16px; }
}
