:root{
  /* Backgrounds */
  --bg: #1a1a1a;
  --surface: #151923;
  --surface-2: #1b2232;

  /* Text (high readability on dark) */
  --text: #eeeeee;      /* main text */
  --muted: #00d2ff;     /* secondary text */
  --heading: #F2F4F8;   /* headings slightly brighter */

  /* UI */
  --border: #2A3246;
  --accent: #5EEAD4;    /* links, focus rings, primary buttons */
}

html, body{
  background: var(--bg);
  color: var(--text);

  /* Inconsolata typewriter/mono */
  font-family: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* Readability on dark */
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6{
  color: var(--heading);
  letter-spacing: 0.2px;
}

p, li{
  color: var(--text);
}

small, .muted{
  color: var(--muted);
}

a{
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover{
  filter: brightness(1.05);
}

/* Common “surface” containers (adjust selectors as you use Spruce components) */
.card, .panel, .box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Forms: readable on dark */
input, textarea, select{
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
}

input:focus, textarea:focus, select:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-content,
.projects-section{
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.hero-section{
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  align-items: start;
}

.hero-title{
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: #e6eaf2;
}

.hero-lead{
  margin: 0;
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #94a3b8;
}

.hero-actions{
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary{
  background: #1dd3b0;
  color: #0f1117;
}

.btn-primary:hover{
  background: #18bea0;
  color: #0f1117;
}

.btn-secondary{
  background: transparent;
  border-color: #1dd3b0;
  color: #1dd3b0;
}

.btn-secondary:hover{
  background: rgba(29, 211, 176, 0.12);
}

.hero-support{
  margin-top: 16px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero-contact-mini{
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hero-contact-title{
  margin: 0 0 6px;
  font-size: 0.875rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #e6eaf2;
}

.hero-contact-copy{
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #94a3b8;
}

.hero-contact-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.code-card{
  background: #151924;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 24px;
}

.code-card-header{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.code-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1dd3b0;
}

.code-lines{
  margin: 0 0 24px;
  overflow-x: auto;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
}

.code-lines .kw{
  color: #1dd3b0;
}

.code-lines .hl{
  color: #e6eaf2;
}

.tech-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag{
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: #0f1117;
  color: #94a3b8;
  font-size: 0.75rem;
}

.projects-section{
  padding-top: 0;
  padding-bottom: 72px;
}

.projects-header{
  margin-bottom: 24px;
}

.projects-header h2{
  margin: 0 0 8px;
}

.projects-header p{
  margin: 0;
  color: #94a3b8;
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card{
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.project-card h3{
  margin-top: 0;
  margin-bottom: 8px;
}

.project-card small{
  display: block;
  margin-bottom: 12px;
}

.project-card p{
  margin: 0;
}

.contact-section{
  padding: 0 0 96px;
}

.contact-shell{
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.contact-intro{
  margin-bottom: 24px;
}

.contact-intro h2{
  margin: 0 0 8px;
}

.contact-intro p{
  margin: 0;
  color: #94a3b8;
  max-width: 70ch;
}

.contact-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card{
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-card h3{
  margin: 0 0 8px;
}

.contact-card p{
  margin: 0 0 10px;
  color: #94a3b8;
}

.contact-note{
  margin-top: 14px;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 1024px){
  .hero-grid{
    grid-template-columns: 1fr;
  }

  .project-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .hero-content,
  .projects-section,
  .contact-shell{
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-section{
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-title{
    font-size: 2.25rem;
  }

  .hero-lead{
    font-size: 1.125rem;
  }

  .hero-actions{
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn{
    width: 100%;
  }

  .project-grid{
    grid-template-columns: 1fr;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .contact-section{
    padding-bottom: 64px;
  }
}
