/* ============================================================
   Black Leather Journal — shared stylesheet (blj.css)
   Upload this file alongside index.html, authors.html,
   and each author-*.html page.
   ============================================================ */

:root {
  --leather:        #15110f;
  --leather-mid:    #1b1612;
  --leather-raise:  #221b16;
  --bone:           #ece4d6;
  --bone-dim:       #8a8070;
  --bone-soft:      #a59a89;
  --brass:          #c6a667;
  --brass-deep:     #9c7e48;
  --oxblood:        #9e3b43;
  --rule:           #2e2620;
}

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

body {
  background: var(--leather);
  color: var(--bone);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--oxblood); color: var(--bone); }

a { color: var(--brass); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 7vw; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass-deep);
}

/* ── NAV ───────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21,17,15,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 7vw; }
.brand { font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--bone); line-height: 1.1; }
.brand a { color: var(--bone); }
.brand a:hover { color: var(--brass); }
.brand span { display: block; font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass-deep); font-family: 'Space Mono', monospace; margin-top: 0.25rem; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-soft); }
.nav-links a:hover { color: var(--brass); }
@media (max-width: 720px) { .nav-links { gap: 1.2rem; } .nav-links a.hide-sm { display: none; } }

/* ── HERO ──────────────────────────── */
header.hero { position: relative; padding: clamp(3rem, 9vh, 6rem) 0 clamp(2.5rem, 7vh, 5rem); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ribbon { position: absolute; top: 0; left: 18%; width: 2px; height: 100%; background: linear-gradient(var(--oxblood), rgba(158,59,67,0)); opacity: 0.55; }
@media (max-width: 720px) { .ribbon { left: 8%; } }
.hero-eyebrow { margin-bottom: 2.2rem; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: 1.04; letter-spacing: -0.015em; color: var(--bone); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-sub { margin-top: 2rem; font-size: clamp(1.05rem, 2.4vw, 1.32rem); color: var(--bone-soft); max-width: 50ch; line-height: 1.6; }
.hero-actions { margin-top: 3rem; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }

/* page header (interior pages) */
header.page { padding: clamp(4rem, 11vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem); border-bottom: 1px solid var(--rule); }
header.page h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.06; color: var(--bone); letter-spacing: -0.01em; margin-top: 1rem; }
header.page .page-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--bone-soft); max-width: 56ch; line-height: 1.6; }

/* ── SECTIONS ──────────────────────── */
section { padding: clamp(2.5rem, 7vh, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 2rem; }
.sec-head .eyebrow { display: block; margin-bottom: 0.7rem; }
.sec-head h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; color: var(--bone); letter-spacing: -0.01em; max-width: 24ch; }
.lede { font-size: clamp(1.1rem, 2.3vw, 1.35rem); line-height: 1.65; color: var(--bone); max-width: 58ch; }
.lede + .lede { margin-top: 1.4rem; color: var(--bone-soft); }

/* ── BUTTONS ───────────────────────── */
.cta {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leather); background: var(--brass); padding: 0.95rem 2rem;
  border: 1px solid var(--brass); transition: background .3s ease, color .3s ease;
}
.cta:hover { background: transparent; color: var(--brass); }
.cta.ghost { background: transparent; color: var(--brass); }
.cta.ghost:hover { background: var(--brass); color: var(--leather); }
.cta.small { padding: 0.7rem 1.3rem; font-size: 0.68rem; letter-spacing: 0.16em; }

/* ── OFFER CARDS (index) ───────────── */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.offer { border: 1px solid var(--rule); border-top: 2px solid var(--oxblood); padding: 2rem 1.8rem; background: var(--leather-mid); }
.offer .o-num { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--brass-deep); }
.offer h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.45rem; color: var(--bone); margin: 0.7rem 0 0.8rem; line-height: 1.2; }
.offer p { color: var(--bone-soft); font-size: 1rem; line-height: 1.6; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; gap: 1.2rem; } }

/* steps list */
.steps { list-style: none; counter-reset: step; max-width: 60ch; }
.steps li { counter-increment: step; position: relative; padding: 1.3rem 0 1.3rem 3.2rem; border-top: 1px solid var(--rule); color: var(--bone-soft); font-size: 1.05rem; line-height: 1.6; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.3rem; font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--brass); letter-spacing: 0.05em; }
.steps li strong { color: var(--bone); font-weight: 400; }

