/* Grison Press publisher site */

@font-face {
  font-family: "Bebas Neue";
  src: url("/static/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond12-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond12-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond12-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond12-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111417;
  --charcoal: #3f4143;
  --muted: #777879;
  --ivory: #f2ede5;
  --ivory-2: #e7e2da;
  --gold: #b88a3b;
  --gold-deep: #8c6a2b;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Bebas Neue", Impact, Arial, sans-serif;
  --page-width: 980px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
}

a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Header */
.header {
  background: var(--ink);
  color: var(--ivory);
  padding: 18px 0;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--ivory);
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover,
.wordmark:focus {
  color: var(--gold);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: var(--gold);
}

/* Hero */
.hero {
  background: var(--ivory);
  padding: 56px 24px 64px;
  text-align: center;
}

.hero-logo {
  width: min(660px, 90%);
  margin: 0 auto 32px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  letter-spacing: 6px;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin: 0 auto;
  max-width: 680px;
}

.tagline {
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

/* Main layout */
main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.section {
  margin-bottom: 64px;
}

.imprint-section {
  border-top: 2px solid var(--gold);
  padding-top: 28px;
  margin-bottom: 56px;
}

.imprint-header h2 {
  margin: 0 0 6px;
}

.imprint-desc {
  color: var(--charcoal);
  margin: 0 0 20px;
  font-style: italic;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: 1.5px;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--charcoal);
  max-width: 720px;
}

/* Book cards */
.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-2);
  border: 1px solid #d7d2ca;
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.book-card:hover {
  box-shadow: 0 8px 24px rgba(17, 20, 23, 0.08);
  transform: translateY(-3px);
}

.book-card a {
  text-decoration: none;
  color: var(--ink);
}

.cover-wrap {
  margin-bottom: 14px;
}

.cover-wrap img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #d7d2ca;
}

.cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #d7d2ca;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.book-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.book-meta {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.book-status {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 12px;
}

.book-status.development,
.book-status.production_approved {
  background: var(--charcoal);
  color: var(--ivory);
}

.book-summary {
  font-size: 0.97rem;
  color: var(--charcoal);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Book detail */
.book-detail {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 680px) {
  .book-detail {
    grid-template-columns: 1fr;
  }
}

.book-detail .cover-wrap,
.book-detail .cover-placeholder {
  max-width: 320px;
}

.book-detail h1 {
  margin-bottom: 8px;
}

.book-detail .imprint-line {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.book-detail .book-status {
  margin-bottom: 20px;
}

.book-body p {
  margin-bottom: 16px;
}

.book-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 1.5px;
  margin-top: 8px;
}

.book-cta:hover,
.book-cta:focus {
  background: var(--gold-deep);
  color: var(--ivory);
}

/* About / privacy */
.about-section,
.privacy-section {
  max-width: 720px;
}

.about-section h2,
.privacy-section h2 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 28px 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
}

.footer a {
  color: var(--gold);
}

.footer a:hover,
.footer a:focus {
  color: var(--ivory);
}

/* Errors */
.error-hero {
  text-align: center;
  padding: 64px 24px;
}

.error-hero h1 {
  font-size: 3.5rem;
}

/* Home extras */
.featured-books .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.imprints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.imprint-card {
  background: var(--ivory-2);
  border-left: 4px solid var(--gold);
  padding: 22px;
  border-radius: var(--radius);
}

.imprint-card h3 {
  margin-bottom: 8px;
}

.imprint-card p {
  margin-bottom: 14px;
  color: var(--charcoal);
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}
