/* Minimal Portfolio Styles */

:root {
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #2563eb;
  --bg: #fafafa;
  --border: #6b8a8e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e5e5;
    --text-muted: #a3a3a3;
    --accent: #60a5fa;
    --bg: #0a0a0a;
    --border: #6b8a8e;
  }
}

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

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  margin-bottom: 4rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--text);
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav .btn {
  margin-top: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

/* Headings */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Project List */
.projects {
  list-style: none;
}

#projects-heading {
font-size: 1.5rem;
}

.projects li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

/* .projects li:first-child {
  border-top: 1px solid var(--border);
} */

.projects h3 {
  margin-bottom: 0.25rem;
}

.projects p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.projects .tech {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog List */
.posts {
  list-style: none;
}

.posts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .posts li:first-child {
  border-top: 1px solid var(--border);
} */

.posts a {
  color: var(--text);
  font-weight: 500;
}

.posts time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Contact */
.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  background: var(--bg);
  text-align: center;
}

footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

footer .footer-inner p {
  margin: 0 0 0.25rem 0;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

/* Article Header (Blog Posts) */
article header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

article header h1 {
  margin-bottom: 0;
}

article header time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Article Content */
article h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

article ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

article li {
  margin-bottom: 0.5rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* Works */
body { padding-bottom: 6rem; } /* keep last item clear of the fixed footer */

.projects .year {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.projects .role {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.projects ul.built {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.projects ul.built li {
  padding: 0;
  border: 0;
  margin-bottom: 0.35rem;
}

.more {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.timeline {
  list-style: none;
}

.timeline li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.timeline time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
