/* Charles Bodenheimer — styled after Il Giallo Mondadori covers:
   yellow field, black slab type, red accents, hard frames. */

:root {
  --yellow: #ffcf00;
  --yellow-deep: #f0b800;
  --black: #0d0d0d;
  --red: #d10a10;
  --cream: #f6efdc;
  --cyan: #7fe9ff;
  --lime: #cff722; /* Shotgun Nun logo green, sampled from a screen-cap; replace with exact value from final art */
  --ink: #171717;

  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type: "Courier Prime", "Courier New", monospace;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--yellow); border-bottom: 4px solid var(--red); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; padding-block: 8px; }
.brand__logo, .footer__brand img { flex: none; height: 64px; width: auto; margin: 2px; /* lime edge hugging the oval: stacked hard drop-shadows follow the PNG's transparent outline */
  filter: drop-shadow(1px 0 0 var(--lime)) drop-shadow(-1px 0 0 var(--lime)) drop-shadow(0 1px 0 var(--lime)) drop-shadow(0 -1px 0 var(--lime))
          drop-shadow(.75px .75px 0 var(--lime)) drop-shadow(-.75px -.75px 0 var(--lime)) drop-shadow(.75px -.75px 0 var(--lime)) drop-shadow(-.75px .75px 0 var(--lime)); }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand__author { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--cream); margin-left: 6px; }
.brand__author i { font-style: normal; color: var(--lime); margin-inline: .5em; }
/* Shotgun Nun wordmark: chunky rounded type (Londrina Solid, standing in for the logo font), solid cream like the author line below it */
.brand__pub { font-family: "Londrina Solid", var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; line-height: 1; color: var(--cream); }

.topbar nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.topbar nav a { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover { border-bottom-color: var(--yellow); }
@media (max-width: 640px) {
  .topbar__in { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; }
  .topbar nav { gap: 16px; flex-wrap: wrap; }
  .topbar nav a { font-size: .72rem; }
  html { scroll-padding-top: 150px; }
  .brand__pub { font-size: 1.2rem; }
  .brand { padding-block: 8px 4px; gap: 12px; }
  .brand__logo { height: 54px; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--yellow);
  color: var(--black);
  position: relative;
  overflow: hidden;
  border-bottom: 10px solid var(--black);
}
/* the framed inner border of a Mondadori cover */
.hero::before {
  content: ""; position: absolute; inset: 14px; border: 3px solid var(--black); pointer-events: none;
}
.hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.kicker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.kicker span { background: var(--black); color: var(--yellow); font-weight: 800; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; }
.kicker span:nth-child(2) { background: var(--red); color: #fff; }
.hero h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 10.5vw, 8rem); line-height: .92; letter-spacing: .01em; margin: 0 0 22px;
  text-shadow: 5px 5px 0 rgba(209, 10, 16, .9);
}
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 100%; font-weight: 500; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { width: 100%; max-width: 560px; height: auto; justify-self: end; }
/* On wide screens the artwork is 120% of its column, growing into the margin beside the frame so it never pushes the headline. */
@media (min-width: 1280px) { .hero__art { width: 120%; max-width: none; margin-right: calc(-1 * max(52px, min(90px, (100vw - var(--wrap)) / 2 - 22px))); } }

@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; width: min(var(--wrap), 100% - 2 * (var(--gutter) + 18px)); }
  .hero__art { width: min(100%, 420px); max-width: 420px; justify-self: center; margin-right: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 14px 22px; border: 3px solid var(--black); transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.btn--black { background: var(--black); color: var(--yellow); box-shadow: 4px 4px 0 var(--red); }
.btn--black:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--yellow); }
.btn--sm { padding: 10px 16px; font-size: .74rem; }

/* ---------- ticker ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; border-bottom: 4px solid var(--black); white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 22px; padding: 12px 0; animation: tick 40s linear infinite; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.ticker i { font-style: normal; color: var(--yellow); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--yellow { background: var(--yellow); border-block: 10px solid var(--black); }
.section--black { background: var(--black); color: var(--cream); }
#find { border-top: 6px solid var(--red); }

.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 40px; line-height: 1; }
.h2 span { display: inline-block; background: var(--black); color: var(--yellow); padding: 6px 18px 4px; box-shadow: 6px 6px 0 var(--red); }
.h2--black span { background: var(--black); color: var(--yellow); }
.h2--yellow span { background: var(--yellow); color: var(--black); box-shadow: 6px 6px 0 var(--red); }

/* ---------- books ---------- */
/* Band colours are placeholders until Charles supplies the final palette/images.
   Each band's photo + tint is set via --noir-image / --horror-image. */
