/* ============================================================
   H.L. DELANEY — author hub
   Design language: basalt-dark, literary, mythic American West.
   Built 2026-06-01 from real Amazon book + author-page content.
   Swap palette via the :root tokens below.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&display=swap');

:root {
  /* palette — volcanic basalt + ember + parchment */
  --basalt-900: #100d0b;
  --basalt-800: #16110e;
  --basalt-700: #1f1813;
  --basalt-600: #2b211a;
  --line:       #3a2c22;
  --parchment:  #ece3d4;
  --parchment-dim: #b9ac98;
  --muted:      #8a7c6a;
  --ember:      #c75b34;   /* primary accent */
  --ember-soft: #d98a5f;
  --ash:        #7d8a82;   /* secondary, cool sage */

  --display: 'Fraunces', Georgia, serif;
  --body: 'Newsreader', Georgia, serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--basalt-800);
  color: var(--parchment);
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.18rem);
  line-height: 1.7;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 480; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.eyebrow {
  font-family: var(--body);
  font-size: 0.82rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ember-soft); font-weight: 500; margin: 0 0 1.1rem;
}
.lede { font-size: 1.18em; color: var(--parchment); }
.dim { color: var(--parchment-dim); }
.rule { width: 60px; height: 2px; background: var(--ember); border: 0; margin: 1.6rem 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; border-radius: 2px; text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--ember); color: #18120e; }
.btn-primary:hover { background: var(--ember-soft); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-soft); transform: translateY(-2px); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--basalt-900) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1.05rem; }
.wordmark { font-family: var(--display); font-weight: 500; font-size: 1.32rem; letter-spacing: 0.06em; text-decoration: none; color: var(--parchment); }
.wordmark span { color: var(--ember); }
nav.main { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
nav.main a { text-decoration: none; color: var(--parchment-dim); font-size: 0.96rem; letter-spacing: 0.02em; transition: color .2s; }
nav.main a:hover { color: var(--ember-soft); }
@media (max-width: 680px){ nav.main { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 9rem);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(199,91,52,0.16), transparent 60%),
    radial-gradient(80% 70% at 0% 110%, rgba(125,138,130,0.10), transparent 55%),
    var(--basalt-800);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 420; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--ember-soft); }
.hero .lede { max-width: 46ch; margin-top: 1.4rem; color: var(--parchment-dim); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- featured book ---------- */
.book { background: var(--basalt-700); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 820px){ .book-grid { grid-template-columns: 1fr; } }
.book-cover { position: relative; }
.book-cover img {
  width: 100%; max-width: 360px; margin-inline: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px var(--line);
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ember); color: #18120e; font-family: var(--body);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 2px; white-space: nowrap;
}
.book-body h2 em { font-style: italic; }
.book-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; margin: 0.4rem 0 1.4rem; }
.book-meta b { color: var(--parchment-dim); font-weight: 500; }
.pull { font-family: var(--display); font-style: italic; font-size: 1.25em; color: var(--ember-soft); line-height: 1.4; margin: 1.6rem 0; }
.book-desc p { color: var(--parchment-dim); }
.stars { color: var(--ember); letter-spacing: 2px; }

/* ---------- the work / series ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  background: var(--basalt-700); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.8rem 1.6rem; transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--ember); transform: translateY(-3px); }
.card .kicker { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); margin-bottom: 0.7rem; }
.card h3 { color: var(--parchment); margin-bottom: 0.4rem; }
.card p { color: var(--parchment-dim); font-size: 0.98rem; margin: 0; }
.tag { display:inline-block; margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- about ---------- */
.about { background: var(--basalt-900); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 720px){ .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 220px; } }
.about-photo img { border-radius: 4px; filter: grayscale(.25) contrast(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px var(--line); }
.about-body p { color: var(--parchment-dim); }
.about-body p:first-of-type { color: var(--parchment); font-size: 1.1em; }
.awards { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.award { font-size: 0.92rem; }
.award b { display:block; font-family: var(--display); color: var(--ember-soft); font-size: 1.05rem; }
.award span { color: var(--muted); letter-spacing: 0.04em; font-size: 0.84rem; }

/* ---------- imprint strip ---------- */
.imprint { background: var(--basalt-700); border-block: 1px solid var(--line); text-align: center; }
.imprint .eyebrow { color: var(--ash); }
.imprint h2 { max-width: 24ch; margin-inline: auto; }
.imprint p { color: var(--parchment-dim); max-width: 52ch; margin: 1rem auto 1.8rem; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact a.mail { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.4rem); color: var(--ember-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact a.mail:hover { border-color: var(--ember); }

/* ---------- footer ---------- */
footer.site { background: var(--basalt-900); border-top: 1px solid var(--line); padding-block: 2.5rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.86rem; }
footer.site a { color: var(--parchment-dim); text-decoration: none; }
footer.site a:hover { color: var(--ember-soft); }

/* ---------- apps / interactive ---------- */
.apps { background: var(--basalt-800); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.app-card { background: var(--basalt-700); border: 1px solid var(--line); border-radius: 4px; padding: 1.7rem; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.app-card:hover { border-color: var(--ember); transform: translateY(-3px); }
.app-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.app-head img.icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
.app-head .meta h3 { margin: 0; font-size: 1.2rem; }
.app-head .meta .sub { color: var(--ash); font-size: 0.84rem; letter-spacing: 0.06em; }
.app-card p { color: var(--parchment-dim); font-size: 0.96rem; flex-grow: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.price { font-family: var(--display); color: var(--parchment); font-size: 1.05rem; }
.soon { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); border: 1px solid var(--line); padding: 0.3rem 0.7rem; border-radius: 2px; }
.appstore { display:inline-flex; align-items:center; gap:0.5rem; background: var(--ember); color:#18120e; text-decoration:none; font-weight:500; font-size:0.92rem; padding:0.6rem 1.1rem; border-radius:2px; transition: background .2s, transform .15s; }
.appstore:hover { background: var(--ember-soft); transform: translateY(-1px); }
.app-shot { margin-top: 1.2rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px var(--line); align-self: center; max-width: 200px; }

/* ---------- placeholder marker (for anything not yet real) ---------- */
.todo { outline: 1px dashed var(--ember); outline-offset: 3px; }
