:root {
    --accent: #ff7a1a;
    --text: #111111;
    --bg: #ffffff;
    --muted: #666666;
    --border: #e5e5e5;
    --max-width: 960px;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    border-bottom: 1px solid var(--border);
    background: #fffaf5;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 5px; /* keep the same feel as the old square */
    display: block;
}

.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--accent);
}

.brand-link {
    color: inherit; /* keep the same color as header text */
    text-decoration: none; /* remove underline */
    display: inline-block; /* so the whole area is clickable */
}

.brand-link:visited {
    color: inherit; /* avoid purple visited state */
}

.brand-link:hover,
.brand-link:focus {
    color: inherit; /* do not change text color on hover */
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 800px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.78rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 2.5rem;
    }

    .hero-card {
        order: 2;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

h1 span.accent {
    color: var(--accent);
}

.hero-summary {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    color: var(--muted);
    background: #fff;
}

.badge.accent {
    border-color: rgba(255, 122, 26, 0.4);
    color: var(--accent);
    background: #fff7ee;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

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

.button-primary:hover {
    background: #ff8d3b;
    border-color: #ff8d3b;
}

.button-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

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

.hero-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-meta span {
    margin-right: 0.75rem;
}

.hero-meta strong {
    font-weight: 600;
    color: var(--text);
}

.hero-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.5rem 1.5rem 1.25rem;
    background: #fffdf9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.hero-card-main {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.hero-card-main strong {
    color: var(--accent);
}

.hero-card-main a {
    text-decoration: underline;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.hero-card-tag {
    font-size: 0.76rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff7ee;
    color: var(--accent);
}

.hero-card-footer {
    font-size: 0.8rem;
    color: var(--muted);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

section {
    padding: 2.5rem 0 0;
    border-top: 1px solid var(--border);
}

section:first-of-type {
    border-top: none;
}

section h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 1rem;
    color: var(--muted);
}

.section-intro {
    max-width: 40rem;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.service-list span.label {
    display: block;
    font-weight: 600;
}

.service-list span.meta {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.stack-tags span {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.18rem 0.55rem;
    background: #ffffff;
}

.highlight {
    border-left: 3px solid var(--accent);
    padding-left: 0.9rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.timeline li {
    margin-bottom: 0.75rem;
}

.timeline span.role {
    font-weight: 600;
}

.timeline span.org {
    color: var(--muted);
}

.timeline span.dates {
    color: var(--muted);
    font-size: 0.82rem;
    margin-left: 0.5rem;
}

.contact-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: #fffdf9;
    max-width: 32rem;
}

.contact-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.contact-card p {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.contact-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #fafafa;
    padding: 0.12rem 0.25rem;
    border-radius: 3px;
}
