:root {
  --yellow: #ffd60a;
  --red: #ff2d55;
  --blue: #1e6bff;
  --magenta: #e91e8c;
  --orange: #ff7a00;
  --green: #12b76a;
  --ink: #14110f;
  --ink-2: #4a4440;
  --ink-3: #8a827c;
  --paper: #fff8e7;
  --paper-2: #fff1cc;
  --card: #ffffff;
  --line: #14110f;
  --soft-line: #e9dfc8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--ghost { background: var(--card); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: .9rem; }
.btn--plain { background: none; border-color: transparent; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.btn--plain:hover { background: rgba(20, 17, 15, .06); box-shadow: none; transform: none; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2.5px solid var(--ink); border-radius: var(--radius-sm);
  background: #fff; font-size: 1.05rem;
  transition: box-shadow .15s;
}
.input:focus { outline: none; box-shadow: 0 0 0 4px rgba(30, 107, 255, .3); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }

.error-msg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #ffe3ea; border: 2px solid var(--red); color: #8a0022; font-weight: 600; font-size: .95rem;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