/* ── AUTHOR DIRECTORY (authors.html) ─ */
.dir { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.dir-card { display: grid; grid-template-columns: 64px 1fr; gap: 1.3rem; align-items: start; border: 1px solid var(--rule); padding: 1.7rem 1.6rem; background: var(--leather-mid); transition: border-color .3s ease, background .3s ease; }
.dir-card:hover { border-color: var(--brass-deep); background: var(--leather-raise); }
.dir-card .sigil { width: 52px; height: 52px; color: var(--brass); }
.dir-name { font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.4rem; color: var(--bone); line-height: 1.1; }
.dir-name a { color: var(--bone); }
.dir-name a:hover { color: var(--brass); }
.dir-tag { font-family: 'Space Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); margin-top: 0.5rem; }
.dir-line { color: var(--bone-soft); font-size: 0.98rem; line-height: 1.55; margin-top: 0.8rem; }
.badges { margin-top: 0.9rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { font-family: 'Space Mono', monospace; font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.28rem 0.6rem; border: 1px solid var(--rule); color: var(--bone-soft); }
.badge.journal { border-color: var(--brass-deep); color: var(--brass); }
.badge.lightrain { border-color: var(--oxblood); color: #c9676e; }
@media (max-width: 760px) { .dir { grid-template-columns: 1fr; } }

/* ── AUTHOR PAGE ───────────────────── */
.author-head { display: grid; grid-template-columns: 96px 1fr; gap: 1.8rem; align-items: center; }
.author-head .sigil { width: 84px; height: 84px; color: var(--brass); }
.author-head h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(2rem, 5.5vw, 3.2rem); color: var(--bone); line-height: 1.05; letter-spacing: -0.01em; }
.author-head h1 .pen { font-family: 'Spectral'; font-style: italic; font-weight: 300; color: var(--bone-soft); font-size: 0.5em; display: inline-block; margin-left: 0.4rem; }
.author-head .a-tag { font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-top: 0.7rem; }
@media (max-width: 600px) { .author-head { grid-template-columns: 1fr; gap: 1.2rem; } .author-head .sigil { width: 64px; height: 64px; } }

.a-bio { margin-top: 2.5rem; font-size: 1.12rem; line-height: 1.7; color: var(--bone); max-width: 60ch; }
.a-bio p + p { margin-top: 1.2rem; color: var(--bone-soft); }

.a-block { margin-top: 3rem; }
.a-block .eyebrow { display: block; margin-bottom: 1.3rem; }

/* publications list */
.pubs { list-style: none; max-width: 64ch; }
.pubs li { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1.5rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--rule); }
.pubs li:last-child { border-bottom: 1px solid var(--rule); }
.pub-title { color: var(--bone); font-size: 1.05rem; }
.pub-title em { font-style: italic; color: var(--bone-soft); }
.pub-where { font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); text-align: right; white-space: nowrap; }

/* current edition callout */
.edition-callout { border-left: 2px solid var(--oxblood); padding-left: 1.4rem; max-width: 60ch; }
.edition-callout .ec-title { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--bone); }
.edition-callout p { margin-top: 0.6rem; color: var(--bone-soft); line-height: 1.6; }
.edition-callout .ec-meta { margin-top: 1.2rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.ec-time { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.2rem; color: var(--brass); }

/* links list */
.links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.links a { font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 0.06em; }
.links .muted { color: var(--bone-dim); font-family: 'Space Mono', monospace; font-size: 0.8rem; }

.backlink { display: inline-block; margin-top: 3rem; font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-soft); }
.backlink:hover { color: var(--brass); }

/* ── FOOTER ────────────────────────── */
footer { padding: 3.5rem 0; text-align: center; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--bone); letter-spacing: 0.02em; }
.footer-meta { font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-soft); margin-top: 1rem; line-height: 2; }
.footer-meta a { color: var(--bone-soft); }
.footer-meta a:hover { color: var(--brass); }

/* fade-in */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }
