:root {
  --cream: #f3ebdc;
  --cream-deep: #e6d9c2;
  --paper: #fff9f0;
  --ink: #2c261e;
  --ink-soft: #5c5348;
  --navy: #152033;
  --navy-mid: #1d2d47;
  --navy-soft: #2a3d5c;
  --gold: #c4a35a;
  --gold-deep: #9a7b38;
  --gold-light: #e2c98a;
  --teal: #6a8f8c;
  --rule: rgba(196, 163, 90, 0.42);
  --shadow: 0 24px 50px rgba(21, 32, 51, 0.18);
  --shadow-book: 0 18px 40px rgba(21, 32, 51, 0.28);
  --header-h: 5rem;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

#books {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background-color: var(--cream);
  background-image: url("../images/linen.jpg");
  background-size: 420px;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

p {
  margin: 0 0 1rem;
}

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

h1,
h2,
h3,
h4,
p,
li {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.2rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.ornament {
  display: block;
  width: min(18rem, 70%);
  height: 3.4rem;
  margin: 0.4rem auto 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.home .site-header {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.55), transparent);
}

.home .site-header.is-scrolled,
.inner .site-header {
  background: rgba(243, 235, 220, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(21, 32, 51, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(196, 163, 90, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--paper);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.home .site-header.is-scrolled .brand-name,
.inner .brand-name {
  color: var(--navy);
}

.home .site-header.is-scrolled .brand-tag,
.inner .brand-tag {
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 249, 240, 0.35);
  background: transparent;
  border-radius: 0.3rem;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.home .site-header.is-scrolled .nav-toggle,
.inner .nav-toggle {
  border-color: rgba(21, 32, 51, 0.2);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--paper);
  position: relative;
  margin: 0 auto;
  transition: transform 0.25s var(--ease);
}

.home .site-header.is-scrolled .nav-toggle span,
.home .site-header.is-scrolled .nav-toggle span::before,
.home .site-header.is-scrolled .nav-toggle span::after,
.inner .nav-toggle span,
.inner .nav-toggle span::before,
.inner .nav-toggle span::after {
  background: var(--navy);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

body.nav-open .site-header,
body.nav-open.home .site-header {
  background: var(--cream);
}

body.nav-open .brand-name,
body.nav-open.home .brand-name {
  color: var(--navy);
}

body.nav-open .nav-toggle {
  border-color: rgba(21, 32, 51, 0.2);
}

body.nav-open .nav-toggle span,
body.nav-open .nav-toggle span::before,
body.nav-open .nav-toggle span::after {
  background: var(--navy);
}

body.nav-open .nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.site-nav ul {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.home .site-header.is-scrolled .site-nav a,
.inner .site-nav a {
  color: var(--navy);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.home .site-header.is-scrolled .site-nav a:hover,
.home .site-header.is-scrolled .site-nav a[aria-current="page"],
.inner .site-nav a:hover,
.inner .site-nav a[aria-current="page"] {
  color: var(--gold-deep);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  color: var(--paper);
  background:
    linear-gradient(105deg, rgba(16, 24, 40, 0.86) 0%, rgba(16, 24, 40, 0.58) 46%, rgba(16, 24, 40, 0.22) 100%),
    url("../images/hero-harbor.jpg") center 40% / cover no-repeat;
}

.hero-content {
  max-width: 52rem;
}

.hero-emblem {
  width: 5.6rem;
  height: 5.6rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.35), 0 10px 30px rgba(0, 0, 0, 0.25);
  background: var(--cream);
}

.hero h1 {
  font-size: clamp(1.35rem, 5.2vw, 4.2rem);
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--gold-light);
  margin: 0 0 1.1rem;
  line-height: 1.25;
}

.gold-rule {
  width: 4.2rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

.hero p {
  font-size: 1.12rem;
  color: rgba(255, 249, 240, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--navy);
}

.btn:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.email-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 249, 240, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 249, 240, 0.1);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(21, 32, 51, 0.28);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--gold-light);
}

section {
  padding: 5.2rem 0;
}

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

.section-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 0.85rem;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.pillars {
  background:
    linear-gradient(180deg, rgba(243, 235, 220, 0.88), rgba(243, 235, 220, 0.94)),
    url("../images/linen.jpg");
}

.pillar-grid {
  display: grid;
  gap: 1.25rem;
}

.pillar {
  background: var(--paper);
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid rgba(21, 32, 51, 0.06);
  box-shadow: 0 10px 30px rgba(21, 32, 51, 0.05);
}

.pillar-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--ink-soft);
}

