:root {
  --forest: #10281f;
  --forest-2: #1a3d30;
  --leaf: #1f6a49;
  --citrus: #e4f56a;
  --citrus-2: #d3e455;
  --sand: #f4f0e6;
  --sand-2: #e8e2d4;
  --paper: #fffcf6;
  --ink: #15241e;
  --muted: #5e6e66;
  --line: rgba(21, 36, 30, 0.12);
  --white: #fffdf9;
  --danger: #b42318;
  --danger-bg: #fde8e6;
  --warn: #9a6700;
  --warn-bg: #fff4d6;
  --ok: #17663f;
  --ok-bg: #e5f6ec;
  --info: #1d4f86;
  --info-bg: #e7f0fb;
  --shadow: 0 24px 60px rgba(16, 40, 31, 0.12);
  --radius: 22px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--citrus);
  color: var(--forest);
  padding: .6rem 1rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--citrus-2);
  outline-offset: 2px;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-2); }
.btn-citrus { background: var(--citrus); color: var(--forest); }
.btn-citrus:hover { background: var(--citrus-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost.light { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-danger { background: var(--danger); color: white; }
.btn-small { padding: .62rem .9rem; font-size: .92rem; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field span, .field-label { font-size: .86rem; font-weight: 700; }
.field small, .hint { color: var(--muted); font-size: .82rem; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: .85rem .95rem;
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); background: white; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }

.flash {
  border-radius: 16px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 650;
}
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-info { background: var(--info-bg); color: var(--info); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .28rem .62rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .01em;
  background: var(--sand-2);
  color: var(--ink);
  white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-sand { background: #efe8d6; color: #5c4b22; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; display: block; }
.muted { color: var(--muted); }
.stack { display: grid; gap: .35rem; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
