/* ========================================
   Ayn Dillard — Author Site
   ======================================== */

:root {
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --gold: #c6a56a;
  --gold-soft: #d4b57e;
  --gold-deep: #a8884c;
  --ink: #f4efe6;
  --ink-muted: #a8a095;
  --line: rgba(198, 165, 106, 0.35);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-para: "Inter", system-ui, sans-serif;
  --font-script: "Corinthia", cursive;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1300px;
  --section-pad: clamp(2.75rem, 5vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 72% 42%,
      rgba(120, 78, 42, 0.22) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 28% 55%,
      rgba(90, 60, 30, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(ellipse 100% 80% at 50% 0%, #161310 0%, var(--bg) 70%);
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ========== Shared ========== */

.section {
  padding: var(--section-pad) 0;
}

.section-inner,
.header-inner,
.hero-inner,
.footer-inner {
  width: min(100% - 3rem, var(--max));
  max-width: 1300px;
  margin-inline: auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head-copy {
  flex-shrink: 0;
}

.section-title {
  color: #fbf8f1;
  font-family: "Cormorant Garamond", serif;
  font-size: 66px;
  font-style: normal;
  font-weight: 500;
  line-height: 108%;
  text-transform: capitalize;
}

p,
.section-lede,
.hero-text,
.author-bio,
.author-bio p,
.contact-text,
.blog-excerpt {
  color: #807e78;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}

.section-lede {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  text-align: right;
}

.eyebrow {
  color: #c7aa73;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 165%;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

/* ========== Header ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}

.logo:hover {
  opacity: 0.85;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 0.4rem + 1.5vw, 2.1rem);
}

.site-nav a {
  position: relative;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.198px;
  letter-spacing: 0;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-soft);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 1rem 1.7rem;
  border-radius: 4px;
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
}

.btn-ghost {
  color: #c7aa73;
  border: 1px solid rgba(199, 170, 115, 0.55);
  background: transparent;
}

.btn-ghost:hover {
  border-color: #c7aa73;
  background: rgba(199, 170, 115, 0.1);
  transform: translateY(-2px);
}

.btn-primary {
  position: relative;
  color: #1a140c;
  background: linear-gradient(180deg, #d4b88a 0%, #c7aa73 55%, #b8975f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 20px rgba(199, 170, 115, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e0c598 0%, #d4b88a 55%, #c7aa73 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 28px rgba(199, 170, 115, 0.28);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 12px rgba(199, 170, 115, 0.18);
}

.btn .fa-amazon {
  font-size: 1.2em;
  line-height: 1;
  opacity: 0.92;
}

.header-cta {
  justify-self: end;
  padding: 0.75rem 1.2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: #fbf8f1;
  transition: color 0.25s var(--ease);
}

.text-link .arrow,
.btn .arrow-ne,
.book-buy .arrow-ne,
.back-top .fa-arrow-up {
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.arrow-ne {
  transform: rotate(-45deg);
}

.text-link:hover {
  color: #c7aa73;
}

.text-link:hover .arrow-ne,
.btn:hover .arrow-ne,
.book-card:hover .book-buy .arrow-ne {
  transform: rotate(-45deg) translate(3px, 0);
}

.back-top:hover .fa-arrow-up {
  transform: translateY(-2px);
}

/* ========== Hero ========== */

.hero {
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(2.25rem, 4vw, 3.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  max-width: none;
}

.hero .eyebrow {
  margin-bottom: 1.1rem;
}

.hero-title {
  color: #fbf8f1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 6.5vw, 97px);
  font-style: normal;
  font-weight: 500;
  line-height: 108%;
  text-transform: capitalize;
  margin-bottom: 1.35rem;
}

.title-line {
  display: block;
  color: #fbf8f1;
}

.title-accent {
  color: #c7aa73;
  font-style: italic;
  font-weight: 400;
}

.hero-text {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 2rem;
}

.hero-actions .btn-primary {
  min-height: 54px;
  padding: 1rem 1.85rem;
}

.hero-actions .text-link {
  color: #fbf8f1;
  font-size: 16px;
  font-weight: 500;
}

.hero-actions .text-link .arrow {
  font-size: 0.8em;
}

.hero-portrait {
  justify-self: end;
  width: min(100%, 480px);
}

.portrait-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.portrait-frame::after {
  display: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 1.2s var(--ease);
}

.hero-portrait:hover .portrait-frame img {
  transform: scale(1.03);
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-inline: 0.15rem;
}

.caption-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbf8f1;
}

.caption-role {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: rgba(251, 248, 241, 0.55);
}

/* ========== Books ========== */

.books {
  background:
    radial-gradient(
      ellipse 50% 60% at 85% 20%,
      rgba(110, 75, 40, 0.18),
      transparent 60%
    );
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.75rem);
}

.book-card {
  position: relative;
}

.book-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding-bottom: 0.25rem;
}

.book-cover {
  position: relative;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.book-title {
  color: #fbf8f1;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  text-transform: capitalize;
  transition: color 0.25s var(--ease);
}

.book-buy {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.15rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #fbf8f1;
  background: #161412;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s var(--ease),
    background 0.25s var(--ease);
}

.book-card:hover .book-title,
.book-card:focus-within .book-title {
  color: #c7aa73;
}

.book-card:hover .book-buy,
.book-card:focus-within .book-buy {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.book-card:hover .book-buy:hover {
  background: #221f1c;
}

/* ========== Author ========== */

.author {
  background:
    radial-gradient(
      ellipse 55% 70% at 18% 50%,
      rgba(100, 78, 42, 0.22),
      transparent 62%
    );
}

.author-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.author-photo {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  width: 100%;
}

.author-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.author-copy {
  position: relative;
  max-width: none;
  width: 100%;
}

.author-bio {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 1.85rem;
}

.author-signature {
  margin-top: 1.5rem;
  text-align: right;
  color: #c7aa73;
  font-family: "Corinthia", cursive;
  font-size: 72px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.4px;
}

/* ========== Gallery ========== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 1rem;
  min-height: 0;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-tall {
  grid-row: 1 / -1;
}

.gallery-wide {
  grid-column: 2 / -1;
  display: block;
}

.ig-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c7aa73;
  background: rgba(12, 11, 10, 0.28);
  transition: background 0.3s var(--ease);
}

.ig-badge .fa-instagram {
  font-size: 2rem;
}

.gallery-wide:hover .ig-badge {
  background: rgba(12, 11, 10, 0.4);
}

/* ========== Blog ========== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-thumb {
  order: -1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  background: transparent;
}

.blog-thumb img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-meta {
  color: #c7aa73;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 165%;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.blog-title {
  color: #fbf8f1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-style: normal;
  font-weight: 500;
  line-height: 108%;
  text-transform: capitalize;
  margin-bottom: 0.55rem;
  transition: color 0.25s var(--ease);
}

.blog-card:hover .blog-title {
  color: #c7aa73;
}

.blog-excerpt {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-read {
  color: #c7aa73;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
}

/* ========== Contact ========== */

.contact {
  background:
    radial-gradient(
      ellipse 40% 50% at 8% 90%,
      rgba(120, 80, 40, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse 35% 45% at 95% 10%,
      rgba(110, 75, 40, 0.14),
      transparent 55%
    );
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-text {
  max-width: 36rem;
  margin: 1.1rem 0 2rem;
}

.social-list {
  display: grid;
  gap: 1.15rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #c7aa73;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.social-list a i {
  width: 1.4rem;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #c7aa73;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.footer-social a i {
  width: 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1;
}

.social-list a:hover,
.footer-social a:hover {
  color: #d4b88a;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  color: #fbf8f1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  color: #fbf8f1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  outline: none;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  font-size: 16px;
  color: rgba(168, 160, 149, 0.7);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* ========== Footer ========== */

.site-footer {
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(
      ellipse 45% 80% at 10% 0%,
      rgba(110, 75, 40, 0.16),
      transparent 60%
    );
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  font-weight: 500;
  color: #c7aa73;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
}

.footer-nav a {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #c7aa73;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: #fbf8f1;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
}

.copyright {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7aa73;
}

.footer-social {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.back-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #c7aa73;
  border: 1px solid rgba(199, 170, 115, 0.45);
  border-radius: 3px;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.back-top:hover {
  background: rgba(199, 170, 115, 0.1);
  border-color: #c7aa73;
}

/* ========== Responsive ========== */

@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(52px, 6vw, 80px);
  }

  .hero-portrait {
    width: min(100%, 400px);
  }

  .section-title {
    font-size: clamp(42px, 5vw, 58px);
  }

  .site-nav a {
    font-size: 14px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
  }

  .logo {
    flex: 0 0 auto;
  }

  .header-tools {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(12, 11, 10, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.35s var(--ease),
      opacity 0.25s var(--ease),
      visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    padding: 0.65rem 0.95rem;
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    order: 1;
    max-width: 40rem;
    text-align: left;
  }

  .hero-portrait {
    order: 2;
    justify-self: start;
    width: min(100%, 420px);
  }

  .hero-text {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-lede {
    text-align: left;
    max-width: 28rem;
    margin-left: 0;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
  }

  .author-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .author-copy {
    order: 1;
  }

  .author-photo {
    order: 2;
    width: min(100%, 420px);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .gallery-tall {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .gallery-wide {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 8;
  }

  .gallery-item:not(.gallery-tall):not(.gallery-wide) {
    aspect-ratio: 4 / 3;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 2rem 1.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-nav {
    gap: 1rem 1.5rem;
  }

  .footer-nav a {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .section-inner,
  .hero-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy {
    text-align: center;
    max-width: none;
  }

  .hero-portrait {
    justify-self: center;
    width: min(100%, 340px);
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(36px, 9vw, 52px);
  }

  .section {
    padding: 2.25rem 0;
  }

  .hero {
    padding: 1.25rem 0 2rem;
  }

  .section-title {
    font-size: clamp(32px, 8vw, 44px);
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .author-photo {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .author-signature {
    text-align: center;
    font-size: clamp(42px, 12vw, 64px);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header-cta .fa-amazon {
    display: none;
  }

  .btn-primary,
  .contact-form .btn {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.1rem;
  }

  .footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .back-top {
    justify-self: start;
  }

  .copyright {
    letter-spacing: 0.06em;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .book-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
    gap: 1.25rem;
  }

  .book-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .header-tools {
    gap: 0;
  }
}

/* ========== Animations ========== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  will-change: opacity, transform;
}

/* Fallback if JS is blocked / late */
.no-js .reveal,
.no-js .reveal-left,
.no-js .reveal-right {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hero-copy .eyebrow,
.hero-copy .hero-title,
.hero-copy .hero-text,
.hero-copy .hero-actions {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.9s var(--ease) forwards;
}

.hero-copy .eyebrow { animation-delay: 0.1s; }
.hero-copy .hero-title { animation-delay: 0.22s; }
.hero-copy .hero-text { animation-delay: 0.36s; }
.hero-copy .hero-actions { animation-delay: 0.48s; }

.hero-portrait {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: fade-up-scale 1s var(--ease) 0.28s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(12, 11, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn,
.text-link,
.book-card,
.blog-card,
.gallery-item,
.social-list a {
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s var(--ease),
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.book-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .hero-copy .eyebrow,
  .hero-copy .hero-title,
  .hero-copy .hero-text,
  .hero-copy .hero-actions,
  .hero-portrait {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .portrait-frame img,
  .book-cover,
  .book-cover img,
  .gallery-item img,
  .blog-thumb img,
  .text-link .arrow,
  .btn,
  .book-card,
  .blog-card {
    transition: none;
  }

  .btn:hover,
  .book-card:hover,
  .blog-card:hover {
    transform: none;
  }
}
