:root {
  --ink: #1c2430;
  --muted: #5c6775;
  --line: #e4ddd2;
  --paper: #f6f3ee;
  --card: #fff;
  --accent: #c4532a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}
a { color: var(--accent); }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
}
.brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.top-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.who { color: #fff; font-weight: 700; text-decoration: none; }
.who:hover { color: #f0b89a; }
.top nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.top nav a { color: #f0b89a; text-decoration: none; }
.top nav a:hover { color: #fff; }
main { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { font-size: 1.8rem; margin: 0 0 1.2rem; }
.show {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.2rem;
  margin: 0 0 1rem;
}
.show-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  white-space: pre-wrap;
}
.show-text {
  font-family: Fraunces, "Palatino Linotype", Palatino, Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0.85rem 0 0;
  white-space: pre-wrap;
}
.show-when {
  font-family: Syne, Candara, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--accent);
  margin: 0.9rem 0 0;
  white-space: pre-wrap;
}
.empty { color: var(--muted); }
.identify, .buy {
  display: block;
  margin-top: 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.identify {
  background: var(--ink);
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.4;
  padding: 1.05rem 1.15rem;
}
.buy {
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
}
.identify:hover, .buy:hover { color: #fff; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 36, 48, 0.55);
}
.sheet {
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.25rem 1.35rem;
}
.sheet h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.sheet h3 { margin: 0.2rem 0 0; font-size: 1.05rem; }
.sheet p { margin: 0.7rem 0 0; }
.sheet label { display: block; margin: 0.75rem 0 0.25rem; }
.sheet input {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary { background: #ece7e0; color: var(--ink); }
.actions { margin-top: 0.9rem; }
.split { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 0.4rem; }
.msg { padding: 0.7rem 0.85rem; border-radius: 8px; margin: 0 0 1rem; }
.msg.ok { background: #e7f6ec; }
.msg.err { background: #fde8e4; color: #8d2a16; }
.todo { font-size: 1.4rem; font-weight: 700; }
