@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 40px 24px;
    }
}

:root {
  --bg: #000;
  --panel: #0b0b0d;
  --line: #292e42;
  --text: #c0caf5;
  --muted: #565f89;
  --accent: #7aa2f7;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mono);
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
}

header {
    font-family: var(--mono);
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

header a {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

header a:hover {
    color: var(--accent);
}

.container {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}

h2 {
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    color: #f0f0f1;
    margin: 0 0 24px;
}

.prose {
    max-width: 65ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero {
    padding: 80px;
}

.hero-content {
    display: flex;
    /* space between the hero content items */
    justify-content: space-between;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero h1 {
    font-family: var(--mono);
    font-size: 48px;
    text-transform: lowercase;
    letter-spacing: -0.03em;
    margin: 0;
    color: #f0f0f1;
}

.tagline {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
}

.button:hover {
    color: var(--text);
    border-color: var(--text);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #0b0b0d;
}

.button.primary:hover {
    color: #0b0b0d;
    border-color: var(--accent);
    filter: brightness(1.1);
}

section {
    padding: 60px 0;
}

section[id] {
    scroll-margin-top: 60px; /* Adjust this value based on your header height */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none;
    color: var(--text);
}

.project-card img {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
    border-top: 1px solid var(--line);
}

.card-body p {
    margin: 0;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-card h3 {
    margin: 0;
    font-family: var(--mono);
    font-size: 15px;
}

.tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    color: var(--accent);
}

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

.ascii-hero {
    font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #6b7280; /* muted gray — tweak to match your palette */
    white-space: pre;
    margin: 1.25rem 0;
    overflow-x: auto; /* prevents overflow on small screens */
}

@media (max-width: 480px) {
    .ascii-hero {
        font-size: 0.65rem;
    }
}

.ascii-hero .cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}