* {
  box-sizing: border-box;
}

html {
  color: #2f2a26;
  background: #f4f0e9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body {
  margin: 0;
}

.discover-shell {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.discover-intro {
  margin-bottom: 40px;
}

.discover-eyebrow {
  margin: 0 0 8px;
  color: #776b60;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.discover-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  font-weight: 650;
}

.discover-lead {
  margin: 16px 0 0;
  color: #5e544c;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.discover-navigation {
  margin-top: 24px;
}

.discover-navigation a {
  color: #5f4639;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.discover-section {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #ded6cb;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.discover-section h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.discover-section > p {
  margin: 10px 0 0;
  color: #625950;
}

.discover-placeholder {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed #c9bfb3;
  border-radius: 8px;
  color: #81766b;
  background: rgba(244, 240, 233, 0.55);
}

.discover-shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.discover-shelf-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #ded6cb;
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.82);
}

.discover-shelf-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  line-height: 1.4;
}

.discover-shelf-book-count {
  margin: 8px 0 14px;
  color: #625950;
}

.discover-shelf-card a {
  color: #5f4639;
  text-underline-offset: 3px;
}

.discover-shelf-card a:focus-visible {
  outline: 2px solid #5f4639;
  outline-offset: 3px;
}

.discover-empty-state {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed #c9bfb3;
  border-radius: 8px;
  color: #81766b;
  background: rgba(244, 240, 233, 0.55);
}

@media (max-width: 560px) {
  .discover-shell {
    width: min(100% - 24px, 880px);
    padding: 40px 0 56px;
  }

  .discover-intro {
    margin-bottom: 28px;
  }

  .discover-section {
    padding: 20px;
  }

  .discover-shelf-grid {
    grid-template-columns: 1fr;
  }
}
