:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f8f5ef 0%, #efe7d8 100%);
  color: var(--text);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

blockquote {
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

button:last-child {
  background: #ffffff;
  color: #111827;
}

.status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
}

.notes ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95em;
}

/* Site button style for anchors used as buttons */
.button {
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Form styles */
form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}

input[type="text"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fbfbfb;
  color: var(--text);
}

textarea { resize: vertical; }

/* Hidden state for the purchase form until payment is confirmed */
.hidden { display: none !important; }

/* Catalog details styling */
details { margin: 8px 0; }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid var(--border);
}

@media (max-width: 520px) {
  .container { padding: 20px 14px; }
  h1 { font-size: 1.5rem; }
  blockquote { font-size: 1.2rem; }
  .actions { flex-direction: column; }
}

/* small category label above phrases */
.phrase-category {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.phrase-text { font-size: 1.4rem; line-height: 1.4; }

/* Catalog list item layout and play button */
details ul { list-style: none; margin: 8px 0 0; padding: 0; }
details ul li { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-bottom: 1px dashed #eee; }
.phrase-item-text { flex: 1 1 auto; margin-right: 10px; }
.play-phrase { flex: 0 0 auto; border: none; background: #111827; color: #fff; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.play-phrase:hover { opacity: 0.9; }
