:root {
  --hero-background: #666;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.3s ease;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER */

.site-header {
  padding: 1rem 0;
  /* border-bottom: 1px solid #eee; */
  background-color: #333;
}

.logo {
  position: relative;
  width: 66vw;
  height: 14vh;
  margin-bottom: -7vh;
}
.logo a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: url("/assets/img/kmp-logo-white.png") no-repeat center center;
  background-size: contain;
  text-decoration: none;
  text-indent: -9999px;
  z-index: 100;
  opacity: 0.65;
}
.logo a span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/img/kmp-logo-white.png") no-repeat center center;
  z-index: 100;
  opacity: 0.65;
  background-size: contain;
}
.logo a:hover,
.logo a span:hover {
  opacity: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.nav-links {
  display: none;
  gap: 1.5rem;
}
.nav-links a {
  padding-bottom: 5px;
  border-bottom: 2px transparent solid;
}
.nav-links a:hover {
  border-bottom: 2px #fff solid;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
}

/* HERO */

.hero {
  padding: 4rem 0 0 0;
  position: relative;
  /* min-height: 70vh; */
  /* min-height: clamp(50px, 5vh, 300px); */
  /* background: #010102; Replace with your gradient later */
  background-image: url("/assets/img/background.png");
  background-size: cover;
  background-position: right center;

  display: flex;
  align-items: stretch;
  border-bottom: 7px #000 solid;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  color: white;
}

.hero-text {
  margin-top: 1.25rem;
  max-width: 550px;
  line-height: 1.6;
}
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.identity-line {
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-bio {
  margin-bottom: 1.5rem;
  max-width: 500px;
}
.hero-image {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hero-image img {
  width: 200px;
  /* border-radius: 50%; */
  display: block;
  /* max-height: 90%; */
  object-fit: contain;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

/* BUTTONS */

.btn {
  background: #1f3cff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

.btn-outline,
.btn-outline-dark {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}
.btn-outline-dark {
  background: transparent;
  border: 1px solid #1f3cff;
  color: #1f3cff;
}

.btn-outline-dark:hover {
  background: #1f3cff;
  color: white;
}

.btn-small {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #1f3cff;
}

/* SPLIT SECTION */

.split-section {
  padding: 3rem 0;
}

.split-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fff;
}

/* FOOTER */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* DESKTOP BREAKPOINT */

@media (min-width: 768px) {
  .logo {
    width: 400px;
    height: 150px;
    margin-bottom: -5em;
  }
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    background-position: center right;
    min-height: 600px;
  }
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.7) 35%,
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0.1) 100%
    );
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .hero-text {
    margin-top: 6rem;
  }
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-image img {
    width: 450px;
    /* margin-bottom: -5em; */
  }

  .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .split-grid {
    flex-direction: row;
  }

  /* ------ DEVELOPMENT ------ */
  .dev-grid {
    flex-direction: row;
  }

  .expertise-block {
    flex: 1;
  }
}

section:nth-of-type(even) {
  background: #f7f8fa;
}

/* ----- BOOKS ----- */
.books-hero {
  padding: 4rem 0 2rem;
  background: var(--hero-background);
  color: #fff;
}

.books-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.books-subline {
  max-width: 600px;
  /* color: #555; */
}

.featured-book {
  padding: 3rem 0;
}

.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.book-pitch {
  margin-bottom: 1rem;
}

.cover-placeholder {
  background: #eaeaea;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.writing-section {
  padding: 3rem 0;
  border-top: 1px solid #eee;
}

.narrow {
  max-width: 700px;
}

/* ------ DEVELOPMENT ----- */
.dev-hero {
  padding: 4rem 0 2rem;
  background: var(--hero-background);
  color: #fff;
}

.dev-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.dev-subline {
  max-width: 600px;
  /* color: #555; */
}

.dev-expertise {
  padding: 3rem 0;
}

.dev-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.expertise-block h3 {
  margin-bottom: 0.5rem;
}

.dev-projects {
  padding: 3rem 0;
  border-top: 1px solid #eee;
}

.project {
  margin-bottom: 3rem;
}

.project-summary {
  margin-bottom: 1rem;
}

.project-highlights {
  margin-left: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.project-highlights li {
  margin-bottom: 0.5rem;
}

.project-tech {
  font-size: 0.9rem;
  color: #666;
}

.dev-links {
  padding: 3rem 0;
  border-top: 1px solid #eee;
}

.dev-profile-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dev-cta {
  padding: 3rem 0;
  border-top: 1px solid #eee;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- ABOUT ------- */
.about-hero {
  padding: 4rem 0 2rem;
  background: var(--hero-background);
  color: white;
}

.about-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.about-subline {
  max-width: 600px;
  /* color: #555; */
}

.about-content {
  padding: 3rem 0;
}

.about-values {
  padding: 3rem 0;
  border-top: 1px solid #eee;
}

/* ----- CONTACT ------- */
.contact-hero {
  padding: 4rem 0 2rem;
  background: var(--hero-background);
  color: white;
}

.contact-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-subline {
  max-width: 600px;
  /* color: #555; */
}
.contact-page p {
  max-width: 600px;
  color: #555;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
