/* Observatory palette: the animated Lumi button's sky, hills, stars, and lettering. */
:root { color-scheme: light; --paper: #f4eddf; --ink: #29101f; --muted: #735647; --line: #c5a26880; --burgundy: #4b2535; --burgundy-soft: #e9ddc7; --link: #4b2535; --gold: #c5a268; --decoration: #82603e; --note-paper: #f8f2e7; --digit-paper: #e9ddc7; --button-hover: #dfcba7; --banner-paper: #4b2535; --banner-ink: #f4eddf; }
:root[data-theme="dark"] { color-scheme: dark; --paper: #29101f; --ink: #f4eddf; --muted: #c7ad98; --line: #c5a26855; --burgundy: #c5a268; --burgundy-soft: #351826; --link: #dec18b; --decoration: #c5a268; --note-paper: #351826; --digit-paper: #351826; --button-hover: #4b2535; --banner-paper: #4b2535; --banner-ink: #f4eddf; }
@font-face { font-family: 'Geist Serif'; src: url('/assets/fonts/geist-serif-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; padding-left: 210px; background: var(--paper); color: var(--ink); font: 15px/1.75 'Geist Mono', monospace; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link); filter: brightness(1.25); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.site { width: min(620px, calc(100% - 64px)); margin: 88px auto 40px; }
.security-banner { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 23px; padding: 10px 46px; overflow: hidden; background: var(--banner-paper, #f2e5e3); color: var(--banner-ink, #4d2024); font: 12px/1.5 'Geist Mono', monospace; text-align: center; }
.security-banner::before, .security-banner::after { position: absolute; top: 0; bottom: 0; width: 30px; background: repeating-linear-gradient(135deg, var(--gold) 0 5px, transparent 5px 10px); content: ""; opacity: .8; }
.security-banner::before { left: 0; }
.security-banner::after { right: 0; }
header { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--burgundy); font-family: 'Geist Serif', Georgia, serif; font-size: clamp(40px, 5vw, 52px); letter-spacing: -1px; text-decoration: none; }
.wordmark span { display: inline-block; margin-left: 6px; color: var(--decoration); font-size: 27px; }
header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.layout { display: block; padding: 36px 0 44px; }
main { width: 100%; min-width: 0; }
aside {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 186px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  font-size: 13px;
  scrollbar-width: thin;
}
h2 { margin: 0 0 10px; font-size: 15px; font-weight: normal; }
aside h2 { color: var(--muted); font-size: 12px; }
nav { margin-bottom: 27px; }
nav a { display: table; margin: 5px 0; }
h1 { font-family: 'Geist Serif', Georgia, serif; font-style: normal; font-size: 28px; line-height: 1.25; font-weight: normal; letter-spacing: -.5px; margin: 0 0 6px; }
p { margin: 0 0 18px; }
strong { font-weight: normal; }
.buttons-section { margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--line); }
.buttons-section h2 { margin-bottom: 2px; }
.buttons-section > p { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
footer { border-top: 1px solid var(--line); padding-top: 15px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 8px; background: var(--paper); }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
  body { padding-left: 0; }
  .site { width: calc(100% - 36px); margin-top: 35px; }
  .layout { padding-top: 24px; }
  main { width: 100%; }
  aside {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 34px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }
  nav { margin: 0; }
  h1 { font-size: 26px; }
}

.custom-button { display: inline-flex; width: 88px; height: 31px; }
.custom-button img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }

.sidebar-widget { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sidebar-widget h2 { margin-bottom: 8px; }
.sidebar-widget p { margin-bottom: 5px; }
.listening-track { font-size: 13px; line-height: 1.5; }
.widget-detail { color: var(--muted); font-size: 11px; line-height: 1.5; }
.sidebar-clock { display: block; margin-bottom: 5px; font: 13px/1.5 'Geist Mono', monospace; font-variant-numeric: tabular-nums; }
.sparkle-switch { padding: 5px 8px; border: 1px solid var(--line); background: #e9ddc7; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.sparkle-switch:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.sparkle-switch:disabled { cursor: default; color: var(--muted); }
.theme-switch { display: inline-flex; position: fixed; top: 12px; right: 18px; z-index: 40; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--burgundy-soft); color: var(--burgundy); font: 12px/1.2 'Geist Mono', monospace; cursor: pointer; box-shadow: 0 2px 8px #29101f20; }
.theme-switch:hover { background: var(--button-hover, #dfcba7); }
.visitor-digits { display: inline-block; padding: 5px 7px; border: 1px solid var(--line); background: #e9ddc7; color: #82603e; font: 14px/1.2 'Geist Mono', monospace; letter-spacing: 1px; box-shadow: inset 0 1px 2px #29101f20; }
.visitor-digits { border-color: var(--line); background: var(--digit-paper, #e9ddc7); color: var(--ink); }
@media (max-width: 760px) {
  .sidebar-widget { margin-top: 0; flex: 1 1 135px; }
}

/* Button collection sits below the footer. */
.site > .buttons-section { margin-top: 26px; padding-top: 0; border-top: 0; }

.about-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-section h2 { color: var(--burgundy); font-size: 19px; margin-bottom: 8px; }
.project-item h3 { margin: 0 0 5px; font-size: 15px; font-weight: normal; }
.project-item p { margin: 0; }
.setup-machine + .setup-machine { margin-top: 24px; }
.setup-machine h3 { margin: 0 0 10px; font-size: 16px; font-weight: normal; }
.setup-specs { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 5px 14px; margin: 0 0 10px; font-size: 13px; }
.setup-specs dt { color: var(--muted); }
.setup-specs dd { margin: 0; overflow-wrap: anywhere; }
.section-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-style: italic; }
.game-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.game-list li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 540px) { .game-list { columns: 1; } }

.right-sidebar { position: static; width: min(620px, calc(100% - 64px)); margin: 0 auto 40px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.greeble { min-width: 0; }
.greeble h2 { margin-bottom: 10px; }
.greeble p { margin: 8px 0 0; }
.tiny-button { border: 1px solid var(--line); background: #e9ddc7; color: var(--ink); padding: 6px 13px; font: inherit; cursor: pointer; box-shadow: 2px 2px 0 var(--line); }
.tiny-button:active { transform: translate(1px, 1px); box-shadow: none; }
.tiny-button, .sparkle-switch { background: var(--burgundy-soft); border-color: var(--line); color: var(--burgundy); }
::selection { background: #c5a268; color: #29101f; }
.tiny-button:focus-visible, #pocket-note:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
#pocket-note { display: block; width: 100%; min-height: 110px; resize: vertical; border: 1px solid var(--line); background: var(--note-paper, #f8f2e7); color: var(--ink); padding: 8px; font: 12px/1.6 'Geist Mono', monospace; border-radius: 0; }
.paint-chips { display: flex; gap: 5px; }
.paint-chips span { width: 27px; height: 32px; background: var(--chip); border: 1px solid var(--line); }
.pixel-cloud { color: var(--decoration); font-size: 40px; line-height: 1; }
@media (min-width: 1100px) {
  .theme-switch { top: 52px; right: 202px; }
  body { padding-right: 210px; }
  .right-sidebar { position: fixed; top: 0; bottom: 0; left: auto; right: 0; width: 186px; margin: 0; padding: 32px 24px; border-top: 0; border-left: 1px solid var(--line); display: block; overflow-y: auto; }
  .right-sidebar .greeble + .greeble { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .right-sidebar { width: calc(100% - 36px); } }

aside { padding-top: 52px; padding-bottom: 52px; }
.skip-link:focus { top: 26px; z-index: 40; }
@media (min-width: 1100px) { .right-sidebar { padding-top: 52px; padding-bottom: 52px; } }
@media (max-width: 760px) { .layout > aside { padding-top: 0; padding-bottom: 18px; } .site { margin-top: 52px; } }
@media (max-width: 540px) { .security-banner { align-items: flex-start; padding: 9px 23px; font-size: 11px; } .security-banner::before, .security-banner::after { width: 12px; } }
@media (max-width: 540px) { .theme-switch { padding: 5px 8px; font-size: 11px; } }

.section-nav { position: relative; }
.section-nav a[aria-current="location"] { text-decoration: none; color: var(--burgundy); }
.album-row { display: flex; align-items: end; gap: 9px; }
#listening-art { border-radius: 4px; object-fit: cover; margin-bottom: 8px; }
.playing-indicator { display: inline-flex; align-items: end; gap: 3px; height: 18px; margin-bottom: 10px; }
.playing-indicator[hidden], #listening-art[hidden] { display: none; }
.playing-indicator i { width: 3px; height: 15px; background: var(--burgundy); transform-origin: bottom; animation: playing-bar .9s ease-in-out infinite alternate; }
.playing-indicator i:nth-child(2) { animation-delay: -.6s; }
.playing-indicator i:nth-child(3) { animation-delay: -.3s; }
@keyframes playing-bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.game-list { display: block; margin: 0; padding-left: 18px; list-style: disc; }
.game-list li { margin-bottom: 4px; }
a, button { transition: color .18s ease, background-color .18s ease; }
.custom-button, .tiny-button { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  .custom-button:hover { transform: translateY(-3px); box-shadow: 0 4px 9px #29101f30; }
.tiny-button:hover, .sparkle-switch:hover:not(:disabled) { background: var(--button-hover, #dfcba7); }
}
@media (prefers-reduced-motion: reduce) {
  a, button, .custom-button { transition: none; }
  .playing-indicator i { animation: none; }
  .custom-button:hover { transform: none; }
}

/* Small, quiet movements for the personal bits of the page. */
@media (prefers-reduced-motion: no-preference) {
  body, aside, header, section, h1, h2, p, textarea, .security-banner,
  .visitor-counter, .wordmark, .theme-switch {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  }
  .wordmark span { animation: moon-rock 7s ease-in-out infinite; transform-origin: 50% 65%; }
  .section-enter { animation: section-arrive .6s ease-out both; }
  a:not(.custom-button):not(.wordmark) {
    transition: color .18s ease, text-underline-offset .2s ease;
  }
  a:not(.custom-button):not(.wordmark):is(:hover, :focus-visible) {
    text-underline-offset: 6px;
  }
  .custom-button:focus-visible { transform: translateY(-3px) rotate(-2deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .custom-button:hover { transform: translateY(-3px) rotate(-2deg); }
  .custom-button:nth-child(even):hover { transform: translateY(-3px) rotate(2deg); }
}
@keyframes moon-rock {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes section-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .section-enter, .wordmark span { animation: none; }
}

.language-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.language-list li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--burgundy-soft); color: var(--burgundy); font: 13px/1.5 'Geist Mono', monospace; }
@media (prefers-reduced-motion: no-preference) {
  .language-list li { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
}

.contact-list { margin: 12px 0 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.contact-list li + li { margin-top: 8px; }
.contact-list strong { font-weight: bold; }
.pgp-fingerprint { white-space: break-spaces; font-family: 'Geist Mono', monospace; font-size: .9em; }

.pgp-key { text-align: center; max-width: 100%; overflow-x: auto; padding: 16px; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--burgundy-soft); color: var(--ink); font: 12px/1.6 'Geist Mono', monospace; }
.pgp-key:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.pgp-download { font-size: 13px; }

.pgp-key code { display: block; width: max-content; min-width: 100%; }

.personal-status #personal-status-text { padding-left: 10px; border-left: 2px solid var(--burgundy); white-space: pre-line; }

/* A wide button shelf below the page, between the sidebars. */
.buttons-section { margin: 26px 24px 60px; padding: 14px 0; }
.button-window { overflow-x: auto; padding: 10px 0; }
.button-window .buttons { flex-wrap: nowrap; width: max-content; }
.button-window .custom-button { flex-shrink: 0; }
/* Native scrolling supports touch and horizontal trackpad gestures. */
.button-window.is-moving { scrollbar-width: none; cursor: grab; }
.button-window.is-moving::-webkit-scrollbar { display: none; }
.button-window.is-dragging { cursor: grabbing; user-select: none; }
.button-window img { -webkit-user-drag: none; user-select: none; }
.button-track { display: flex; width: max-content; }
.button-track .buttons { padding-right: 8px; }
