/* ===================================
   ESPRESSO PUBLISHING HOUSE
   Website Stylesheet v1.0 — 2026
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* --- Variables --- */
:root {
  --espresso:     #1C0E06;
  --espresso-mid: #2E1A0E;
  --cream:        #F4EFE4;
  --warm-white:   #FAF7F2;
  --terracotta:   #B5622F;
  --gold:         #9E7B3F;
  --body-text:    #2A1A0C;
  --muted:        #7A6248;
  --border:       #D4C9B5;
  --nav-height:   72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--body-text);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.container--narrow {
  max-width: 740px;
}


/* ===========================
   NAVIGATION
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--espresso);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.88;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 1; }

.nav-logo-img {
  height: 58px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-img { opacity: 1; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--cream);
  opacity: 0.65;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}


/* ===========================
   HERO (Homepage)
   =========================== */

.hero {
  background-color: var(--espresso);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  padding-top: var(--nav-height);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 0 100px;
}

.hero-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 36px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 8.5vw, 108px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--cream);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.55;
  margin-bottom: 56px;
  max-width: 500px;
}

.hero-cta {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 228, 0.3);
  padding: 15px 34px;
  transition: all 0.25s ease;
}

.hero-cta:hover {
  background-color: rgba(244, 239, 228, 0.07);
  border-color: rgba(244, 239, 228, 0.6);
}


/* ===========================
   INTRO BAND
   =========================== */

.intro {
  padding: 88px 0;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border);
}

.intro-text {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.intro-text p {
  font-size: 21px;
  font-style: italic;
  line-height: 1.85;
  color: var(--body-text);
}


/* ===========================
   FEATURED TITLES (Homepage)
   =========================== */

.featured {
  padding: 96px 0 108px;
  background-color: var(--cream);
}

.section-label {
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 60px;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-cover {
  width: 100%;
  max-width: 200px;
  margin-bottom: 28px;
}

.cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-placeholder--dark {
  background-color: var(--espresso-mid);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cover image — natural aspect ratio, no cropping */
.cover-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.cover-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px;
  color: rgba(244, 239, 228, 0.2);
  font-style: italic;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-series {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 4px;
}

.book-author {
  font-size: 16px;
  color: var(--muted);
}

.book-translator {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.book-desc {
  font-size: 17px;
  line-height: 1.72;
  margin-top: 12px;
  color: var(--body-text);
}

.book-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.book-upcoming {
  font-size: 15px;
  font-style: italic;
  color: var(--terracotta);
  margin-top: 12px;
}

.book-card--upcoming {
  opacity: 0.9;
}


/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.07em;
  padding: 11px 22px;
  transition: all 0.22s ease;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--espresso);
  color: var(--cream);
}

.btn-primary:hover {
  background-color: var(--espresso-mid);
}

.btn-secondary {
  border: 1px solid var(--espresso);
  color: var(--espresso);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--espresso);
  color: var(--cream);
}


/* ===========================
   ABOUT TEASER (Homepage)
   =========================== */

.about-teaser {
  padding: 96px 0 100px;
  background-color: var(--warm-white);
}

.about-teaser-text h2 {
  font-size: 42px;
  margin-bottom: 26px;
}

.about-teaser-text p {
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 20px;
  max-width: 660px;
}

.text-link {
  font-size: 16px;
  color: var(--terracotta);
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--terracotta);
}


/* ===========================
   PAGE HEADER (Interior pages)
   =========================== */

.page-header {
  background-color: var(--espresso);
  padding: 108px 48px 68px;
  margin-top: var(--nav-height);
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 14px;
}

.page-header-sub {
  font-style: italic;
  color: var(--cream);
  opacity: 0.55;
  font-size: 18px;
}


/* ===========================
   ABOUT PAGE
   =========================== */

.about-content {
  padding: 84px 48px 120px;
}

.about-section {
  margin-bottom: 72px;
}

.about-section h2 {
  font-size: 46px;
  margin-bottom: 6px;
}

.about-subtitle {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.about-section p {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 72px 0;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px !important;
  font-weight: 500;
  margin-top: 20px !important;
}

.contact-email a {
  color: var(--terracotta);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-email a:hover {
  border-bottom-color: var(--terracotta);
}

.contact-address {
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px !important;
  line-height: 1.7;
}


/* ===========================
   BOOKS PAGE
   =========================== */

.books-page {
  padding: 84px 48px 120px;
}

.series-group {
  margin-bottom: 80px;
}

.series-heading {
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.book-list {
  display: flex;
  flex-direction: column;
}

.book-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 56px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.book-entry:last-child {
  border-bottom: none;
}

.book-entry-cover .cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
}

.book-entry-title {
  font-size: 38px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  line-height: 1.1;
}

.upcoming-badge {
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(181, 98, 47, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.book-entry-original {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 3px;
}

.book-entry-translator {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

.book-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.dot { opacity: 0.35; }

.book-entry-desc {
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 18px;
  color: var(--body-text);
}

.book-entry-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.book-entry-notify {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

.book-entry--upcoming {
  opacity: 0.88;
}


/* ===========================
   FOOTER
   =========================== */

.footer {
  background-color: var(--espresso);
  padding: 64px 0 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-tagline-small {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: var(--cream);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-contact a {
  font-size: 15px;
  color: var(--cream);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-contact a:hover { opacity: 1; }

.footer-address {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.4;
  margin-top: 8px;
  line-height: 1.65;
}

.footer-copy {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.28;
}


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 800px) {

  .container,
  .nav-inner { padding: 0 28px; }

  .hero { padding: 0 28px; }
  .hero-headline { font-size: clamp(48px, 13vw, 80px); }
  .hero-cta { padding: 13px 28px; }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .book-entry {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-entry-cover {
    max-width: 160px;
  }

  .book-entry-title {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-header { padding: 88px 28px 56px; }
  .about-content,
  .books-page { padding: 64px 28px 88px; }
}

@media (max-width: 520px) {

  .nav-logo { font-size: 11px; letter-spacing: 0.16em; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 15px; }

  .hero-inner { padding: 80px 0; }
  .hero-headline { font-size: clamp(40px, 15vw, 64px); }

  .intro-text p { font-size: 19px; }

  .book-entry-title {
    font-size: 26px;
    flex-direction: column;
    gap: 10px;
  }
}
