/* Richard Walsh — hopeful author site
   Light sky / warm paper / ember + horizon blue from series art */

:root {
  --bg: #F7F1E6;
  --bg-soft: #EEF6FB;
  --surface: #FFFCF7;
  --text: #1C2430;
  --muted: #5C6570;
  --accent: #E85A1B;
  --accent-deep: #C4531A;
  --ember: #E85A1B;
  --sky: #5B8FB8;
  --sky-soft: #B8DCF0;
  --sand: #E8C49A;
  --border: #E4D9C8;
  --accent-glow: rgba(232, 90, 27, 0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1080px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 220, 240, 0.55), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 196, 154, 0.35), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-deep); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 1000;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: var(--accent-deep); }

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

.hero {
  padding: 3rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: 1rem; color: var(--text);
}
.hero-tagline {
  color: var(--muted); font-size: 1.1rem; max-width: 42ch; margin-bottom: 1.5rem;
}
.hero-portrait {
  justify-self: center;
  width: min(280px, 70vw);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 40px rgba(58, 143, 191, 0.2), 0 4px 16px rgba(28, 42, 54, 0.08);
}
.hero-portrait img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 32%;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--sky); color: var(--sky); }
.btn-amazon {
  background: var(--sky); color: #fff;
}
.btn-amazon:hover { background: #2F7AA6; color: #fff; }

.featured {
  padding: 1rem 0 3.5rem;
}
.section-head { margin-bottom: 1.75rem; max-width: 52ch; }
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section-head p { color: var(--muted); }

.feature-banner {
  display: grid; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, var(--bg-soft), #fff 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 32px rgba(28, 42, 54, 0.06);
}
@media (min-width: 720px) {
  .feature-banner { grid-template-columns: 180px 1fr; padding: 1.5rem; }
}
.feature-art,
video.feature-art {
  display: block;
}
.feature-art {
  width: 100%; max-width: 200px; margin-inline: auto;
  border-radius: 12px; object-fit: cover; aspect-ratio: 3/4;
  box-shadow: 0 10px 28px rgba(28, 42, 54, 0.12);
}
.feature-lead { color: var(--muted); margin: 0.5rem 0 1.25rem; max-width: 48ch; }

.book-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 0 8px 24px rgba(28, 42, 54, 0.04);
}
.book-card.coming-soon { background: var(--bg-soft); }
.book-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sky);
}
.book-card h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.book-meta { font-size: 0.9rem; color: var(--muted); }
.book-blurb { color: var(--muted); font-size: 0.98rem; flex: 1; }
.badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(226, 106, 44, 0.12); color: var(--accent-deep);
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.badge-muted {
  background: rgba(58, 143, 191, 0.12); color: var(--sky);
}

#about { padding: 2.5rem 0 3rem; }
.about-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.about-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 65ch; }
.about-copy strong { color: var(--text); }

.contact { padding: 0 0 3.5rem; }
.contact-card {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) {
  .contact-card { grid-template-columns: 1fr 1fr; }
}
.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.contact-item h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.35rem; }
.contact-item a { font-weight: 700; font-size: 1.05rem; text-decoration: none; word-break: break-word; }
.contact-item p { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.55);
}
.site-footer .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.95rem;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-deep); }


.book-cover {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.25rem 0 0.35rem;
  box-shadow: 0 6px 18px rgba(28, 36, 48, 0.12);
}


.book-proof {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ember);
}

.book-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
