/* Base styles */
:root {
  --background: hsl(36, 25%, 95%);
  --foreground: hsl(215, 25%, 27%);
  --muted: hsl(215, 25%, 27%);
  --muted-foreground: hsl(215, 25%, 40%);
  --border: hsl(215, 25%, 65%);
  --ring: hsl(215, 25%, 27%);
}

.dark {
  --background: hsl(215, 25%, 18%);
  --foreground: hsl(36, 25%, 92%);
  --muted: hsl(36, 25%, 92%);
  --muted-foreground: hsl(36, 25%, 75%);
  --border: hsl(215, 25%, 30%);
  --ring: hsl(36, 25%, 92%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .header-content {
    flex-direction: row;
  }
}

.site-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(var(--muted), 0.3);
}

.nav-link.active {
  background-color: rgba(var(--muted), 0.3);
  font-weight: bold;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer a {
  text-decoration: underline;
}

/* Typography */
.text-3xl {
  font-size: 1.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: bold;
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.leading-relaxed {
  line-height: 1.625;
}

.underline {
  text-decoration: underline;
}

.whitespace-pre-line {
  white-space: pre-line;
}

/* Spacing */
.space-y-12 > * + * {
  margin-top: 3rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-1 {
  gap: 0.25rem;
}

/* Components */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: rgba(var(--muted), 0.3);
}

.button-small {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.button-small:hover {
  background-color: rgba(var(--muted), 0.3);
}

.card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.card:hover {
  background-color: rgba(var(--muted), 0.3);
}

.project-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.project-card:hover {
  background-color: rgba(var(--muted), 0.3);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.contact-card {
  padding: 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.project-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-summary {
  padding: 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  background-color: rgba(var(--muted), 0.1);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(var(--muted), 0.2);
  border-radius: 0.25rem;
}

.feature-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-tag {
  padding: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  text-align: center;
  font-size: 0.875rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flex {
  display: flex;
}

.text-right {
  text-align: right;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.link-with-icon:hover {
  text-decoration: underline;
}

.icon {
  font-size: 1rem;
}

.icon-small {
  font-size: 0.75rem;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0;
}

.text-6xl {
  font-size: 3.75rem;
}

