:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --accent: #0a5c46;
  --error: #a4262c;
  --success: #0a5c46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.site-header nav a {
  margin-left: 1rem;
  color: var(--accent);
  text-decoration: none;
}

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

.site-header nav a { margin-left: 0; }

.site-header .sign-out { display: inline; margin: 0; }

.site-header .sign-out button {
  margin: 0;
  padding: 0;
  font-weight: 400;
  color: var(--accent);
  background: none;
}

.site-header nav a.cta {
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
}

h2 { margin-top: 2rem; }
h3 { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.95rem; }

.featured {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1rem 1rem;
  background: #faf9f4;
}

.featured h2 { margin-top: 1rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.listings {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listing {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

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

.listing-title { font-weight: 600; }

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

.listing-excerpt {
  color: var(--muted);
  margin: 0.5rem 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.gallery img {
  max-width: 100%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.description { white-space: pre-wrap; }

form { display: grid; gap: 0.5rem; margin-top: 1rem; }

label { font-weight: 600; margin-top: 0.5rem; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
  cursor: pointer;
  justify-self: start;
}

.note { color: var(--muted); }
.warning { color: #744b00; font-weight: 600; }
.error { color: var(--error); font-weight: 600; }
.success { color: var(--success); font-weight: 600; }
.empty { color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; }

.payment-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.payment-box p { margin: 0.25rem 0; }
.amount { font-size: 1.5rem; font-weight: 700; }
.amount .tokens { font-size: 1rem; font-weight: 600; color: var(--muted); }
.address code { word-break: break-all; }
.payment-qr { display: block; max-width: 100%; margin: 1rem 0; }
.payment-uri a { color: var(--accent); word-break: break-all; }
