/* =============================================================
   Lido House Editions — shared stylesheet
   ============================================================= */

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

:root {
  /* Ink palette — WCAG AA compliant on parchment */
  --ink:              #1a1612;       /* primary text, ratio 16:1 */
  --text-secondary:   #3a342c;       /* darker body text for stronger contrast */       /* body text, ratio ~7:1 */
  --gold:             #7a5a1a;       /* accent text, ratio ~5:1 — use for text */
  --gold-decorative:  #b89a5a;       /* original gold, for NON-TEXT decoration only */
  --parchment:        #f7f3ec;
  --parchment-deep:   #efe8db;
  --line:             rgba(122, 90, 26, 0.35);
  --line-soft:        rgba(122, 90, 26, 0.18);

  /* Layout */
  --content-max:      1200px;
  --content-pad:      3rem;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Typography primitives ---------- */

.label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;   /* reduced from 0.4em */
  color: var(--gold);
  text-transform: uppercase;
}

.label--soft {
  color: var(--text-secondary);
}

.ornament {
  color: var(--gold-decorative);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  text-align: center;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  line-height: 1.1;          /* reduced from 1.15 */
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--text-secondary);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-style: italic;
}

p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 300;
}

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

/* ---------- Navigation ---------- */

.site-nav {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line-soft);
  padding: 1.75rem var(--content-pad) 1.5rem;
  opacity: 0;
  animation: fadeUp 1.1s ease forwards;
  animation-delay: 0.05s;
}

.site-nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.site-nav__brand img {
  height: 52px;
  width: auto;
  filter: brightness(0.82) contrast(1.05);
}

.site-nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-nav__wordmark-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-nav__wordmark-tag {
  font-family: 'Cormorant SC', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.site-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav__links a {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Shared container ---------- */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.rule {
  max-width: var(--content-max);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Beveled horizontal rule (two stacked lines) — used sparingly */
.rule--beveled {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255, 248, 232, 0.7);
  height: 2px;
  background: transparent;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 5rem var(--content-pad) 4rem;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.4s;
}

.hero--split {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  min-height: 70vh;
}

.hero__pretitle {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__pretitle::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.hero__lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 1.75rem 0 2rem;
  max-width: 44ch;
}

/* ---------- Hero image / banner ---------- */

.hero-banner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  padding: 0 var(--content-pad);
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
  animation-delay: 0.3s;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow:
    0 2px 0 rgba(26,22,18,0.04),
    0 14px 36px rgba(26,22,18,0.10);
  border: 1px solid var(--line-soft);
}

/* Portrait hero image — homepage study scene */
.hero-image--portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-image--portrait img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  box-shadow:
    0 2px 0 rgba(26,22,18,0.04),
    0 20px 46px rgba(26,22,18,0.12),
    0 6px 16px rgba(26,22,18,0.08);
  border: 1px solid var(--line-soft);
}

/* ---------- Book cover (debut title) ---------- */

.cover-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
}

.cover-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}

.cover-frame img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  box-shadow:
    0 1px 0 rgba(26,22,18,0.04),
    0 20px 50px rgba(26,22,18,0.14),
    0 6px 18px rgba(26,22,18,0.08);
}

/* ---------- CTA / inline links ---------- */

.cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-notify {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
}

.btn-notify:hover {
  background: var(--gold);
  color: var(--parchment);
}

.contact-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 0.15rem;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--gold); }

.divider-line {
  width: 1px;
  height: 2.25rem;
  background: var(--line);
}

/* ---------- Content sections ---------- */

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem var(--content-pad);
}

.section__eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.25rem;
}

.section__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* What we publish — three-column */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}

.category {
  text-align: center;
}

.category__mark {
  font-family: 'Cormorant SC', serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.category h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.category p {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 30ch;
  margin: 0 auto;
}

/* About strip (short mission line) — aligned to content width */
.about-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem var(--content-pad);
  max-width: var(--content-max);
  margin: 2rem auto 0;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.9s;
}

.about-strip p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 auto;
}

.about-strip p strong {
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Prose pages (mission, about) ---------- */

.prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--content-pad) 4rem;
}

.prose > * + * { margin-top: 1.5rem; }

.prose__lede {
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2rem !important;
}

.prose__section-label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-top: 3rem !important;
  margin-bottom: 0.75rem !important;
}

.prose p {
  font-size: 1.08rem;
  line-height: 1.85;
}

.prose ul {
  list-style: none;
  padding-left: 1rem;
  margin: 1rem 0;
}

.prose ul li {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.prose ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-decorative);
  font-size: 1.5rem;
  line-height: 1;
  top: 0.15em;
}

.closing-tagline {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 44ch;
  margin: 4rem auto 0 !important;
  padding-top: 3rem;
  border-top: 1px solid var(--line-soft);
}

/* Imprint-in-preparation — small, quiet line under the hero */
.imprint-note {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 1rem auto 3rem !important;
  letter-spacing: 0.02em;
}

/* Colophon note — small, restrained, end-of-page byline */
.colophon-note {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 3.5rem auto 0 !important;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  letter-spacing: 0.01em;
}

.colophon-note em {
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---------- Forthcoming banner ---------- */

.forthcoming {
  text-align: center;
  padding: 3rem var(--content-pad);
  max-width: var(--content-max);
  margin: 0 auto;
}

.forthcoming .label {
  display: block;
  margin-bottom: 0.75rem;
}

.forthcoming p {
  font-style: italic;
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

footer {
  padding: 3rem var(--content-pad) 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 1.1s;
}

.footer__logo img {
  height: 40px;
  filter: brightness(0.82);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

footer p.footer__meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  :root {
    --content-pad: 1.5rem;
  }
  .site-nav__inner {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .site-nav__links {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .hero {
    padding: 3rem var(--content-pad) 3rem;
  }
  .hero--split {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }
  .hero--split .hero-image {
    order: -1;
    text-align: center;
  }
  .cover-frame img {
    max-width: 260px;
  }
  .hero-image--portrait img {
    max-width: 320px;
  }
  .categories {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section, .about-strip {
    padding: 3rem var(--content-pad);
  }
}
