/* ── Brand tokens ───────────────────────────────────────── */
:root {
  --blue:  #2563eb;
  --cyan:  #22d3ee;
  --white: #ffffff;
  --page-bg: #f0f4f8;
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.10);
}

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1e293b;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.30);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav a:hover {
  color: var(--cyan);
}

/* ── Main content ───────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

/* ── Book list ──────────────────────────────────────────── */
.list {
  width: 100%;
  max-width: 640px;
}

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.list-row img {
  grid-row: 1 / 3;
}

.list-row .info {
  grid-column: 2;
  grid-row: 1;
}

.list-col-wrap {
  grid-column: 2;
  grid-row: 2;
}

.list-row .btn:first-of-type {
  grid-column: 3;
  grid-row: 1 / 3;
}

.list-row .btn:last-of-type {
  grid-column: 4;
  grid-row: 1 / 3;
}

/* Accent the action buttons with brand cyan on hover */
.list-row .btn:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.skeleton-row {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.70);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer .logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .logo-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer .brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.site-footer .brand-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.site-footer .footer-copy {
  font-size: 0.8rem;
}

.site-footer .footer-links {
  display: flex;
  gap: 1.25rem;
}

.site-footer .footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.site-footer .footer-links a:hover {
  color: var(--cyan);
}

/* ── Accent stripe between header and page ──────────────── */
.accent-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}