/* =========================================================
   MERCURY MERCHANT PRESS
   Neocities production stylesheet
   Root-directory architecture
   ========================================================= */

:root {
  --navy: #14253a;
  --navy-dark: #0c1826;
  --cream: #f7f2e9;
  --cream-deep: #eee5d7;
  --white: #fffdf9;
  --coral: #d35f47;
  --coral-soft: #edc9bd;
  --sage: #7d8976;
  --gold: #b79763;
  --text: #2d3741;
  --muted: #6b6e70;
  --border: rgba(20, 37, 58, 0.14);
  --shadow: 0 20px 55px rgba(20, 37, 58, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 14px;
  background: white;
}

.skip-link:focus {
  left: 10px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--coral);
}

/* HERO */

.hero {
  padding: 90px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(211, 95, 71, 0.18), transparent 30%),
    linear-gradient(145deg, #fbf7f0, #efe5d8);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.97;
}

h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0;
  color: #535d67;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.amazon-button {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.primary-button,
.amazon-button {
  background: var(--navy);
  color: white;
}

.primary-button,
.secondary-button {
  padding: 13px 20px;
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.primary-button:hover,
.amazon-button:hover {
  background: var(--coral);
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.hero-covers img {
  width: 100%;
  border: 1px solid rgba(20, 37, 58, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-covers img:nth-child(2) {
  margin-top: 38px;
}

.hero-covers img:nth-child(3) {
  margin-top: 16px;
}

.publisher-strip {
  padding: 18px 0;
  background: var(--navy);
  color: white;
}

.publisher-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.publisher-strip p {
  margin: 0;
  color: #e5e8eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* SECTIONS */

.section {
  padding: 92px 0;
}

.section-heading,
.series-heading {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.section-intro,
.series-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.category-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
}

.category-card h3 {
  margin: 8px 0 14px;
  font-size: 31px;
  line-height: 1.06;
}

.category-card p {
  color: var(--muted);
}

.category-label {
  margin: 0 !important;
  color: var(--coral) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.active-category {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdf9, #f4e9de);
}

.active-category::after {
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(211, 95, 71, 0.19);
  border-radius: 50%;
  content: "";
}

.active-category a {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.future-category {
  background: #ece8e1;
}

.future-category span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* BOOKS */

.books-section {
  background: var(--white);
}

.series-heading {
  align-items: start;
}

.series-heading > div:first-child {
  max-width: 720px;
}

.series-copy {
  max-width: 650px;
  margin-top: 18px;
  font-size: 17px;
}

.series-order {
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream);
}

.series-order strong,
.series-order span {
  display: block;
}

.series-order strong {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.series-order span {
  margin-top: 5px;
  color: var(--coral);
  font-weight: 800;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.book-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cover-link {
  display: block;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-info {
  padding: 22px;
}

.book-number {
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-info h3 {
  margin: 5px 0;
  font-size: 27px;
  line-height: 1.08;
}

.author {
  margin: 6px 0 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.description {
  color: var(--muted);
}

.amazon-button {
  margin-top: 8px;
  padding: 10px 15px;
  font-size: 14px;
}

/* RESOURCE + ABOUT PREVIEWS */

.resource-preview,
.about-preview {
  padding: 82px 0;
}

.resource-preview {
  background: linear-gradient(145deg, #eee3d5, #f7f2e9);
}

.about-preview {
  background: var(--cream-deep);
}

.resource-preview-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.resource-preview p,
.about-preview p {
  color: #596068;
  font-size: 17px;
}

.text-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

/* INTERNAL PAGES */

.page-hero {
  padding: 88px 0 64px;
  background: linear-gradient(145deg, #fbf7f0, #efe5d8);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(48px, 7vw, 82px);
}

.page-body {
  padding: 70px 0 90px;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 48px;
  font-size: 34px;
}

.prose p,
.prose li {
  color: #555e66;
  font-size: 17px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

/* FOOTER */

.site-footer {
  padding: 54px 0 26px;
  background: var(--navy-dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer-brand {
  color: white;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b8c0c8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  color: #dce1e5;
  font-size: 14px;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .resource-preview-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-covers {
    max-width: 650px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .header-inner {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 60px 0 70px;
  }

  h1 {
    font-size: 50px;
  }

  .hero-text {
    font-size: 18px;
  }

  .section,
  .resource-preview,
  .about-preview {
    padding: 64px 0;
  }

  .section-heading,
  .series-heading {
    display: block;
  }

  .section-intro,
  .series-order {
    margin-top: 20px;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .book-card {
    transition: none;
  }
}
