/* Novellum storefront — design tokens per Build Spec v3 §5.
   Palette: yellow #ffd43b on creams #fff6e6/#ffe9c9, ink #7a4b00/#241708.
   System fonts only: Georgia (serif) + system sans stack. */

:root {
  --yellow: #ffd43b;
  --cream-1: #fff6e6;
  --cream-2: #ffe9c9;
  --ink: #241708;
  --brown: #7a4b00;
  --grey: #555555;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  min-height: 100vh;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 20px 80px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--cream-1); border-bottom: 2px solid var(--yellow);
}
header.site a.brand {
  font-family: var(--serif); font-size: 22px; font-weight: bold; color: var(--brown);
  text-decoration: none;
}
header.site nav a { color: var(--ink); text-decoration: none; margin-left: 18px; font-size: 14px; }

h1, h2, h3 { font-family: var(--serif); color: var(--brown); }
h1 { font-size: 28px; }

.card {
  background: #fff; border: 1px solid var(--cream-2); border-radius: 12px;
  padding: 22px; margin: 18px 0; box-shadow: 0 2px 10px rgba(122,75,0,0.06);
}

.genre-shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.genre-chip {
  padding: 8px 16px; border-radius: 20px; border: 2px solid var(--cream-2);
  background: var(--cream-1); cursor: pointer; font-size: 14px; user-select: none;
}
.genre-chip.selected { background: var(--yellow); border-color: var(--brown); font-weight: 600; }
.genre-chip[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

label { display: block; font-size: 13px; color: var(--grey); margin: 14px 0 4px; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cream-2); border-radius: 8px;
  font-family: var(--sans); font-size: 15px; background: var(--cream-1);
}
textarea { min-height: 90px; resize: vertical; }

.tier-options { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-option {
  flex: 1; min-width: 140px; border: 2px solid var(--cream-2); border-radius: 10px;
  padding: 14px; cursor: pointer; background: var(--cream-1);
}
.tier-option.selected { border-color: var(--brown); background: var(--yellow); }
.tier-option .price { font-family: var(--serif); font-size: 20px; }

button.primary {
  background: var(--yellow); color: var(--ink); border: 2px solid var(--brown);
  padding: 12px 22px; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
}
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary {
  background: transparent; border: 1px solid var(--brown); color: var(--brown);
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
}

.arrow-hint {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brown);
  font-weight: 600; font-size: 14px; margin-top: 6px;
}
.arrow-hint .arrow { color: var(--yellow); -webkit-text-stroke: 1px var(--brown); font-size: 20px; }

.sarah {
  display: flex; align-items: flex-start; gap: 12px; margin: 16px 0;
  background: var(--cream-1); border-radius: 12px; padding: 14px;
}
.sarah img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sarah .bubble { font-size: 14px; }

.consent-box {
  background: var(--cream-1); border: 1px solid var(--cream-2); border-radius: 10px;
  padding: 14px; font-size: 13px; color: var(--grey); display: flex; gap: 10px; align-items: flex-start;
}
.consent-box input { width: auto; margin-top: 3px; }

.notice { font-size: 13px; color: var(--grey); }
.error-box { background: #fdecec; border: 1px solid #e3a; color: #8a2222; border-radius: 8px; padding: 12px; font-size: 14px; }

.preview-text {
  font-family: var(--serif); font-size: 16px; line-height: 1.6; white-space: pre-wrap;
  background: var(--cream-1); border-radius: 10px; padding: 18px;
}

footer.site {
  text-align: center; font-size: 12px; color: var(--grey); padding: 30px 20px;
}
footer.site a { color: var(--brown); }
