:root {
  --bg: #585a7e;
  --panel: #272424;
  --link-visited: #a0b9ff;
  --accent: #ebfcff;
  --muted: #c0cfd1;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --pad: 28px;
  --maxw: 880px;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg), #3f3535 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* keeps it steady on scroll */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.content {
  flex: 1;
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 48px auto;
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.03));
  border: 6px solid var(--border);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px) saturate(120%);
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), var(--glass));
  border-radius: var(--radius);
  padding: var(--pad);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

footer {
  vertical-align: bottom;
  text-align: center;
  padding: 1em;

}

h1 {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--accent);
}

h4 {
  color: var(--accent);
}

.meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.projects {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.project {
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration: underline;
}

.project small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

.archived {
  opacity: 0.55;
  filter: grayscale(20%);
  border-left: 4px dashed rgba(255, 255, 255, 0.03);
  padding-left: 10px;
}

@media (max-width: 520px) {
  .content {
    margin: 20px;
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }
}