/* Colors, fonts and decorative details follow the original juliepocta.com look (Nov 2026). */
:root {
  --yellow: #eff483;
  --red: #e24a39;
  --green: #184027;
  --cream: #f4f2ea;
  --blue: #dfefff;
  --serif: "Young Serif", Georgia, serif;
  --body: "Bitter", Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 3.2rem);
  --max: 1500px;
  --btn-gap: 1rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--green); font: 400 1rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--red); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--cream); padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { padding: 1.6rem 0; }
.site-header .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-header.blue { background: var(--blue); }
.site-header.yellow { background: var(--yellow); }
.site-title { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* full-width color bands */
.band { position: relative; padding: clamp(2rem, 5vw, 4rem) 0; }
.band .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band.yellow { background: var(--yellow); }
.band.blue { background: var(--blue); }
.band.cream { background: var(--cream); }
.band:has(.wave-edge) { padding-bottom: calc(clamp(2rem, 5vw, 4rem) + 30px); }
.wave-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 30px; line-height: 0; pointer-events: none; }
.wave-edge svg { width: 100%; height: 100%; display: block; }
.wave-edge.to-cream path { fill: var(--cream); }
.wave-edge.to-yellow path { fill: var(--yellow); }
.wave-edge.to-blue path { fill: var(--blue); }

/* home */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-text p { font-size: 1.3rem; }
.hero-image { padding-top: 4.5rem; }
.circled { position: relative; display: inline-block; color: var(--green); }
.scribble { position: absolute; left: -.55em; top: -.5em; width: calc(100% + 1.2em); height: calc(100% + 1em); overflow: visible; transform: rotate(-4deg); }
.scribble path { fill: none; stroke: var(--red); stroke-width: .1em; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 4.5px; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .3s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.buttons { display: flex; gap: var(--btn-gap); flex-wrap: wrap; margin-top: 2rem; }
.button, .pill { border: 1px solid var(--green); border-radius: 300px; padding: 1.2rem 2rem; font-size: 1rem; line-height: 1.6; text-decoration: none; }
.button { background: var(--green); color: var(--cream); }
.button:hover { background: var(--red); border-color: var(--red); }
.social { text-align: center; padding-top: 2.5rem; }
.social .wrap { padding: 0; max-width: none; }
.wavy-marquee { width: 100%; overflow: hidden; }
.wavy-marquee svg { display: block; width: 100%; overflow: visible; }
.wavy-marquee text { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; fill: var(--green); }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--btn-gap); margin: 2rem 0 0; }
.pill { background: transparent; }
.pill:hover { background: var(--green); color: var(--cream); }

/* work index */
.title-band { text-align: center; }
.page-title { margin: 0; }
.underlined { position: relative; display: inline-block; }
.squiggle { position: absolute; left: -4%; bottom: -.3em; width: 108%; height: .4em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--green); stroke-width: 4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: .6rem; }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .2s; }
.card:hover img { transform: scale(1.02); }
.card span { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.2; }

