/* Steffan Cole author site. Snarky humorous mystery, mobile first. */

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #141a28;
  --ink-soft: #4a5162;
  --cream: #f7f4ec;
  --paper: #efe8d8;
  --navy: #121e43;
  --navy-deep: #0c142e;
  --navy-mid: #1c2d5c;
  --yellow: #f5c105;
  --yellow-soft: #ffe58a;
  --red: #e13c29;
  --red-dark: #b72c1d;
  --pool: #3d7eab;
  --pool-soft: #96c8e9;
  --white: #fffcf6;
  --focus: #f5c105;
  --shadow: 0 18px 40px rgba(12, 20, 46, 0.28);
  --radius: 0.7rem;
  --wrap: 68rem;
  --font-display: "Libre Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.3rem;
}

.skip:focus {
  top: 0.8rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--red-dark);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
}

.hero {
  position: relative;
  color: var(--cream);
  background:
    linear-gradient(180deg, #0c142e 0%, #121e43 48%, #1c3a68 78%, #3d7eab 100%);
  padding: 3.5rem 0 4.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--yellow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: #fff8e8;
}

.tagline {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  line-height: 1.3;
  color: var(--yellow-soft);
}

.lede {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: rgba(247, 244, 236, 0.92);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #ffe58a;
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 229, 138, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-accent {
  background: var(--navy);
  color: #fff8e8;
}

.btn-accent:hover {
  background: var(--navy-mid);
  color: #fff8e8;
}

.btn.is-placeholder {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px dashed var(--navy-mid);
  cursor: default;
}

.btn.is-placeholder:hover {
  background: var(--paper);
  color: var(--ink-soft);
}

.section {
  padding: 3rem 0;
}

.section-tight {
  padding-top: 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  color: var(--red);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 3.2rem;
  height: 3px;
  background: var(--yellow);
}

.ornament span {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--red);
  transform: rotate(45deg);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--navy);
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.book {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.cover-frame {
  margin: 0 auto;
  width: min(100%, 22rem);
}

.cover-frame img {
  width: 100%;
  border-radius: 0.2rem;
  box-shadow: var(--shadow);
  background: var(--paper);
  border: 3px solid var(--navy);
}

.book-copy .kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.book-copy h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy);
}

.release {
  margin: 0.55rem 0 1.1rem;
  font-weight: 600;
  color: var(--red);
}

.hook {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--navy);
}

.blurb p {
  margin: 0 0 1rem;
}

.blurb p:last-child {
  margin-bottom: 0;
}

.series-note {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
}

.about-card,
.newsletter-card,
.contact-card {
  background: var(--white);
  border: 1px solid rgba(18, 30, 67, 0.12);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(12, 20, 46, 0.06);
}

.about-card p,
.newsletter-card p,
.contact-card p {
  margin: 0 0 1rem;
}

.about-card p:last-child,
.newsletter-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.newsletter-card,
.contact-card {
  text-align: center;
}

.newsletter-card .btn,
.contact-card .btn {
  margin-top: 0.4rem;
}

.note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.email-link {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.4rem;
  border-top: 3px solid var(--yellow);
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.page-newsletter {
  min-height: 60vh;
}

.page-newsletter h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--navy);
  text-align: center;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--navy);
}

@media (min-width: 760px) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }

  .hero {
    padding: 5.5rem 0 6rem;
  }

  .book {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 3rem;
    align-items: center;
  }

  .cover-frame {
    margin: 0;
  }

  .about-card,
  .newsletter-card,
  .contact-card {
    padding: 2rem 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
