:root {
  --bg: #fff8ee;
  --surface: #ffffff;
  --ink: #2e261f;
  --muted: #6b5a4a;
  --brand: #a65a2a;
  --brand-dark: #7f4320;
  --danger: #b84a3c;
  --safe: #3a7d56;
  --line: #eadcca;
  --soft-warn: #fff1db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #ffe7c2 0%, var(--bg) 42%, #ffe9d8 100%);
  line-height: 1.45;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-dark);
}

.dev-banner {
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  background: #ffd8a8;
  border-bottom: 1px solid #e6b67b;
}

.hidden {
  display: none;
}

.topbar {
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #603416;
}

.top-links {
  display: flex;
  gap: 1rem;
}

.top-links a {
  text-decoration: none;
  color: #5f4e40;
  font-weight: 600;
}

.top-links a[aria-current="page"] {
  color: var(--brand-dark);
}

.hero {
  padding: 2rem 1rem 1.25rem;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, #b85e2e, #d08a33);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 22px rgba(120, 67, 25, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.8rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

.hero .lead {
  color: #fff7ec;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1rem 1.8rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta {
  display: inline-block;
  text-decoration: none;
  border: 0;
  color: white;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.14);
}

.cta.lost {
  background: var(--danger);
}

.cta.found {
  background: var(--safe);
}

.trust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 14px rgba(140, 106, 72, 0.08);
}

.about,
.safety {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 14px rgba(140, 106, 72, 0.08);
}

.news {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 14px rgba(140, 106, 72, 0.08);
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.news-link {
  font-size: 0.9rem;
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.news-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fffaf3;
}

.news-item h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1rem;
}

.news-item p {
  margin: 0;
}

.news-tag {
  display: inline-block;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6f3d1f;
  background: #ffe5bf;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.safety {
  background: var(--soft-warn);
}

.safety.compact {
  margin-top: 0.75rem;
}

.about p,
.safety li {
  line-height: 1.6;
}

.safety ul {
  margin: 0;
  padding-left: 1.2rem;
}

.trust ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(122, 95, 70, 0.1);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #f2e4d2;
}

.card-body {
  padding: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-lost {
  background: var(--danger);
}

.badge-found {
  background: var(--safe);
}

.form-card {
  display: grid;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(122, 95, 70, 0.1);
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8b299;
  border-radius: 10px;
  padding: 0.65rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #f0c28e;
  outline-offset: 1px;
  border-color: #b67641;
}

.error {
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
  padding: 0.7rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.centered {
  text-align: center;
  padding-top: 4rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  color: #7a6550;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .news-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 1.25rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}
