/* ===========================================================
   Remy Fontaine — Author Site · "Harbor of Secrets" series
   Atmospheric harbor romance · parchment, harbor-ink, lantern gold
   =========================================================== */

:root {
  /* palette */
  --ivory:      #f5efe1;  /* parchment page */
  --cream:      #ebe1ca;  /* aged parchment */
  --blush:      #e4dccb;  /* soft warm light (panels / text on dark) */
  --rose:       #a8614c;  /* terracotta */
  --rose-deep:  #8c2f3a;  /* oxblood / wine accent */
  --plum:       #21303a;  /* deep harbor ink (headings, dark sections) */
  --plum-soft:  #3f545f;  /* slate */
  --gold:       #c79a4b;  /* lantern gold */
  --ink:        #2a2723;  /* warm near-black body text */
  --muted:      #7c756a;  /* warm gray */
  --white:      #ffffff;

  /* type */
  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* spacing / shape */
  --maxw: 1140px;
  --radius: 4px;
  --shadow-soft: 0 18px 50px -22px rgba(74, 44, 52, 0.45);
  --shadow-card: 0 10px 30px -16px rgba(74, 44, 52, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--plum);
}

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--rose-deep);
  margin-bottom: 1.1rem;
  display: inline-block;
}

.script {
  font-family: var(--display);
  font-style: italic;
  color: var(--rose-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 15px 34px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--rose-deep);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--plum); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn-outline:hover { background: var(--plum); color: var(--ivory); }
.btn-light {
  background: var(--ivory);
  color: var(--plum);
}
.btn-light:hover { background: var(--gold); color: var(--white); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 84, 82, 0.14);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--plum);
}
.brand span { color: var(--rose-deep); font-style: italic; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--rose-deep);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--rose-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem; color: var(--plum); cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--blush), transparent 60%),
    linear-gradient(160deg, var(--ivory) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(168,84,82,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 92px 0 96px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 0.25em;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--plum-soft);
  max-width: 30em;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.8rem; }

/* book cover visual */
.cover {
  position: relative;
  width: 300px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--rose-deep), var(--plum) 70%);
  box-shadow: var(--shadow-soft);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 26px;
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}
.cover:hover { transform: rotate(0deg) translateY(-6px); }
.cover::after {
  content: "";
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.18);
}
.cover .cover-top { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; position: relative; z-index: 1; }
/* Real cover art (optional): drop a file in /images and the photo replaces
   the typographic mockup. If the file is missing it's removed automatically. */
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}
.cover .cover-title {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1.05;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.cover .cover-author { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.9; position: relative; z-index: 1; }
.cover-frame { position: relative; }
.cover-badge {
  position: absolute;
  top: -18px; right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  transform: rotate(6deg);
}

/* ---------- sections ---------- */
.section { padding: 86px 0; }
.section-tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted); }
.divider {
  width: 56px; height: 2px;
  background: var(--gold);
  margin: 1.2rem auto;
  border: none;
}

.bg-cream { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.bg-plum  { background: var(--plum); color: var(--blush); }
.bg-plum h2, .bg-plum h3 { color: var(--ivory); }

/* ---------- featured book ---------- */
.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.feature .cover { transform: rotate(2deg); }
.feature-meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 1.4rem 0; }
.feature-meta div span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.feature-meta div strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; color: var(--plum); }
.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--plum-soft);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 1.6rem 0;
}

/* ---------- book grid ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

/* ---------- excerpt ---------- */
.excerpt { max-width: 40em; margin: 0 auto; text-align: center; }
.excerpt .chapter {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin-bottom: 1.4rem;
}
.excerpt-body {
  text-align: left;
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.6;
  color: var(--plum-soft);
  column-count: 1;
}
.excerpt-body p { margin-bottom: 1rem; }
.excerpt-body p:first-of-type::first-letter {
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding: 6px 10px 0 0;
  color: var(--rose-deep);
  font-weight: 500;
}

