:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #ff6b6b;
  --accent-soft: rgba(255, 107, 107, 0.12);
  --text: #f5f5f5;
  --muted: #a0a4b8;
  --card: #111827;

  --border: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.55);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.page {
  width: 100%;
  max-width: 1120px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.12), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(129, 140, 248, 0.12), transparent 55%);
  opacity: 0.9;
  z-index: -1;
}

/* HEADER */

header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97373, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(248, 113, 113, 0.55);
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.brand-text h1 {
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

.brand-text p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  font-size: 12px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease-out;
  text-decoration: none;
}

.nav-btn.primary {
  background: radial-gradient(circle at 0 0, #f97373, #4f46e5);
  color: #f9fafb;
  border-color: rgba(248, 250, 252, 0.4);
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.55);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
  border-color: rgba(248, 250, 252, 0.6);
}

/* MAIN */

main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px 26px;
}

@media (max-width: 880px) {
  main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
    justify-content: flex-start;
  }
  .page {
    border-radius: 18px;
  }
  body {
    padding: 16px 10px;
  }
}

/* HERO */

.hero {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0, rgba(248, 250, 252, 0.08), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.hero-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.hero-title {
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(135deg, #f97373, #facc15, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97373;
}

/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 14px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.about-text {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 8px;
}

.about-meta {
  font-size: 12px;
  color: var(--muted);
}

.about-meta strong {
  color: #e5e7eb;
  font-weight: 600;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: start;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f97373;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.25);
  margin-top: 4px;
}

.timeline-content h4 {
  font-size: 13px;
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 12px;
  color: var(--muted);
}

.timeline-content span {
  font-size: 11px;
  color: #9ca3af;
}

/* POSTS */

.posts {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 14px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.post-title {
  font-size: 16px;
}

.post-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.post-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.post-excerpt {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 8px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.post-footer a {
  color: #f97373;
  text-decoration: none;
  font-size: 12px;
}

.post-footer a:hover {
  text-decoration: underline;
}

/* FOOTER */

footer {
  padding: 10px 28px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

footer span {
  opacity: 0.9;
}

footer a {
  color: #f97373;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
