/* Last Light Books - aristocratic design language.
   Two palettes: body.light (paper) / body.dark (ink). */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital@0;1&display=swap');

:root {
  --gold: #a5843c;
  --gold-soft: #c2a869;
}

body.light {
  --bg: #fbfaf6;
  --ink: #16191f;
  --muted: #6d6a61;
  --hairline: #d9d2c0;
  --panel: #f4f1e8;
}
body.dark {
  --bg: #1e2430;
  --ink: #ece6d8;
  --muted: #98917e;
  --hairline: #39435a;
  --panel: #242c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 1.22rem;
}

h1, h2, h3, .display { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }

/* Header: centered, quiet */
header { padding: 44px 0 0; text-align: center; }
header .wordmark img { height: 104px; max-width: 86vw; }
nav { margin-top: 26px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.88rem;
  margin: 0 22px;
}
nav a:hover { color: var(--gold); }
.header-rule {
  width: 100%; height: 1px;
  background: var(--hairline);
  margin-top: 30px;
}

/* Hero */
.hero { text-align: center; padding: 96px 24px 88px; }
.hero .tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  color: var(--ink);
}
.hero .sub {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Ornament */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 72px; background: var(--gold-soft); opacity: 0.6;
}

/* Sections */
section { padding: 72px 0; }
.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  margin-bottom: 52px;
}

/* Catalogue */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 44px 34px;
}
.book { text-align: center; }
.book img {
  width: 100%;
  max-width: 215px;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  transition: opacity 0.25s ease;
}
.book a:hover img { opacity: 0.85; }
.book h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.book .num {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 4px;
}
.book .status {
  color: var(--gold);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-top: 6px;
  font-size: 1.15rem;
}

/* Author */
.author { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.author .inner {
  display: flex; gap: 56px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.author img { width: 235px; border: 1px solid var(--hairline); }
.author .bio { max-width: 520px; }
.author .bio .section-title { text-align: left; }
.author .bio p { margin-top: 18px; color: var(--ink); }
.textlink {
  display: inline-block;
  margin-top: 26px;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 6px;
}
.textlink:hover { color: var(--ink); border-color: var(--ink); }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter p { max-width: 470px; margin: 0 auto; color: var(--muted); }
.newsletter form {
  margin-top: 34px;
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
}
.newsletter input[type="email"] {
  padding: 13px 18px;
  font-size: 1rem;
  font-family: 'EB Garamond', serif;
  border: 1px solid var(--hairline);
  border-right: none;
  background: transparent;
  color: var(--ink);
  min-width: 300px;
  outline: none;
}
.newsletter input[type="email"]:focus { border-color: var(--gold); }
.newsletter button {
  padding: 13px 30px;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
}
.newsletter button:hover { background: var(--gold); color: var(--bg); }

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 40px 24px 48px;
  color: var(--muted);
  font-size: 1rem;
}
footer .mark img { height: 40px; opacity: 0.9; margin-bottom: 14px; }

p { text-wrap: pretty; }
.lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 28px;
}
.prose { text-align: left; }
.prose p + p { margin-top: 20px; }
