:root {
    color-scheme: light;
    --paper: #f8f7f3;
    --ink: #2d302b;
    --muted: #66685f;
    --accent: #a74628;
    --line: #dedfd6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration-color: #a7a99e; text-underline-offset: 4px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: #ebd7bf; color: var(--ink); }
.page { width: min(100% - 64px, 640px); margin-inline: auto; padding: 80px 0 56px; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 8px 12px; background: var(--paper); transform: translateY(-160%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }

.intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 54px; font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.bio { margin-top: 22px; font-size: 17px; line-height: 1.7; }
.bio-history { margin-top: 3px; color: var(--muted); font-size: 14px; }
.work { margin-top: 42px; }
.work h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
h2 { font-size: 14px; font-weight: 600; }

.work-list { list-style: none; padding: 0; margin: 8px 0 0; }
.work-link { display: block; padding: 14px 0; text-decoration: none; }
.work-title { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; }
.work-description { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 4px; line-height: 1.65; }
.arrow { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.work-link:hover .work-title { text-decoration: underline; text-underline-offset: 4px; }
.work-link:hover .arrow { color: var(--accent); }
.connect { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 6px; }
.links a { padding-block: 9px; font-size: 13px; text-decoration-thickness: 1px; }
.file-type { color: var(--muted); margin-left: 3px; font-size: 10px; }

.little-friend { position: relative; flex: 0 0 96px; }
.launch-status { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 12px; white-space: nowrap; }
.robot-button { display: block; width: 96px; height: 104px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.robot-button:disabled { cursor: default; }
.robot { width: 100%; height: 100%; overflow: visible; }
.robot-head { fill: var(--paper); }
.ground { stroke: var(--line); }
.horn, .sparkles, .exhaust { opacity: 0; }
.robot-button[aria-pressed="true"] .antenna { opacity: 0; }
.robot-button[aria-pressed="true"] .horn, .robot-button[aria-pressed="true"] .sparkles { opacity: 1; }
.wave-arm { transform-origin: 101px 97px; }
.robot-button.is-waving .wave-arm { animation: wave 650ms ease-in-out; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 25%, 65% { transform: rotate(15deg); } 45%, 85% { transform: rotate(-10deg); } }
.robot-button.is-launching .antenna { opacity: 0; }
.robot-button.is-launching .horn, .robot-button.is-launching .sparkles { opacity: 1; }
.robot-button.is-launching .exhaust { opacity: 1; stroke: #c07820; animation: exhaust 2400ms linear both; }
.robot-button.is-launching .robot-body { animation: launch 2400ms ease-in-out both; transform-origin: 75px 120px; }
@keyframes launch {
    0%, 100% { transform: translateY(0); }
    10% { transform: translateY(3px) rotate(-4deg); }
    20% { transform: translateY(3px) rotate(4deg); }
    30% { transform: translateY(0); }
    50%, 60% { transform: translateY(-260px); }
    88% { transform: translateY(4px); }
}
@keyframes exhaust {
    0%, 20%, 90%, 100% { opacity: 0; }
    30%, 80% { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .robot-body { transition: transform 180ms ease; transform-origin: 75px 120px; }
    .robot-button:not(.is-launching):hover .robot-body { transform: rotate(-5deg); }
}
@media (max-width: 600px) {
    .page { width: calc(100% - 48px); padding-block: 44px 36px; }
    .intro-heading { gap: 16px; }
    h1 { font-size: clamp(40px, 10vw, 52px); }
    .intro-note { font-size: 13px; margin-top: 8px; }
    .little-friend { flex-basis: 76px; }
    .robot-button { width: 76px; height: 83px; }
    .bio { font-size: 16px; margin-top: 20px; }
    .bio-history { font-size: 13px; }
    .work { margin-top: 34px; }
    .work-description { font-size: 13px; }
    .links { gap: 0 20px; }
    .connect { margin-top: 24px; }
}
@media (max-width: 359px) {
    h1 { font-size: 37px; }
    .little-friend { flex-basis: 62px; }
    .robot-button { width: 62px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .page { width: 100%; padding: 0; }
    .little-friend, .skip-link { display: none; }
    .work-list li, .connect { break-inside: avoid; }
}
