/* ------------------------------------------------------------------
   Barebones stylesheet. Edit freely -- nothing here is load-bearing.
   ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1c1f23;
  --muted: #5d656e;
  --border: #dde1e6;
  --accent: #2f6f4f;
  --accent-text: #ffffff;
  --error-bg: #fdeaea;
  --error-text: #8c2b2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1e2229;
    --text: #e8eaed;
    --muted: #a2abb5;
    --border: #333a43;
    --accent: #6bbf90;
    --accent-text: #10221a;
    --error-bg: #3a2222;
    --error-text: #f0a8a8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------------------- header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------- body */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

h1 { font-size: 1.9rem; margin: 0 0 8px; line-height: 1.25; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }

.tagline { color: var(--muted); margin-top: 0; }

section { margin-bottom: 8px; }

ul { padding-left: 20px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }

/* ----------------------------------------------------------- intro */

.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.intro > div { flex: 1 1 280px; }

.photo {
  width: 150px;
  height: 150px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------------------------------------------------------- button */

.button {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------ form */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
}

.form label input,
.form label textarea {
  margin-top: 6px;
}

.form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.form .row label { flex: 1 1 200px; }

.req { color: var(--accent); }

input, textarea {
  font: inherit;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

textarea { resize: vertical; }

button[type="submit"] {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

.error {
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--error-text);
  font-weight: 600;
}

/* ---------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ==================================================================
   Added for: language toggle + the private requests page
   ================================================================== */

:root {
  --chip-bg: #eef0f3;
  --pending: #8a6d1f;
  --pending-bg: #fdf3d6;
  --accepted: #1d5b8f;
  --accepted-bg: #dceaf7;
  --complete: #1f6b45;
  --complete-bg: #d8f0e3;
  --rejected: #8c2b2b;
  --rejected-bg: #fbe0e0;
  --cancelled: #555d66;
  --cancelled-bg: #e6e8eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --chip-bg: #262b33;
    --pending: #e8c76a;
    --pending-bg: #3a3218;
    --accepted: #8ec2ee;
    --accepted-bg: #1b2f42;
    --complete: #7fd3a6;
    --complete-bg: #17321f;
    --rejected: #f0a8a8;
    --rejected-bg: #3a2222;
    --cancelled: #b3bcc6;
    --cancelled-bg: #2a2f36;
  }
}

/* --------------------------------------------------- header layout */

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* --------------------------------------------------- language toggle */

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-toggle a {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}

.lang-toggle a + a { border-left: 1px solid var(--border); }
.lang-toggle a:hover { color: var(--text); }

.lang-toggle a.on {
  background: var(--accent);
  color: var(--accent-text);
}

/* ------------------------------------------------------------ admin */

main.wide { max-width: 860px; }

.notice {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--complete-bg);
  color: var(--complete);
  font-weight: 600;
}

.muted { color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 8px;
}

.chips-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.chip:hover { color: var(--text); }

.chip-on {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

/* ----------------------------------------------------- request card */

.request-card {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.request-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.request-card-head h2 { margin: 0; font-size: 1.05rem; }

.badge {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending   { background: var(--pending-bg);   color: var(--pending); }
.badge-accepted  { background: var(--accepted-bg);  color: var(--accepted); }
.badge-complete  { background: var(--complete-bg);  color: var(--complete); }
.badge-rejected  { background: var(--rejected-bg);  color: var(--rejected); }
.badge-cancelled { background: var(--cancelled-bg); color: var(--cancelled); }

.request-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 16px 0 0;
  font-size: 0.93rem;
}

.request-card dt {
  color: var(--muted);
  font-weight: 600;
}

.request-card dd { margin: 0; }

.pre { white-space: pre-wrap; }

/* ------------------------------------------------------ admin form */

.admin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.admin-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-form label:first-of-type { flex: 0 0 auto; }
.admin-form label:last-of-type  { flex: 1 1 260px; }

.admin-form select,
.admin-form textarea {
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.admin-form select:focus,
.admin-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.admin-form button {
  margin-top: 1.55rem;
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

@media (max-width: 560px) {
  .request-card dl { grid-template-columns: 1fr; gap: 2px; }
  .request-card dt { margin-top: 8px; }
}

/* ==================================================================
   Added for: request-form hints, the pricing note, and choice buttons
   ================================================================== */

.hint {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.note {
  margin: 16px 0 0;
  padding: 12px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
  font-size: 0.93rem;
}

/* ----------------------------------------------- radio choice group */

.choices {
  margin: 0;
  padding: 10px 15px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.choices legend {
  padding: 0 6px;
  font-size: 0.93rem;
  font-weight: 600;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* Override the block-label rules the rest of the form uses. */
.form .choices label.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
}

.form .choices label.choice input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ==================================================================
   Added for: the reviews page and review codes
   ================================================================== */

.review-form { max-width: 620px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-actions .button { margin: 0; }

/* Review codes read best in a monospace face with wide letter spacing. */
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 260px;
}

.code-chip {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  user-select: all;          /* one click selects the whole code */
}

/* --------------------------------------------------- posted reviews */

.review {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-head strong { font-size: 1rem; }

.review-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-edited { font-style: italic; }

.review p { margin: 0; }

/* ------------------------------------------------- checkbox in admin */

.form .check,
.admin-form label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
}

.admin-form label.check input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Hides the language toggle on the admin page, which is English only. */
.hidden { display: none; }

/* ==================================================================
   Added for: guardian fields, the consent checkbox, multi-item errors
   ================================================================== */

.guardian-block {
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
}

.guardian-block[hidden] { display: none; }

.guardian-hint { margin: 0; }

.guardian-block .row { margin-top: 12px; }

/* Checkbox inside the public form (the admin rule only covers .admin-form). */
.form label.check input[type="checkbox"] {
  width: auto;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* The consent wording runs to two or three lines, so align to the top. */
.form label.consent-check {
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.form label.consent-check input[type="checkbox"] { margin-top: 3px; }

/* More than one thing wrong at once reads better as a list. */
.error ul { margin: 0; padding-left: 20px; }
.error li { margin-bottom: 4px; font-weight: 600; }
.error li:last-child { margin-bottom: 0; }

/* Spam-trap field on the request form: off-screen for people, still in
   the page for bots that fill in every input. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy h2 { margin-top: 28px; }

/* Delete a request: separate from the save form, needs a ticked box. */
.delete-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.delete-form label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.delete-form label.check input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--error-text);
}
.delete-form button[type="submit"] {
  align-self: center;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-text);
}
