:root {
  color-scheme: light;
  --bg: #faf7f7;
  --surface: #ffffff;
  --ink: #252124;
  --muted: #716a70;
  --line: #eadfe4;
  --accent: #c13d63;
  --accent-dark: #9c2449;
  --soft: #f7e7ee;
  --ok: #157347;
  --warn: #9c5c00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  color: var(--accent-dark);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  white-space: nowrap;
}

.page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.hero {
  padding: 20px 0 18px;
}

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 8vw, 44px);
}

h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.panel, .listing-card, .notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 16px;
}

.notice {
  padding: 12px 14px;
  margin: 0 0 14px;
  color: var(--muted);
}

.notice.error {
  border-color: #f1b8bf;
  color: #8a1d2b;
  background: #fff3f5;
}

.search-grid, .form-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .search-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }

  .form-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
}

.button.primary, button.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-color: var(--accent-dark);
}

.button.ghost {
  background: var(--soft);
  color: var(--accent-dark);
}

.button.danger {
  color: #8a1d2b;
  background: #fff3f5;
  border-color: #f1b8bf;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.listing-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.listing-title {
  margin: 0;
  font-size: 18px;
}

.meta, .muted {
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
}

.price {
  font-weight: 800;
  color: var(--accent-dark);
}

.content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 14px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.locked {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(37, 33, 36, .72);
}

.age-gate[hidden] {
  display: none;
}

.age-panel {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}

.age-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.age-actions {
  display: flex;
  gap: 10px;
}

.empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--muted);
}
