:root {
  --color-black: #0d0d0d;
  --color-ink: #151212;
  --color-panel: #1a1515;
  --color-panel-soft: #211a1a;
  --color-red: #ef1515;
  --color-red-dark: #a40707;
  --color-wine: #5e0808;
  --color-bone: #f6eeee;
  --color-muted: #b7a8a8;
  --color-line: rgba(239, 21, 21, 0.24);
  --shadow-red: 0 24px 70px rgba(239, 21, 21, 0.16);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max-page-width: 1120px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-bone);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    linear-gradient(rgba(13, 13, 13, 0.92), rgba(13, 13, 13, 0.92)),
    url("assets/swan-pattern.png") top left / 230px auto repeat,
    var(--color-black);
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 21, 21, 0.88);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-line);
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(14px);
}

.header-wrap,
.footer-wrap,
.inner {
  width: min(var(--max-page-width), calc(100% - 32px));
  margin: 0 auto;
}

.header-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(239, 21, 21, 0.58);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(239, 21, 21, 0.2);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  color: var(--color-bone);
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  color: var(--color-muted);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--color-bone);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(239, 21, 21, 0.16);
  color: white;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(239, 21, 21, 0.12);
  color: var(--color-bone);
  font: inherit;
  font-weight: 700;
  padding: 0 13px;
}

.hero {
  min-height: clamp(620px, 76vh, 760px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 74% 40%, rgba(239, 21, 21, 0.22), transparent 28%),
    linear-gradient(110deg, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.78) 58%, rgba(13, 13, 13, 0.94)),
    url("assets/swan-pattern.png") center / 260px auto repeat;
}

.hero.short {
  min-height: 430px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.55rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(246, 238, 238, 0.84);
  font-size: 1.12rem;
}

.hero-card {
  border: 1px solid rgba(239, 21, 21, 0.34);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.72);
  box-shadow: var(--shadow-red);
  padding: 20px;
}

.hero-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-soft,
.button-subtle {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: white;
  box-shadow: 0 14px 28px rgba(239, 21, 21, 0.2);
}

.button:hover {
  background: #ff2929;
}

.button-soft {
  border: 1px solid rgba(246, 238, 238, 0.42);
  color: var(--color-bone);
}

.button-soft:hover {
  background: rgba(246, 238, 238, 0.08);
}

.button-subtle {
  border: 1px solid var(--color-line);
  color: var(--color-bone);
}

.button-subtle:hover {
  border-color: rgba(239, 21, 21, 0.76);
  background: rgba(239, 21, 21, 0.12);
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: rgba(18, 13, 13, 0.84);
}

.section.dark {
  background:
    linear-gradient(rgba(9, 9, 9, 0.88), rgba(9, 9, 9, 0.88)),
    url("assets/swan-pattern.png") center / 220px auto repeat;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
}

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

.book-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card,
.book-card,
.panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(26, 21, 21, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.card p,
.book-card p,
.panel p {
  color: var(--color-muted);
}

.book-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.book-cover-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 21, 21, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(18, 13, 13, 0.58), rgba(18, 13, 13, 0.9)),
    url("assets/swan-pattern.png") center / 140px auto repeat;
  overflow: hidden;
}

.book-cover-placeholder img {
  width: min(150px, 72%);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(239, 21, 21, 0.22);
}

.book-cover {
  width: min(190px, 100%);
  aspect-ratio: 2 / 3;
  justify-self: center;
  border: 1px solid rgba(239, 21, 21, 0.3);
  border-radius: var(--radius);
  background: rgba(9, 9, 9, 0.74);
  box-shadow: var(--shadow-red);
  object-fit: cover;
}

.status-pill {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(239, 21, 21, 0.46);
  border-radius: 999px;
  background: rgba(239, 21, 21, 0.12);
  color: #ffb8b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  border: 1px solid rgba(246, 238, 238, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-logo {
  width: min(420px, 100%);
  justify-self: center;
  border: 1px solid rgba(239, 21, 21, 0.26);
  border-radius: 50%;
  box-shadow: var(--shadow-red);
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(239, 21, 21, 0.08);
  padding: 32px;
}

.newsletter-form,
.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-bone);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(246, 238, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(9, 9, 9, 0.82);
  color: var(--color-bone);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: rgba(9, 9, 9, 0.96);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(239, 21, 21, 0.46);
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--color-bone);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand span span,
.footer-links {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: grid;
  }

  .hero-grid,
  .split,
  .card-grid,
  .newsletter-panel,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand strong {
    font-size: 1.02rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .hero {
    min-height: 620px;
  }

  .actions {
    display: grid;
  }
}
