:root {
  --ink: #172b2a;
  --ink-soft: #35504d;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --coral: #e96f51;
  --coral-dark: #cc583d;
  --sage: #a9c6b6;
  --sage-light: #dce9df;
  --line: rgba(23, 43, 42, 0.12);
  --shadow: 0 22px 60px rgba(23, 43, 42, 0.12);
}

body {
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.bookswish-nav {
  position: relative;
  z-index: 10;
  padding: 1.1rem 0;
  background: var(--ink);
}

.bookswish-nav .container,
.bookswish-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookswish-nav .navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.bookswish-nav .navbar-brand:hover,
.footer-brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--ink);
  background: var(--coral);
  border-radius: 50% 50% 50% 0;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-cta {
  padding: 0.65rem 1rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.nav-links .nav-cta:hover {
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 88%, rgba(169, 198, 182, 0.18), transparent 25rem),
    var(--ink);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.hero-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-orb-one {
  width: 28rem;
  height: 28rem;
  top: -17rem;
  right: 12%;
}

.hero-orb-two {
  width: 13rem;
  height: 13rem;
  right: -5rem;
  bottom: 2rem;
  background: rgba(233, 111, 81, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 43rem;
  margin: 1.1rem 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-copy h1 em {
  color: var(--sage);
  font-weight: 400;
}

.hero-copy > p {
  max-width: 34rem;
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-detail strong {
  color: #fff;
  font-weight: 400;
}

.stacked-books {
  display: flex;
  width: 4.4rem;
  flex-direction: column;
  gap: 0.2rem;
}

.stacked-books i {
  display: block;
  height: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.15rem;
}

.stacked-books i:nth-child(1) {
  width: 70%;
  margin-left: auto;
  background: var(--coral);
}

.stacked-books i:nth-child(2) {
  width: 100%;
  background: var(--sage);
}

.stacked-books i:nth-child(3) {
  width: 80%;
  margin-left: 8%;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  box-shadow: 1rem 1rem 0 rgba(169, 198, 182, 0.12), var(--shadow);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.form-icon,
.inventory-icon {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
}

.form-kicker,
.inventory-heading p {
  margin: 0 0 0.18rem;
  color: #788b88;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-heading h2,
.inventory-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field label span {
  color: #93a09e;
  font-size: 0.7rem;
  font-weight: 500;
}

.lookup-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: #f8f5ee;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lookup-form input:not([type="hidden"]):focus {
  background: #fff;
  border-color: var(--sage);
  box-shadow: 0 0 0 0.22rem rgba(169, 198, 182, 0.25);
}

.submit-book {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  margin-top: 1.35rem;
  color: #fff;
  background: var(--coral);
  border: 0;
  border-radius: 0.65rem;
  font-weight: 800;
  box-shadow: 0 0.55rem 1.1rem rgba(233, 111, 81, 0.22);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-book:hover {
  background: var(--coral-dark);
  box-shadow: 0 0.7rem 1.4rem rgba(233, 111, 81, 0.28);
  transform: translateY(-1px);
}

.form-message {
  padding: 0.8rem 0.9rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.55rem;
  font-size: 0.82rem;
}

.collection-section {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
}

.section-heading h2 {
  margin: 0.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.book-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.book-count strong {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.book-grid {
  margin-bottom: 4.5rem;
}

.book-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.8rem rgba(23, 43, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.book-card:hover {
  box-shadow: 0 1.25rem 2.7rem rgba(23, 43, 42, 0.12);
  transform: translateY(-0.35rem);
}

.book-cover-wrap {
  position: relative;
  display: grid;
  min-height: 21rem;
  place-items: center;
  padding: 2.2rem 2rem 1.65rem;
  background:
    linear-gradient(135deg, rgba(169, 198, 182, 0.28), rgba(246, 241, 231, 0.55)),
    var(--sage-light);
}

.book-cover-wrap::after {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  content: "";
  border: 1px solid rgba(23, 43, 42, 0.1);
  border-radius: 50%;
}

.book-number {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: min(10.8rem, 65%);
  margin: 0;
  filter: drop-shadow(0.7rem 0.8rem 0.75rem rgba(23, 43, 42, 0.2));
}

.book-cover img {
  display: block;
  width: 100%;
  height: 15.5rem;
  object-fit: cover;
  border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;
}

.cover-placeholder {
  display: flex;
  height: 15.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  color: rgba(23, 43, 42, 0.58);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(23, 43, 42, 0.2);
  border-radius: 0.4rem;
  font-size: 0.72rem;
}

.cover-placeholder i {
  font-size: 2rem;
}

.book-card-body {
  position: relative;
  display: flex;
  min-height: 14rem;
  padding: 1.5rem;
  flex-direction: column;
}

.book-author {
  margin-bottom: 0.5rem;
  color: var(--coral);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-card h3 {
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.book-subtitle {
  margin-bottom: 0.8rem;
  color: #69807c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
}

.book-note {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: #657572;
  font-size: 0.82rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.remove-book {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.38rem;
  margin-top: auto;
  color: #879491;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.remove-book:hover {
  color: var(--coral-dark);
}

.inventory-panel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 0.6rem 2rem rgba(23, 43, 42, 0.05);
}

.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.45rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.inventory-heading > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.inventory-heading > span {
  color: #899793;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.inventory-icon {
  background: var(--ink);
}

.inventory-table {
  min-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
}

.inventory-table thead {
  background: #f2eee5;
}

.inventory-table th {
  padding: 0.8rem 1.7rem;
  color: #7e8b88;
  border: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-table td {
  padding: 1rem 1.7rem;
  border-color: var(--line);
  font-size: 0.82rem;
  vertical-align: middle;
}

.inventory-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-id {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--coral-dark);
  background: rgba(233, 111, 81, 0.1);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
}

.inventory-table .table-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.inventory-table .table-note {
  max-width: 20rem;
  color: #87918f;
}

.empty-shelf {
  padding: 5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(23, 43, 42, 0.2);
  border-radius: 1rem;
}

.empty-shelf > span {
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--coral);
  background: rgba(233, 111, 81, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
}

.empty-shelf h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.empty-shelf p {
  max-width: 31rem;
  margin: 0.7rem auto 1.2rem;
  color: #71807d;
}

.empty-shelf a {
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.bookswish-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
}

.bookswish-footer p,
.bookswish-footer > .container > span {
  margin: 0;
  font-size: 0.76rem;
}

.bookswish-footer .brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.8rem;
}

.bookswish-footer .footer-brand {
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .form-card {
    max-width: 40rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .collection-section {
    padding: 4rem 0;
  }

  .bookswish-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .bookswish-nav {
    padding: 0.85rem 0;
  }

  .nav-links a:first-child {
    display: none;
  }

  .nav-links .nav-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .book-cover-wrap {
    min-height: 19rem;
  }

  .inventory-heading {
    padding: 1.2rem;
  }

  .inventory-heading > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-card,
  .submit-book,
  .nav-links a {
    transition: none;
  }
}
