/* Dream Traveller Publishing: one stylesheet for every page.
   Night-sky colours with soft gold; Cinzel for names and headings. */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #0c1033;        /* deepest sky */
  --dusk: #1c2160;         /* lighter sky */
  --panel: rgba(255, 255, 255, .05);
  --line: rgba(226, 194, 125, .28);
  --gold: #e2c27d;
  --gold-light: #f6e3b0;
  --text: #efe9dc;
  --muted: #b9b4c9;
  --title: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 19px/1.65 var(--serif);
  background: var(--night) url("../images/stars.svg") center top / cover fixed;
  background-image: url("../images/stars.svg"),
                    radial-gradient(ellipse at 70% -10%, #3a3f8f 0%, var(--dusk) 35%, var(--night) 75%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--gold-light); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: .04em; line-height: 1.25;
             margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36em; margin: 0 auto 2em; font-style: italic; }
.divider { width: 120px; height: 1px; margin: 0 auto 28px; border: 0;
           background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---- header ---- */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
         background: rgba(12, 16, 51, .72); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--title); color: #fff; font-size: 1.15rem; letter-spacing: .08em; line-height: 1.1; }
.brand-name small { display: block; font-size: .62rem; letter-spacing: .38em; color: var(--gold); }
nav a { font-family: var(--title); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
        text-decoration: none; color: var(--text); margin-left: 22px; }
nav a:hover, nav a[aria-current] { color: var(--gold); }

/* ---- buttons ---- */
.button { display: inline-block; font-family: var(--title); letter-spacing: .1em; font-size: .9rem;
          text-transform: uppercase; text-decoration: none; padding: 14px 28px; border-radius: 999px;
          background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #1b1840;
          border: 1px solid var(--gold); margin: 6px; }
.button:hover { color: #1b1840; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--gold-light); }
.button.ghost:hover { background: rgba(226, 194, 125, .12); color: #fff; }

/* ---- hero ---- */
.hero { text-align: center; padding: 120px 0 100px; }
.hero .moon { width: 92px; height: 92px; margin-bottom: 18px; filter: drop-shadow(0 0 24px rgba(246, 227, 176, .45)); }
.hero h1 small { display: block; font-size: .32em; letter-spacing: .5em; color: var(--gold); margin-top: .6em; }

/* ---- cards ---- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 44px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.book { text-align: center; }
.cover { aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; margin: 0 auto 20px; max-width: 200px;
         display: flex; flex-direction: column; justify-content: space-between; padding: 26px 16px;
         background: linear-gradient(160deg, #2b2f78, #12153d); border: 1px solid var(--line);
         box-shadow: -6px 6px 18px rgba(0, 0, 0, .45), inset 6px 0 8px rgba(0, 0, 0, .25); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .t { font-family: var(--title); color: var(--gold-light); font-size: 1rem; letter-spacing: .08em; }
.cover .a { font-family: var(--title); color: var(--muted); font-size: .7rem; letter-spacing: .2em; }
.tag { display: inline-block; font-family: var(--title); font-size: .7rem; letter-spacing: .2em;
       text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px;
       padding: 3px 12px; margin-bottom: 10px; }

/* ---- two-column feature ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line);
               box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }

/* ---- newsletter ---- */
.signup { max-width: 640px; margin: 0 auto; text-align: center; }
.signup form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.signup input { font: inherit; font-size: 1rem; padding: 13px 18px; border-radius: 999px; min-width: 260px;
                border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: #fff; }
.signup input::placeholder { color: var(--muted); }
.signup .button { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: .9rem;
         background: rgba(8, 10, 34, .6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

@media (max-width: 760px) {
  nav { width: 100%; text-align: center; padding-bottom: 10px; }
  nav a { margin: 0 8px; font-size: .75rem; }
  .feature { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 70px; }
}

/* ---- inner pages ---- */
.page-head { text-align: center; padding: 90px 0 30px; }
.page-head p { margin-bottom: 0; }
.prose { max-width: 42em; margin: 0 auto; }
.prose h2 { text-align: left; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.portrait { float: right; width: 220px; margin: 0 0 20px 32px; border-radius: 50%;
            aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--gold-light); }
a.card { display: block; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.empty { text-align: center; padding: 48px 26px; }
.callout { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---- a book's own page ---- */
.book-page { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.book-page .cover { max-width: 300px; margin: 0; }
.book-page .byline { font-family: var(--title); letter-spacing: .12em; color: var(--gold); margin-bottom: 1.2em; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: .95rem; color: var(--muted);
           margin: 24px 0; }
.details dt { color: var(--gold); font-family: var(--title); font-size: .75rem; letter-spacing: .15em;
              text-transform: uppercase; padding-top: 4px; }
.details dd { margin: 0; }

/* ---- journal ---- */
.post-meta { font-family: var(--title); font-size: .75rem; letter-spacing: .2em; color: var(--gold);
             text-transform: uppercase; }

@media (max-width: 760px) {
  .book-page { grid-template-columns: 1fr; }
  .book-page .cover { margin: 0 auto; }
  .portrait { float: none; display: block; margin: 0 auto 24px; }
}
