:root {
  --wood-deep: #2E1B0C;
  --wood: #7A4A22;
  --wood-light: #A8703A;
  --cream: #FFF4DF;
  --cream-2: #F5E3C2;
  --sun: #F2A13C;
  --sun-deep: #D97B18;
  --leaf: #57A94F;
  --leaf-deep: #3C7E36;
  --berry: #E0656E;
  --ink: #33200F;
  --ink-soft: #6E5335;
  --r-card: 22px;
  --r-ctl: 14px;
  --shadow-card: 0 18px 46px rgba(28, 14, 4, .45);
  --shadow-lift: 0 4px 0 var(--sun-deep);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wood-deep);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .display {
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}

a { color: var(--sun-deep); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.btn {
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--r-ctl);
  padding: .85rem 1.4rem;
  cursor: pointer;
  color: #fff;
  background: var(--sun);
  box-shadow: var(--shadow-lift);
  transition: transform .09s ease, box-shadow .09s ease, filter .15s ease;
  min-height: 48px;
}
.btn:hover { filter: brightness(1.05); }
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sun-deep);
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--leaf { background: var(--leaf); box-shadow: 0 4px 0 var(--leaf-deep); }
.btn--leaf:active { box-shadow: 0 1px 0 var(--leaf-deep); }
.btn--wide { width: 100%; }

.field { display: block; margin-bottom: .9rem; }
.field > span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.field input {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .7rem .9rem;
  border-radius: var(--r-ctl);
  border: 2px solid var(--cream-2);
  background: #fffdf7;
}
.field input:focus { border-color: var(--sun); outline: none; }

.error {
  color: #A3312F;
  background: #FBE3DF;
  border-radius: var(--r-ctl);
  padding: .6rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 .9rem;
}
.error[hidden] { display: none; }

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

.credit {
  position: relative;
  z-index: 1;
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: .76rem;
  color: rgba(255, 244, 223, .6);
}
.credit a { color: rgba(255, 244, 223, .85); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }
.credit--onCream { color: var(--ink-soft); }
.credit--onCream a { color: var(--sun-deep); }