/* project pages */
.project-title { padding: 3rem 0 3.5rem; }
.project-title h1 { margin: 0; }
.text-band { padding: 2.5rem 0; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.cols p { margin: 0; font-size: 1rem; }
.note-row { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; }
.note { margin: 0; font-size: 1.1rem; }
.note-row .gallery { columns: 2 200px; }
.more { padding: 1.5rem 0; }
.more .wrap { padding: 0; max-width: none; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee span { font-family: var(--serif); color: var(--red); white-space: nowrap; padding-right: .6em; }
.marquee.big span { font-size: clamp(2.4rem, 5vw, 3.3rem); letter-spacing: -0.02em; }
@keyframes scroll { to { transform: translateX(-50%); } }
.gallery { columns: 4 220px; column-gap: 1.5rem; }
.gallery > a, .gallery > figure { display: block; break-inside: avoid; margin: 0 0 1.5rem; }
/* Gift cards: an even grid so every card lines up (all cards share the same shape). */
.gallery.card-grid { columns: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; }
.gallery.card-grid > a { grid-column: span 2; }
/* 3 across; a lone card on the last row sits in the middle. */
.gallery.card-grid > a:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
@media (max-width: 900px) { .gallery.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery.card-grid > a, .gallery.card-grid > a:last-child:nth-child(3n+1) { grid-column: auto; } }
.gallery.card-grid > a { margin: 0; }
.gallery.card-grid img { aspect-ratio: 557 / 351; object-fit: cover; border-radius: 4%/6%; }
@media (max-width: 560px) { .gallery.card-grid { grid-template-columns: 1fr; } }
.gallery.wide { columns: 1; max-width: 1100px; margin: 0 auto; }
.gallery.wide > a { margin: 0; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; margin-top: .4rem; }
.gallery img { width: 100%; }
.pager { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; }
.pager a { text-decoration: none; color: var(--red); display: flex; flex-direction: column; }
.pager a.next { text-align: right; }
.pager small { font: 400 .9rem var(--body); color: var(--green); letter-spacing: 0; }
.pager a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* illo */
.quote-band { text-align: center; overflow: hidden; padding: 3.5rem 0 5rem; }
.quote { position: relative; z-index: 1; margin: 0 auto; max-width: 44rem; }
.quote p { font-family: var(--serif); color: var(--red); font-size: clamp(2.2rem, 4.2vw, 3.3rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; }
.quote cite { font-style: normal; color: var(--red); font-size: .95rem; }
.stars { position: absolute; inset: 0; }
.star { position: absolute; display: block; animation: spin 40s linear infinite; }
.star svg { width: 100%; height: 100%; display: block; }
.star path { fill: var(--yellow); }
.s1 { width: 110px; height: 110px; left: 5%; top: 8%; }
.s2 { width: 70px; height: 70px; left: 20%; top: 55%; animation-direction: reverse; }
.s3 { width: 40px; height: 40px; left: 40%; top: 6%; }
.s4 { width: 120px; height: 120px; left: 86%; top: 10%; animation-direction: reverse; }
.s5 { width: 60px; height: 60px; left: 70%; top: 62%; }
.s6 { width: 30px; height: 30px; left: 55%; top: 80%; animation-direction: reverse; }
.s7 { width: 50px; height: 50px; left: 2%; top: 70%; }
.s8 { width: 36px; height: 36px; left: 94%; top: 72%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.site-footer { background: var(--cream); text-align: center; padding: 2.5rem var(--gutter) 3rem; }
.site-footer a { font-family: var(--serif); color: var(--red); font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin: 1rem 0 0; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .star { animation: none; }
  .scribble path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-1 { grid-template-columns: 1fr; }
  .cols-1 p { max-width: 36rem; }
  .note-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-image { padding-top: 0; }
  .hi { padding-left: .3em; }
  .cols { grid-template-columns: 1fr; }
  .s4, .s1 { width: 70px; height: 70px; }
}

/* lightbox */
.gallery a { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(24, 64, 39, .94); color: var(--cream); }
.lightbox::backdrop { background: rgba(24, 64, 39, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
.lightbox figcaption { margin-top: .75rem; font-size: 1rem; }
.lightbox button { background: none; border: 0; color: var(--cream); font: 400 3rem/1 var(--serif); cursor: pointer; padding: 1rem; }
.lightbox button:hover, .lightbox button:focus-visible { color: var(--yellow); }
.lb-close { position: absolute; top: .25rem; right: .5rem; }
.lb-count { position: absolute; bottom: .75rem; left: 0; right: 0; text-align: center; margin: 0; font-size: .9rem; }
@media (max-width: 760px) { .lightbox button { font-size: 2.2rem; padding: .5rem; } .lb-prev, .lb-next { position: absolute; bottom: .25rem; } .lb-prev { left: .5rem; } .lb-next { right: .5rem; } }
