@font-face {
  font-family: "Euclid Circular B";
  src: url("/fonts/EuclidCircularB-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular B";
  src: url("/fonts/EuclidCircularB-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0F1216;
  --card: #1B2027;
  --raised: #232A33;
  --card-hover: #1F252D;
  --fg: #F3F5F7;
  --fg-2: #E8EAED;
  --muted: #B0B7C1;
  --faint: #9199A5;
  --line: #1E242C;
  --line-2: #2A3038;
  --accent: #ff0081;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Euclid Circular B", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(255,0,129,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
main {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

a { color: inherit; }

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo span { color: var(--accent); }

h1 {
  margin: 40px 0 16px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lede {
  margin: 0 0 40px;
  font-size: 18px;
  color: var(--muted);
}
section, .duo { margin-top: 48px; }
.duo { display: grid; gap: 48px; }
.duo > section { margin-top: 0; }
@media (min-width: 720px) {
  .duo { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.project {
  --a: var(--accent);
  --g1: var(--accent);
  --g2: var(--accent);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s ease, background-color .2s ease;
}
.project:hover { background: var(--card-hover); }
.projects-title { margin-left: 4px; }
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}
.project { position: relative; }
.project::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.project:hover::before { opacity: 1; }
.favicon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
  display: block;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project p { margin: 0 0 12px; color: var(--muted); font-size: 15px; flex: 1; }
.project-name { color: var(--fg); }
.link {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link .text {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.link .arrow {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .2s ease;
}
.project:hover .arrow { transform: translateX(3px); }

p { margin: 0 0 16px; }
.muted { color: var(--muted); max-width: 40em; }

.copyright { margin: 0; font-size: 13px; color: var(--faint); }
.duo p.muted { margin-bottom: 8px; }

.mail { color: inherit; text-decoration: none; }
.mail:hover { color: var(--accent); }

@media (max-width: 520px) {
  main { padding-top: 48px; }
  h1 { margin-top: 32px; }
}
