:root {
    color-scheme: dark;

    --bg: #282c34;
    --surface: #21242b;
    --text: #bbc2cf;
    --muted: #7f8795;
    --border: #3f444a;
    --purple: #c678dd;
    --green: #98be65;
    --blue: #51afef;

    --content-width: 700px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 88px 28px 40px;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
}

h1,
h2,
h3 {
    color: #e5e9f0;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h2 {
    margin: 64px 0 24px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--blue);
}

h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--green);
}

p {
    margin: 0 0 18px;
}

a {
    color: var(--purple);
    text-decoration: none;
    text-underline-offset: 4px;
}

a:hover {
    color: #e0a8f0;
    text-decoration: underline;
}

a:hover .link-arrow {
    color: var(--purple);
}

.link-arrow {
    display: inline-block;
    color: var(--muted);
    font-size: 0.85em;
    margin-left: 2px;
    transition: color 150ms ease;
}

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

.eyebrow {
    margin: 12px 0 24px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

.location {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location::before {
  content: "•";
  font-size: 32px;
  line-height: 1;
  color: var(--green);
}

/* Experience section heading */
#outline-container-experience {
    margin-bottom: 30px;
}

/* Experience timeline items - minimal style */
.outline-3.timeline-item {
    position: relative;
    padding: 0 0 36px 20px;
    margin-left: 0;
}

.outline-3.timeline-item::before {
    content: "•";
    position: absolute;
    top: 0;
    left: -8px;
    font-size: 32px;
    line-height: 1;
    color: var(--green);
}

.outline-3.timeline-item:last-child {
    padding-bottom: 0;
}

.outline-3.timeline-item h3 {
    margin: 0 0 8px;
    color: #e5e9f0;
}

/* Experience timeline container */
.timeline {
    position: relative;
    margin: 2rem 0;
}

/* timeline-meta styling */
.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0 0 0.75rem;
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

.timeline-company {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-company a {
    color: var(--purple) !important;
    text-decoration: none;
    text-underline-offset: 4px;
}

.timeline-company a:hover {
    color: #e0a8f0 !important;
    text-decoration: underline;
}

.timeline-meta .link-arrow {
    opacity: 1 !important;
    color: var(--muted) !important;
    font-size: 1em;
    display: inline !important;
}

.timeline-company a:hover .link-arrow {
    color: var(--purple) !important;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-meta span:last-child {
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.site-footer {
    margin-top: 72px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
}

::selection {
    background: #5b4268;
    color: #ffffff;
}

@media (max-width: 520px) {
    body {
        padding: 52px 20px 32px;
        font-size: 15px;
    }

    h2 {
        margin-top: 48px;
    }

    .timeline-meta {
        flex-direction: column;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
