/* ===================================
   Matt Kim - Personal Website
   Dark mode, minimal, neon green accents
   =================================== */

/* CSS Custom Properties */
:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-body: #d0d0d0;
  --accent: #00E676;
  --accent-gold: #b8860b;
  --muted: #666666;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --max-width: 720px;
  --section-spacing: clamp(80px, 12vh, 120px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}


/* Typography */
h1, h2 {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin-top: 2px;
}

/* Hero Section */
.hero {
  padding-bottom: var(--section-spacing);
}

.logo-container {
  margin-bottom: 2rem;
}

.logo {
  width: 80px;
  height: auto;
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.5));
}

/* Dividers */
.divider {
  border: none;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  margin: 0;
}

/* Sections */
.section {
  padding: var(--section-spacing) 0;
  position: relative;
  scroll-margin-top: 40px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

@media (min-width: 900px) {
  .section-number {
    position: absolute;
    left: -60px;
    top: var(--section-spacing);
  }
}

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

.projects li {
  margin-bottom: 2rem;
}

.projects li:last-child {
  margin-bottom: 0;
}

.project-name {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1em;
  text-shadow: 0 0 1px rgba(0, 230, 118, 0.3);
}

a.project-name:hover::after {
  display: none;
}

.project-role {
  color: var(--muted);
  font-size: 0.9em;
  margin-left: 0.5rem;
}

.project-role::before {
  content: '—';
  margin-right: 0.5rem;
}

.projects p {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Beliefs List */
.beliefs {
  list-style: none;
}

.beliefs li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.beliefs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* Free Thinker Army */
.fta-title {
  color: var(--accent);
  text-shadow: 0 0 2px rgba(0, 230, 118, 0.3);
}

.fta-cta {
  margin-top: 2rem;
  font-style: italic;
  color: var(--muted);
}

/* Contact Links */
.contact-links {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-links a {
  display: inline-block;
}

.contact-links a:hover::after {
  margin-top: 1px;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid rgba(102, 102, 102, 0.2);
}


footer p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  main {
    padding: 40px 20px;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --text-body: #333333;
    --accent: #006633;
    --muted: #666666;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  main {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .section {
    padding: 30px 0;
    page-break-inside: avoid;
  }

  .divider {
    background: #cccccc;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666666;
  }

  .logo {
    filter: grayscale(100%);
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}

/* Focus States for Keyboard Navigation */
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

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