/* jessicaiu.com — the 2009 design, kept as it was: one 338 px column on cream,
   picture titles, and the picture-sprite menu. Rebuilt November 2026 without Flash. */

:root { --cream: #FFF9EB; --ink: #696965; --link: #6386A9; --visited: #C07578; --active: #A4C88F; }

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 12pt;
  margin: 20px auto;
  width: 338px;
  max-width: 100%;
}
img { display: block; max-width: 100%; height: auto; border: 0; }

.title { background-image: url(images/bar.png); }
.content { font-size: 10pt; min-height: 250px; }
.text { margin: 10px; line-height: 1.45; }
.center { text-align: center; }

a:link { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--link); }
a:active { color: var(--active); }

/* MENU — one picture holds all three states: plain, hover (green), current page (pink). */
#footer { width: 338px; max-width: 100%; height: 35px; overflow: hidden; }
#menu { margin: 0; padding: 0; list-style: none; display: flex; }
#menu li a { display: block; height: 35px; overflow: hidden; text-indent: -999px;
  background: url(images/menu.png) no-repeat; }
#menu #about a     { background-position: 0 0;       width: 60px; }
#menu #portfolio a { background-position: -60px 0;  width: 93px; }
#menu #shop a      { background-position: -153px 0; width: 57px; }
#menu #contact a   { background-position: -210px 0; width: 79px; }
#menu #blog a      { background-position: -289px 0; width: 49px; }
#menu #about a:hover, #menu #about a:focus-visible         { background-position: 0 -35px; }
#menu #portfolio a:hover, #menu #portfolio a:focus-visible { background-position: -60px -35px; }
#menu #shop a:hover, #menu #shop a:focus-visible           { background-position: -153px -35px; }
#menu #contact a:hover, #menu #contact a:focus-visible     { background-position: -210px -35px; }
#menu #blog a:hover, #menu #blog a:focus-visible           { background-position: -289px -35px; }
.about #menu #about a         { background-position: 0 -70px; }
.portfolio #menu #portfolio a { background-position: -60px -70px; }
.shop #menu #shop a           { background-position: -153px -70px; }
.contact #menu #contact a     { background-position: -210px -70px; }
.blog #menu #blog a           { background-position: -289px -70px; }

/* PORTFOLIO — a grid of the paintings; a click opens one large. Replaces the Flash viewer. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0 14px; }
.grid button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.grid button:hover img, .grid button:focus-visible img { opacity: .8; }
.grid button:focus-visible { outline: 2px solid var(--visited); outline-offset: 2px; }

dialog.view { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; }
dialog.view::backdrop { background: rgba(255, 249, 235, .96); }
.view .stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; }
.view img { width: auto; max-width: min(78vw, 390px); max-height: 80vh; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.view .nav, .view .close { font: 28px/1 Georgia, serif; color: var(--ink); background: none; border: 0;
  cursor: pointer; padding: 10px; }
.view .nav:hover, .view .close:hover { color: var(--visited); }
.view .close { position: fixed; top: 8px; right: 10px; }
.view .count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 9pt; }

/* The original site hid itself from printing. Kept. */
@media print { body { display: none; } }
