/* BMNI SYSTEMS: one page, light only, system fonts, no third-party requests. */

/* Colours. Text colours are plain opaque hex so contrast can be checked from this file.
   Pastels are used for backgrounds, shapes and decoration only, never for text. */
:root {
  /* Text */
  --text: #3D2B3D;          /* body text, headings, button label, chip labels */
  --muted: #6E5A6B;         /* secondary text, footer */
  --link: #A12C5C;          /* links, second line of the wordmark */
  --link-strong: #7F1F47;   /* link hover */

  /* Surfaces */
  --bg: #FFF6EA;            /* page: soft cream */
  --surface: #FFFDF9;       /* card */

  /* Pastels */
  --pink: #FFB8CF;          /* button */
  --pink-strong: #FFA3C1;   /* button hover */
  --pink-deep: #EE8FAE;     /* button ledge, wordmark dot (decoration) */
  --pink-soft: #FAD3E0;     /* card ledge and border (decoration) */
  --mint: #BFEAD5;          /* app mark, chip */
  --lavender: #E1D7FA;      /* chip, shape */
  --butter: #FFE9A6;        /* chip, shape */
  --stitch: #EBD2DE;        /* dotted rule (decoration) */

  --focus: #3D2B3D;         /* focus ring */

  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 32px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2rem;
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* The h1 is plain text. Its fixed width has room for the big "BMNI" but not for both words,
   so the name always sets on two lines: a big, tight "BMNI" (styled through ::first-line)
   over a small, widely spaced "SYSTEMS". */
.wordmark {
  flex: none;
  width: 10em;
  max-width: 100%;
  color: var(--link);
  font-size: clamp(1.05rem, 5.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4em;
}

.wordmark::first-line {
  color: var(--text);
  font-size: 3.6em;
  font-weight: 900;
  letter-spacing: -0.045em;
}

/* A chunky pastel full stop. Out of flow with no offsets, so it sits where the text ends. */
.wordmark::after {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  margin-top: 0.34em;
  margin-left: -0.1em;
  border-radius: 50%;
  background: var(--pink-deep);
}

/* Three chunky pastel shapes, decoration only. */
.shapes {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
}

.shapes span {
  display: block;
  width: clamp(1.5rem, 7.5vw, 2.5rem);
  height: clamp(1.5rem, 7.5vw, 2.5rem);
}

.shapes span:nth-child(1) {
  border-radius: 38%;
  background: var(--mint);
  transform: rotate(-10deg);
}

.shapes span:nth-child(2) {
  height: clamp(2.1rem, 10.5vw, 3.5rem);
  border-radius: 999px;
  background: var(--butter);
}

.shapes span:nth-child(3) {
  border-radius: 50%;
  background: var(--lavender);
}

/* ---------- Intro ---------- */
.intro {
  margin-top: 3.25rem;
}

.tagline {
  max-width: 14em;
  font-size: clamp(1.75rem, 7.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 32em;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Section labels: little pastel chips ---------- */
.apps,
.contact {
  margin-top: 3.75rem;
}

.label {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact .label {
  background: var(--butter);
}

/* ---------- App cards ---------- */
.app-list {
  display: grid;
  gap: 2.25rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.app-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 3px solid var(--pink-soft);
  border-radius: var(--radius);
  background: var(--surface);
  /* A chunky pastel ledge under the card, plus a soft glow. */
  box-shadow:
    0 9px 0 var(--pink-soft),
    0 26px 40px -12px rgba(160, 96, 124, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.app-card__banner {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.app-card__body {
  min-width: 0;
}



/* Links added to the slot later sit under the card text. */
.app-card__body a {
  color: var(--link);
  font-size: 0.9375rem;
  text-underline-offset: 0.2em;
}

.app-card__body a:hover {
  color: var(--link-strong);
}

/* ---------- Button: a chunky pastel key ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin-bottom: 5px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-deep);
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  background: var(--pink-strong);
}

.button:active {
  box-shadow: 0 1px 0 var(--pink-deep);
  transform: translateY(4px);
}

.button__arrow {
  transition: transform 0.15s ease;
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

/* ---------- Contact ---------- */
.contact__line {
  margin-top: 1rem;
}

.contact__link {
  color: var(--link);
  font-size: clamp(1.25rem, 5.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.contact__link:hover {
  color: var(--link-strong);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 4px dotted var(--stitch);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Focus ---------- */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.button:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .page {
    padding: 5rem 2rem 3rem;
  }

  .intro {
    margin-top: 4.25rem;
  }

  .apps,
  .contact {
    margin-top: 4.5rem;
  }

  .app-card {
    padding: 1.75rem;
  }

  .footer {
    margin-top: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button__arrow {
    transition: none;
  }
}
