/* kevinpaulbooks.com
   Dark night-sky openings with the covers' sun and dial; warm paper sections for reading. */
:root {
  --night: #0b0d24;
  --night2: #05061a;
  --haze: #2c2654;
  --on-dark: #eef1fb;
  --on-dark-muted: #aab3d6;
  --paper: #f4f0e8;
  --paper2: #ebe5d9;
  --paper-line: #d8cfbf;
  --ink: #1b2030;
  --ink-muted: #5d6272;
  --sun: #f58a30;
  --sun-hi: #ffb156;
  --link: #a3460e;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Century Gothic", system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #7a3208; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.narrow > * { max-width: 680px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
.kicker { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-muted); }
.dark .kicker, .kicker.on-dark { color: var(--on-dark-muted); }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
.grain > * { position: relative; z-index: 1; }

/* ---------- navigation ---------- */
.nav-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav-bar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--sun); }
.light-top .brand { color: var(--ink); }
.light-top .nav a { color: var(--ink-muted); }
.light-top .nav a:hover, .light-top .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 16px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn-sun { background: linear-gradient(180deg, var(--sun-hi), var(--sun)); color: #2a1404; box-shadow: 0 8px 30px rgba(245,138,48,.35); }
.btn-sun:hover { color: #2a1404; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245,138,48,.5); }
.btn-ghost { color: var(--on-dark); border-color: rgba(170,179,214,.45); }
.btn-ghost:hover { color: var(--on-dark); border-color: var(--on-dark); }
.btn-ink { color: var(--ink); border-color: var(--paper-line); }
.btn-ink:hover { color: var(--ink); border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* ---------- home hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(ellipse 70% 80% at 70% 52%, var(--haze) 0%, #0d0f29 48%, var(--night2) 100%);
}
.hero-art { position: relative; width: 100%; aspect-ratio: 1; max-height: 56svh; margin-top: 124px; pointer-events: none; }
.hero-copy { padding-bottom: 80px; }
.dial-wrap, .sun-disc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* dial = 1.85 x the sun, the covers' proportion (ring 834-1074 around a 584 sun) */
.dial-wrap { width: 92%; aspect-ratio: 1; opacity: .6; }
.dial { width: 100%; height: 100%; animation: turn 420s linear infinite; }
.sun-disc {
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ffb156 0%, #f58a30 60%, #df652a 88%, #b6461f 100%);
  box-shadow: 0 0 80px 10px rgba(255,138,53,.28), 0 0 220px 60px rgba(255,138,53,.12);
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dial { animation: none; } }
@media (min-width: 900px) {
  .hero-art { position: absolute; inset: 0; max-height: none; aspect-ratio: auto; margin: 0; }
  .dial-wrap { left: 73%; width: min(96vh, 70vw); opacity: .5; }
  .sun-disc { left: 73%; width: min(52vh, 38vw); }
  .hero-copy { padding-top: 120px; padding-bottom: 120px; }
  .hero-copy > div { max-width: 560px; }
}
.metal {
  font-size: clamp(54px, 8vw, 112px); letter-spacing: .04em; text-transform: uppercase; line-height: .92;
  background: linear-gradient(180deg, #ffffff 0%, #d6dbee 55%, #a9b2d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
.hero-line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); color: var(--on-dark); margin: 26px 0 0; }
.hero-date { margin: 30px 0 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-date em { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; text-transform: none; color: var(--on-dark); }
.hero-date::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 12px; vertical-align: 2px; box-shadow: 0 0 10px var(--sun); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--on-dark-muted), transparent); z-index: 2; }

/* ---------- paper sections ---------- */
.paper { background: var(--paper); padding: 110px 0; }
.paper.alt { background: var(--paper2); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(38px, 5vw, 60px); }
.section-head p { color: var(--ink-muted); font-size: 19px; margin-top: 18px; }

/* ---------- covers ---------- */
.trilogy { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px 40px; grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
@media (min-width: 760px) { .trilogy { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.book-card:hover { color: var(--ink); }
.cover-img {
  width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(20,16,10,.25), 0 22px 44px -12px rgba(20,16,10,.45), 0 50px 80px -40px rgba(20,16,10,.35);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.book-card:hover .cover-img { transform: translateY(-8px); box-shadow: 0 1px 2px rgba(20,16,10,.25), 0 34px 60px -14px rgba(20,16,10,.5), 0 70px 100px -40px rgba(20,16,10,.4); }
.book-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.book-num { font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.book-title { font-size: clamp(28px, 2.6vw, 34px); }
.book-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--paper-line); font-size: 15px; color: var(--ink-muted); }
.book-foot .more { color: var(--link); font-weight: 500; letter-spacing: .04em; }
.book-card:hover .more { color: #7a3208; }

/* ---------- newsletter band ---------- */
.signup-band { background: radial-gradient(ellipse 60% 120% at 0% 50%, var(--haze) 0%, #0d0f29 55%, var(--night2) 100%); color: var(--on-dark); padding: 110px 0; overflow: hidden; }
.signup-band .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .signup-band .wrap { grid-template-columns: 1fr 1.1fr; } }
.signup-band h2 { font-size: clamp(38px, 5vw, 58px); color: var(--on-dark); }
.signup-band p { color: var(--on-dark-muted); font-size: 19px; margin-top: 18px; }
.band-dial { position: absolute; width: 760px; left: -380px; top: 50%; transform: translateY(-50%); opacity: .35; pointer-events: none; }
.signup-form { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-form input[type="email"] {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 17px; color: var(--on-dark); padding: 16px 24px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(170,179,214,.35); transition: border-color .2s, background .2s;
}
.signup-form input[type="email"]::placeholder { color: #8189b0; }
.signup-form input[type="email"]:focus { border-color: var(--sun); background: rgba(255,255,255,.1); outline: none; }
.fine { font-size: 14px; color: var(--on-dark-muted); margin: 16px 0 0; }
.fine a { color: var(--on-dark); }

/* ---------- book pages ---------- */
.book-hero { color: var(--on-dark); padding: 150px 0 110px; overflow: hidden; }
.book-hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .book-hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.book-hero h1 { font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; letter-spacing: .04em; line-height: .95; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.book-hero .cover-img { max-width: 380px; margin: 0 auto; box-shadow: 0 30px 70px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06); }
.status { display: inline-block; margin-top: 28px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; border: 1px solid currentColor; }
.b1 { background: radial-gradient(ellipse 70% 90% at 75% 50%, #a7843f 0%, #0f3a3b 52%, #072223 100%); }
.b1 h1 { background-image: linear-gradient(180deg, #fdf3d6, #ecd9a6 55%, #c8a965); }
.b1 .kicker, .b1 .status { color: #d8c18c; }
.b2 { background: radial-gradient(ellipse 70% 90% at 75% 50%, #2c2654 0%, #0d0f29 52%, #05061a 100%); }
.b2 h1 { background-image: linear-gradient(180deg, #f6f8fe, #d6dbee 55%, #a9b2d6); }
.b2 .kicker, .b2 .status { color: #aab3d6; }
.b3 { background: radial-gradient(ellipse 70% 90% at 75% 50%, #f8eadb 0%, #e6ecef 52%, #c6d1d8 100%); color: var(--ink); }
.b3 h1 { background-image: linear-gradient(180deg, #34445a, #1d2836 55%, #101822); filter: none; }
.b3 .kicker, .b3 .status { color: #3a4856; }
.b3 .cover-img { box-shadow: 0 30px 70px -20px rgba(16,24,34,.45); }
.b3 .btn-ghost { color: var(--ink); border-color: rgba(27,32,48,.3); }
.b3 .btn-ghost:hover { border-color: var(--ink); }

.prose { font-size: 19px; }
.prose h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 22px; }
.prose h3 { font-size: 26px; margin: 34px 0 10px; }
.placeholder { border: 1px dashed var(--sun); color: #8a3d0c; background: rgba(245,138,48,.07); padding: 16px 20px; border-radius: 6px; font-size: 16px; }
.series-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 640px; margin-inline: 0; }
@media (min-width: 720px) { .series-strip { gap: 32px; } }
.series-strip .book-meta { margin-top: 16px; gap: 4px; }
.series-strip .book-title { font-size: clamp(17px, 2.2vw, 22px); }
.series-strip .here .cover-img { outline: 2px solid var(--sun); outline-offset: 6px; }

/* ---------- inner page heads ---------- */
.page-head { color: var(--on-dark); padding: 170px 0 90px; background: radial-gradient(ellipse 60% 140% at 85% 0%, var(--haze) 0%, #0d0f29 55%, var(--night2) 100%); overflow: hidden; }
.page-head h1 { font-size: clamp(46px, 7vw, 88px); color: var(--on-dark); }
.page-head .lede { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); color: var(--on-dark-muted); margin: 22px 0 0; max-width: 36ch; }
.page-head .head-dial { position: absolute; width: 900px; right: -300px; top: -420px; opacity: .3; pointer-events: none; }
.newsletter-head .signup-form { margin-top: 40px; max-width: 620px; }

/* ---------- footer ---------- */
.site-foot { background: var(--night2); color: var(--on-dark-muted); padding: 64px 0 56px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; }
.site-foot .brand { font-size: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-foot a { color: var(--on-dark-muted); text-decoration: none; }
.site-foot a:hover { color: var(--on-dark); }
