:root {
  color-scheme: dark;
  --bg: #090807;
  --panel: rgba(13, 12, 11, 0.66);
  --panel-strong: rgba(13, 12, 11, 0.86);
  --text: #f7f1e8;
  --muted: #c4b8a8;
  --line: rgba(247, 241, 232, 0.18);
  --accent: #d7a65f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 5;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 34px rgba(215, 166, 95, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 8, 7, 0.42);
  backdrop-filter: blur(18px);
}

.nav a {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(247, 241, 232, 0.11);
}

.app {
  min-height: 100vh;
  outline: none;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  padding: 150px max(16px, calc((100vw - 1120px) / 2)) 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.92) 0%, rgba(9, 8, 7, 0.72) 34%, rgba(9, 8, 7, 0.18) 68%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.18), rgba(9, 8, 7, 0.76)),
    url("/assets/profile-background.jpg") right 18% / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(180deg, transparent 74%, rgba(9, 8, 7, 0.86));
  content: "";
  pointer-events: none;
}

.hero-content,
.hero-layer {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  width: min(650px, 100%);
}

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

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

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.role {
  max-width: 540px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

.lede {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 1.06rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.hero-layer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(780px, 100%);
}

.hero-layer div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 8, 7, 0.42);
  backdrop-filter: blur(18px);
}

.hero-layer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-layer strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 36px;
  align-items: start;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 76px;
}

.intro-block {
  position: sticky;
  top: 24px;
}

.panel,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 26px;
}

.stack {
  display: grid;
  gap: 16px;
}

.skill-list,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li,
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  text-decoration: none;
}

.skill-list span,
.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

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

.project-card {
  min-height: 250px;
}

.project-body {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.project-tag {
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-body p {
  margin-bottom: 0;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found {
  display: grid;
  min-height: 52vh;
  place-items: center;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav a {
    flex: 1 0 auto;
  }

  .page-grid,
  .projects {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 100svh;
    padding-top: 178px;
    background:
      linear-gradient(180deg, rgba(9, 8, 7, 0.48) 0%, rgba(9, 8, 7, 0.74) 46%, rgba(9, 8, 7, 0.96) 100%),
      url("/assets/profile-background.jpg") left top / cover no-repeat;
  }

  .hero-layer {
    grid-template-columns: 1fr;
  }

  .intro-block {
    position: static;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .home-hero {
    background:
      linear-gradient(90deg, rgba(9, 8, 7, 0.94) 0%, rgba(9, 8, 7, 0.68) 38%, rgba(9, 8, 7, 0.1) 72%),
      linear-gradient(180deg, rgba(9, 8, 7, 0.14), rgba(9, 8, 7, 0.74)),
      url("/assets/profile-background.jpg") right 18% / cover no-repeat;
  }
}

@media (max-width: 520px) {
  .home-hero {
    background:
      linear-gradient(180deg, rgba(9, 8, 7, 0.42) 0%, rgba(9, 8, 7, 0.76) 44%, rgba(9, 8, 7, 0.98) 100%),
      url("/assets/profile-background.jpg") left top / cover no-repeat;
  }
}
