@font-face {
  font-family: Nunito;
  src: url("/brand/nunito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #fff8e9;
  --card: #fffcf6;
  --ink: #29233f;
  --muted: #4a4362;
  --purple: #5b4a8b;
  --lavender: #f1ecfb;
  --green: #36563e;
  --mint: #e3efe6;
  --line: #e7dfd2;
  --border: #cfc5b4;
  font:
    17px/1.55 Nunito,
    ui-rounded,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1,
h2 {
  font-weight: 900;
}
h2 {
  font-size: clamp(1.55rem, 4vw, 1.9rem);
}
h3 {
  font-size: 1.18rem;
}
a {
  color: var(--purple);
  font-weight: 800;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
button,
input {
  font: inherit;
}
input {
  color: inherit;
  min-width: 0;
}
label,
.quick-title {
  font-size: 0.89rem;
  font-weight: 800;
}
p,
li {
  overflow-wrap: anywhere;
}
.wide,
.narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}
.wide {
  max-width: 1200px;
}
.narrow {
  max-width: 960px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bar,
nav,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.bar {
  justify-content: space-between;
  padding-block: 18px;
}
.logo img {
  height: 52px;
  width: auto;
}
nav a {
  text-decoration: none;
}
.landing-header nav > a:not(.button) {
  padding: 10px 12px;
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 2px solid var(--purple);
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button:hover {
  filter: brightness(0.93);
}
.button.pill {
  min-height: 44px;
  border-radius: 999px;
}
.button.secondary {
  background: #fff;
  color: var(--purple);
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
}
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  padding-block: 24px 56px;
}
.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.eyebrow {
  color: var(--green);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intro {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 34em;
}
.hero-art {
  flex: 0 1 min(38%, 440px);
  min-width: min(260px, 100%);
  width: 440px;
}
.copy-row,
.lookup-row,
.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.copy-row input {
  flex: 1 1 205px;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: ui-monospace, monospace;
}
.quick-options {
  margin-top: -6px;
}
.chip {
  color: var(--purple);
  border: 2px solid #d9cff2;
  background: var(--lavender);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  font-size: 0.9rem;
}
.chip.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font:
    0.82rem/1.5 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--lavender);
  font-size: 0.94rem;
}
.notice svg {
  color: var(--purple);
  margin-top: 3px;
}
.lookup-band {
  border-block: 1px solid var(--line);
  background: var(--card);
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  padding-block: 56px;
}
.split > * {
  flex: 1 1 360px;
  min-width: 0;
}
.lookup-form {
  display: grid;
  gap: 8px;
}
.lookup-input {
  display: flex;
  align-items: center;
  flex: 1 1 188px;
  min-width: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding-left: 12px;
  color: var(--muted);
}
.lookup-input input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 0 10px 0 5px;
}
.lookup-input input:focus-visible {
  outline-offset: -2px;
}
.features {
  padding-block: 64px 24px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature p {
  margin-top: 4px;
  color: var(--muted);
}
.feature-icon,
.link-initial {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green);
  background: var(--mint);
  border-radius: 12px;
  font-weight: 900;
}
.feature-icon.purple {
  background: var(--lavender);
  color: var(--purple);
}
.prompts,
.save-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.prompts {
  display: grid;
  gap: 10px;
}
.prompts li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 16px;
}
.prompts li,
.tagline,
.book-author {
  font-family: Georgia, serif;
  font-style: italic;
}
.agents {
  padding-block: 40px 72px;
}
.agents .card {
  border: 2px dashed var(--border);
  padding: clamp(18px, 4vw, 32px);
}
.agents ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}
.agents code {
  background: var(--lavender);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid var(--line);
}
.tagline img {
  display: none;
}
.public-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.public-header .logo img {
  height: 40px;
}
.public-header .header-actions {
  gap: 8px;
  font-size: 0.89rem;
}
.compact .lookup-row {
  align-items: center;
  flex-wrap: nowrap;
}
.compact .lookup-input {
  border-radius: 999px;
}
.compact input {
  min-height: 40px;
}
.compact-submit {
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shelf {
  padding-block: 40px 72px;
}
.profile,
.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile {
  flex-wrap: wrap;
  justify-content: space-between;
}
.profile-info {
  min-width: 0;
}
.profile h1 {
  font-size: clamp(1.65rem, 4vw, 2.12rem);
  overflow-wrap: anywhere;
}
.identity,
.save-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.public-note {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 10vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6b9f7b;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}
.shelf-art {
  width: 150px;
}
.shelf-tabs {
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-top: 28px;
}
.shelf-tabs a {
  padding: 11px clamp(6px, 3vw, 18px);
  margin-bottom: -2px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
}
.shelf-tabs a[aria-current] {
  border-color: var(--purple);
  color: var(--purple);
}
.shelf-tabs span {
  padding: 1px 7px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--lavender);
}
.save-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.save-row > div {
  min-width: 0;
}
.save-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.save-title:hover {
  text-decoration: underline;
}
.link-initial {
  width: 40px;
  height: 40px;
}
.book-cover {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 84px;
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: 4px 8px 8px 4px;
}
.empty-state,
.lookup-error,
.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.empty-state {
  padding: 40px 8px 24px;
}
.empty-state img,
.lookup-error img {
  width: 200px;
}
.lookup-error {
  padding-block: 56px 72px;
  gap: 16px;
}
.lookup-error .lookup-form {
  width: min(100%, 520px);
  margin-block: 12px;
  text-align: left;
}
.auth-shell {
  align-self: center;
  flex: none;
  width: min(100%, 528px);
  margin: auto;
  padding: 32px 24px;
  display: grid;
  gap: 24px;
}
.auth-shell > .logo {
  justify-self: center;
}
.auth-shell > p {
  text-align: center;
}
.auth-card h1 {
  font-size: 1.77rem;
}
.auth-card {
  padding: clamp(20px, 5vw, 32px);
}
.auth-card .button {
  width: 100%;
}
.auth-field {
  gap: 8px;
}
.auth-field input {
  min-height: 52px;
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
}
.auth-field p {
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-field [aria-invalid] {
  border-color: #9b3028;
}
.auth-field .field-error {
  color: #9b3028;
}
.status-card img {
  width: 170px;
}
@media (max-width: 580px) {
  .landing-header nav {
    gap: 4px;
  }
  .landing-header nav > a:not(.button) {
    padding-inline: 6px;
  }
  .hero-art {
    flex-basis: min(100%, 290px);
  }
  .public-header .header-actions {
    width: 100%;
  }
  .shelf-art {
    width: 110px;
  }
}