.books { --books-bg: var(--black); --noir-bg: #15171d; --noir-image: linear-gradient(rgba(12,13,18,.25) 0%, rgba(12,13,18,.15) 30%, rgba(12,13,18,.3) 60%, rgba(12,13,18,.6) 100%), url("/assets/img/noir-street-v2.webp"); --horror-bg: #0e2a1d; --horror-image: linear-gradient(rgba(8,10,14,.2), rgba(8,10,14,.2)), url("/assets/img/monster-forest.webp"); background: var(--books-bg); }
.books__head { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); }
.books__head .h2 { margin: 0; }

.series { padding-block: clamp(48px, 7vw, 88px); border-top: 10px solid var(--black); background-size: cover; background-position: center; }
.series--noir { background-position: 50% 0; padding-top: clamp(96px, 16vw, 200px); }
.series--noir { background-color: var(--noir-bg); background-image: var(--noir-image); color: var(--cream); }
.series--horror { background-color: var(--horror-bg); background-image: var(--horror-image); background-position: 50% 0; color: var(--cream); border-top-color: var(--red); }
.series__head { border-left: 10px solid var(--red); padding-left: 18px; margin-bottom: 32px; max-width: 60ch; }
.series--horror .series__head { border-left-color: var(--lime); }
.eyebrow { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; color: #ff5a5f; margin: 0 0 4px; }
.series--horror .eyebrow { color: var(--lime); }
.series__head h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; line-height: 1.05; color: var(--yellow); }
.series__head p:last-child { margin: 0; color: #e8e2d0; }
.series--noir .series__head, .series--horror .series__head { text-shadow: 0 0 3px rgba(0,0,0,.95), 0 2px 6px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.9), 0 0 34px rgba(0,0,0,.75); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.book { scroll-margin-top: 100px; color: var(--ink); display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 20px; background: #fff; border: 3px solid var(--black); box-shadow: 8px 8px 0 var(--black); padding: 18px; }
.book__cover { align-self: start; border: 3px solid var(--black); background: var(--black); transition: transform .2s; }
.book__cover:hover { transform: rotate(-1.5deg) scale(1.02); }
.book__cover img { width: 100%; }
.tag { font-family: var(--type); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin: 0 0 6px; }
.book h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.55rem; line-height: 1.05; letter-spacing: .02em; margin: 0 0 10px; }
.book__body p { margin: 0 0 12px; font-size: .95rem; line-height: 1.55; }
.book__body .tag { font-size: .78rem; line-height: 1.3; }
.meta { font-family: var(--type); font-size: .8rem !important; color: #555; }
.book__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 240px; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__photo { margin: 0; position: relative; text-align: center; }
/* circular portrait, like the round inset on a Giallo cover; whole square is the circle so the face is barely cropped */
.about__photo img { border: 6px solid var(--black); border-radius: 50%; outline: 3px solid var(--black); outline-offset: 7px; box-shadow: 14px 14px 0 var(--red); aspect-ratio: 1; object-fit: cover; object-position: 100% 50%; width: 100%; }
.about__photo figcaption { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; background: var(--black); color: var(--yellow); display: inline-block; padding: 6px 14px; margin-top: 22px; }
.about .lead { font-size: 1.3rem; font-weight: 500; line-height: 1.4; margin-top: 0; }
.about .lead strong { font-weight: 800; }
.about__copy p { max-width: 62ch; }
.influences { margin: 28px 0 0; padding: 20px 24px 22px; max-width: 62ch; background: var(--black); color: var(--cream); border-left: 10px solid var(--red); }
.influences h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.6rem; line-height: 1.1; color: var(--yellow); }
.influences p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--yellow); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 360px; } }

/* ---------- giallo band ---------- */
.giallo { background: var(--black); color: var(--cream); padding-block: 56px; }
.giallo__in { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.giallo__badge { font-family: var(--display); text-transform: uppercase; font-size: 2.6rem; line-height: .95; text-align: center; background: var(--yellow); color: var(--black); padding: 14px 22px; border: 4px solid var(--red); letter-spacing: .04em; transform: rotate(-3deg); }
.giallo h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 2rem; color: var(--yellow); margin: 0 0 8px; }
.giallo p { margin: 0 0 12px; max-width: 70ch; }
.link { color: var(--yellow); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 640px) { .giallo__in { grid-template-columns: 1fr; } .giallo__badge { justify-self: start; } }

/* ---------- find him ---------- */
.find__lede { max-width: 56ch; font-size: 1.15rem; margin: -10px 0 32px; }
.find__lede a { color: var(--yellow); text-underline-offset: 3px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.links a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--yellow); color: var(--black); padding: 18px 20px; border: 3px solid var(--yellow); box-shadow: 6px 6px 0 var(--red); transition: transform .12s, box-shadow .12s; }
.links a:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--red); }
.links b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .04em; }
.links span { font-family: var(--type); font-size: .9rem; }
@media (max-width: 860px) { .links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .links { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--black); color: #aaa; border-top: 6px solid var(--red); padding-block: 28px; font-size: .85rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { height: 90px; margin: 3px; }
.footer__credit { font-family: var(--type); }
.footer__credit a { color: var(--yellow); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  * { transition: none !important; }
}
