/* The original colors, artwork, and small-site proportions, without Bootstrap. */
:root {
  color-scheme: light;
  --paper: #f8f8ff;
  --ink: #303036;
  --muted: #62616b;
  --rule: #ceced6;
  --red: #a40019;
  --purple: #5958a1;
  --plum: #765076;
}
* { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; line-height: 1.5; background: var(--paper); color: var(--ink); }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #17171b; background-image: url('../img/bg.png'); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, .button-link { min-height: 44px; padding: .45rem .85rem; border: 1px solid #92929d; border-radius: 7px; background: white; }
button:hover:enabled, .button-link:hover { border-color: var(--purple); background: #eeeeF8; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
h1 { margin: 0 0 1.2rem; font-size: 1.55rem; font-weight: 400; }
h2 { font-size: 1.25rem; font-weight: 400; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1.15rem; }
ul { padding-left: 1.4rem; }
.site-shell { width: min(100% - 2.5rem, 894px); margin: 30px auto 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 0 0 12px; }
.wordmark { flex-shrink: 1; max-width: 242px; }
.wordmark img { display: block; }
.wordmark:hover, .social-links a:hover { background: none; }
.social-links { display: flex; flex-shrink: 0; gap: 2px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; }
.social-links a:hover { background: #eaeaf3; }
.social-links img { width: 27px; height: auto; }
.main-navigation { border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; }
.main-navigation ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding: 0 12px; margin: -17px 0 0; list-style: none; }
.main-navigation a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding: 2px 12px; border: 1px solid var(--rule); border-radius: 50px; background: white; text-decoration: none; font-size: 1.05rem; }
.main-navigation a:hover { background-color: var(--paper); }
.main-navigation a[aria-current="page"] { color: var(--red); font-weight: bold; border-color: #ae7780; }
.file-label { font-size: .59rem; color: var(--muted); letter-spacing: .02em; }
main { margin-top: 26px; font-size: 1.1rem; min-height: 240px; }
main:focus { outline: none; }
.about-layout, .project-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.about-aside { text-align: center; padding-top: 3px; }
.word-cloud { display: block; width: 100%; }
.about-links { margin-top: 1.7rem; font-size: .95rem; line-height: 1.9; }
.frog-invitation { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; margin-top: 1.8rem; padding: .1rem .4rem; }
.frog-invitation img { width: 40px; height: 40px; image-rendering: pixelated; }
.site-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 3.5rem; padding: 1rem 0 2rem; }
.site-footer img { width: 28px; }
.skip-link { position: absolute; left: 1rem; top: 0; padding: .7rem 1rem; background: white; z-index: 10; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.visually-hidden:focus { position: static; width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; }
.intro-note { max-width: 660px; margin-bottom: 1.6rem; color: var(--muted); font-size: 1rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; row-gap: 2.2rem; }
.project-card { min-width: 0; }
.project-card a { display: block; text-decoration: none; }
.project-card img { display: block; width: 100%; aspect-ratio: 255 / 170; object-fit: contain; border: 1px solid var(--rule); background: white; }
.project-card h2 { font-size: 1rem; font-weight: normal; margin: .7rem 0 .2rem; }
.project-card a:hover h2 { text-decoration: underline; text-underline-offset: .2em; }
.project-card p { color: var(--muted); font-size: .83rem; margin: .35rem 0 0; }
.portfolio-ornament { grid-column: 3; grid-row: 1 / span 2; text-align: center; align-self: start; }
.portfolio-ornament img { width: 100%; }
.portfolio-ornament figcaption { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.portfolio-ornament figure { margin: 0; }
.back-link { display: inline-block; margin-bottom: 1.1rem; font-size: .85rem; padding: .3rem 0; }
.project-period { font-size: .85rem; color: var(--muted); margin-bottom: .55rem; }
.project-description p { max-width: 560px; }
.project-art { margin: .8rem 0 0; text-align: center; }
.project-art img { max-width: 255px; width: 100%; border: 1px solid var(--rule); }
.skill-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 1rem 0; padding: 0; font-size: .8rem; color: var(--plum); }
.skill-list li { padding: .2rem .55rem; border: 1px solid #cfbecf; border-radius: 20px; }
.project-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding: 0; margin: 1.6rem 0; list-style: none; font-size: .95rem; }
.gallery { margin-top: 2rem; }
.gallery figure { margin: 0 auto 2.8rem; text-align: center; }
.gallery img { display: block; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid var(--rule); background: white; }
.gallery figcaption { max-width: 660px; margin: .6rem auto 0; font-size: .85rem; color: var(--muted); text-align: left; }
.archive-note { border-left: 3px solid var(--plum); padding: .3rem 0 .3rem 1rem; font-size: 1rem; max-width: 650px; margin-bottom: 2rem; }
.archive-list { list-style: none; padding: 0; max-width: 650px; }
.archive-list li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.archive-list p { margin: .35rem 0 0; font-size: .95rem; color: var(--muted); }
.heart-art { width: 100%; max-width: 550px; margin-bottom: 2rem; }
.heart-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.heart-gallery figure { margin: 0; }
.heart-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.heart-gallery figcaption { font-size: .8rem; padding: .4rem 0; }
.olli-scene { width: 220px; min-height: 90px; margin: 2rem auto; border-bottom: 1px solid var(--rule); }
.olli-sprite { width: 25px; height: 25px; background: url('../img/olli_sm.png') 0 0; image-rendering: pixelated; animation: olli-frames .4s steps(4) infinite, olli-run 7s linear infinite; }
.animation-toggle { width: 20px; height: 20px; vertical-align: middle; accent-color: var(--purple); }
.animation-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; cursor: pointer; }
.animation-toggle:checked ~ .olli-scene .olli-sprite { animation-play-state: paused; }
@keyframes olli-frames { to { background-position: -100px 0; } }
@keyframes olli-run { from { transform: translate(195px, 64px); } to { transform: translate(0, 64px); } }
.demo-list { padding: 0; list-style: none; max-width: 600px; }
.demo-list li { display: flex; align-items: center; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: .7rem .3rem; touch-action: pan-y; }
.demo-list button { font-size: .9rem; }
.demo-list li[data-revealed="true"] { background: #eee7ee; }
.demo-list label { display: flex; align-items: center; gap: .7rem; min-height: 44px; }
.demo-list input { width: 20px; height: 20px; accent-color: var(--purple); }
@media (max-width: 740px) {
  .site-shell { width: min(100% - 2rem, 600px); margin-top: 20px; }
  .site-header { flex-wrap: wrap; }
  .main-navigation { margin-top: 15px; }
  .main-navigation ul { justify-content: flex-start; padding: 0; width: 100%; gap: .45rem; }
  .main-navigation a { min-height: 44px; font-size: 1rem; padding: .2rem .8rem; }
  .about-layout, .project-intro { grid-template-columns: 1fr; gap: 1.3rem; }
  .about-aside { max-width: 330px; width: 100%; margin: 0 auto; }
  .about-links { margin-top: 1rem; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.3rem; }
  .portfolio-ornament { display: none; }
  .project-art { margin: 0; }
  .project-art > img { display: none; }
  .skill-list { justify-content: flex-start; margin-top: 0; }
  .gallery { margin-top: 1.5rem; }
}
@media (max-width: 420px) {
  .site-header { gap: .35rem; }
  .wordmark { width: min(242px, 100%); }
  .social-links { margin-left: auto; }
  .main-navigation ul { gap: .4rem; }
  .main-navigation a { padding-inline: .65rem; font-size: .95rem; }
  .file-label { display: none; }
  main { font-size: 1.03rem; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
  .heart-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .olli-sprite { animation: none; transform: translate(98px, 64px); }
}
@media print {
  .main-navigation, .social-links, .site-footer, .skip-link, .frog-invitation { display: none; }
  .site-shell { width: 100%; margin: 0; }
  .gallery figure { break-inside: avoid; }
  body { background: white; }
}
