:root {
  --ink: #f6f1e8;
  --muted: #d8d0c4;
  --soft: #a9b5ad;
  --copper: #d7975b;
  --copper-strong: #f0aa6d;
  --forest: #163128;
  --spruce: #0a1918;
  --night: #061011;
  --line: rgba(246, 241, 232, 0.18);
  --panel: rgba(8, 20, 20, 0.76);
  --panel-strong: rgba(9, 22, 21, 0.9);
  --blue: #2f7ddf;
  --green: #6aa26a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(6, 16, 17, 0) 0, var(--night) 43rem),
    radial-gradient(circle at 82% 22%, rgba(30, 76, 65, 0.38), transparent 26rem),
    var(--night);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 78vh;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  background-image: url("/images/landing/cabin-hero.jpeg");
  background-position: center center;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 12, 13, 0.96) 0%, rgba(5, 12, 13, 0.78) 38%, rgba(5, 12, 13, 0.34) 72%, rgba(5, 12, 13, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 12, 13, 0.14) 0%, rgba(5, 12, 13, 0.7) 100%);
}

.hero-content {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 4rem) 5rem;
  align-self: center;
}

.mark {
  display: inline-grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  place-items: center;
  border: 2px solid var(--copper-strong);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: rgba(5, 12, 13, 0.55);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.24);
}

.intro {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 0.35rem;
  color: var(--copper-strong);
  font-size: clamp(3.5rem, 9vw, 6.8rem);
  line-height: 0.95;
  font-weight: 800;
  text-wrap: balance;
}

.tagline {
  margin-bottom: 2.1rem;
  color: var(--ink);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.tagline::after {
  display: block;
  width: 4.2rem;
  height: 2px;
  margin-top: 1.4rem;
  background: var(--copper);
  content: "";
}

.hero-copy {
  max-width: 35rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.17rem);
}

.location-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--copper-strong);
  font-weight: 600;
}

.location-line .dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.projects-section,
.about-section,
.landing-footer {
  width: min(100% - 2rem, 66rem);
  margin: 0 auto;
}

.projects-section {
  padding: 4.25rem 0 3.5rem;
}

.section-heading {
  margin-bottom: 1.7rem;
  text-align: center;
}

.section-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  place-items: center;
  color: var(--copper-strong);
  font-size: 1.45rem;
}

h2 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 1.1rem;
  align-items: center;
  min-height: 8.2rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel), rgba(16, 40, 36, 0.46));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(240, 170, 109, 0.76);
  background: linear-gradient(135deg, var(--panel-strong), rgba(24, 56, 49, 0.7));
  transform: translateY(-2px);
  outline: none;
}

.project-icon {
  display: inline-grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.project-logo-wrap {
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.09);
}

.project-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-icon-github {
  color: #111;
  background: #f4f4f4;
}

.project-icon-bsky {
  color: #fff;
  background: linear-gradient(145deg, #63b3ff, var(--blue));
}

.project-icon-linkedin {
  color: #fff;
  background: linear-gradient(145deg, #3e9ae8, #0b66c3);
}

.project-text {
  display: grid;
  gap: 0.25rem;
}

.project-text strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.project-text span {
  color: var(--muted);
  font-size: 0.98rem;
}

.project-arrow {
  color: var(--ink);
  font-size: 1.8rem;
}

.about-section {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding: 3rem 0 4.5rem;
}

.profile-photo-wrap {
  justify-self: center;
}

.profile-photo {
  display: block;
  width: 13rem;
  height: 13rem;
  border: 2px solid rgba(240, 170, 109, 0.58);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
}

.about-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.about-copy h2 {
  color: var(--ink);
}

.about-copy p {
  max-width: 44rem;
}

.landing-footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.landing-footer p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.footer-links a {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(240, 170, 109, 0.52);
  border-radius: 50%;
  color: var(--copper-strong);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--night);
  background: var(--copper-strong);
  outline: none;
}

@media (max-width: 760px) {
  .hero-section {
    min-height: 72vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 12, 13, 0.72) 0%, rgba(5, 12, 13, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 12, 13, 0.88) 0%, rgba(5, 12, 13, 0.48) 100%);
  }

  .hero-content {
    padding-top: 1.35rem;
    padding-bottom: 3rem;
  }

  .mark {
    width: 3rem;
    height: 3rem;
    margin-bottom: 3rem;
  }

  .project-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

  .projects-section {
    padding-top: 3rem;
  }

  .project-card {
    grid-template-columns: 3.65rem 1fr auto;
    min-height: 7.6rem;
    padding: 1rem;
  }

  .project-icon {
    width: 3.65rem;
    height: 3.65rem;
    font-size: 1.7rem;
  }

  .about-section {
    text-align: center;
  }

  .about-copy p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 430px) {
  .project-card {
    grid-template-columns: 3.35rem 1fr;
  }

  .project-arrow {
    display: none;
  }

  .project-icon {
    width: 3.35rem;
    height: 3.35rem;
  }
}
