/*
Theme Name: A Bag of Candy
Theme URI: https://abagofcandy.com
Author: Travel Minds
Description: One-page theme for A Bag of Candy Productions — ABOC Events and Cameron's caricatures. Sticker-sheet look: thick navy outlines, hard offset shadows, candy palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abagofcandy
*/

:root {
  --navy: #141E2C;
  --navy-deep: #0B1220;
  --navy-line: #2A3647;
  --cream: #FFF6E9;
  --white: #FFFFFF;
  --red: #E4342C;
  --red-dark: #C0392F;
  --red-pale: #FFE8E5;
  --cyan: #36A9E1;
  --yellow: #F7C948;
  --ink: #3C4A5C;
  --muted: #C3CEDC;
  --muted-dim: #A9B6C8;
  --muted-faint: #8D9BAE;
  --display: 'Archivo Black', Archivo, system-ui, sans-serif;
  --body: Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Archivo Black ships a single weight. Headings and buttons would otherwise
   inherit bold from the UA stylesheet and the browser would synthesise it,
   which smears the display face. Ask for the real one. */
h1, h2, h3,
.nav__name,
.btn,
.band p,
.contact__mail span {
  font-weight: 400;
  font-synthesis-weight: none;
}


body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--yellow); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; }

/* --- the sticker motif: thick outline, hard shadow, a nudge on hover --- */
.sticker { transition: transform .15s ease, box-shadow .15s ease; }
.sticker:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--navy-deep); }
@media (prefers-reduced-motion: reduce) {
  .sticker { transition: none; }
  .sticker:hover { transform: none; }
}

/* --- buttons --- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--display);
  letter-spacing: .03em;
  padding: 16px 28px;
  font-size: 16px;
  border: 3px solid var(--navy);
}
.btn--solid { color: var(--navy); background: var(--yellow); box-shadow: 6px 6px 0 var(--navy-deep); }
.btn--ghost { color: var(--cream); background: transparent; border-color: var(--cream); }
.btn--sm { padding: 14px 24px; font-size: 15px; }
.btn--navy { color: var(--cream); background: var(--navy); box-shadow: 5px 5px 0 var(--red); }
.btn--yellow { color: var(--navy); background: var(--yellow); box-shadow: 5px 5px 0 var(--cyan); }
.btn--band { color: var(--navy); background: var(--yellow); border-color: var(--cream); box-shadow: 5px 5px 0 var(--red); white-space: nowrap; }

/* --- nav --- */
.nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--cream);
  border: 3px solid var(--navy);
  flex: none;
}
.nav__mark img { width: 32px; height: 32px; object-fit: contain; }
.nav__name { font-family: var(--display); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.nav__link {
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__cta {
  text-decoration: none;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  box-shadow: 4px 4px 0 var(--navy-deep);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- hero --- */
.hero {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 2px, transparent 2px);
  background-size: 30px 30px;
  padding: 56px 24px 92px;
}
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 48px; }
.hero__copy { flex: 1 1 440px; min-width: 0; }
.hero__art { flex: 0 1 420px; min-width: 0; display: flex; justify-content: center; }

.eyebrow {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5.2vw, 72px);
  line-height: .99;
  letter-spacing: -.02em;
}
/* Peter's call: "A Bag of Candy" never breaks across lines. The clamp floor is
   low enough that it still fits unbroken on a 320px phone. */
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .is-accent { color: var(--yellow); }
.hero__lede {
  margin: 28px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__logo {
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow: 14px 14px 0 var(--navy-deep);
  border-radius: 28px;
  padding: 36px 32px;
  transform: rotate(-2deg);
  width: 100%;
  max-width: 400px;
}
.hero__logo img { width: 100%; height: auto; display: block; }

/* --- what we do --- */
.strands {
  background: var(--cream);
  color: var(--navy);
  padding: 86px 24px;
  border-top: 4px solid var(--navy);
}
.strands .eyebrow { color: var(--red-dark); margin-bottom: 12px; }
.strands h2 {
  margin: 0 0 56px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 16em;
  text-wrap: balance;
}
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--white);
  border: 4px solid var(--navy);
  box-shadow: 10px 10px 0 var(--navy);
  border-radius: 22px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 3px solid var(--navy);
}
.card__icon--red { background: var(--red); }
.card__icon--cyan { background: var(--cyan); }
.card h3 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
/* Equal-height cards: anchor each CTA to the bottom so the shorter card reads
   as deliberate rather than half-empty. */
.card .btn { margin-top: auto; align-self: flex-start; }
.chips { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}
.card__panel {
  margin: 4px 0 0;
  border: 3px solid var(--navy);
  border-radius: 16px;
  background: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .10) 2px, transparent 2px);
  background-size: 22px 22px;
  padding: 18px 16px;
}
.card__panel svg { display: block; width: 100%; height: auto; }

/* --- the cross-sell: the one thing only this site can say --- */
.band {
  margin-top: 32px;
  background: var(--navy);
  border: 4px solid var(--navy);
  box-shadow: 10px 10px 0 var(--cyan);
  border-radius: 22px;
  padding: 30px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.band p {
  margin: 0;
  flex: 1 1 380px;
  min-width: 0;
  font-family: var(--display);
  color: var(--cream);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.25;
  text-wrap: balance;
}
.band p em { color: var(--yellow); font-style: normal; }

/* --- contact --- */
.contact {
  background: var(--red);
  color: var(--cream);
  padding: 86px 24px;
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}
.contact__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.contact__copy { flex: 1 1 420px; min-width: 0; }
.contact h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.contact p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 32em; color: var(--red-pale); }
.contact__side { flex: 0 1 420px; min-width: 0; }
.contact__mail {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow: 8px 8px 0 var(--navy);
  border-radius: 18px;
  padding: 24px 26px;
}
.contact__mail svg { flex: none; }
.contact__mail span { font-family: var(--display); font-size: clamp(15px, 1.5vw, 19px); word-break: break-word; }

/* --- footer --- */
.site-footer { background: var(--navy); padding: 54px 24px 44px; }
.site-footer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 32px; }
.site-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--cream);
  border: 3px solid var(--navy);
  flex: none;
}
.site-footer__mark img { width: 38px; height: 38px; object-fit: contain; }
.site-footer__who { margin: 0; margin-right: auto; font-size: 15px; line-height: 1.5; color: var(--muted-dim); }
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 3px solid var(--cream);
  color: var(--cream);
}
.socials a.is-accent { border-color: var(--yellow); color: var(--yellow); }
.socials a:hover { box-shadow: 4px 4px 0 var(--navy-deep); }
.colophon {
  margin: 0;
  flex: 1 1 100%;
  padding-top: 22px;
  border-top: 1px solid var(--navy-line);
  font-size: 14px;
  color: var(--muted-faint);
}

/* --- fallback template --- */
.nothing { padding: 120px 24px; text-align: center; }
.nothing h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 56px); margin: 0 0 18px; }
.nothing p { color: var(--muted); font-size: 18px; margin: 0 0 32px; }

@media (max-width: 640px) {
  /* Give the wordmark its own line so the three links sit together below it
     instead of dribbling onto a third row. */
  .nav__brand { flex: 1 1 100%; margin-right: 0; }
  .strands, .contact { padding: 62px 20px; }
  .card { padding: 30px 24px; }
  .band { padding: 24px 24px; }
  .hero { padding: 40px 20px 72px; }
  .nav { padding: 20px; gap: 14px 20px; }
}
