:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181a20;
  --panel-strong: #20242c;
  --text: #f5f1ea;
  --muted: #b8b0a5;
  --line: rgba(255, 255, 255, 0.13);
  --orange: #f0783f;
  --teal: #3fb7a7;
  --gold: #dbb967;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(63, 183, 167, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 78%, rgba(240, 120, 63, 0.2), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  padding: 56px 0;
}

.intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  line-height: 1.55;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.project-calin::before {
  background:
    linear-gradient(145deg, rgba(16, 17, 20, 0.1), rgba(16, 17, 20, 0.84)),
    conic-gradient(from 210deg at 24% 24%, #f2d8a7, #9e6a5e, #1d2834, #f2d8a7);
}

.project-orbricks::before {
  background:
    linear-gradient(145deg, rgba(16, 17, 20, 0.08), rgba(16, 17, 20, 0.86)),
    conic-gradient(from 35deg at 34% 28%, #ff8748, #3fb7a7, #6e80c8, #ff8748);
}

.project:hover,
.project:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--panel-strong);
  outline: none;
}

.project:hover::before,
.project:focus-visible::before {
  opacity: 0.95;
}

.project-kicker,
.project-title,
.project-copy {
  position: relative;
}

.project-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-title {
  margin-top: 10px;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-weight: 850;
  line-height: 1;
}

.project-copy {
  max-width: 24rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

@media (max-width: 720px) {
  body {
    place-items: start center;
  }

  .shell {
    width: min(100% - 28px, 1080px);
    padding: 36px 0;
  }

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

  .project {
    min-height: 210px;
  }
}
