/* ============================================
   DESIGN SYSTEM
   ============================================ */

:root {
  --text-primary: #d0d0d0;
  --text-secondary: #9a9a9a;
  --accent: #ff6b35;
  --bg-dark: #141517;
  --surface: #1c1f24;
  --muted: #75787f;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  font-family: 'Red Hat Mono', monospace;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.75;
  text-align: left;
}

body::selection {
  background: rgba(255, 107, 53, 0.2);
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration: none;
  color: #ff8c4e;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  width: min(100%, 1120px);
  margin: 0 auto 2.5rem;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 1 1 320px;
  min-width: 320px;
}

.header h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--accent);
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 68ch;
  line-height: 1.75;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link.nav-contact {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.15rem;
  transform: translateY(-0.15rem);
}

.content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.project,
.section {
  margin-bottom: 3rem;
}

.project h2,
.section-title,
.project-panel h3,
.highlight-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.catchphrase {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  max-width: 55ch;
}

.project .period,
.section .period {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.project p,
.section p,
.section .section-copy,
.project-panel p,
.highlight-panel p {
  margin-bottom: 0.9rem;
  max-width: 75ch;
}

.project ul,
.section ul {
  margin: 0.75rem 0 0 1.5rem;
  list-style: disc;
}

.project li,
.section li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.project-link {
  color: inherit;
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  background: transparent;
}

.tech-tag:hover {
  background: rgba(255, 107, 53, 0.08);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid #000;
}

.timeline-date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: block;
}

.timeline-content {
  color: var(--text-primary);
  font-size: 0.95rem;
  max-width: 70ch;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.screenshot-item {
  padding: 1.25rem;
  background: transparent;
}

.screenshot-item img {
  width: 100%;
}

.image-caption {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.logo-item {
  grid-column: span 2;
  max-width: 680px;
  margin: 0 auto;
}

.producthunt-indicator,
.highlight-panel,
.project-panel {
  border-left: 4px solid var(--accent);
  padding: 0 1.5rem;
  margin: 2rem 0;
  background: transparent;
}

.producthunt-indicator {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-icon {
  height: 3rem;
  width: auto;
  flex-shrink: 0;
  display: inline-flex;
  vertical-align: middle;
}

.producthunt-indicator {
  border-left: none;
  padding: 0.75rem 1rem;
}

.highlight-panel h3,
.project-panel h3 {
  color: var(--accent);
}

@media (max-width: 768px) {
  .header {
    padding: 2rem 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .content {
    padding: 0 1rem 3rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 0.2rem;
  }

  .timeline-item::before {
    left: -1.75rem;
  }
}
