:root {
  --ink: #111;
  --soft: #555;
  --paper: #fffdf7;
  --tint: rgba(205, 205, 205, 0.5);
  --mint: #00f7c5;
  --sky: #aae8ff;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 18px/1.9 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; position: relative; }
.wrap.narrow { width: min(640px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid #017baa; outline-offset: 3px; }

/* Dragonflies that fly behind the page. site.js moves them. */
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#sky .flier { position: absolute; left: 0; top: 0; will-change: transform; opacity: .6; }
#sky .flier img { width: 100%; animation: flutter .22s ease-in-out infinite alternate; }
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(.86); } }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* Header */
.site-header { background: rgba(255, 255, 255, .8); border-bottom: 5px solid #c7c7c7; padding: 6px 0 22px; }
.masthead { position: relative; width: min(940px, 100% - 32px); margin: 0 auto; border-bottom: 1px solid var(--ink); display: flex; justify-content: center; }
.logo { display: block; width: min(430px, 62%); padding: 14px 0 6px; }
.logo img { width: 100%; }
.fly { position: absolute; }
.fly-1 { width: 15%; left: 7%; bottom: -30%; }
.fly-2 { width: 10%; left: 17%; top: 2%; }
.fly-3 { width: 15%; right: 15%; bottom: -24%; }
.fly-4 { width: 11%; right: 0; top: 2%; transform: scaleX(-1) rotate(-20deg); }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; padding-top: 16px; font-size: 15px; font-weight: 400; }
.site-nav a { text-decoration: none; padding: 4px 2px; }
.site-nav a:hover, .site-nav a[aria-current] { color: #017baa; }

/* Shared blocks */
.band { padding: 56px 0; }
.band.tint { background: var(--tint); }
.card { background: #fff; position: relative; }
.deco { position: absolute; pointer-events: none; }
.more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; text-decoration: none; background: #fff; padding: 2px 10px; margin-top: 12px; }
.more img { width: 46px; transition: transform .3s; }
.more:hover img { transform: rotate(-12deg) scale(1.15); }
[data-zoom] { cursor: zoom-in; }

.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 14px 0 0; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: transform .2s; }
.socials a:hover { transform: scale(1.15) rotate(-6deg); }
.socials svg { width: 17px; height: 17px; }
.socials.dark a { background: var(--ink); } .socials.dark svg { fill: #fff; }
.socials.light a { background: #fff; } .socials.light svg { fill: #000; }
.site-footer .socials { justify-content: center; } .site-footer .socials a { background: var(--ink); } .site-footer .socials svg { fill: #fff; }

/* Home */
.hello-band { background: var(--tint); }
.hello { width: min(1160px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(240px, 380px); }
.hello-text { padding: 104px 9% 44px 10.5%; }
.hello-text .sub { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.3; }
.hello-photo { position: relative; }
.hello-photo > img:not(.deco) { width: 100%; height: 100%; object-fit: cover; }
.deco-star { width: 220px; left: -56px; top: -26px; z-index: 2; animation: bob 5s ease-in-out infinite; }
.deco-lemon { width: 175px; left: -172px; bottom: -44px; z-index: 2; animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -8px; rotate: 3deg; } }

/* Galleries */
.mosaic { columns: 3 260px; column-gap: 8px; margin-top: 28px; }
.mosaic img { width: 100%; margin-bottom: 8px; break-inside: avoid; transition: filter .2s; }
.mosaic img:hover { filter: brightness(.9); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; margin: 28px auto 0; max-width: 980px; }
.cards figure, .page-grid figure { margin: 0; }
.cards img { width: 100%; aspect-ratio: 1; object-fit: cover; }
figcaption { text-align: center; padding-top: 10px; line-height: 1.3; font-size: 15px; font-weight: 400; }
figcaption strong { display: block; font: 700 18px/1.5 Helvetica, Arial, sans-serif; }

/* Portfolio */
.toc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; text-align: center; }
.toc .deco { position: static; width: min(300px, 100%); }
.toc-left { justify-self: start; } .toc-right { justify-self: end; }
.toc ul { list-style: none; padding: 0; margin: 30px 0 0; font: 400 20px/1 'Futura', 'Century Gothic', var(--sans); letter-spacing: .04em; }
.toc li { margin-bottom: 44px; }
.toc a { text-decoration: none; } .toc a:hover { text-decoration: underline wavy; text-underline-offset: 6px; }
.section-head { width: min(710px, 100%); padding: 34px 60px 26px; margin-bottom: 30px; }
.section-head p { font-size: 16px; margin: 0; }
.section-head.right { margin-left: auto; text-align: right; }
.section-head .deco { width: 170px; top: -40px; }
.section-head.right .deco { left: -120px; } .section-head.left .deco { right: -110px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px 40px; align-items: start; }
.project.wide { grid-column: 1 / -1; }
.project h3 { margin-bottom: 10px; }
.project .single img { width: 100%; }
.slideshow { position: relative; background: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s; }
.slide.on { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slideshow button { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 64px; border: 0; background: rgba(255, 255, 255, .7); font-size: 34px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.slideshow button:hover { background: #fff; }
.ss-prev { left: 0; } .ss-next { right: 0; }
.ss-count { position: absolute; right: 8px; bottom: 6px; background: rgba(255, 255, 255, .8); padding: 0 8px; font-size: 13px; font-weight: 400; z-index: 2; }

/* Project pages */
.page-banner { padding-top: 40px; }
.page-banner h1 { font-weight: 500; }
.page-banner .wrap { padding-bottom: 30px; }
.page-banner p { font-size: 16px; margin: 0; }
.banner-art { background-size: auto 100%; background-position: center; padding: 15% 0; display: flex; justify-content: center; }
.banner-art img { width: min(460px, 46%); aspect-ratio: 2 / 1; object-fit: cover; }
.page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.page-grid .wide { grid-column: 1 / -1; }
.page-grid img { width: 100%; }

/* Merch */
.merch { position: relative; overflow: hidden; padding: 50px 0 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 40%, #c8fbf6 95%), linear-gradient(100deg, #12b6ff 5%, #7aa6d8 55%, #ff5a5f 100%); }
.merch h1 { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.merch .intro { color: #fff; font-weight: 400; }
.flowers { width: 420px; opacity: .9; animation: bob 7s ease-in-out infinite; }
.f1 { right: -60px; top: 20px; } .f2 { left: -90px; bottom: 60px; rotate: 140deg; }
.stickers { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 26px; align-items: center; }
.stickers li { transition: transform .25s; }
.stickers li:nth-child(4n+1) { rotate: -4deg; } .stickers li:nth-child(4n+2) { rotate: 3deg; }
.stickers li:nth-child(4n+3) { rotate: -2deg; } .stickers li:nth-child(4n) { rotate: 5deg; }
.stickers li:hover { transform: scale(1.07) rotate(3deg); }
.stickers a { text-decoration: none; display: block; text-align: center; }
.stickers img { width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.stickers span { display: inline-block; margin-top: 10px; background: #fff; border-radius: 99px; padding: 0 14px; font-size: 14px; font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; min-height: 560px; }
.contact-info { background: #000; color: #fff; padding: 110px 9% 60px 15%; position: relative; font-family: Georgia, serif; font-weight: 400; }
.contact-info h1 { font-family: Georgia, serif; font-size: 2rem; margin-bottom: 1em; }
.contact-info a { text-decoration: none; } .contact-info a:hover { text-decoration: underline; }
.contact-info .deco { width: 150px; right: -100px; top: 40px; z-index: 2; }
.contact-form { padding: 100px 9% 60px 14%; background: rgba(255, 255, 255, .8); }
.contact-form form { max-width: 620px; }
.contact-form label { display: block; font-size: 15px; font-weight: 400; line-height: 2; margin-bottom: 10px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; border: 1px solid #000; background: #fff; font: 400 16px/1.4 var(--sans); padding: 8px 10px; border-radius: 0; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.contact-form button { width: 100%; border: 0; background: var(--mint); font: 400 15px var(--sans); padding: 11px; margin-top: 10px; cursor: pointer; color: #003e33; }
.contact-form button:hover { background: #7dfae0; }
.hp { position: absolute; left: -9999px; }
.thanks { font-family: var(--serif); font-size: 1.6rem; display: flex; align-items: center; gap: 14px; }
.thanks img { width: 110px; }
.form-error { background: #ffe3e3; padding: 6px 12px; font-weight: 400; }

/* Footer */
.site-footer { background: rgba(255, 255, 255, .8); text-align: center; padding: 40px 16px 34px; }
.footer-name { font: 500 1.35rem/1.3 var(--serif); width: 9em; margin: 0 auto 6px; }
.footer-note { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 15px; margin: 0; }
.copyright { font-size: 14px; font-weight: 400; margin: 26px 0 0; }

/* Full-screen image viewer */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 15, .94); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 24px 0; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox figcaption { color: #fff; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; height: 100%; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lightbox .lb-close { position: absolute; top: 4px; right: 12px; height: auto; z-index: 2; }

@media (max-width: 800px) {
  body { font-size: 17px; line-height: 1.7; }
  .band { padding: 36px 0; }
  .hello { grid-template-columns: 1fr; }
  .hello-text { padding: 80px 24px 30px; }
  .hello-photo > img:not(.deco) { max-height: 420px; }
  .deco-star { width: 140px; left: -14px; top: -30px; }
  .deco-lemon { width: 110px; left: auto; right: 8px; top: -70px; bottom: auto; }
  .mosaic { columns: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .toc { grid-template-columns: 1fr 1fr; }
  .toc > div { grid-column: 1 / -1; grid-row: 1; }
  .toc ul { margin-top: 20px; } .toc li { margin-bottom: 26px; }
  .toc .deco { width: 150px; }
  .section-head { padding: 30px 22px 20px; }
  .section-head .deco { width: auto; height: 84px; top: -62px; }
  .section-head.right .deco { left: -6px; } .section-head.left .deco { right: -6px; }
  .section-head.right, .section-head.left { text-align: left; margin-top: 40px; }
  .projects, .page-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 50px 24px; }
  .contact-info .deco { right: 10px; top: 16px; width: 110px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .stickers { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .flowers { width: 240px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .fly-2, .fly-4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
