@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: local("Lato Light"), local("Lato-Light");
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: local("Lato Regular"), local("Lato-Regular");
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: local("Lato Bold"), local("Lato-Bold");
  font-display: swap;
}

:root {
  --text: #ddd;
  --muted: #aaa;
  --link: #fc0;
  --link-hover: #f90;
  --border: #555;
  --background: #333;
  --surface: #444;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.625;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .25s;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: none;
}

.wrap {
  width: min(978px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #444;
  padding: 18px 0;
  background-color: #2b2b2b;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.github-link {
  color: var(--link);
  font-size: .9rem;
}

.github-link:hover,
.github-link:focus {
  color: var(--link-hover);
}

.hero {
  padding: 20px 0 20px;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--link);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 20px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

h2 {
  font-weight: 300;
}

.hero .lead {
  max-width: 720px;
  margin: 0 0 22px;
  color: #ddd;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 300;
  line-height: 1.45;
}

.intro-copy {
  max-width: 650px;
  margin: 0;
  color: #aaa;
  font-size: 1.05rem;
}

.projects {
  padding-bottom: 90px;
}

.projects > h2 {
  margin: 0 0 22px;
  font-size: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-card {
  position: relative;
  display: block;
  padding: 22px 25px;
  border: 1px solid #555;
  border-left: 4px solid transparent;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  background: var(--surface);
  color: #ddd;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.project-card:hover {
  border-left-color: var(--link);
  box-shadow: 0 4px 18px rgba(30, 55, 85, .08);
  transform: translateY(-2px);
}

.project-card-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
}

.project-card-main:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.project-card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.project-card-github {
  display: inline-block;
  position: relative;
  z-index: 3;
  margin-top: 9px;
  padding: 3px 9px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #393939;
  color: var(--link);
  font-size: .78rem;
  line-height: 1.5;
  pointer-events: auto;
}

.project-card-github:hover,
.project-card-github:focus {
  border-color: var(--link);
  background: #333;
  color: var(--link-hover);
}

.project-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-card h3 {
  margin: 0;
  color: var(--link);
  font-size: 1.55rem;
  font-weight: 700;
}

.project-subtitle {
  margin: 2px 0 7px;
  color: #ddd;
  font-size: .9rem;
}

.project-description {
  max-width: 700px;
  margin: 0;
  color: #ccc;
}

.project-arrow {
  color: var(--link);
  font-size: 1.8rem;
  line-height: 1;
  transition: transform .15s ease;
}

.project-card:hover .project-arrow {
  transform: translateX(4px);
}

.site-footer {
  border-top: 1px solid #444;
  padding: 25px 0 35px;
  color: #999;
  font-size: .85rem;
  background-color: #2b2b2b;
}

.site-footer p { margin: 0; }

.donate-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.donate-line img {
  display: block;
  max-height: 22px;
  width: auto;
}

@media (min-width: 760px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 568px) {
  .wrap { width: calc(100% - 30px); }
  .hero { padding: 60px 0 50px; }
  .projects { padding-bottom: 60px; }
  .project-card { padding: 22px; }
}
