/* El Molcajete Baja — shared look: grey paper, ink outlines, colour that sits a little off the line. */
:root {
  --paper: #f1f0eb;
  --card: #fbfaf5;
  --ink: #1f1d1a;
  --ink-soft: #5b5750;
  --stone: #8f959c;
  --stone-dark: #62676e;
  --avo: #8a9632;
  --avo-light: #dfe26b;
  --lime: #8fbd4b;
  --tomato: #e9552b;
  --orange: #f39a2c;
  --sage: #bcc291;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --script: "Caveat", "Bradley Hand", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(31, 29, 26, 0.07) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--script); font-weight: 700; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 15vw, 7rem); }
h2 { font-size: clamp(2.5rem, 9vw, 4rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.script { font-family: var(--script); font-weight: 700; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* a wobbly underline, like the stroke under the lettering */
.swoosh { position: relative; display: inline-block; }
.swoosh::after {
  content: "";
  position: absolute;
  left: 4%; right: 8%; bottom: -0.12em;
  height: 0.16em;
  background: var(--sage);
  border-radius: 60% 40% 70% 30% / 100% 60% 80% 40%;
  transform: rotate(-1.2deg);
  z-index: -1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  font: 800 1rem var(--body);
  color: var(--ink); background: var(--avo-light);
  border: 2.5px solid var(--ink); border-radius: var(--wobble);
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -2px) rotate(-0.6deg); box-shadow: 6px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 4px 5px 0 var(--ink); }
.btn.tomato { background: var(--tomato); color: #fff; }
.btn.plain { background: var(--card); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn.block { width: 100%; }

.card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-2);
  padding: 22px;
  box-shadow: 6px 7px 0 var(--sage);
}

label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 600 16px var(--body); color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 88px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f1d1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .chip:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
.field { margin-bottom: 16px; }

.chip {
  flex: none; min-width: 48px; min-height: 46px; padding: 6px 14px;
  font: 800 0.95rem var(--body); color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink); border-radius: 16px 22px 14px 24px / 22px 14px 24px 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--avo-light); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); }
.chip:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.error { color: #b3261e; font-weight: 800; }

/* login screens for admin + investors */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 24px 20px; }
.gate .card { width: 100%; max-width: 400px; text-align: center; }
.gate img { width: 150px; margin: 0 auto 6px; }
.gate h1 { font-size: 3rem; margin-bottom: 4px; }
.gate form { text-align: left; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
