/* ===== Alma Koprdža — Author Website ===== */

:root {
  --nude: #f3f2f2;
  --nude-deep: #e7e4e1;
  --charcoal: #2d2b2b;
  --charcoal-deep: #201e1e;
  --ink: #201f1d;
  --ink-soft: #5c5954;
  --dust: #b68235;
  --dust-deep: #7d5411;
  --tag-bg: #fff3e4;
  --tag-text: #5a3b0a;
  --on-dark: #f3f2f2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lora", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--nude);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 3px;
  padding: 5px 12px;
  margin-bottom: 16px;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  border-color: var(--dust);
  color: var(--dust);
}
.btn-primary:hover { background: var(--dust); color: #fff; }
.btn-outline {
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(32,31,29,0.06); }
.btn-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-dark:hover { background: var(--ink); color: var(--nude); }

/* ===== Nav ===== */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,242,242,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(32,31,29,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
}
.nav-links a:hover { color: var(--dust-deep); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nude);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(32,31,29,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 16px 28px; border-top: 1px solid rgba(32,31,29,0.06); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--nude);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 28px 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--dust-deep);
  max-width: 46ch;
  margin-bottom: 34px;
  font-family: var(--serif);
  font-style: italic;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cover {
  justify-self: center;
  max-width: 400px;
  background: #fff;
  padding: 14px;
  border: 1px solid rgba(32,31,29,0.12);
  box-shadow: 0 30px 60px rgba(32,31,29,0.16);
}
.hero-author-line {
  margin-top: 40px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-cover { order: -1; max-width: 280px; }
}

/* ===== Quote banner ===== */
.quote-banner {
  background: var(--charcoal);
  padding: 64px 28px;
  text-align: center;
}
.quote-banner blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-style: italic;
  color: var(--on-dark);
  line-height: 1.35;
}
.quote-banner cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
}
.quote-banner .cite-name {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dust);
  margin-bottom: 4px;
}
.quote-banner .cite-role {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(243,242,242,0.65);
}

/* ===== Section generic ===== */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===== Book section ===== */
.book-copy-solo { max-width: 720px; }
.book-copy-solo p { margin: 0 0 1.15em; color: var(--ink-soft); font-size: 1.03rem; }
.book-copy-solo p:first-of-type {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

/* ===== Excerpt ===== */
.excerpt { background: var(--nude-deep); }
.excerpt-wrap { max-width: 640px; }
.excerpt-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 1.3em;
}
.excerpt-text:first-of-type:first-letter {
  font-family: var(--serif);
  font-size: 2.6em;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
  color: var(--dust-deep);
}
.excerpt-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--dust-deep);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--dust);
  padding-bottom: 2px;
}
.excerpt-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

/* ===== About Alma ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.about-portrait {
  background: #fff;
  padding: 14px;
  border: 1px solid rgba(32,31,29,0.12);
  box-shadow: 0 24px 50px rgba(32,31,29,0.14);
}
.about-copy p { color: var(--ink-soft); margin: 0 0 1.1em; font-size: 1.03rem; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
}

/* ===== Buy section ===== */
.buy {
  background: #fff;
}
.buy-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.format-card {
  border-top: 1px solid rgba(32,31,29,0.12);
  padding: 28px 4px 0;
  text-align: center;
}
.format-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.format-card .isbn { font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 20px; letter-spacing: 0.03em; }
.format-card .btn { width: 100%; }

.already-read {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(32,31,29,0.12);
  text-align: center;
}
.already-read h3 { font-size: 1.2rem; margin-bottom: 6px; }
.already-read p { color: var(--ink-soft); margin: 0 0 24px; }
.already-read-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Praise / testimonial marquee ===== */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.praise-card {
  background: #fff;
  border-left: 3px solid var(--dust-deep);
  padding: 30px 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  width: 380px;
  flex: 0 0 auto;
}
.praise-card .stars {
  display: block;
  font-style: normal;
  color: var(--dust);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-size: 0.65rem;
  opacity: 0.85;
}
.praise-card cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.praise-card.placeholder {
  border-left-color: rgba(32,31,29,0.15);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq-item dt {
  font-weight: 700;
  margin-bottom: 6px;
}
.faq-item dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ===== Press / media CTA ===== */
.press { background: var(--nude-deep); padding: 64px 0; }
.press-mini { max-width: 560px; margin: 0 auto; text-align: center; }
.press-mini p { color: var(--ink-soft); margin: 0 0 24px; }

/* ===== Newsletter / contact ===== */
.newsletter {
  background: var(--charcoal);
  color: var(--on-dark);
  text-align: center;
}
.newsletter .eyebrow {
  color: var(--dust);
  background: rgba(243,242,242,0.1);
}
.newsletter .section-head p { color: rgba(243,242,242,0.75); }

.connect-label {
  margin-top: 46px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(243,242,242,0.55);
}
.contact-links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.text-link {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(182,130,53,0.4);
  text-decoration: none;
  color: var(--dust);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.text-link:hover { background: var(--dust); color: var(--charcoal); border-color: var(--dust); }

/* ===== Pre-launch fallback ===== */
.availability-dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 1px solid rgba(32,31,29,0.16);
  border-radius: 2px;
  color: var(--ink);
  background: var(--nude);
  box-shadow: 0 30px 90px rgba(23,31,34,0.28);
}
.availability-dialog::backdrop {
  background: rgba(23,31,34,0.68);
  backdrop-filter: blur(4px);
}
.dialog-inner {
  position: relative;
  padding: 52px 48px 44px;
  text-align: center;
}
.dialog-inner h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
.dialog-inner p {
  max-width: 44ch;
  margin: 0 auto 28px;
  color: var(--ink-soft);
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-primary { display: inline-block; }
.text-button {
  display: block;
  margin: 18px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 560px) {
  .dialog-inner { padding: 48px 24px 36px; }
}

/* ===== Footer ===== */
footer {
  background: var(--charcoal-deep);
  color: rgba(243,242,242,0.55);
  padding: 36px 0;
  text-align: center;
  font-size: 0.8rem;
}
footer a { color: rgba(243,242,242,0.8); text-decoration: none; }
footer a:hover { text-decoration: underline; }
