/* ---- Colors: change these to restyle the whole site ---- */
:root {
  --paper: #f7f6f1;
  --paper-2: #eef3f6;
  --ink: #23262e;
  --ink-soft: #5a6070;
  --blue: #7cc4f0;        /* main light blue */
  --blue-deep: #2f7fb8;   /* for text/buttons on light backgrounds */
  --blue-pale: #dceffb;
  --line: #23262e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .wordmark { font-family: "Fredoka", "Nunito", sans-serif; }
a { color: var(--blue-deep); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.wordmark {
  font-weight: 700; font-size: 1.4rem; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em; margin: 0;
}
.wordmark span { color: var(--blue-deep); }
.site-header nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--blue-deep); }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 64px);
  max-width: 1200px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 0.9; margin: 0 0 24px;
  color: var(--blue-deep); text-transform: uppercase; font-weight: 700;
}
.lead { font-size: 1.15rem; max-width: 34em; color: var(--ink-soft); }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.arch {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--line);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--blue-pale);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.blob {
  position: absolute; z-index: 0;
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); left: -14%; bottom: -8%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 12px 22px;
  background: var(--blue-deep); color: #fff;
  border: 2px solid var(--line); border-radius: 999px;
  font-weight: 700; text-decoration: none;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn-ghost { background: var(--paper); color: var(--ink); }

