/* Marc Ellison — author site
   Palette drawn from the Forgotten Gods covers:
   deep Aegean teal-black ground, parchment text, inscription gold, aged verdigris. */

:root {
  --abyss: #0c1517;
  --chamber: #121f22;
  --bone: #e9e2d0;
  --bone-dim: #a49c87;
  --gold: #c79c4f;
  --gold-soft: rgba(199, 156, 79, 0.28);
  --verdigris: #6f948a;
  --maxw: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--bone);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bone); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--gold-soft);
}

.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { color: var(--gold); }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-bottom: 3px;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* ---------- shared text pieces ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
}

.lede { color: var(--bone-dim); max-width: 62ch; }

.cta {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.cta:hover { color: var(--verdigris); border-color: var(--verdigris); }

/* Greek-key divider — the labyrinth motif that runs through the series */
.meander {
  height: 12px;
  margin: 56px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M0 11 H20 M2 11 V2 H16 V7.5 H8 V4.5 H12' fill='none' stroke='%23c79c4f' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.45;
}

/* ---------- home ---------- */

.hero { padding: 84px 0 10px; }

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  max-width: 15ch;
}
.hero h1 .wrong {
  display: block;
  font-style: italic;
  color: var(--gold);
}
.hero .lede { margin-top: 26px; font-size: 18px; }

.series-strip { padding-bottom: 20px; }

.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 34px;
}
.covers a { display: block; }
.covers img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.covers a:hover img { transform: translateY(-5px); }
.covers .c-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin-top: 14px;
  line-height: 1.25;
}
.covers .c-meta {
  font-size: 13px;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.home-about { padding: 10px 0 30px; max-width: 66ch; }
.home-about p { color: var(--bone-dim); }

/* ---------- books page ---------- */

.page-title { padding: 64px 0 8px; }
.page-title h1 { font-size: clamp(38px, 5.5vw, 58px); }
.page-title .lede { margin-top: 16px; }

.book-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 46px;
  padding: 60px 0;
  border-top: 1px solid rgba(199, 156, 79, 0.16);
}
.book-row:first-of-type { border-top: 0; }

.book-row img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.book-row h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }

.refrain {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 21px;
  color: var(--gold);
  margin: 10px 0 16px;
}

.book-row p { margin-bottom: 16px; max-width: 62ch; }

.status {
  font-size: 14px;
  color: var(--bone-dim);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  padding: 50px 0 20px;
  align-items: start;
}
.about-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
}
.about-grid p { margin-bottom: 18px; max-width: 58ch; }

/* ---------- contact ---------- */

.contact-block { padding: 40px 0 10px; }

.big-email {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 5.4vw, 46px);
  color: var(--gold);
  margin: 18px 0 8px;
  word-break: break-all;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 6px;
}
.big-email:hover { color: var(--verdigris); }

.elsewhere { margin-top: 54px; }
.elsewhere h2 { font-size: 28px; margin-bottom: 18px; }
.elsewhere ul { list-style: none; }
.elsewhere li { padding: 10px 0; border-top: 1px solid rgba(199, 156, 79, 0.14); }
.elsewhere li:first-child { border-top: 0; }
.elsewhere a { color: var(--bone); }
.elsewhere a:hover { color: var(--gold); }
.elsewhere .where {
  display: inline-block;
  min-width: 150px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 90px;
  border-top: 1px solid var(--gold-soft);
  padding: 34px 0 54px;
}
.foot-email {
  font-size: 16px;
  color: var(--bone);
}
.foot-email a { color: var(--bone); border-bottom: 1px solid var(--gold-soft); }
.foot-email a:hover { color: var(--gold); }
.foot-legal {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--bone-dim);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .covers { grid-template-columns: repeat(2, 1fr); }
  .book-row { grid-template-columns: 1fr; gap: 26px; }
  .book-row img { max-width: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 300px; }
}

@media (max-width: 560px) {
  .site-head { flex-direction: column; gap: 12px; align-items: flex-start; }
  .site-nav { gap: 20px; }
  .hero { padding-top: 56px; }
  .covers { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .covers img { transition: none; }
  .covers a:hover img { transform: none; }
}
