/* ==========================================================================
   The Village — brand colours and base styles
   Final palette, November 2026. Source of truth: "The Village — Brand Colour Guide".
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand colours — bright versions: logo, shapes, decoration only (never text) */
  --village-coral: #FF6B5B;
  --village-violet: #8B6CF0;
  --village-teal: #26A9AE;
  --village-sunshine: #FFC845;

  /* Brand colours — deep versions: buttons, tiles, links, labels */
  --village-coral-deep: #E85A47;   /* white text only at 19px+ bold (3.5:1) */
  --village-violet-deep: #7553E0;  /* white text OK at any size (5.2:1) */
  --village-teal-deep: #0A7D80;    /* white text OK at any size (4.9:1) */

  /* Hover states */
  --village-coral-hover: #D64B39;
  --village-violet-hover: #6343CC;
  --village-teal-hover: #086A6D;

  /* Soft tints for card and tile backgrounds */
  --village-coral-tint: #FFE9E5;
  --village-violet-tint: #EFEAFD;
  --village-teal-tint: #E0F2F2;

  /* Text, backgrounds, lines */
  --village-navy: #13294B;         /* headings, important text */
  --village-slate: #4D5268;        /* body text */
  --village-cream: #FFF6F0;        /* page background */
  --village-white: #FFFFFF;        /* cards, forms, header */
  --village-line: #F3E3D8;         /* borders and dividers */

  /* Feedback */
  --village-error: #B42318;        /* errors only — always with an icon and text */
  --village-success: var(--village-teal-deep);

  /* Meaning (use these names in components) */
  --village-action: var(--village-coral-deep);      /* Play, main buttons */
  --village-community: var(--village-violet-deep);  /* Classes, pods, coins, badges */
  --village-care: var(--village-teal-deep);         /* Village Care, links, labels */
  --village-highlight: var(--village-sunshine);     /* celebration, highlighter marks */

  /* Type */
  --village-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --village-focus-ring: 3px solid var(--village-violet-deep);
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--village-cream);
  color: var(--village-slate);
  font-family: var(--village-font);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--village-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--village-teal-deep);
}
a:hover {
  color: var(--village-teal-hover);
}

input, select, textarea, button {
  font-family: inherit;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: var(--village-focus-ring);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
/* Main action: one per screen. Text must stay 19px+ bold for contrast. */
.btn-primary {
  display: inline-block;
  background: var(--village-coral-deep);
  color: var(--village-white);
  font-size: 19px;
  font-weight: 700;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--village-coral-hover);
  color: var(--village-white);
}

.btn-secondary {
  display: inline-block;
  background: var(--village-white);
  color: var(--village-navy);
  font-size: 19px;
  font-weight: 700;
  padding: 13px 26px;
  border: 2px solid var(--village-navy);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--village-navy);
  color: var(--village-white);
}

/* ---------- Labels and highlights ---------- */
.eyebrow {
  color: var(--village-teal-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Yellow highlighter mark behind a phrase */
.highlight {
  background: linear-gradient(transparent 60%, var(--village-sunshine) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 4px;
}

/* ---------- Pillar tiles (meaning-based) ---------- */
.tile-play      { background: var(--village-coral-tint); }
.tile-community { background: var(--village-violet-tint); }
.tile-care      { background: var(--village-teal-tint); }

.badge-play      { background: var(--village-coral-deep);  color: var(--village-white); font-size: 19px; font-weight: 800; }
.badge-community { background: var(--village-violet-deep); color: var(--village-white); font-weight: 800; }
.badge-care      { background: var(--village-teal-deep);   color: var(--village-white); font-weight: 800; }

/* ---------- Form feedback ---------- */
.form-error {
  color: var(--village-error);
  font-size: 15px;
  font-weight: 600;
}
.form-success {
  color: var(--village-success);
  font-size: 15px;
  font-weight: 600;
}
