:root {
  --bg: #0b0a0a;
  --panel: #111010;
  --panel-alt: #151313;
  --line: rgba(231, 217, 191, 0.15);
  --text: #efe6d7;
  --muted: #b7aa97;
  --accent: #a61f17;
  --accent-soft: #dfb97a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0a0909 0%, #0f0d0d 35%, #0a0909 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 20px;
}

.page-anchor {
  display: block;
  height: 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand__top {
  font-size: 0.78rem;
  color: var(--text);
  text-transform: uppercase;
}

.brand__bottom {
  font-size: 1.6rem;
  line-height: 0.92;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.brand--sidebar {
  margin-bottom: 22px;
}

.sidenav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sidenav a {
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sidenav a:hover,
.sidenav a.is-active {
  color: var(--accent-soft);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 16, 0.92);
  padding: 22px 18px 20px;
  box-shadow: var(--shadow);
}

.sidenav {
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-stack {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.quote-card {
  margin: 0;
  padding: 16px 16px 16px 18px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-card p {
  margin: 0;
  color: var(--text);
}

.content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 16, 0.82);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  font-size: 4rem;
  line-height: 0.95;
  margin-bottom: 18px;
  max-width: 8ch;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

.hero__lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero__badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(10, 9, 9, 0.84);
  border: 1px solid rgba(231, 217, 191, 0.12);
  color: var(--text);
  max-width: 28rem;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-link {
  color: var(--accent-soft);
}

.bio__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.bio__image {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.bio__text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-alt);
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--accent-soft);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.95rem;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
}

.fact-card__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

.fact-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.books__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.book-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-alt);
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
}

.book-card__body {
  padding: 14px;
}

.book-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.book-card__top span {
  color: var(--accent-soft);
  white-space: nowrap;
}

.book-card p {
  margin: 0;
  color: var(--muted);
}

.book-card--figure {
  margin: 0;
}

.book-card--figure img {
  aspect-ratio: 2 / 3;
}

.book-card--figure figcaption {
  padding: 14px;
  color: var(--muted);
}

.contact__panel {
  min-height: 100%;
  padding: 4px 12px 4px 0;
}

.contact__lead {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.contact__topics {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact__topic {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact__topic span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 700;
}

.contact__topic strong {
  display: block;
  color: var(--accent-soft);
}

.contact__topic p {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field span {
  color: var(--text);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(231, 217, 191, 0.18);
  background: #0f0d0d;
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-soft);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #db5751;
}

.field__error {
  min-height: 1.1em;
  color: #f29b96;
  font-size: 0.9rem;
}

.form__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form__status {
  margin: 0;
  color: var(--accent-soft);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 6px 4px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 14px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent-soft);
  border-color: rgba(223, 185, 122, 0.5);
  transform: translateY(-1px);
}

.footer__links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 920px) {
  .hero,
  .bio__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 10px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .facts__grid,
  .books__grid {
    grid-template-columns: 1fr;
  }

  .section-heading--row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
