:root {
  color-scheme: light;
  --background: #fff;
  --text: #111;
  --muted: #555d66;
  --accent: #a8d7ff;
  --focus: #236aa5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "General Sans", system-ui, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: 0.3em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--text); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header, main { width: min(1120px, 88%); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.75rem; }
.site-name { margin: 0; font-family: "Aktura", Georgia, serif; font-size: 1.875rem; font-weight: 400; letter-spacing: normal; line-height: 1.3; }
.wordmark { position: relative; z-index: 1; display: inline-block; text-decoration: none; transform-origin: top left; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; transform-origin: top left; }
/* Keep the name, introduction, and navigation centered on home. */
.home-intro { display: none; }
.is-home .home-intro { display: block; max-width: 34rem; margin: 0; color: var(--muted); font-size: 1.125rem; text-align: center; text-wrap: pretty; }
.is-home .site-header { min-height: 100svh; flex-direction: column; justify-content: center; gap: 2rem; padding-block: 3rem; }
.is-home .site-name { font-size: clamp(3rem, 10vw, 7rem); text-align: center; }
.secret-link { display: none; }
.is-home .secret-link { display: block; position: fixed; right: 18px; bottom: 18px; width: 16px; height: 16px; z-index: 10; }
.secret-link:focus-visible { outline-color: #d6aa00; }
.album-carousel { width: min(100%, 24rem); margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid #ffe36b; }
.weekly-album { display: flex; align-items: center; gap: 1rem; width: 100%; margin: 0; }
.album-controls { margin-top: 0.75rem; }
.album-slider { display: block; width: 100%; height: 44px; margin: 0; accent-color: #b88a00; cursor: pointer; }
.album-slider:focus-visible { outline: 3px solid #b68a00; outline-offset: 3px; border-radius: 0.25rem; }
.album-slider:disabled { opacity: 0.45; cursor: default; }
.album-timeline-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.album-count { min-width: 3rem; text-align: center; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.album-art { display: block; width: 6rem; height: auto; aspect-ratio: 1; flex-shrink: 0; object-fit: cover; border-radius: 0.25rem; box-shadow: 0 6px 18px #11111112; }
.album-details { min-width: 0; }
.album-label { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.875rem; }
.album-title { display: block; margin: 0; font-family: "General Sans", system-ui, sans-serif; font-size: 1.125rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.025em; }
/* The rotating color is exposed only along the rounded two-pixel border. */
.nav-link { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.1rem; border-radius: 0.65rem; text-decoration: none; }
.nav-link::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 250%; aspect-ratio: 1; background: conic-gradient(#ffd21a 0deg, #ffe36b 75deg, #fff3bd 145deg, #fff 220deg, #fff3bd 290deg, #ffd21a 360deg); opacity: 0; transform: translate(-50%, -50%) rotate(0turn); animation: nav-border-orbit 2s linear infinite paused; transition: opacity 450ms ease-in-out; pointer-events: none; }
.nav-link::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: calc(0.65rem - 2px); background: var(--background); pointer-events: none; }
.nav-link:focus-visible::before, .nav-link:active::before { opacity: 1; animation-play-state: running; }
.nav-link[aria-current="page"]::before { opacity: 1; }
@media (hover: hover) { .nav-link:hover::before { opacity: 1; animation-play-state: running; } }
@keyframes nav-border-orbit { to { transform: translate(-50%, -50%) rotate(1turn); } }
.page-section { max-width: 760px; padding-block: clamp(1.5rem, 4vh, 3rem) clamp(3rem, 12vh, 8rem); }
.eyebrow { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.12em; margin-top: 0; margin-bottom: 1.5rem; }
h2 { font-family: system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 1.5rem; }
.page-section p:not(.eyebrow) { color: var(--muted); max-width: 40rem; font-size: 1.125rem; }
/* About fills the container while keeping comfortable paragraph line lengths. */
#about, #contact { max-width: none; }
#about-title, #contact-title { margin-bottom: 2.5rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-bio { min-width: 0; }
.about-bio p { margin: 0 0 1.5rem; }
.about-glance { border-left: 1px solid #e9e9e5; padding-left: 2rem; }
.about-glance h3 { margin-top: 0; font-weight: 400; }
.about-glance h3::before { content: ""; display: block; width: 2rem; height: 2px; margin-bottom: 1rem; background: #ffe36b; }
.about-facts { display: grid; gap: 1.5rem; margin: 0; }
.about-facts dt { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.875rem; letter-spacing: 0.08em; }
.about-facts dd { margin: 0; font-size: 1rem; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.about-actions a { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.project-cta { padding: 0.65rem 1rem; border: 1px solid #e5ba26; border-radius: 0.65rem; text-decoration: none; }
.project-cta:hover { background: #fffbed; }
.github-cta { text-decoration-color: #e5ba26; }
.outside-code { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 2px solid #ffe36b; }
.outside-code h3 { margin-top: 0; font-weight: 400; }
.outside-code .album-carousel { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-glance { border-left: 0; padding-left: 0; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 440px) { .about-facts { grid-template-columns: 1fr; } }
.contact-links { display: grid; gap: 0.5rem; width: min(100%, 24rem); list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; }
.contact-links a { display: flex; align-items: center; gap: 1rem; min-height: 60px; padding: 0.85rem 1rem; border: 1px solid #e9e9e5; border-radius: 0.65rem; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.contact-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.contact-links a:hover, .contact-links a:focus-visible { background: #fffbed; border-color: #e5ba26; }
.contact-arrow { margin-left: auto; opacity: 0; transform: translateX(-3px); transition: opacity 180ms ease, transform 180ms ease; }
.contact-links a:hover .contact-arrow, .contact-links a:focus-visible .contact-arrow { opacity: 1; transform: translateX(0); }
@media (hover: hover) { .contact-links a:hover { transform: translateX(3px); } }
@media (hover: none) { .contact-arrow { opacity: 1; transform: none; } }
.contact-details::before { content: ""; display: block; width: 2rem; height: 2px; margin-bottom: 1.25rem; background: #ffe36b; }
.contact-elsewhere { margin-top: 2.5rem; }
.contact-elsewhere h3 { font-weight: 400; margin-bottom: 0.5rem; }
.elsewhere-link { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; text-decoration-color: #e5ba26; }
.elsewhere-link img { flex-shrink: 0; }
.skip-link { position: absolute; top: -6rem; left: 1rem; background: var(--accent); color: var(--text); padding: 0.75rem; z-index: 30; }
.skip-link:focus { top: 1rem; }
@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .is-home .site-header { align-items: center; }
  .site-nav { gap: 0.1rem; }
  .nav-link { padding-inline: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-link::before { animation: none; transition: none; } .contact-links a, .contact-arrow { transition: none; } .contact-links a:hover, .contact-arrow { transform: none; } }
