:root {
  color-scheme: light;
  --paper: #f3ecdf;
  --ink: #1c1712;
  --muted: #5e554b;
  --panel: #fffaf3;
  --line: #e3d5c2;
  --green: #1e5c45;
  --green-deep: #164835;
  --brass: #8d5a24;
  --danger: #8d2e2e;
  --danger-bg: #fdeeee;
  --ok: #1e5c45;
  --ok-bg: #e7f5ee;
  --shadow: 0 18px 40px rgba(48, 32, 14, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.awning {
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 26px,
    var(--paper) 26px 34px
  );
  border-bottom: 3px solid var(--brass);
}

main {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 28px;
}

.mark {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
}

.tagline {
  margin: 14px 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

h2 {
  margin: 0;
  font-size: 1.7rem;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.lede,
.note,
.empty {
  color: var(--muted);
}

.lede {
  margin: 6px 0 16px;
}

.note {
  margin: 0;
}

.status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f1e8;
}

.status[data-kind="error"] {
  background: var(--danger-bg);
  color: var(--danger);
}

.status[data-kind="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}

form,
.session,
#stores {
  display: grid;
  gap: 12px;
}

#stores {
  margin-top: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

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

input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.actions,
.session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.session p {
  margin: 0;
  flex: 1 1 220px;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #f7fffb;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
}

button:hover {
  background: var(--green-deep);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.secondary:hover {
  background: #f6f1e8;
}

#store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#store-list li {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.store-name {
  font-weight: 600;
}

.store-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

noscript {
  display: block;
  width: min(680px, calc(100% - 32px));
  margin: 16px auto;
}
