:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Tighten serif headings, similar to editorial sites */
.font-serif {
    font-feature-settings: "ss01", "kern";
}

/* Subtle, well-mannered scrollbar */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 12px; height: 12px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
        background: rgba(12, 12, 14, 0.18);
        border: 3px solid #f7f7f6;
        border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb:hover { background: rgba(12, 12, 14, 0.32); }
}

/* Form inputs: native autofill in dark contact section shouldn't go yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #ffffff;
}

/* Discreet underline on hover for links inside body copy */
.prose-links a {
    color: #1f3aab;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(31, 58, 171, 0.3);
}
.prose-links a:hover {
    text-decoration-color: rgba(31, 58, 171, 0.9);
}

/* Markdown-rendered content in careers apply section */
.md-render h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0c0c0e;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}
.md-render h2:first-child { margin-top: 0; }
.md-render h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0c0c0e;
    margin-top: 1.25em;
    margin-bottom: 0.4em;
}
.md-render p {
    margin-bottom: 0.75em;
    line-height: 1.7;
}
.md-render p:last-child { margin-bottom: 0; }
.md-render ul, .md-render ol {
    margin: 0.5em 0 0.75em;
    padding-left: 1.25em;
}
.md-render li {
    margin-bottom: 0.4em;
    line-height: 1.65;
}
.md-render li:last-child { margin-bottom: 0; }
.md-render ul > li { list-style-type: disc; }
.md-render ol > li { list-style-type: decimal; }
.md-render strong { font-weight: 600; color: #0c0c0e; }
.md-render code {
    font-size: 0.875em;
    background: #f0f0ee;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.md-render blockquote {
    border-left: 3px solid #d8d8d4;
    padding-left: 1em;
    margin: 0.75em 0;
    color: #5d5d58;
}
.md-render a {
    color: #1f3aab;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Visible focus outlines */
:focus-visible {
    outline: 2px solid #1f3aab;
    outline-offset: 2px;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-drift-slow,
    .animate-drift-slower { animation: none; }
}

/* Subtle animated blobs for hero background */
@keyframes drift-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.05); }
    66%  { transform: translate(-20px, 15px) scale(0.96); }
}
@keyframes drift-slower {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-25px, -18px) scale(1.06); }
}
.animate-drift-slow  { animation: drift-slow 22s ease-in-out infinite; }
.animate-drift-slower { animation: drift-slower 28s ease-in-out infinite; }