.series {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.88), rgba(16, 24, 40, 0.92)),
    url("../images/hero-twilight.jpg") center / cover no-repeat;
}

.series .eyebrow,
.series .section-head h2,
.series .section-head p,
.featured h3,
.book-card h3 {
  color: var(--paper);
}

.series .section-head p {
  color: rgba(255, 249, 240, 0.82);
}

.series .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.series .section-head h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.2rem);
}

.featured {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 2.8rem;
  padding: 1.6rem;
  background: rgba(255, 249, 240, 0.05);
  border: 1px solid rgba(226, 201, 138, 0.18);
}

.featured-cover {
  justify-self: center;
}

.featured-cover img,
.book-card img {
  width: min(100%, 22rem);
  box-shadow: var(--shadow-book);
  transition: transform 0.45s var(--ease);
}

.featured-cover img:hover,
.book-card img:hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

.kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.featured h3 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  margin-bottom: 0.35rem;
}

.byline {
  font-style: italic;
  color: rgba(255, 249, 240, 0.72);
  margin-bottom: 1.1rem;
}

.featured .blurb {
  color: rgba(255, 249, 240, 0.88);
  font-size: 1.02rem;
}

.featured .blurb em {
  font-style: italic;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book-row {
  display: grid;
  gap: 1.25rem;
}

.book-card {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  background: rgba(255, 249, 240, 0.04);
  border: 1px solid rgba(255, 249, 240, 0.08);
}

.book-card img {
  width: min(100%, 11.5rem);
  justify-self: center;
}

.book-card h3 {
  font-size: 1.7rem;
}

.book-card p {
  color: rgba(255, 249, 240, 0.78);
}

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.55rem;
}

.cta-band {
  background: var(--paper);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 249, 240, 0.78);
  padding: 3.4rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 249, 240, 0.1);
}

.footer-brand .brand-name {
  color: var(--paper);
}

.footer-brand .brand-tag {
  color: var(--gold-light);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 22rem;
}

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: rgba(255, 249, 240, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.site-footer h4 + .footer-links + h4 {
  margin-top: 1.45rem;
}

.footer-copy {
  padding-top: 1.3rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 249, 240, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-hero {
  min-height: 22rem;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.45), rgba(16, 24, 40, 0.72)),
    url("../images/hero-twilight.jpg") center 35% / cover no-repeat;
}

.page-hero.authors-hero {
  background-image:
    linear-gradient(180deg, rgba(16, 24, 40, 0.5), rgba(16, 24, 40, 0.76)),
    url("../images/library.jpg");
  background-position: center 60%;
}

.page-hero.books-hero {
  background-image:
    linear-gradient(180deg, rgba(16, 24, 40, 0.48), rgba(16, 24, 40, 0.74)),
    url("../images/hero-twilight.jpg");
  background-position: center 40%;
}

.book-catalog {
  background: var(--paper);
}

.book-list {
  display: grid;
  gap: 1.15rem;
}

.book-list-item {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  background: var(--cream);
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(21, 32, 51, 0.06);
}

.book-list-item img {
  width: min(100%, 7.4rem);
  justify-self: start;
  box-shadow: var(--shadow-book);
}

