/* Clyde Landon author site — shared styles
   Image slots: images/logo.png, images/hero-bg.png, images/book-his-name-is-guck.png, images/book-ancient-warrior.png
   Fonts: Playfair Display (headings), Montserrat (nav, body, buttons) */
:root {
  --teal: #2fa9b6;
  --teal-dark: #1b7f8a;
  --gold: #eba42d;
  --rose: #d4868c;
  --ink: #111111;
  --muted: #565f66;
  --cream: #ffffff;
  --soft: #f2f8f9;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(20, 40, 50, 0.14);
  --hero-bg: url("Images/home-bg-1.webp");
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:
    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.02rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--teal-dark);
}
a:hover {
  color: var(--gold);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h3 {
  font-size: 1.35rem;
}
p {
  margin: 0 0 1.1em;
}
.container {
  width: min(1360px, 92%);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  gap: 1rem;
}
.brand {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  height: 84px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.15rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}
.btn-outline {
  background: none;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--teal);
}

/* Hero + slider */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--cream);
}
/* Background image on its own layer behind the content. If images/hero-bg.png is missing, the gradient shows instead. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    var(--hero-bg), linear-gradient(135deg, #ffffff 45%, #e3f1f2 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    right center,
    center;
  background-size:
    auto 100%,
    cover;
}
.hero-slider {
  position: relative;
}
.hero-slide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
  min-height: 72vh;
}
.hero-slide[hidden] {
  display: none;
}
.hero-slide > div:first-child {
  padding-left: 3rem;
}
.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  line-height: 0.98;
  margin: 0 0 1.6rem;
  font-weight: 700;
}
.hero-title span {
  display: block;
}
.hero-title .accent {
  color: var(--gold);
}
.hero .lead {
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: justify;
  color: var(--ink);
  margin-bottom: 2.2rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.book-cover {
  width: min(340px, 80%);
  margin-inline: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}
.book-cover:hover {
  transform: scale(1.02);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 2;
  color: var(--ink);
  line-height: 0;
}
.hero-arrow:hover {
  color: var(--gold);
}
.hero-arrow svg {
  width: 34px;
  height: 34px;
}
.hero-prev {
  left: 0;
}
.hero-next {
  right: 5%;
}

/* Sections */
section {
  padding: 4.5rem 0;
}
.hero {
  padding: 0;
}
.section-alt {
  background: var(--soft);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.page-title {
  background: linear-gradient(135deg, #e3f1f2, #ffffff);
  padding: 4rem 0 3rem;
}
.page-title h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
}

/* Gallery / media */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe8ea;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery figure:hover img {
  transform: scale(1.05);
}
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #c9d3d6;
  border-radius: 12px;
  font: inherit;
  margin-bottom: 1.1rem;
  background: #fff;
}
form input:focus,
form textarea:focus {
  outline: 3px solid rgba(47, 169, 182, 0.3);
  border-color: var(--teal);
}
.hp {
  position: absolute;
  left: -9999px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #dfe6e8;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav ul {
    gap: 1.2rem;
  }
  .site-nav a {
    font-size: 0.85rem;
  }
}
@media (max-width: 860px) {
  .header-inner {
    min-height: 90px;
  }
  .brand img {
    height: 62px;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 4%;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }
  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 0.95rem;
  }
  .hero-slide,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-slide {
    padding: 2.5rem 0 5.5rem;
    min-height: 0;
    text-align: center;
  }
  .hero-slide > div:first-child {
    padding-left: 0;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero-visual {
    order: -1;
  }
  .book-cover {
    width: min(260px, 65%);
  }
  /* On phones the background image shrinks and sits behind the book cover so the text stays readable */
  .hero::before {
    background-position:
      right top,
      center;
    background-size:
      auto 48%,
      cover;
  }
  .hero-arrow {
    top: auto;
    bottom: 1.2rem;
    transform: none;
  }
  .hero-prev {
    left: calc(50% - 70px);
  }
  .hero-next {
    right: calc(50% - 70px);
  }
  section {
    padding: 3rem 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}