/* ---- Sections ---- */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 64px);
}
.section h2 {
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.section h2::after {
  content: ""; display: block; width: 64px; height: 6px;
  background: var(--blue); border-radius: 3px; margin-top: 8px;
}
.section-intro { color: var(--ink-soft); margin: 12px 0 32px; max-width: 40em; }

/* ---- Gallery ---- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  margin: 0; cursor: zoom-in;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 4px 4px 0 var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--blue); }
.card img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.card figcaption {
  padding: 12px 16px; font-weight: 700; border-top: 2px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--blue-pale); color: var(--blue-deep);
  padding: 2px 8px; border-radius: 999px;
}

/* ---- About ---- */
.about-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 28px; }
.facts {
  margin: 0; padding: 24px; background: var(--paper-2);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.facts div { padding: 10px 0; border-bottom: 1px dashed #b9c3cc; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* ---- Commissions ---- */
.commissions { text-align: left; }
.steps {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 28px 22px 22px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute; top: -18px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--line);
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---- Events ---- */
.events { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line); }
.events li {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 4px; border-bottom: 2px solid var(--line);
}
.events .date { font-weight: 700; color: var(--blue-deep); }
.events .name { font-family: "Fredoka", sans-serif; font-size: 1.25rem; font-weight: 600; }
.events .place { color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 40px; padding: 48px 16px;
  text-align: center; background: var(--blue-pale);
  border-top: 2px solid var(--line);
}
.site-footer p { margin: 4px 0; }
.site-footer a { font-weight: 700; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 24, 32, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: 90vw; border-radius: var(--radius); cursor: default; }
.lb-caption { color: #fff; font-weight: 700; margin-top: 14px; }
.lb-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer;
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 8px; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; width: min(80%, 320px); }
  .about-cols { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== v2 additions ===== */
.stats {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-soft); font-size: 0.95rem;
}
.stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.chip {
  font: 700 0.95rem "Nunito", sans-serif; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.chip:hover { background: var(--blue-pale); }
.chip.is-active { background: var(--blue); }
.card[hidden] { display: none; }
.tag-available { background: #d9f5e3; color: #1d7a45; }
.tag-sold { background: #eceae4; color: #6b6760; }

/* Features */
.features {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.features li {
  padding: 22px; background: var(--blue-pale);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.features h3 { margin: 0 0 6px; font-size: 1.2rem; }
.features p { margin: 0; color: var(--ink-soft); }
.aside { font-family: "Fredoka", sans-serif; font-size: 1.3rem; color: var(--blue-deep); }

/* Prices */
.prices { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 40px; }
.price {
  flex: 1 1 180px; padding: 18px 22px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--blue);
}
.price-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.price-num { font-family: "Fredoka", sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--blue-deep); }
.price-num.small { font-size: 1.4rem; line-height: 2.2; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.reviews blockquote {
  margin: 0; padding: 22px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.reviews blockquote::before { content: "★★★★★"; color: var(--blue-deep); letter-spacing: 2px; }
.reviews p { margin: 0; font-size: 1.05rem; }
.reviews footer { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.more-link { display: inline-block; margin-top: 24px; font-weight: 700; }

/* Lightbox v2 */
.lb-body { display: flex; gap: 28px; align-items: center; max-width: 1100px; cursor: default; }
.lightbox img { max-height: 82vh; max-width: min(70vw, 720px); }
.lb-info { color: #fff; max-width: 300px; }
.lb-info .lb-caption { font-family: "Fredoka", sans-serif; font-size: 1.6rem; margin: 0 0 8px; }
.lb-desc { margin: 0 0 8px; opacity: .9; }
.lb-count { font-size: .85rem; opacity: .7; margin: 0 0 16px; }
.lb-link[hidden], .lb-nav[hidden] { display: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid #fff; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav:hover { background: var(--blue-deep); }

@media (max-width: 760px) {
  .lb-body { flex-direction: column; gap: 14px; }
  .lightbox img { max-width: 92vw; max-height: 60vh; }
  .lb-info { text-align: center; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}

/* Available masks link to Etsy */
.card.is-link { cursor: pointer; }
.etsy-go { margin-left: auto; font-size: 0.85rem; color: var(--blue-deep); white-space: nowrap; }
.card.is-link:hover .etsy-go { text-decoration: underline; }

/* ===== Fun HELLO! ===== */
.hello { position: relative; display: inline-flex; gap: 0.02em; }
.hello span {
  display: inline-block;
  color: var(--blue);
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--line);
  animation: hello-bob 2.6s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.hello span:nth-child(1) { --r: -8deg; animation-delay: 0s; }
.hello span:nth-child(2) { --r: 5deg;  animation-delay: .15s; }
.hello span:nth-child(3) { --r: -4deg; animation-delay: .3s; }
.hello span:nth-child(4) { --r: 7deg;  animation-delay: .45s; }
.hello span:nth-child(5) { --r: -6deg; animation-delay: .6s; }
.hello span:nth-child(6) { --r: 12deg; animation-delay: .75s; color: var(--blue-deep); }
@keyframes hello-bob {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-0.08em) rotate(calc(var(--r) * -0.5)); }
}
.hello:hover span { animation-duration: .6s; }
.spark {
  position: absolute; font-style: normal; color: var(--blue-deep);
  -webkit-text-stroke: 0; text-shadow: none;
  animation: spark-twinkle 1.8s ease-in-out infinite;
}
.spark.s1 { font-size: 0.32em; top: -0.15em; right: -0.35em; }
.spark.s2 { font-size: 0.2em; top: 0.35em; right: -0.6em; animation-delay: .9s; }
@keyframes spark-twinkle { 0%,100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .3; transform: scale(.6) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .hello span, .spark { animation: none; } .hello span { transform: rotate(var(--r)); } }

/* ===== Square hero photo ===== */
.arch {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--line);
  transform: rotate(2deg);
}
.blob { left: -12%; bottom: -12%; }

/* ===== Cat logo ===== */
.wordmark { display: inline-flex; align-items: center; white-space: pre; }
.site-footer .wordmark { display: block; }
.logo-cat { width: 52px; height: auto; margin-right: 10px; transition: transform .2s; }
.wordmark:hover .logo-cat { transform: rotate(-8deg) scale(1.08); }
.footer-cat { width: 96px; height: auto; margin: 0 auto 8px; }
.section h2 + .filters { margin-top: 28px; }

/* HELLO!: still by default, bobs + twinkles only on hover */
.hello span { animation: none; transform: rotate(var(--r)); }
.hello:hover span { animation: hello-bob .6s ease-in-out infinite; }
.hello:hover span:nth-child(2) { animation-delay: .08s; }
.hello:hover span:nth-child(3) { animation-delay: .16s; }
.hello:hover span:nth-child(4) { animation-delay: .24s; }
.hello:hover span:nth-child(5) { animation-delay: .32s; }
.hello:hover span:nth-child(6) { animation-delay: .40s; }
.spark { animation: none; }
.hello:hover .spark { animation: spark-twinkle 1s ease-in-out infinite; }
.hello:hover .spark.s2 { animation-delay: .5s; }
.spark.s1 { top: -0.22em; right: -0.72em; }
.spark.s2 { top: 0.3em; right: -1em; }
@media (prefers-reduced-motion: reduce) { .hello:hover span, .hello:hover .spark { animation: none; } }
/* Level letters when still; tilt + bob only on hover */
.hello span { transform: none; transition: transform .2s ease; }
.spark.s1 { top: -0.22em; right: -0.85em; }
.spark.s2 { top: 0.32em; right: -1.12em; }
@media (prefers-reduced-motion: reduce) { .hello span { transform: none; } }
.spark.s2 { top: 0.5em; right: -1.3em; }
.spark.s2 { right: -1.5em; }
.spark.s2 { right: -1.6em; }

/* ===== Contact page ===== */
.contact-card {
  max-width: 640px; margin-top: 28px; padding: 28px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--blue);
}
.contact-card p { margin: 0 0 20px; color: var(--ink-soft); }
.contact-card .btn { font-size: 1.05rem; }
.contact-card .contact-addr { margin: 16px 0 0; font-size: .95rem; }
.contact-addr a { font-weight: 700; }
.contact-page { min-height: calc(100vh - 330px); }
.contact-page .section { padding-top: clamp(56px, 9vw, 110px); }
.contact-more { margin-top: 28px; color: var(--ink-soft); }
.contact-more a { font-weight: 700; }
.site-header nav a[aria-current="page"] { color: var(--blue-deep); }

/* ===== Sold masks page ===== */
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.sold-count { color: var(--ink-soft); margin: 12px 0 8px; }
.year-group { margin-top: 36px; }
.year-head { font-size: 1.8rem; margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.year-head span { font: 700 .95rem "Nunito", sans-serif; color: var(--ink-soft); }
.sold-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.sold-card figcaption { font-size: .95rem; }
.see-all { display: inline-block; margin-top: 24px; font-weight: 700; font-size: 1.05rem; }
.section h2 + .prices { margin-top: 32px; }
