/* Party Rats brand tokens, from the Canva "Master Design System".
   Black dominates; neon colors are accents. */
:root {
  --black: #111111;
  --warm-white: #f6f4ef;
  --pink: #ff2b8c;
  --cyan: #22d9ff;
  --lime: #d8ff2b;

  --font-head: "League Spartan", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "Edo", "Permanent Marker", cursive;
}

/* Edo by Vic Fieger, freeware (see /fonts/edo-license.txt). Self-hosted. */
@font-face {
  font-family: "Edo";
  src: url("/fonts/edo.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font: 400 1.125rem/1.6 var(--font-body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); text-transform: uppercase; }
/* Even line lengths on narrow screens: no one-word last lines like "FOR." */
h1, h2, .accent, .hero__sub { text-wrap: balance; }
p, li { text-wrap: pretty; }
.accent { font-family: var(--font-accent); font-weight: 400; text-transform: uppercase; }
section, .hero { padding: clamp(3rem, 8vw, 5.5rem) max(1.25rem, env(safe-area-inset-right)) clamp(3rem, 8vw, 5.5rem) max(1.25rem, env(safe-area-inset-left)); text-align: center; position: relative; overflow: hidden; }
section > *, .hero__body { max-width: 56rem; margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.5rem); }

/* Button sits on a strip of yellow tape, as in the Canva design */
.cta {
  display: inline-block;
  padding: 1.1rem 2.6rem;
  background: url("/img/tape.webp") center / 100% 100% no-repeat;
  color: var(--black);
  font: 400 1.6rem/1 var(--font-accent);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease;
}
@media (hover: hover) { .cta:hover { transform: rotate(-2deg) scale(1.05); } }
.cta:focus-visible, .cta:active { transform: rotate(-2deg) scale(1.05); }
.cta:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

/* Hero */
.hero { background: #000; color: var(--warm-white); min-height: 34rem; }
.hero__logo { position: absolute; top: 0; left: 1rem; width: clamp(7rem, 18vw, 15rem); }
.hero__body { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.5rem, 7vw, 3.5rem); margin-bottom: .2em; }
.hero__sub {
  font: 800 clamp(1.5rem, 3.5vw, 2.25rem)/1.2 var(--font-head);
  margin: 0 auto 1.5rem;
  display: inline-block;
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--cyan) 55%, transparent) 55% 85%, transparent 85%);
}
.hero__lede { max-width: 34rem; margin: 0 auto 2rem; }
.hero__rat { position: absolute; right: 4%; bottom: -6rem; width: clamp(9rem, 18vw, 16rem); }

/* What we do */
.what { background: var(--warm-white); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.services { list-style: none; padding: 0; margin: 2rem auto; font-size: clamp(1.125rem, 2.2vw, 1.5rem); }
.what__tag { color: var(--pink); font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-top: 2.5rem; }

/* Pink pull quote */
.pull { background: var(--pink); }
.pull__quote { font-size: clamp(1.75rem, 4.5vw, 3rem); margin: 2rem auto 1.5rem; }
.pull__peace { position: absolute; right: 24%; bottom: -1.5rem; width: clamp(4rem, 8vw, 6.5rem); }

/* Who */
.who { background: var(--warm-white); }
.who__body { max-width: 48rem; text-align: left; }

/* Got an idea */
.idea { background: #000; color: var(--warm-white); }
.idea__title { display: inline-flex; align-items: center; gap: .75rem; text-transform: none; }
.idea__title img { width: 4.5rem; }
.idea p { margin: 0 auto 2rem; max-width: 46rem; }

.footer { background: #000; color: #8a8a8a; text-align: center; padding: 1.5rem 1rem max(2rem, env(safe-area-inset-bottom)); font-size: .875rem; }
.footer p { margin: 0; }

/* Sticky inquiry button, phones only. Hidden until both on-page buttons are off screen. */
.sticky-cta { display: none; }

@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .hero { min-height: 0; padding-top: 7.5rem; padding-bottom: 13rem; }
  .hero__logo { left: max(1rem, env(safe-area-inset-left)); }
  .hero__lede { margin-bottom: 1.75rem; }
  .hero__rat { right: 50%; transform: translateX(50%); bottom: -3rem; width: 11rem; }
  .services { margin: 1.5rem auto; line-height: 1.9; }
  .what__tag { margin-top: 1.75rem; }
  .pull { padding-bottom: 7rem; }
  .pull__peace { right: 50%; transform: translateX(50%); }
  .idea__title img { width: 3.5rem; }

  .sticky-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: .6rem 1rem max(.6rem, env(safe-area-inset-bottom));
    background: var(--black);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .35);
    text-align: center;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .sticky-cta.is-shown { transform: none; visibility: visible; transition: transform .25s ease; }
  .sticky-cta .cta { font-size: 1.35rem; padding: .85rem 2.2rem; }
  /* Room so the bar never covers the footer */
  .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .cta { font-size: 1.4rem; padding: 1rem 2rem; }
}
@media (prefers-reduced-motion: reduce) { .cta, .sticky-cta, .sticky-cta.is-shown { transition: none; } }

/* Inquiry form */
.inquiry { max-width: 44rem; margin: 0 auto; text-align: left; }
.inquiry__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.25rem; }
.inquiry label { display: block; margin-bottom: 1.1rem; font-size: .95rem; font-weight: 600; }
.inquiry .opt { font-weight: 400; color: #a9a9a9; }
.inquiry input, .inquiry select, .inquiry textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .75rem .85rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--black);
  background: var(--warm-white); border: 2px solid transparent; border-radius: 4px;
}
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--cyan); }
.inquiry textarea { resize: vertical; }
.inquiry .cta { display: block; margin: 1.5rem auto 0; border: 0; cursor: pointer; }
.inquiry .cta:disabled { opacity: .6; cursor: progress; }
.inquiry__status { text-align: center; min-height: 1.6em; margin: 1rem 0 0; color: var(--lime); }
.inquiry.is-sent .inquiry__grid, .inquiry.is-sent > label, .inquiry.is-sent .cta { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
