:root {
  --color-primary: #f7cab5;
  --color-primary-dark: #f0b8a3;
  --color-secondary: #fffaf5;
  --color-bg: #f7cab5;
  --color-text: #2b2b2b;
  --color-accent: #f7cab5;
  --color-border: #b07a5a;
  --color-heading: #8b2635;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("../svg/ekg.svg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% 1000px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
}

h1 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

h2,
h3 {
  color: var(--color-heading);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

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

.site-nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.site-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

main {
  max-width: 58rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.section {
  padding: 2.5rem;
  margin-bottom: 2rem;
  background-color: var(--color-secondary);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.section:last-of-type {
  margin-bottom: 0;
}

.section h2 {
  margin-top: 0;
}

.book-list {
  list-style: none;
  padding: 0;
}

.book {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.book:last-child {
  border-bottom: none;
}

.book-cover {
  flex: 0 0 9.5rem;
  width: 9.5rem;
  height: auto;
  aspect-ratio: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.book-content {
  flex: 1;
  max-width: 36rem;
}

.book-title {
  margin: 0 0 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.book-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background-color: var(--color-heading);
  border-radius: 999px;
}

.book-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-border);
  font-weight: 700;
}

.book-description {
  margin: 0 0 1rem;
}

.book-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
}

.book-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  background-color: var(--color-secondary);
  border: 1px solid var(--color-heading);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.book-link:hover {
  background-color: var(--color-heading);
  color: var(--color-secondary);
}

.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.about-portrait {
  flex: 0 0 14rem;
  width: 14rem;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.about-bio {
  flex: 1;
}

.about-bio p {
  margin: 0 0 1rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background: #fff;
}

form button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-accent);
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #edbfa6;
}

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background-color: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: var(--color-heading);
  transform: scale(1.1);
}

.social-link img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-title {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 0 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: #fff;
  max-width: 34rem;
  font-size: 1.25rem;
  margin: 0 0 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background-color: var(--color-heading);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background-color: #6e1d2a;
}

.cta-button--secondary {
  background-color: #fffaf5;
  color: var(--color-heading);
}

.cta-button--secondary:hover {
  background-color: #f0b8a3;
}

@media (max-width: 560px) {
  .book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    flex: none;
    width: 8rem;
    height: auto;
  }

  .book-content {
    max-width: none;
  }

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

  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .about-portrait {
    flex: none;
    width: 12rem;
  }
}
