/* gvesster's site — colours and sizes live here */
:root {
  --ink: #040433;          /* titles and main text */
  --ink2: #55557a;         /* small grey text */
  --lav: #f0e1fd;          /* lavender of the background */
  --orange: #f6b545;
  --orange2: #f2a33c;
  --green: #5cc35b;
  --red: #eb4e6c;
  --white-btn: linear-gradient(180deg, #ffffff 0%, #e8f1fa 100%);
  --shadow: 0 6px 16px rgba(73, 38, 140, .18), 0 2px 4px rgba(73, 38, 140, .10);
  --radius: 18px;
  --display: "Climate Crisis", "Arial Black", sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 16px;
  background: linear-gradient(180deg, #fff 0, var(--lav) 380px, var(--lav) calc(100% - 380px), #fdfbff 100%);
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .045em; line-height: 1; margin: 0; }
.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.sub { margin: 2px 0 0; color: #7a7a99; font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(4, 4, 51, .06); }
.nav-inner { width: min(1140px, 100% - 32px); margin: 0 auto; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; gap: 22px; }
.nav-link { font-family: var(--display); letter-spacing: .045em; font-size: 16px; text-decoration: none; position: relative; padding: 4px 0; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #6a2fd6; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-donate { font-weight: 700; font-size: 14px; text-decoration: none; }
.nav-donate:hover { text-decoration: underline; }
.burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(73, 38, 140, .22); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-orange { background: linear-gradient(180deg, #f8c04e, var(--orange2)); color: var(--ink); }
.btn-green { background: linear-gradient(180deg, #74d473, #4fb24e); color: #fff; }
.btn-white { background: var(--white-btn); color: var(--ink); }
.btn.big { padding: 13px 24px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { min-height: calc(100vh - 66px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 16px 90px; position: relative; }
.hero-emoji { width: 180px; height: 180px; object-fit: contain; animation: bob 3.2s ease-in-out infinite; }
.hero-title { font-size: clamp(30px, 4vw, 41px); margin-top: 14px; }
.hero-sub { margin: 10px 0 0; font-size: 15px; color: var(--ink2); }
.socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.social { width: 110px; height: 110px; border-radius: 20px; background: var(--white-btn); box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .2s; }
.social img { width: 70px; height: 70px; transition: transform .25s; }
.social span { font-size: 13.5px; font-weight: 700; }

.scroll-hint { position: absolute; bottom: 26px; width: 26px; height: 40px; border: 2.5px solid rgba(4, 4, 51, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: rgba(4, 4, 51, .45); animation: wheel 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { padding: 70px 0 40px; }
.page { padding: 34px 0 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .display, .page h1.display { font-size: clamp(26px, 2.6vw, 30px); }

/* gvesster plus banner */
.plus-banner { display: block; text-decoration: none; background: linear-gradient(180deg, #ffcd45, #ffa62e); box-shadow: 0 10px 26px rgba(255, 160, 40, .45); margin: 54px 0 40px; transition: filter .2s; }
.plus-banner:hover { filter: brightness(1.04) saturate(1.05); }
.plus-inner { width: min(1140px, 100% - 32px); margin: 0 auto; min-height: 104px; display: flex; align-items: center; gap: 28px; position: relative; }
.plus-logo { width: 250px; margin: -46px 0 -26px; filter: drop-shadow(0 8px 10px rgba(150, 80, 0, .25)); transition: transform .3s; }
.plus-banner:hover .plus-logo { transform: rotate(-3deg) scale(1.04); }
.plus-text { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.plus-text strong { font-size: clamp(16px, 2vw, 22px); font-weight: 800; font-style: italic; color: var(--ink); }
.plus-text span { font-size: 12.5px; font-style: italic; color: #5b4313; }
.dev-banner .plus-inner { min-height: 70px; }

/* pack cards */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.pack-card { text-decoration: none; text-align: center; display: block; }
.pack-card, .work, .tilt { perspective: 520px; }
.socials .tilt { display: block; }
.card-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .45s cubic-bezier(.2, .8, .3, 1.2); transform-style: preserve-3d; will-change: transform; }
.card-in.tilting { transition: transform .12s ease-out; }
.pack-card:hover .card-in, .work:hover .card-in { --lift: -8px; }
.pack-img, .work-img { position: relative; }
.pack-img::after, .work-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.pack-card:hover .pack-img::after, .work:hover .work-img::after { opacity: 1; }
.pack-card:hover .pill { animation: bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bounce { 40% { transform: translateY(-4px) scale(1.08); } }
.pack-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1000 / 508; background: #e7dcf7; transition: box-shadow .25s; }
.pack-img img { width: 100%; height: 100%; object-fit: cover; }
.pack-card:hover .pack-img { box-shadow: 0 22px 36px rgba(73, 38, 140, .3); }
.pack-card h3 { font-family: var(--display); letter-spacing: .045em; font-weight: 400; font-size: 18px; margin: 10px 0 2px; }
.pack-card p { margin: 0; font-size: 11px; color: #7a7a99; }
.pills { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.pill { display: inline-block; min-width: 44px; padding: 4px 14px; border-radius: 999px; background: var(--c, #54a8f8); color: #fff; font-weight: 600; font-size: 15px; text-align: center; box-shadow: 0 4px 14px color-mix(in srgb, var(--c, #54a8f8) 60%, transparent); }
.pill-free { --c: #ff3b69; background: var(--c); }

/* works */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
.work { margin: 0; transition: transform .3s; }
.work-img { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; cursor: zoom-in; }
.work-img img { width: 100%; transition: transform .4s; }
.work:hover .work-img { box-shadow: 0 18px 34px rgba(73, 38, 140, .28); }
.work h3 { font-family: var(--display); letter-spacing: .045em; font-weight: 400; font-size: 17px; margin: 12px 0 2px; }
.work p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.tired { text-align: center; color: #b7a6d3; font-size: 13px; margin: 44px 0 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 6, 35, .78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: fade .2s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

/* ---------- pack page ---------- */
.glow { box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 55%, transparent); }
.back { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #8b86a8; text-decoration: none; transition: color .2s, transform .2s; }
.back:hover { color: var(--ink); transform: translateX(-3px); }
.pack-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.pack-info { max-width: 530px; }
.pack-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pack-title .display { font-size: clamp(26px, 2.8vw, 32px); }
.pack-text { font-size: 14.5px; line-height: 1.7; color: #9d98b5; margin: 14px 0 14px; }
.pack-text a { color: inherit; text-decoration: none; }
.vpill { display: inline-block; padding: 2px 11px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 600; font-size: 12px; text-decoration: none; box-shadow: 0 3px 12px color-mix(in srgb, var(--c) 55%, transparent); }
.vpill.big { font-size: 15px; padding: 3px 12px; }
.vpill.old { background: #b8b7b9; box-shadow: 0 3px 10px rgba(120, 118, 130, .35); }
.btn-pill { font-size: 15px; padding: 4px 14px; transition: transform .18s, filter .18s; }
.btn-pill:hover { transform: translateY(-2px); filter: brightness(1.06); }
.pack-btns { display: flex; gap: 12px; }
.pack-info hr { border: 0; border-top: 1px solid #ddd2ea; margin: 18px 0; }
.stats { display: flex; flex-direction: column; gap: 6px; }
.stat { display: grid; grid-template-columns: 140px 1fr; align-items: center; }
.stat span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6d6d88; }
.stat div { display: flex; gap: 8px; flex-wrap: wrap; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; }
.buy .btn { font-size: 16px; font-weight: 600; padding: 11px 24px; box-shadow: 0 8px 18px rgba(73, 38, 140, .22), 0 2px 4px rgba(73, 38, 140, .12); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6d6d88; margin-bottom: 10px; }
.updates { display: flex; flex-direction: column; gap: 8px; }
.update { display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.update .vpill { min-width: 40px; text-align: center; transition: transform .18s; }
.update .date { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: #6d6d88; }
a.update:hover .vpill { transform: scale(1.1); }
.tags { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.tag { text-align: center; font-size: 12px; font-weight: 600; padding: 3px 6px; border-radius: 999px; background: #e1d5ec; color: #f6eefc; }
.gallery-main { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.thumb { border-radius: 10px; overflow: hidden; outline: 3px solid transparent; outline-offset: -3px; transition: transform .2s, outline-color .2s; }
.thumb:hover { transform: translateY(-2px); }
.thumb.on { outline-color: var(--c); }
.recent { position: relative; margin-top: 20px; text-align: center; }
.recent > .vpill { position: absolute; left: 6%; top: -8px; z-index: 2; }
.recent-img { width: 82%; margin: 0 auto; }
.color-banner { display: block; margin: 40px 0 0; padding: 10px 16px; text-align: center; background: var(--c); color: #fff; font-weight: 700; font-style: italic; font-size: clamp(15px, 1.6vw, 19px); text-decoration: none; box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 55%, transparent); transition: filter .2s; }
.color-banner:hover { filter: brightness(1.06); }
.like-title { text-align: center; font-size: clamp(20px, 2vw, 24px) !important; margin: 30px 0 26px; }

/* ---------- license ---------- */
.license { margin-top: 26px; padding-left: 24px; }
.license h2 { font-size: 20px; font-weight: 700; margin: 14px 0 6px; }
.license p { margin: 0 0 3px 44px; font-size: 15px; line-height: 1.5; }
.license p em { color: var(--ink); }
.license .links a { color: #b97cf2; font-style: italic; text-decoration: none; }
.license .links a:hover { text-decoration: underline; }

/* ---------- 404 + linkhub ---------- */
.center-page { min-height: calc(100vh - 66px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 16px 60px; gap: 6px; }
.big-emoji { width: 170px; height: 170px; object-fit: contain; animation: bob 3.2s ease-in-out infinite; }
.center-page h1.display { font-size: 48px; margin-top: 8px; }
.center-page .btn { margin-top: 16px; }
.linkhub { min-height: 100vh; }
.link-icons { display: flex; gap: 12px; margin: 14px 0 6px; }
.link-icons a { width: 52px; height: 52px; border-radius: 14px; background: var(--white-btn); box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .2s; }
.link-icons a:hover { transform: translateY(-3px); }
.link-icons img { width: 30px; }
.link-list { display: flex; flex-direction: column; gap: 14px; width: min(310px, 100%); margin-top: 8px; }
.link-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; background: var(--white-btn); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; font-size: 17px; transition: transform .2s; }
.link-btn img { position: absolute; left: 20px; width: 30px; }
.link-btn:hover { transform: translateY(-3px) scale(1.02); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 50px 16px 36px; font-size: 13px; color: var(--ink2); }
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 8px; }
.footer-links a { font-weight: 700; text-decoration: none; color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.footer p { margin: 0; }

/* ---------- appear on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-emoji, .big-emoji, .scroll-hint span { animation: none; }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 1000px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-top { grid-template-columns: 1fr; }
  .tags { grid-template-columns: repeat(4, 1fr); }
  .plus-logo { width: 190px; }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .nav-left, .nav-right { display: none; }
  .nav-inner { justify-content: flex-end; }
  .nav.open { background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
  .nav.open .nav-inner { height: auto; flex-wrap: wrap; padding: 14px 0 20px; }
  .nav.open .burger { order: -1; margin-left: auto; }
  .nav.open .nav-left, .nav.open .nav-right { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 16px; margin-top: 12px; }
  .nav.open .nav-link { font-size: 22px; }
  .nav.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .socials { display: grid; grid-template-columns: repeat(2, 84px); }
  .pack-grid, .works-grid { grid-template-columns: 1fr; }
  .section-head { align-items: center; }
  .plus-banner { margin-top: 64px; }
  .plus-inner { flex-direction: column; gap: 6px; padding: 0 0 18px; }
  .plus-logo { width: 180px; margin: -50px 0 0; }
  .dev-banner .plus-inner { padding: 18px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .license { padding-left: 0; }
  .license p { margin-left: 14px; }
  .stat { grid-template-columns: 130px 1fr; }
  .tags { grid-template-columns: repeat(3, 1fr); }
}
.tilt { text-decoration: none; }