.book-list-item h2 {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.book-list-item .kicker {
  color: var(--gold-deep);
}

.book-list-item .byline {
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.book-list-item .book-actions {
  margin-top: 0.7rem;
}

.page-hero.contact-hero {
  background-image:
    linear-gradient(180deg, rgba(16, 24, 40, 0.48), rgba(16, 24, 40, 0.74)),
    url("../images/writing-desk.jpg");
  background-position: center 55%;
}

.page-hero h1 {
  color: var(--paper);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  max-width: 34rem;
  color: rgba(255, 249, 240, 0.86);
  font-size: 1.15rem;
}

.author-feature {
  background: var(--paper);
}

.author-layout {
  display: grid;
  gap: 2.6rem;
  align-items: start;
}

.author-layout + .author-layout {
  margin-top: 4.5rem;
  padding-top: 4.2rem;
  border-top: 1px solid var(--rule);
}

.ghs-cover {
  margin-top: 1.6rem;
  max-width: 16rem;
}

.ghs-cover img {
  width: 100%;
  box-shadow: var(--shadow-book);
}

.author-portrait {
  position: relative;
  max-width: 24rem;
}

.author-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: var(--shadow);
}

.author-portrait::after {
  content: "";
  position: absolute;
  inset: auto -0.8rem -0.8rem 40%;
  height: 42%;
  border: 1px solid var(--gold);
  z-index: -1;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.6rem;
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-ui);
}

.meta-list span {
  display: inline-block;
  min-width: 5.4rem;
  color: var(--gold-deep);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.series-covers,
.cover-trio {
  margin-top: 2.2rem;
}

.cover-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.cover-trio + .author-layout {
  margin-top: 4.5rem;
  padding-top: 4.2rem;
  border-top: 1px solid var(--rule);
}

.cover-trio img,
.series-covers img {
  width: 100%;
  box-shadow: var(--shadow-book);
  transition: transform 0.45s var(--ease);
}

.cover-trio a {
  display: grid;
  justify-items: center;
  text-decoration: none;
  color: inherit;
}

.cover-trio a:hover img {
  transform: translateY(-6px);
}

.cover-label {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.author-shelf {
  margin-top: 2rem;
}

.future-author {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px dashed rgba(154, 123, 56, 0.45);
  background: rgba(243, 235, 220, 0.55);
  text-align: center;
}

.future-author h3 {
  font-size: 1.8rem;
}

.contact-grid {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

.contact-card,
.contact-form,
.note-card {
  background: var(--paper);
  padding: 2rem 1.6rem;
  box-shadow: 0 16px 36px rgba(21, 32, 51, 0.06);
}

.email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  margin: 0.6rem 0 1.1rem;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--gold-deep);
}

.note-card {
  margin-top: 1.2rem;
  background: var(--navy);
  color: rgba(255, 249, 240, 0.86);
}

.note-card h3 {
  color: var(--gold-light);
}

label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.field {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(21, 32, 51, 0.12);
  padding: 0.75rem 0.85rem;
  border-radius: 0.2rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: #fff;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.4rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.72);
}

.modal-panel {
  position: relative;
  width: min(34rem, 100%);
  background: var(--paper);
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-panel img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 799px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    padding: 2rem 1.4rem;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  .site-nav a,
  .home .site-nav a {
    color: var(--navy);
    font-size: 1rem;
  }

  .hero {
    align-items: center;
    background:
      linear-gradient(180deg, rgba(16, 24, 40, 0.72) 0%, rgba(16, 24, 40, 0.78) 100%),
      url("../images/hero-harbor.jpg") 62% center / cover no-repeat;
  }

  .hero-content {
    text-align: center;
  }

  .hero-emblem {
    margin-inline: auto;
  }

  .gold-rule {
    margin-inline: auto 0;
    margin: 0 auto 1.25rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero .eyebrow {
    max-width: 15rem;
    margin-inline: auto;
    line-height: 1.55;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tag {
    display: none;
  }

  .eyebrow {
    letter-spacing: 0.14em;
  }

  .hero .tagline {
    font-size: 1.28rem;
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .cover-trio {
    gap: 0.5rem;
  }

  .cover-label {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.22rem;
    letter-spacing: 0;
  }
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 2.2rem;
    gap: 3rem;
  }

  .book-row {
    grid-template-columns: 1fr 1fr;
  }

  .book-card {
    grid-template-columns: 10.5rem 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .author-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
  }

  .book-list-item {
    grid-template-columns: 7.4rem 1fr;
    gap: 1.6rem;
    padding: 1.3rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .wrap,
  .header-inner {
    padding-inline: 2rem;
  }

  .featured-cover img {
    width: 24rem;
  }
}

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

  .reveal,
  .featured-cover img,
  .book-card img,
  .btn {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
