/* ==========================================================================
   DAG GRANTHAM · AUTHOR SITE (daggrantham.com)
   Follows the Invenire Bonum Press twilight slate palette: slate, deep water,
   warm off-white type and silver accents. No warm accent colors.
   ========================================================================== */

:root {
  /* IBP palette */
  --sky-slate: #4A4F54;
  --dusk: #6B6D69;
  --deep-water: #2F3238;
  --mid-slate: #51555A;
  --ink: #23262B;
  --type-light: #ECE8DF;
  --silver: #C0C4C8;
  --silver-light: #D3D7DB;
  --silver-bright: #E2E5E8;

  --border-subtle: rgba(236, 232, 223, 0.14);

  /* Typography */
  --font-caps: 'Cormorant SC', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-cinzel: 'Cinzel', 'Cormorant SC', Georgia, 'Times New Roman', serif;
  --font-serif: 'Lora', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --radius-sm: 4px;
  --shadow-deep: 0 24px 60px rgba(20, 22, 26, 0.55);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--deep-water);
}

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

body {
  font-family: var(--font-serif);
  line-height: 1.75;
  background-color: var(--deep-water);
  color: var(--type-light);
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

a {
  color: var(--silver-light);
  text-decoration: underline;
  text-decoration-color: rgba(211, 215, 219, 0.45);
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--silver-bright);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--silver-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--silver-light);
  color: var(--ink);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 720px;
}

h1,
h2 {
  font-family: var(--font-caps);
  font-weight: 600;
  line-height: 1.1;
  color: var(--type-light);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   DIVIDER (GA outline + two stars, decorative)
   ========================================================================== */

.divider {
  display: flex;
  justify-content: center;
  padding: 3rem 0 2.5rem;
}

.divider img {
  width: 140px;
}

/* ==========================================================================
   HEADER / HERO
   ========================================================================== */

.site-header {
  background: var(--deep-water);
  padding: 1.5rem 0 4.5rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.site-nav a {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-light);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--silver-bright);
  border-bottom-color: var(--silver);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-top: 3.5rem;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ga-motif {
  width: 56px;
  flex-shrink: 0;
  opacity: 0.85;
}

.site-header h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.hero-place {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.85rem;
}

.hero-tagline {
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--type-light);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--silver);
  max-width: 26ch;
}

.hero-photo {
  justify-self: center;
  max-width: 380px;
  width: 100%;
}

.hero-photo img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding-bottom: 5rem;
}

.section--book,
.section--next {
  background: var(--sky-slate);
}

.section--about,
.section--contact {
  background: var(--deep-water);
}

/* The Book */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 4rem;
  align-items: start;
}

.book-cover img {
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
}

.kicker {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 0.75rem;
}

.section--book h2 {
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--silver-light);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.synopsis p {
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
}

.synopsis p:first-child {
  font-style: italic;
  font-size: 1.25rem;
}

.buy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 14rem;
  padding: 0.85rem 1.4rem;
  background: var(--silver-light);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver-bright);
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--silver-bright);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-main {
  font-family: var(--font-cinzel);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.btn-sub {
  font-size: 0.85rem;
  color: var(--ink);
}

.quiet {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--silver-light);
}

.publisher {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--type-light);
}

/* About */
.bio p {
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}

/* Coming soon */
.section--next {
  padding-bottom: 3rem;
}

.coming {
  text-align: center;
  font-family: var(--font-caps);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--type-light);
}

/* Contact */
.section--contact {
  text-align: center;
}

.contact-label {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-email {
  font-size: 1.35rem;
  margin: 0.4rem 0 2rem;
}

.contact-links {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--sky-slate);
  padding-bottom: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--type-light);
}

.site-footer .divider {
  padding-bottom: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ga-motif--footer {
  width: 36px;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.footer-links span {
  margin: 0 0.5rem;
  color: var(--silver);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 800px) {
  .site-nav ul {
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .hero,
  .book-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    margin-top: 2.5rem;
    text-align: center;
  }

  .name-row {
    justify-content: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    max-width: 320px;
  }

  .book-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .book-text {
    text-align: center;
  }

  .synopsis,
  .quiet {
    text-align: left;
  }

  .buy {
    justify-content: center;
  }

  .btn {
    align-items: center;
    width: 100%;
    max-width: 22rem;
  }

  .ga-motif {
    width: 44px;
  }
}
