:root {
  --bg-color: #121212;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent: #a5b3ce; /* Muted steel blue */
  --highlight: #d4d4d4;
  --spacing-section: 60px;
  --spacing-item: 24px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace; /* The core visual hook */
  line-height: 1.5;
  font-size: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  transition: all 0.2s;
}

a:hover {
  border-bottom-color: var(--text-main);
  opacity: 0.8;
}

/* Typography Hierarchy */
h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  display: inline-block;
}

p {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.text-white {
  color: var(--text-main);
}
.text-dim {
  color: #555;
}

/* Sections */
section {
  margin-bottom: var(--spacing-section);
}

/* Lists within sections */
.entry {
  margin-bottom: var(--spacing-item);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
}

.date {
  color: #555;
  font-size: 13px;
}

.details h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.company {
  color: var(--accent);
  font-weight: 400;
}

.details ul {
  list-style: none;
  margin-top: 8px;
}

.details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.details li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #444;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-category {
  margin-bottom: 4px;
  color: var(--text-main);
  font-weight: 600;
}

/* Contact Header */
.header-meta {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .date {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  padding: 12px 14px;
  border: 1px solid #222;
  border-radius: 6px;
  background: #151515;
}

.principle-card h3 {
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: 13px;
}

/* Mobile Apps row */
.apps-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  padding: 4px 0 2px;
}

.app-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 0;
  border: none;
  background: transparent;
  min-width: 90px;
  text-decoration: none;
  border-bottom: none;
}

.app-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.app-icon-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 22px;
}

.app-card-body h3 {
  margin-bottom: 2px;
  font-size: 14px;
}

.app-subtitle {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.app-card-body p {
  margin-bottom: 6px;
  font-size: 12px;
}

.app-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.app-cta-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--highlight);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.app-cta::after {
  content: "↗";
  font-size: 11px;
}

.app-cta:hover {
  background: rgba(165, 179, 206, 0.1);
  border-color: var(--highlight);
}

.app-pill-title {
  font-size: 11px;
  color: var(--text-main);
  text-align: center;
  max-width: 100px;
}

/* Projects */
.projects-stack {
  display: grid;
  gap: 20px;
}

.project-card {
  padding: 12px 14px;
  border: 1px solid #222;
  border-radius: 6px;
  background: #151515;
}

.project-card h3 {
  margin-bottom: 4px;
}

.project-subtitle {
  margin-bottom: 8px;
  font-size: 12px;
}

.project-card ul {
  list-style: none;
  margin-top: 8px;
}

.project-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.project-card li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #444;
}

/* Community */
.community-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-subheading {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.community-layout ul {
  list-style: none;
}

.community-layout li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.community-layout li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #444;
}

/* Footer */
.footer-section {
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 12px;
  color: #444;
}

/* Mobile Apps section layout tweaks */
.section-mobile-apps {
  margin-bottom: 36px;
  /* width: 90vw; */
  /* margin-left: 50%; */
  /* transform: translateX(-50%); */
}

@media (max-width: 600px) {
  .principles-grid,
  .apps-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .app-card {
    grid-template-columns: auto 1fr;
  }
}
