:root {
  --royal: #242b85;
  --royal-deep: #171d62;
  --royal-soft: #5b6695;
  --paper: #fffdf8;
  --cream: #f3eee7;
  --cream-deep: #e5d9ce;
  --ink: #25243a;
  --muted: #6e6a73;
  --copper: #9a6f57;
  --copper-deep: #704834;
  --sky: #b8d8de;
  --gold: #d1bd55;
  --white: #ffffff;
  --line: rgba(36, 43, 133, 0.16);
  --shadow: 0 24px 60px rgba(28, 28, 45, 0.14);
  --shadow-soft: 0 14px 34px rgba(28, 28, 45, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--royal-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 216, 222, 0.18), transparent 28%),
    linear-gradient(135deg, var(--royal-deep), var(--royal));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  padding: 8px 0;
}

.brand {
  flex: 0 0 auto;
  width: min(400px, 48vw);
  margin: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  flex: 1;
  margin-left: clamp(28px, 5vw, 72px);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--sky);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(184, 216, 222, 0.34), transparent 24%),
    linear-gradient(115deg, #eef2f1 0%, var(--cream) 44%, var(--paper) 100%);
}

.hero::before {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(36, 43, 133, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: center;
  min-height: 720px;
  padding: 76px 0 84px;
}

.hero-cover-wrap {
  display: flex;
  justify-content: center;
}

.hero-cover {
  width: min(430px, 100%);
  border-radius: 4px;
  box-shadow: 0 34px 70px rgba(24, 27, 61, 0.28), 0 8px 18px rgba(24, 27, 61, 0.16);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.section-title,
.book-title,
.about-title,
.contact-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title {
  margin: 0;
  color: var(--royal-deep);
  font-size: clamp(1.6rem, 3vw, 3rem);
  letter-spacing: -0.035em;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--copper-deep);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-style: italic;
  font-weight: 500;
}

.hero-copy {
  margin: 28px 0 0;
  max-width: 690px;
  color: #4b4856;
  font-size: 1.08rem;
}

.hero-actions,
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(36, 43, 133, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--royal-deep);
  box-shadow: 0 16px 34px rgba(36, 43, 133, 0.28);
}

.button-secondary {
  border-color: rgba(36, 43, 133, 0.26);
  background: rgba(255, 255, 255, 0.7);
  color: var(--royal-deep);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
}

.home-intro {
  padding: 86px 0 92px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}

.kicker-block {
  position: sticky;
  top: 28px;
  padding-top: 8px;
}

.section-title {
  margin: 0;
  color: var(--royal-deep);
  font-size: clamp(1.2rem, 2vw, 2.125rem);
}

.editorial-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 164px;
  margin: 22px 0 0;
}

.editorial-rule::before,
.editorial-rule::after {
  flex: 1;
  height: 1px;
  background: var(--copper);
  content: "";
}

.editorial-rule span {
  width: 7px;
  height: 7px;
  background: var(--copper);
  transform: rotate(45deg);
}

.home-intro-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #514d58;
  font-size: 1.08rem;
}

.text-link {
  color: var(--royal);
  font-weight: 750;
  text-decoration-color: rgba(36, 43, 133, 0.34);
  text-underline-offset: 4px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: currentColor;
}

.page-hero {
  padding: 82px 0 76px;
  background:
    radial-gradient(circle at 88% 0%, rgba(184, 216, 222, 0.26), transparent 28%),
    linear-gradient(180deg, var(--cream), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
  color: var(--royal-deep);
  font-size: clamp(1.7rem, 3.5vw, 3.1rem);
  letter-spacing: -0.035em;
}

.page-lede {
  max-width: 730px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.books-section {
  padding: 76px 0 96px;
}

.book-list {
  display: grid;
  gap: 42px;
}

.book-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.book-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(232, 237, 245, 0.72), rgba(255, 253, 248, 0.9));
}

.book-cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.book-cover-frame img {
  max-height: 330px;
  width: auto;
  filter: drop-shadow(0 22px 24px rgba(31, 31, 47, 0.18));
}

