/* DiamondEye Publishing — Main Stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d1a;
  --surface:  #1a1a2e;
  --surface2: #16213e;
  --accent:   #e94560;
  --text:     #eaeaea;
  --muted:    #9a9ab0;
  --border:   #2a2a45;
  --max:      960px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ── SECTION ── */
section {
  padding: 72px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── BOOK CARD ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.book-card:hover { border-color: var(--accent); }

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--surface2);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 3rem;
}

.book-info {
  padding: 24px;
}

.book-info h3 { margin-bottom: 8px; }

.book-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.book-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.book-links a {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.list-check {
  list-style: none;
  margin-top: 16px;
}

.list-check li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-check li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: bold;
}

.list-x li::before {
  content: '✗ ';
  color: var(--border);
}

/* ── PROSE (about, privacy, terms pages) ── */
.prose {
  max-width: 720px;
}

.prose h2 { margin-top: 48px; margin-bottom: 12px; font-size: 1.5rem; }
.prose h3 { margin-top: 32px; margin-bottom: 8px; }
.prose p  { color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; color: var(--muted); margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 96px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 340px;
  margin-top: 8px;
}

.footer-nav ul { list-style: none; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); text-decoration: none; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-header p { color: var(--muted); margin-top: 12px; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
}

form { max-width: 480px; }

label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 140px; resize: vertical; }

button[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 32px;
  cursor: pointer;
  transition: opacity 0.2s;
}

button[type=submit]:hover { opacity: 0.85; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.82rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 24px 56px; }
  section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
}
