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

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: #1c1a15; color: #f5f0e8;
  padding: 0.75rem 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; text-decoration: none; z-index: 1000;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

:root {
  --cream: #f5f0e8; --dark: #1c1a15; --mid: #3a3528;
  --muted: #5e5748; --rust: #7a3e2a; --rule: #c8bfa8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  background: var(--dark);
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}

:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

.page { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  display: block; z-index: 0;
}

/* ── Header ── */
header {
  position: relative; z-index: 2;
  padding: 1.75rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}

.header-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--cream);
}
.header-brand:hover .imprint-name { opacity: 0.75; }

.logo-mark { width: 32px; height: auto; flex-shrink: 0; }

.imprint-name {
  font-family: 'Cormorant SC', serif; font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.2em; color: var(--cream);
  transition: opacity 0.2s;
}

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-family: 'Cormorant SC', serif; font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--cream); text-decoration: none; opacity: 0.85;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 1; }

/* ── Panel ── */
.panel-wrapper {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: stretch; justify-content: flex-end;
}

.panel {
  background: var(--cream); width: 42%;
  padding: 3.5rem 3rem 3.5rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}

.forthcoming {
  font-family: 'Cormorant SC', serif; font-weight: 400;
  font-size: 0.75rem; letter-spacing: 0.28em; color: var(--muted);
  margin-bottom: 1.25rem;
}

.book-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.02;
  color: var(--dark); margin-bottom: 0.75rem;
}

.book-author {
  font-family: 'Cormorant SC', serif; font-weight: 400;
  font-size: 0.9rem; letter-spacing: 0.2em; color: var(--mid);
  margin-bottom: 1.75rem;
}

.rule { width: 2.5rem; height: 1px; background: var(--rust); border: none; margin-bottom: 1.75rem; }

.description {
  font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 400;
  line-height: 1.75; color: var(--mid); margin-bottom: 1rem;
}

.on-sale {
  display: inline-block;
  font-family: 'Cormorant SC', serif; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.2em; color: var(--rust);
  border: 1px solid var(--rust); padding: 0.55rem 1.25rem;
  margin-bottom: 2rem; width: fit-content;
}

.notify {
  font-size: 0.88rem; color: var(--muted);
  font-style: italic; line-height: 1.65;
}
.notify a {
  color: var(--rust); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 0.5px;
  transition: opacity 0.2s;
}
.notify a:hover { opacity: 0.7; }

/* ── Footer ── */
footer {
  position: relative; z-index: 2;
  background: var(--cream); width: 42%;
  align-self: flex-end;
  padding: 1.25rem 3rem 1.25rem 2.5rem;
  border-top: 0.5px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}

.footer-imprint {
  font-family: 'Cormorant SC', serif; font-weight: 400;
  font-size: 0.75rem; letter-spacing: 0.15em; color: var(--muted);
}
.footer-location { font-size: 0.8rem; font-style: italic; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page { min-height: auto; }
  .bg-image { position: relative; height: 55vw; min-height: 240px; object-position: center center; }
  header { position: absolute; top: 0; left: 0; right: 0; padding: 1.25rem 1.5rem; }
  .panel-wrapper { flex: none; }
  .panel { width: 100%; padding: 2.5rem 1.5rem; }
  footer { width: 100%; padding: 1.1rem 1.5rem; }
  nav { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .book-title { font-size: 2rem; }
  .panel { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