.book-meta {
  margin: 0 0 12px;
  color: var(--copper-deep);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-title {
  margin: 0;
  color: var(--royal-deep);
  font-size: clamp(1.125rem, 2vw, 1.95rem);
}

.book-series {
  margin: 10px 0 0;
  color: var(--royal-soft);
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
}

.book-description {
  max-width: 760px;
  margin: 24px 0 0;
  color: #514d58;
}

.about-section {
  padding: 78px 0 42px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
}

.author-photo {
  width: 100%;
  border-radius: 50% 50% 46% 54% / 45% 46% 54% 55%;
  box-shadow: var(--shadow);
}

.about-title {
  margin: 0 0 24px;
  color: var(--royal-deep);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
}

.about-copy p {
  margin: 0 0 22px;
  color: #514d58;
  font-size: 1.08rem;
}

.contact-section {
  padding: 46px 0 102px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
  padding: clamp(32px, 5vw, 62px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(184, 216, 222, 0.15), transparent 34%),
    var(--royal-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
}

.contact-intro p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  transition: border 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-field input {
  min-height: 50px;
  padding: 10px 13px;
}

.form-field textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(184, 216, 222, 0.82);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(184, 216, 222, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.form-submit-row {
  display: flex;
  grid-column: 1 / -1;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-form .button-primary {
  background: var(--white);
  color: var(--royal-deep);
  cursor: pointer;
}

.contact-form .button-primary:hover,
.contact-form .button-primary:focus-visible {
  background: var(--cream);
}

.form-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.form-status[data-state="success"] {
  color: #d4f4df;
}

.form-status[data-state="error"] {
  color: #ffd6d6;
}

.events-section {
  padding: 74px 0 104px;
}

.event-list {
  display: grid;
  gap: 24px;
}

.event-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.event-date {
  display: grid;
  place-content: center;
  min-height: 220px;
  padding: 28px;
  background: var(--royal);
  color: var(--white);
  text-align: center;
}

.event-date .month {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-date .day {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 0.9;
}

.event-date .time {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
}

.event-content {
  padding: 34px 38px;
}

.event-location {
  margin: 0;
  color: var(--royal-deep);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
}

.event-location a {
  text-decoration-color: rgba(36, 43, 133, 0.3);
  text-underline-offset: 4px;
}

.event-description {
  margin: 15px 0 0;
  color: var(--muted);
}

.event-image-placeholder {
  display: grid;
  place-content: center;
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(184, 216, 222, 0.5), rgba(229, 217, 206, 0.55));
  color: var(--royal-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.events-note {
  max-width: 650px;
  margin: 34px auto 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: #11164c;
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 102px;
  padding: 24px 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-social img {
  display: block;
  padding-right: 5px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .home-intro-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 48px;
    padding: 58px 0 66px;
  }

  .hero-cover {
    width: min(390px, 86vw);
  }

  .hero-copy-wrap {
    text-align: center;
  }

  .hero-copy,
  .hero-actions {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .home-intro {
    padding: 68px 0 74px;
  }

  .home-intro-grid {
    gap: 32px;
  }

  .kicker-block {
    position: static;
  }

  .book-card {
    grid-template-columns: 205px 1fr;
  }

  .contact-panel {
    gap: 38px;
  }

  .event-card {
    grid-template-columns: 150px 1fr;
  }

  .event-image-placeholder {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 64px;
    padding: 7px 0;
  }

  .brand {
    width: min(185px, 58vw);
    margin: 0;
  }

  .main-nav {
    margin-left: auto;
  }

  .nav-row {
    min-height: 0;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 49px;
    right: 0;
    left: 0;
    display: none;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 14px 14px;
    background: var(--royal-deep);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  }

  .nav-list.is-open {
    display: grid;
  }

  .nav-list a {
    display: block;
    padding: 12px 10px;
    text-align: center;
  }

  .nav-list a::after {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.375rem, 7vw, 2.1rem);
  }

  .hero-subtitle {
    font-size: 1.32rem;
  }

  .page-hero {
    padding: 58px 0 52px;
  }

  .page-title {
    font-size: clamp(1.5rem, 7.5vw, 2.25rem);
  }

  .books-section,
  .about-section,
  .events-section {
    padding-top: 54px;
  }

  .book-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px 32px;
  }

  .book-cover-frame {
    min-height: 280px;
  }

  .book-cover-frame img {
    max-height: 285px;
  }

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

  .book-actions {
    justify-content: center;
  }

  .author-photo {
    max-width: 460px;
    margin: 0 auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field.full,
  .form-submit-row {
    grid-column: 1;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    min-height: auto;
    grid-template-columns: auto auto auto;
    gap: 10px;
    align-items: baseline;
  }

  .event-date .day {
    font-size: 2.4rem;
  }

  .event-date .time {
    margin-top: 0;
  }

  .event-content {
    padding: 28px 24px 32px;
  }

  .footer-inner {
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
