/* ==========================================================================
   Bigfrens — bigfrens.com
   Brand styles live here once. Change a colour or font in :root and it
   updates everywhere on the site.
   ========================================================================== */

:root {
  /* Bigfrens brand */
  --bf-blue: #486FF8;
  --bf-lime: #D9F041;
  --bf-cream: #FCF9F1;
  --bf-bg: #FBF9ED;
  --bf-ink: #000000;
  --bf-text: #17151F;
  --bf-muted: #45424F;

  /* Smallfrens product colours (used on the Smallfrens card only) */
  --sf-orange: #F2A93C;
  --sf-orange-dark: #C8761E;
  --sf-brown: #3A2F25;
  --sf-brown-soft: #5C4B3B;
  --sf-paper: #EFECE3;
  --sf-chip-bg: #FBE7C6;
  --sf-chip-text: #8A4F12;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-sf-display: Fredoka, system-ui, sans-serif;
  --font-sf-body: Nunito, system-ui, sans-serif;

  /* Shapes */
  --line-thick: 7px;
  --line: 5px;
  --line-thin: 4px;
  --radius-card: 36px;
  --radius-tile: 30px;

  --page-max: 860px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bf-bg);
  color: var(--bf-text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bf-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 4px solid var(--bf-blue);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  width: 100%;
  max-width: calc(var(--page-max) + 64px);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* --------------------------------------------------------------------------
   Hero: logo, headline, Smallfrens card
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 64px;
  padding-bottom: 40px;
  text-align: center;
}

.hero__logo {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__logo img { width: 100%; max-width: 620px; }

.hero__headline {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bf-text);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Smallfrens promo. Everything inside is sized against the card's own
   width (cqw), so the yeti, Yuki and the text stay in proportion at any size.
   -------------------------------------------------------------------------- */

.promo {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin-top: 155px;
}

.promo__badge {
  position: absolute;
  left: 0;
  right: 0;
  top: -80px;
  z-index: 2;
  margin: 0;
  display: flex;
  justify-content: center;
  padding-left: 10.5cqw; /* nudges it right of centre, clear of Yuki */
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 24px 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: var(--line-thin) solid var(--bf-ink);
  box-shadow: 4px 4px 0 var(--sf-orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--bf-ink);
  white-space: nowrap;
}
.badge__dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sf-orange);
  border: 3px solid var(--bf-ink);
}

.promo__peek {
  position: absolute;
  left: 12.56cqw;
  top: -9.88cqw;
  width: 15.93cqw;
  z-index: 2;
  pointer-events: none;
}

.promo__art {
  position: absolute;
  left: 56.4cqw;
  bottom: 46px;
  width: 61.28cqw;
  z-index: 3;
  pointer-events: none;
}

.promo-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: var(--line-thick) solid var(--bf-ink);
  border-radius: var(--radius-card);
  background: var(--sf-paper);
  color: var(--sf-brown);
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease;
}
.promo-card:hover { transform: translateY(-3px); }

.promo-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 52.56cqw;
  padding: 6.74cqw 6.51cqw 0;
}

.promo-card__logo { height: 10.23cqw; width: auto; }

.promo-card__title {
  margin: 3.49cqw 0 0;
  font-family: var(--font-sf-display);
  font-weight: 500;
  font-size: 6.98cqw;
  line-height: 1.04;
  letter-spacing: -0.008em;
  color: var(--sf-brown);
}
.promo-card__title-accent { color: var(--sf-orange-dark); }

.promo-card__text {
  margin: 2.79cqw 0 0;
  font-family: var(--font-sf-body);
  font-weight: 700;
  font-size: max(15px, 2.33cqw);
  line-height: 1.35;
  color: var(--sf-brown-soft);
}

.promo-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 30px;
  border-top: var(--line-thick) solid var(--bf-ink);
  background: #fff;
  font-family: var(--font-sf-body);
  font-size: 19px;
}
.promo-card__strip-left { display: flex; align-items: center; gap: 12px; }
.promo-card__domain { font-weight: 700; }
.chip {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sf-chip-bg);
  color: var(--sf-chip-text);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.promo-card__cta { font-weight: 700; color: var(--sf-orange-dark); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Who are we?
   -------------------------------------------------------------------------- */

.team {
  padding-top: 60px;
  padding-bottom: 72px;
  text-align: center;
}

.section-title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bf-ink);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.person {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border: var(--line) solid var(--bf-ink);
  border-radius: var(--radius-tile);
  background: #fff;
  color: var(--bf-ink);
  text-align: left;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--bf-ink);
}
.person__pic { flex: none; width: 96px; height: 96px; }
.person__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.027em;
}
.person__bio { font-size: 17px; line-height: 1.4; color: var(--bf-muted); }
.person__link { margin-top: 4px; font-weight: 600; font-size: 16px; color: var(--bf-blue); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: auto;
  padding: 24px 32px 36px;
  font-size: 15px;
  color: var(--bf-muted);
  text-align: center;
}
.footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Medium screens: no room for the yeti to hang off the right edge,
   so he steps inside the card and gets a little smaller.
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .promo__art { left: 52cqw; width: 51cqw; }
}

@media (max-width: 900px) {
  .badge { font-size: 18px; padding: 10px 20px 10px 14px; }
  .badge__dot { width: 14px; height: 14px; }
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; gap: 22px; }

  .promo { margin-top: 150px; }

  .promo__peek { left: 7cqw; top: -15.5cqw; width: 25cqw; }

  .promo__badge {
    top: calc(-15.5cqw - 62px);
    padding-left: 0;
  }
  .badge { font-size: 16px; gap: 9px; padding: 10px 18px 10px 12px; }
  .badge__dot { width: 13px; height: 13px; border-width: 2.5px; }

  .promo-card { border-width: var(--line); border-radius: 28px; }
  .promo-card__body {
    min-height: 0;
    padding: 8cqw 7cqw 56cqw;
  }
  .promo-card__logo { height: 14cqw; }
  .promo-card__title { margin-top: 6cqw; font-size: 10.5cqw; }
  .promo-card__text { margin-top: 4cqw; font-size: 15px; }
  .promo-card__text br { display: none; }

  .promo__art { left: auto; right: -2cqw; width: 88cqw; bottom: 34px; }

  .promo-card__strip { padding: 14px 18px; font-size: 16px; border-top-width: var(--line); }
  .promo-card__domain { display: none; }
  .chip { font-size: 14px; }

  .team { padding-top: 56px; }
  .team__grid { grid-template-columns: 1fr; gap: 16px; }
  .person { padding: 20px; gap: 18px; }
  .person__pic { width: 80px; height: 80px; }
  .person__name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-card, .person { transition: none; }
  .promo-card:hover, .person:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Simple pages (404, portfolio placeholders)
   -------------------------------------------------------------------------- */

.simple {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 64px 24px;
  text-align: center;
}
.simple__pic { width: 140px; height: 140px; }
.simple__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bf-ink);
}
.simple__text { margin: 0; font-size: 18px; color: var(--bf-muted); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--line-thin) solid var(--bf-ink);
  border-radius: 999px;
  background: var(--bf-lime);
  color: var(--bf-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--bf-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bf-ink); }
