:root {
  color-scheme: dark;
  --bg: #1e1e2a;
  --panel: #25253a;
  --text: #e8e8f2;
  --muted: #a5a5c1;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.18);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, var(--accent-soft) 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease, box-shadow 160ms ease;
}

a:hover,
a:focus-visible {
  color: #a29bfe;
  box-shadow: 0 1px 0 0 currentColor;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.site-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

main {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.note-list {
  display: grid;
  gap: 1rem;
}

.note-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
  transition: transform 200ms ease, border 200ms ease;
}

.note-card:hover,
.note-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.1);
}

.note-card time {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.note-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.note-card p {
  margin: 0;
  color: rgba(232, 232, 242, 0.84);
}

article {
  background: var(--panel);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.6);
}

article h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

article h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-top: 2rem;
}

article h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-top: 1.6rem;
}

article p + p {
  margin-top: 1rem;
}

article pre {
  background: rgba(10, 10, 20, 0.8);
  border-radius: 12px;
  padding: 1.2rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

article code:not(pre code) {
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

footer {
  margin-top: auto;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 720px) {
  body {
    padding: clamp(1.5rem, 4vw, 2rem);
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}
