@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..600,0..100,0..1&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #000000;
  --primary: #00ff88;
  --secondary: #4daf7d;
  --light: #b4beb4;
  --mid: #788278;
  --line: #285041;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--light);
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 255, 136, 0.04) 1px, transparent 0);
  background-size: 4px 4px;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.06), transparent 60%);
  z-index: 1;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
  position: relative;
  z-index: 2;
}

.profile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.profile h1 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100, "WONK" 1;
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
  font-style: italic;
  color: var(--primary);
  display: inline-flex;
  align-items: baseline;
}

.profile h1::after {
  content: "_";
  margin-left: 0.15rem;
  font-style: normal;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.bio {
  font-size: 0.9375rem;
  color: var(--light);
  margin: 0;
  line-height: 1.4;
}

.socials {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.socials a {
  color: var(--secondary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 160ms ease;
}

.socials a::before {
  content: "→";
  margin-right: 0.4rem;
  color: var(--line);
  transition: color 160ms ease, transform 200ms ease;
  display: inline-block;
}

.socials a:hover {
  color: var(--primary);
}

.socials a:hover::before {
  color: var(--primary);
  transform: translateX(2px);
}

header {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.index-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin: 0;
}

.index-count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--mid);
  text-transform: uppercase;
}

.index-meta {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.feed-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  transition: color 160ms ease;
}

.feed-link:hover {
  color: var(--primary);
}

.year {
  margin: 3rem 0 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--secondary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.year:first-child {
  margin-top: 0;
}

.post {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-areas:
    "image image"
    "date  text";
  align-items: start;
  gap: 0.875rem 1.25rem;
  padding: 0.875rem 0.5rem;
  margin: 0 -0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: background 180ms ease;
  position: relative;
}

.post .date {
  grid-area: date;
}

.post .post-text {
  grid-area: text;
}

.post-image {
  grid-area: image;
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: saturate(0.85);
  transition: filter 180ms ease;
}

.post:hover .post-image {
  filter: saturate(1);
}

.date {
  margin-top: 0.125rem;
}

.post:hover {
  background: rgba(0, 255, 136, 0.04);
}

.post:hover .title {
  color: var(--primary);
}

.post:hover .date {
  color: var(--secondary);
}

.date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--mid);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.post-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.title {
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.description {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mid);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}

.post:hover .description {
  color: var(--secondary);
}

.post .tags {
  list-style: none;
  padding: 0;
  margin: 0.375rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  transition: color 160ms ease;
}

.post .tags li {
  margin: 0;
  padding: 0;
}

.post:hover .tags {
  color: var(--secondary);
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

@media (max-width: 480px) {
  main {
    padding: 4rem 1.25rem 5rem;
  }
  .profile {
    grid-template-columns: 72px 1fr;
    gap: 1.25rem;
  }
  .avatar {
    width: 72px;
    height: 72px;
  }
  .profile h1 {
    font-size: 1.5rem;
  }
  .post {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.75rem 1rem;
  }
  .title {
    font-size: 1rem;
  }
}
