/* IMPORT LOCAL ROCKSALT */
@font-face {
  font-family: 'RockSaltLocal';
  src: url('assets/fonts/rocksalt.ttf') format('truetype');
  font-display: swap;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY — LOCAL PARCHMENT BACKGROUND */
body {
  background: #f2e6c9 url('assets/parchment.jpg') center/cover repeat;
  color: #2a2a2a;
  font-family: Georgia, serif;
  line-height: 1.6;
  padding-bottom: 80px;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  padding: 25px 20px;
}

.logo {
  width: 140px;
  height: auto;
}

.site-title {
  font-family: 'RockSaltLocal', cursive;
  font-size: 2.4rem;
  margin-left: 20px;
}

.tagline {
  margin-left: auto;
  font-style: italic;
  opacity: 0.75;
}

/* NAV — VINTAGE TABS */
.catalog-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 0;
  border-top: 2px solid #3a2d1a;
  border-bottom: 2px solid #3a2d1a;
  background: rgba(255, 248, 232, 0.85);
}

.catalog-nav a {
  font-family: 'RockSaltLocal', cursive;
  font-size: 1.15rem;
  text-decoration: none;
  color: #2a2a2a;
}

.catalog-nav a:hover {
  text-decoration: underline;
}

/* CATALOG WRAPPER */
.catalog {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* VINTAGE PAGE STYLE */
.catalog-page {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid #3a2d1a;
  padding: 35px 25px;
  margin: 60px 0;
  box-shadow: 
    0 0 15px rgba(0,0,0,0.25),
    inset 0 0 25px rgba(0,0,0,0.15);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.2));
  animation: pageFlip 0.7s ease-out;
}

/* SUBTLE PAGE FOLD (left & right edges) */
.catalog-page::before,
.catalog-page::after {
  content: "";
  position: absolute;
  top: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.12),
    transparent
  );
  pointer-events: none;
}

.catalog-page::after {
  right: 0;
  transform: scaleX(-1);
}

/* HEADER STYLE */
.page-header h2 {
  font-family: 'RockSaltLocal', cursive;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* TEXT */
.page-text {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* BUTTON */
.btn {
  background: #3a2d1a;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background: #241b10;
}

/* PAGE NUMBER */
.catalog-page::after {
  content: attr(data-page);
  position: absolute;
  bottom: -32px;
  right: 10px;
  font-family: 'RockSaltLocal', cursive;
  font-size: 1.2rem;
  opacity: 0.65;
}

/* PAGE TURN ANIMATION */
@keyframes pageFlip {
  from {
    transform: rotateX(18deg) translateY(20px);
    opacity: 0;
  }
  to {
    transform: rotateX(0deg) translateY(0px);
    opacity: 1;
  }
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 25px;
  opacity: 0.65;
}
