/* Malcolm Andrew Clark – author site */
:root {
  --bg: #1b1a1a;
  --bg-alt: #232121;
  --gold: #d4af37;
  --copper: #b87333;
  --text: #e6e2da;
  --muted: #aeaeae;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(27, 26, 26, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; color: var(--gold); text-decoration: none; }
.nav a {
  margin-left: 28px; color: var(--muted); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a:hover { color: var(--gold); }

/* Shared type */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--gold); margin: 0; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
.eyebrow {
  margin: 0 0 10px; color: var(--copper); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.rule { width: 60px; height: 2px; background: var(--copper); margin: 22px 0 28px; }
.rule.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.button {
  display: inline-block; padding: 12px 28px;
  border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--gold); color: var(--bg); }
.button.small { padding: 9px 20px; font-size: 0.75rem; }

/* Hero */
.hero { padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: center; }
.portrait { width: 100%; height: auto; border: 1px solid rgba(212, 175, 55, 0.35); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 14px 0 32px; }

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 20px; }
.book { text-align: center; }
.book img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  margin-bottom: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.book h3 { margin: 8px 0 16px; }
.tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); border: 1px solid #444; padding: 3px 10px;
}
.tag.available { color: var(--gold); border-color: var(--gold); }

/* Stores */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stores a {
  padding: 12px 22px; border: 1px solid #444; color: var(--text);
  text-decoration: none; font-size: 0.95rem; transition: border-color 0.2s, color 0.2s;
}
.stores a:hover { border-color: var(--gold); color: var(--gold); }

/* Footer */
.site-footer {
  padding: 30px 0; text-align: center; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Phones and tablets */
@media (max-width: 800px) {
  .nav a { margin-left: 16px; font-size: 0.72rem; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; text-align: center; }
  .portrait { max-width: 300px; margin: 0 auto; }
  .books { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-left: auto; margin-right: auto; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .brand { font-size: 0.95rem; white-space: nowrap; gap: 8px; }
  .nav { white-space: nowrap; }
  .nav a { margin-left: 12px; font-size: 0.66rem; letter-spacing: 0.08em; }
}

/* Placeholder for books without a cover yet */
.cover-placeholder {
  aspect-ratio: 2 / 3; margin-bottom: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background: linear-gradient(160deg, #2a2727, #161515);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.cover-placeholder span { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1.25; }
.cover-placeholder small { color: var(--copper); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* Clover logo in the header */
.logo { width: 36px; height: 36px; flex-shrink: 0; }
@media (max-width: 480px) { .logo { width: 28px; height: 28px; } }