/* ---------- blog / journal ---------- */
.post-list { display: grid; gap: 26px; max-width: 820px; margin: 0 auto; }
.post-item {
  background: var(--white);
  border-radius: 8px;
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  gap: 26px;
  align-items: center;
}
.post-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.post-thumb {
  flex-shrink: 0;
  width: 104px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--plum-soft), var(--plum));
  color: var(--gold);
  font-family: var(--display);
  font-size: 2.4rem;
}
.post-text { flex: 1; }
.post-text p:last-of-type { margin-bottom: 0.9em; }
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.8rem;
}
.post-meta .dot { color: var(--gold); }
.post-meta .date { color: var(--muted); }
.post-item h3 { font-size: 1.7rem; margin-bottom: 0.25em; }
.post-item h3 a { transition: color 0.3s var(--ease); }
.post-item h3 a:hover { color: var(--rose-deep); }
.post-item p { color: var(--plum-soft); margin-bottom: 0.9em; }
.read-more {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.read-more:hover { border-color: var(--rose-deep); }

/* individual post article */
.post-article { max-width: 720px; margin: 0 auto; }
.post-body { font-size: 1.12rem; line-height: 1.85; color: var(--ink); }
.post-body p { margin-bottom: 1.2em; }
.post-body h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  margin: 1.5em 0 0.45em;
}
.post-body blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--plum-soft);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 1.5em 0;
}
.post-body a { color: var(--rose-deep); border-bottom: 1px solid currentColor; }
.post-back {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.post-back:hover { color: var(--plum); }
.post-signature {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rose-deep);
  margin-top: 1.4em;
}

/* ---------- meet the cast ---------- */
.cast { margin-top: 66px; }
.cast-head { text-align: center; max-width: 34em; margin: 0 auto 42px; }
.cast-head h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 24px;
}
.cast-card { text-align: center; }
.cast-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--ivory);
  box-shadow: var(--shadow-card);
  position: relative;
}
.cast-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.cast-avatar.lead-av    { background: linear-gradient(150deg, var(--rose), var(--rose-deep)); }
.cast-avatar.villain-av { background: linear-gradient(150deg, var(--plum-soft), var(--plum)); }
.cast-avatar.ally-av    { background: linear-gradient(150deg, var(--gold), var(--rose)); }
.cast-role {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.3rem;
}
.cast-card h4 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 0.2em; }
.cast-card p { font-size: 0.92rem; line-height: 1.55; color: var(--plum-soft); margin: 0; }
.book-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-align: center;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.book-card .cover { width: 180px; transform: none; margin-bottom: 22px; }
.book-card .cover:hover { transform: translateY(-4px); }
.book-card .cover .cover-title { font-size: 1.5rem; }
.book-card h3 { font-size: 1.5rem; margin-bottom: 0.1em; }
.book-card .tag {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.7rem;
}
.book-card.upcoming { background: var(--blush); }
.book-card.upcoming .cover { background: linear-gradient(150deg, var(--plum-soft), var(--plum)); opacity: 0.95; }

/* ---------- coming soon banner ---------- */
.launch {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.launch::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.launch-inner { position: relative; max-width: 40em; margin: 0 auto; }
.launch h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.countdown { display: flex; justify-content: center; gap: 28px; margin: 2rem 0 2.4rem; }
.count-box { min-width: 76px; }
.count-box .num {
  font-family: var(--display);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}
.count-box .lbl { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }

/* ---------- newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 1.6rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 240px;
  padding: 14px 18px;
  border: 1px solid rgba(168,84,82,0.3);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.newsletter-form input:focus { outline: none; border-color: var(--rose-deep); }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--blush), var(--rose) 90%);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 4rem;
  font-style: italic;
}
.portrait::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  z-index: 2;
}
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}
.fact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.fact-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(168,84,82,0.16);
  display: flex;
  gap: 14px;
}
.fact-list li span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  min-width: 110px;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(168,84,82,0.3);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose-deep); }
.field textarea { min-height: 150px; resize: vertical; }
.social-links { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.social-links li { padding: 10px 0; border-bottom: 1px solid rgba(168,84,82,0.16); }
.social-links a:hover { color: var(--rose-deep); }

/* ---------- page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 100% 0%, var(--blush), transparent 60%),
    linear-gradient(160deg, var(--ivory), var(--cream));
  text-align: center;
  padding: 84px 0 70px;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { color: var(--plum-soft); max-width: 34em; margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--plum);
  color: var(--blush);
  padding: 56px 0 32px;
  text-align: center;
}
.site-footer .brand { color: var(--ivory); display: block; margin-bottom: 1rem; }
.site-footer .brand span { color: var(--gold); }
.footer-nav { list-style: none; display: flex; gap: 26px; justify-content: center; padding: 0; margin: 0 0 1.4rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.footer-nav a:hover { opacity: 1; color: var(--gold); }
.site-footer small { display: block; opacity: 0.6; font-size: 0.75rem; letter-spacing: 0.06em; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .feature, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; text-align: center; }
  .post-thumb { width: 130px; }
  .hero-grid { padding: 64px 0; text-align: center; }
  .hero-cta { justify-content: center; }
  .cover-frame { margin-top: 30px; }
  .feature .cover { transform: none; margin-bottom: 20px; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid rgba(168,84,82,0.16);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(168,84,82,0.1); }
  .nav-toggle { display: block; }
}
