:root {
  --bg: #f3f1ea;
  --panel: #fffdf8;
  --ink: #1e2b24;
  --muted: #5b6b63;
  --accent: #2f6b4f;
  --accent-strong: #183c2d;
  --line: #d8d1c3;
  --danger: #8a3022;
  --sun: #d88a2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(216, 138, 47, 0.18), transparent 32rem),
    linear-gradient(180deg, #faf7f0 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
  color: var(--accent-strong);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(24, 60, 45, 0.1);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--accent), var(--sun));
  color: white;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a,
.link-button {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-strong);
}

.inline-form {
  display: inline;
}

.link-button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.hero {
  padding: 4rem 0 2rem;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-points,
.flat-list {
  margin: 0;
  padding-left: 1.1rem;
}

.search-panel,
.content-card,
.result-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(24, 60, 45, 0.05);
}

.search-panel,
.content-card,
.result-card {
  padding: 1.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1rem 1.2rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

.stack-form,
.filter-grid {
  display: grid;
  gap: 0.9rem;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

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

input,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid #c8c0b1;
  background: #fff;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.check input {
  width: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.button-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.button-secondary {
  background: linear-gradient(160deg, #607465, #36493e);
}

.button-danger {
  background: linear-gradient(160deg, #a13b29, var(--danger));
}

.results-stack,
.flash-stack {
  display: grid;
  gap: 1rem;
}

.result-top,
.panel-head,
.search-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

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

.result-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.result-grid dd {
  margin: 0.2rem 0 0;
}

.availability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.availability-strip span {
  background: #eef4ef;
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.92rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: white;
}

.flash-success {
  border-color: rgba(47, 107, 79, 0.25);
}

.flash-error {
  border-color: rgba(138, 48, 34, 0.3);
}

.narrow {
  width: min(720px, calc(100% - 2rem));
}

.action-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

@media (max-width: 800px) {
  .stats-grid,
  .two-up {
    grid-template-columns: 1fr;
  }

  .result-top,
  .panel-head,
  .search-head,
  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }
}
