:root {
  color-scheme: light;
  --brand-blue: #046bd2;
  --brand-blue-dark: #045cb4;
  --brand-orange: #e66327;
  --brand-green: #78a843;
  --ink: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --line: #d8e2eb;
  --paper: #fffaf3;
  --paper-deep: #f0f5fa;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(30, 41, 59, 0.12);
  --radius: 8px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: 3.15rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.15rem;
}

ul,
ol {
  margin-top: 0;
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.35rem;
}

.skip-link {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 30;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid rgba(216, 226, 235, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 54px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-note {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  min-height: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-blue-dark);
  background: rgba(4, 107, 210, 0.1);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.65rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.15rem;
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--brand-blue);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.button.secondary {
  color: var(--brand-blue-dark);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--brand-orange);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section {
  padding: 5.4rem 0;
}

.section.tight {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--white);
}

.section.soft {
  background: var(--paper-deep);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.center {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.lead {
  color: var(--body);
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.94) 43%, rgba(255, 250, 243, 0.55) 62%, rgba(255, 250, 243, 0.08) 100%),
    url("../img/author-portrait.jpg");
  background-position: center, right 24% center;
  background-size: cover, min(48vw, 680px) auto;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.6rem 0;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  margin-bottom: 0.35em;
  font-size: 4.1rem;
}

.hero .lead {
  max-width: 620px;
  font-size: 1.26rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 650px;
  margin-top: 2rem;
}

.stat {
  padding: 1rem;
  border-left: 4px solid var(--brand-green);
  background: rgba(255, 255, 255, 0.84);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.two-column.start {
  align-items: start;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.note-panel {
  padding: 1.3rem;
  border-left: 5px solid var(--brand-orange);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

.grid {
  display: grid;
  gap: 1.15rem;
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.07);
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.book-cover {
  display: grid;
  place-items: center;
  min-height: 315px;
  padding: 1.1rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.book-cover img {
  width: auto;
  max-height: 285px;
  box-shadow: 0 16px 24px rgba(30, 41, 59, 0.18);
}

.book-body {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.book-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.book-body p {
  color: var(--body);
  font-size: 0.98rem;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(4, 107, 210, 0.22);
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: rgba(4, 107, 210, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.book-body .text-link {
  margin-top: auto;
  font-weight: 800;
}

.price {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.recognition-card,
.event-card,
.testimonial-card {
  padding: 1.25rem;
}

.recognition-card strong,
.event-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.25;
}

.event-card img {
  width: 100%;
  aspect-ratio: 5 / 3.4;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.testimonial-card cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: 4.6rem 0;
  background: linear-gradient(135deg, rgba(240, 245, 250, 0.95), rgba(255, 250, 243, 0.98));
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 960px;
}

.page-hero h1 {
  font-size: 3.3rem;
}

.content-list {
  display: grid;
  gap: 1rem;
}

.content-list article,
.contact-method {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.content-list h3,
.contact-method h3 {
  margin-bottom: 0.35rem;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline-item time {
  color: var(--brand-orange);
  font-weight: 900;
}

.contact-strip {
  color: var(--white);
  background: var(--ink);
}

.contact-strip h2,
.contact-strip p {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.contact-methods {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 2.2rem 0;
  color: #dbe7f3;
  background: #152236;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 2.7rem;
  }

  .hero {
    min-height: 640px;
    background-image:
      linear-gradient(90deg, rgba(255, 250, 243, 0.99) 0%, rgba(255, 250, 243, 0.94) 58%, rgba(255, 250, 243, 0.24) 100%),
      url("../img/author-portrait.jpg");
    background-position: center, right center;
    background-size: cover, min(56vw, 560px) auto;
  }

  .grid.books,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: 76px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .has-js .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .has-js .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 243, 0.64) 0%, rgba(255, 250, 243, 0.94) 46%, rgba(255, 250, 243, 1) 72%),
      url("../img/author-portrait.jpg");
    background-position: center top;
    background-size: cover, 100% auto;
  }

  .hero-content {
    padding-top: 20rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-note {
    display: none;
  }

  .hero-content {
    padding-top: 18rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .grid.books,
  .grid.four,
  .grid.three,
  .link-list {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
