/* ============================================================
   Nob Hill Publishing — Modeling and Analysis Principles Page Stylesheet
   ============================================================ */

:root {
  --indigo:       #1e40af;
  --indigo-dark:  #1e3a8a;
  --indigo-light: #eff6ff;
  --blue:         #1d4ed8;
  --bg:           #f8f9fa;
  --surface:      #ffffff;
  --border:       #e5e7eb;
  --text:         #1f2937;
  --muted:        #6b7280;
  --radius:       8px;
  --shadow:       0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
}

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

body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

.site-wrapper { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 3rem; }

.pub-banner {
  background: var(--indigo); color: #fff; text-align: center;
  padding: 0.6rem 1rem; margin: 0 -1.5rem 0; font-size: 0.85rem;
}
.pub-banner a { color: rgba(255,255,255,0.85); }
.pub-banner a:hover { color: #fff; text-decoration: underline; }

.book-header {
  background: var(--indigo); color: #fff;
  margin: 0 -1.5rem 2rem; padding: 2rem 2.5rem;
}
.book-header h1 { color: #fff; font-size: 1.6rem; margin-bottom: 0.4rem; }
.book-header h2 { color: rgba(255,255,255,0.8); font-size: 1.05rem; font-weight: 400; margin-bottom: 1rem; }

.authors { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 0.75rem; }
.author { font-size: 0.9rem; line-height: 1.5; }
.author-name { font-weight: 600; font-size: 0.95rem; display: block; }
.author-inst { color: rgba(255,255,255,0.7); display: block; }

.hero { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; }
.book-cover {
  flex-shrink: 0; width: 160px;
  border: 3px solid var(--border); border-radius: 4px;
  display: block; box-shadow: var(--shadow);
}
.book-description { flex: 1; }
.book-description ul { list-style: disc; padding-left: 1.25rem; }

.order-box {
  background: var(--indigo-light); border: 2px solid var(--indigo);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.order-box h2 {
  color: var(--indigo); font-size: 1.1rem; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.order-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.order-row img { display: block; width: 90px; border: 2px solid var(--border); border-radius: 4px; }
.order-price { font-size: 1.2rem; font-weight: 700; color: var(--indigo); }
.book-specs { font-size: 0.875rem; color: var(--muted); line-height: 1.8; margin: 0; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.card h2 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--indigo); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--indigo-light);
}

blockquote {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--indigo);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: #374151; font-size: 0.95rem;
}
blockquote:last-child { margin-bottom: 0; }
.attribution {
  margin-top: 0.75rem; font-style: normal;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
}

.adoptions-grid {
  columns: 2; column-gap: 2rem;
  list-style: none; padding: 0; margin: 0; font-size: 0.9rem;
}
.adoptions-grid li { padding: 0.2rem 0; border-bottom: 1px solid var(--border); break-inside: avoid; }

.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem;
}
.link-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--blue); transition: background 0.15s;
}
.link-item:hover { background: #eff6ff; text-decoration: none; }

.site-footer {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted); text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: center; }
  .book-header { padding: 1.5rem; text-align: center; }
  .authors { justify-content: center; }
  .adoptions-grid { columns: 1; }
  .order-row { flex-direction: column; align-items: flex-start; }
}
