/* His Light Through the Bars — book site
   Drop this folder on the VPS as www/hislightthroughthebars.com/
   Domain root should be this folder. All paths are relative. */

:root {
  --bg: #070708;
  --bg-raise: #101014;
  --ink: #f6f1e7;
  --muted: #b7b0a4;
  --dim: #8a8378;
  --gold: #c6ae72;
  --gold-bright: #e7d7a8;
  --line: rgba(198, 174, 114, 0.28);
  --danger: #e7b2a4;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 360;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; }
a:hover { color: white; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 4vw;
  background: rgba(7, 7, 8, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand span { color: var(--gold); font-style: italic; }
nav { display: flex; gap: 1.15rem; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav a:hover { color: var(--ink); }
nav .btn {
  color: #16130c;
  background: var(--gold);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
nav .btn:hover { color: #16130c; background: var(--gold-bright); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}
.kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}
.sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: var(--gold);
  margin: 0 0 1.3rem;
}
.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
}
.btn.solid { background: var(--gold); color: #16130c; }
.btn.solid:hover { background: var(--gold-bright); color: #16130c; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: white; }

.cover-frame {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
}
.cover-frame::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, rgba(255, 196, 92, 0.55), rgba(255, 140, 40, 0.05) 55%, transparent 70%);
  filter: blur(18px);
  z-index: 0;
}
.cover-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.verse {
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
  text-align: center;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.verse small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--dim);
}

section { padding: 4.5rem 0; }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.intro { max-width: var(--measure); color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-raise);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.3rem 1.5rem;
  border-top: 2px solid var(--gold);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}
.card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.stat {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.8;
  color: var(--gold);
  margin: 0;
}
.stat span {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.8rem;
}
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--ink);
}
ul.clean { margin: 1rem 0 0; padding: 0; list-style: none; }
ul.clean li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
ul.clean strong { color: var(--ink); font-weight: 500; }

.band {
  background:
    radial-gradient(ellipse at center, rgba(214, 150, 60, 0.16), transparent 55%),
    #0c0c10;
  border-block: 1px solid var(--line);
}
.band .wrap { text-align: center; }
.band p { max-width: 46rem; margin: 0.6rem auto 0; color: var(--muted); }

form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  max-width: 640px;
}
label { display: grid; gap: 0.35rem; color: var(--gold-bright); font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  background: #0c0c10;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}
button[type="submit"] {
  justify-self: start;
  background: var(--gold);
  color: #16130c;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font: inherit;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--gold-bright); }
.fine { color: var(--dim); font-size: 0.88rem; max-width: 42rem; }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.note {
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: var(--gold-bright);
}
.note.error { color: var(--danger); border-color: rgba(231, 178, 164, 0.4); }

footer {
  padding: 2rem 0 2.6rem;
  color: var(--dim);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .split, .cards { grid-template-columns: 1fr; }
  .cover-frame { justify-self: center; }
  nav a:not(.btn) { display: none; }
  header.site { padding-inline: 1rem; }
}
