:root {
  --paper: #f3ecdd;
  --ink: #221c15;
  --accent: #8b5a3c;
  --muted: #6b5f4f;
  --line: #ddd0b8;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light only;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: 62rem;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}
@media (min-width: 48rem) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* nav */
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
}
.nav-links {
  display: none;
  gap: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
@media (min-width: 42rem) { .nav-links { display: flex; } }

/* hamburger button — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
}
@media (min-width: 42rem) { .nav-toggle { display: none; } }

/* overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 21, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* drawer — slides from the right */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 320px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 31;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  padding-top: 8px;
}
.nav-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  margin-bottom: 8px;
}
@media (min-width: 42rem) { .nav-drawer, .nav-overlay { display: none; } }

/* brand hero — just the name, nothing more */
.brand-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.brand-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  margin: 0;
  letter-spacing: 0.01em;
}

/* section shared */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}
.section-head a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

/* actus */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex;
  gap: 1.5rem;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.news-list li:first-child { border-top: none; }
.news-date {
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 6.5rem;
}
.news-title { margin: 0; }

/* catalogue */
.book-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.cover-placeholder {
  flex: none;
  width: 130px;
  height: 190px;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}
.book-info p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}
.book-info a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* cta */
.cta {
  text-align: center;
  padding: 56px 0;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 1.4rem;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* featured book — centered, single title */
.featured-book {
  padding: 24px 0 72px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.featured-book--top { padding-top: 64px; border-top: none; }
.coming-soon {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 14px;
  margin-bottom: 24px;
}
.cover-image {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
}
.cover-placeholder--lg {
  width: 200px;
  height: 290px;
  margin: 0 auto 28px;
}
.featured-book h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 0.3rem;
}
.featured-tag {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.featured-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.featured-actions .btn {
  width: 240px;
  text-align: center;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* newsletter + social, bottom block */
.newsletter-block {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: #eee3cd;
}
.newsletter-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.newsletter-block p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.newsletter-form input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  min-width: 240px;
}
.newsletter-form button { border: none; cursor: pointer; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.social-links a { text-decoration: none; color: var(--muted); }
.social-links a:hover { color: var(--ink); }

/* footer */
.site-footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-links a { text-decoration: none; color: var(--ink); }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
