:root {
  --paper: #f3ead9;
  --paper-deep: #e3d2b7;
  --ink: #201812;
  --muted: #735f4c;
  --line: rgba(68, 43, 22, 0.22);
  --wood: #5b3420;
  --wood-dark: #2d1a12;
  --brass: #b8863b;
  --green: #1f4f45;
  --red: #8f332d;
  --shadow: 0 18px 38px rgba(31, 20, 11, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 134, 59, 0.18), transparent 28rem),
    linear-gradient(180deg, #1d130e 0, #1d130e 28rem, var(--paper) 28rem, #efe3ce 100%);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: #f8eedb;
  background: rgba(29, 19, 14, 0.88);
  border-bottom: 1px solid rgba(248, 238, 219, 0.13);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), #f1d99f);
  box-shadow: 8px 6px 0 rgba(143, 51, 45, 0.9), 17px -4px 0 rgba(31, 79, 69, 0.9);
  transform: rotate(-8deg);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

nav a {
  color: rgba(248, 238, 219, 0.82);
  text-decoration: none;
}

nav a:hover {
  color: #fff8e8;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff2d8;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 14, 8, 0.92), rgba(24, 14, 8, 0.62) 48%, rgba(24, 14, 8, 0.2)),
    linear-gradient(180deg, rgba(24, 14, 8, 0.2), rgba(24, 14, 8, 0.82));
}

.hero-inner {
  position: relative;
  width: min(980px, 100%);
  padding: 120px clamp(22px, 6vw, 72px) 68px;
}

.kicker,
.section-label,
.shelf-head span,
.book-card span,
.buy-text,
.site-footer small {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0;
}

.kicker,
.section-label {
  margin: 0 0 12px;
  color: #d7ad63;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 8vw, 7.3rem);
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 242, 216, 0.86);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 242, 216, 0.42);
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  color: #21140d;
  background: #e5b86a;
  border-color: #e5b86a;
}

.button.secondary {
  color: #fff2d8;
  background: rgba(255, 242, 216, 0.08);
}

.intro-band {
  padding: clamp(32px, 5vw, 58px) clamp(18px, 4vw, 48px);
  background: #efe2cb;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1.18fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
}

.intro-grid h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.shelves {
  padding: clamp(44px, 7vw, 86px) clamp(14px, 3vw, 42px);
  background:
    linear-gradient(90deg, rgba(71, 39, 22, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f5eddc, #ecdbc2);
  background-size: 34px 34px, auto;
}

.section-heading,
.shelf,
.closing-note,
.site-footer {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 820px;
}

.shelf {
  position: relative;
  margin-top: clamp(34px, 6vw, 58px);
  padding: clamp(18px, 3vw, 30px) clamp(14px, 2.4vw, 26px) 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 0.86), rgba(255, 250, 236, 0.58)),
    linear-gradient(90deg, rgba(91, 52, 32, 0.08), transparent 18%, transparent 82%, rgba(91, 52, 32, 0.08));
  border: 1px solid rgba(91, 52, 32, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(45, 26, 18, 0.12);
}

.shelf::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 15px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(148, 91, 48, 0.95), rgba(72, 39, 22, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 12px, transparent 12px 26px);
  box-shadow: 0 12px 20px rgba(42, 22, 13, 0.24);
}

.shelf-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 22px;
  align-items: start;
}

.shelf-head span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.shelf-head h3 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.shelf-head p {
  max-width: 740px;
  margin: 8px 0 0;
  color: var(--muted);
}

.book-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  align-items: stretch;
}

.book-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 7px;
  min-height: 100%;
  padding: 12px 10px 13px;
  color: var(--ink);
  background: rgba(255, 251, 242, 0.84);
  border: 1px solid rgba(91, 52, 32, 0.16);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(42, 24, 13, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 134, 59, 0.68);
  box-shadow: var(--shadow);
}

.book-card img,
.cover-fallback {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #d8c3a2;
  box-shadow: 0 12px 20px rgba(31, 20, 11, 0.2);
}

.cover-fallback {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #f8ecd3;
  background:
    linear-gradient(135deg, rgba(32, 24, 18, 0.08), rgba(32, 24, 18, 0.28)),
    linear-gradient(160deg, var(--green), #17342f 54%, var(--red));
  font-family: "Cinzel", serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.book-card strong {
  display: block;
  margin-top: 5px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  line-height: 1.12;
}

.book-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.book-card p {
  margin: 0;
  color: #4f4034;
  font-size: 0.98rem;
  line-height: 1.25;
}

.buy-text {
  align-self: end;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-book {
  background: linear-gradient(180deg, rgba(255, 248, 229, 0.98), rgba(238, 216, 176, 0.82));
  border-color: rgba(184, 134, 59, 0.48);
}

.closing-note {
  margin-top: clamp(38px, 7vw, 68px);
  padding: clamp(24px, 4vw, 42px);
  color: #fff2d8;
  background:
    linear-gradient(135deg, rgba(31, 79, 69, 0.92), rgba(32, 24, 18, 0.96)),
    linear-gradient(90deg, rgba(184, 134, 59, 0.18), transparent);
  border-radius: 8px;
}

.closing-note h2 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.closing-note p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 242, 216, 0.82);
  font-size: 1.16rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.9fr);
  gap: 24px;
  padding: 32px clamp(14px, 3vw, 42px) 44px;
  color: rgba(255, 242, 216, 0.74);
  background: #1d130e;
}

.site-footer p {
  margin: 0;
}

.site-footer small {
  display: block;
  color: rgba(255, 242, 216, 0.58);
  font-size: 0.68rem;
  line-height: 1.5;
}

@media (max-width: 780px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: relative;
    display: grid;
    gap: 12px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-inner {
    padding-top: 78px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .intro-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .book-card {
    padding: 10px 9px 12px;
  }

  .book-card strong {
    font-size: 0.92rem;
  }

  .book-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
