:root {
  /* color */
  --bg: #070a13;
  --fg: #fafafa;
  --bg-secondary: #eee;
  --fg-secondary: #1a1a1a;
  --bg-pillar: #090f1c;
  --bg-hover: #121c2e;
  --muted: #888;
  --accent: #fff170;
  --rule: rgba(255, 241, 112, 0.15);
  --code-bg-inline: rgba(74, 246, 38, 0.05);
  --code-bg: #03050a;
  --code: #4af626;

  /* typography */
  --font-body: "Lato", sans-serif;
  --font-heading: "EB Garamond", serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  /* layout */
  --measure: 65ch;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-image: linear-gradient(to right, var(--bg) 15%, var(--bg-pillar) 50%, var(--bg) 85%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  margin: 0;
  line-height: 1.65;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
}

main {
  min-height: calc(100vh - 180px);
}

header, main, footer {
  max-width: var(--measure);
  margin-inline: auto;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

header nav a {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 241, 112, 0.6); 
}

footer {
  display: flex;
  justify-content: center;
  color: var(--muted);
}

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

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

a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-block: 2rem 0.5rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

h1 + p, h2 + p, h3 + p {
  margin-top: 0;
}

h1 {
  font-size: 1.953rem;
}

h2 {
  font-size: 1.563rem;
}

h3 {
  font-size: 1.25rem;
}

p, li {
  font-size: 1rem;
}

p, ul, ol, blockquote {
  margin-block: 0 1rem;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg-inline); 
  color: var(--code); /* Cyberpunk Phosphor Green */
  padding: 0.1em 0.3em;
  border-radius: 3px;
  border: 1px solid rgba(74, 246, 38, 0.2);
}

pre {
  font-family: var(--font-mono);
  background: var(--code-bg); 
  color: var(--code);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

pre code {
  background: transparent; / Overrides the inline background */
  border: none;
  padding: 0;
  text-shadow: 0 0 8px rgba(74, 246, 38, 0.4);
}

blockquote {
  border-left: 3px solid var(--muted);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.muted, .blog-date {
  color: var(--muted);
  font-size: 0.875rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.05em;
  text-transform: lowercase;
  text-shadow: 0 0 15px rgba(255, 241, 112, 0.4);
  text-align: center;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.logo a:hover {
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 10px var(--accent);
}

.blog-list {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.blog-obj a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.blog-obj:hover {
  background: var(--bg-hover);
}

.blog-obj:hover .blog-title {
  color: var(--accent);
}


.blog-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.blog-summary {
  color: var(--fg);
  line-height: 1.5;
}

.project-list {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.project-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.project-image {
  transition: filter 0.4s ease, border-color 0.4s ease;
  filter: grayscale(100%) contrast(1.1); 
  border: 1px solid var(--rule);
}

a.project-card:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 241, 112, 0.15);
  box-shadow: 0 0 20px rgba(255, 241, 112, 0.05);
}

a.project-card:hover .project-image {
  filter: grayscale(0%);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 241, 112, 0.2);
}

.project-image {
  width: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-secondary));
}

.project-text {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.project-summary {
  margin: 0;
  line-height: 1.5;
  color: var(--fg);
}

a.project-card:hover {
  background: var(--bg-hover);
}

a.project-card:hover .project-title {
  color: var(--accent);
}

@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
    align-items: stretch;
  }
  .project-image {
    width: 100%;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-block: 2rem 4rem;
}

.hero-art-container {
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
  perspective: 1000px;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rule);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease; 
}

.glow-text {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(255, 241, 112, 0.4);
  font-family: var(--font-heading);
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  box-shadow: 0 1px 5px rgba(255, 241, 112, 0.1);
  margin-block: 2rem;
}

