/* Colours: change here to restyle the whole page */
:root {
  --bg: #e8e4dc;
  --panel: #dedad1;
  --primary: #1f3fbf;   /* blue  */
  --second: #e8492f;    /* red   */
  --on-second: #1c1c22;
}

body { margin: 0; }
a { color: inherit; }
a:hover { opacity: 0.7; }
html { scroll-behavior: smooth; }

/* Portrait keeps its own height instead of stretching with the text */
.g-person > div:last-child { align-self: start; }

/* Tablet & phone */
@media (max-width: 900px) {
  .g-hero, .g-feature, .g-band { grid-template-columns: 1fr !important; }
  .g-3, .g-2 { grid-template-columns: 1fr !important; }
  .g-foot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .g-foot > div:last-child { justify-self: start !important; }
  .g-band > a { justify-self: start !important; }
  .h-hero { font-size: 88px !important; }
  .g-hero > p { padding-top: 0 !important; }
}
@media (max-width: 640px) {
  .h-hero { font-size: 64px !important; }
  .h-sec { font-size: 56px !important; }
  .g-person { grid-template-columns: 1fr !important; }
  .g-person > div:last-child { order: -1; width: 160px; }
  .g-head { display: none !important; }
  .g-row { grid-template-columns: 1fr !important; gap: 2px !important; }
  /* Compact menu: a full-width row above M² instead of floating top right */
  .g-hero > header { position: static !important; justify-content: space-between; gap: 12px !important; }
  header nav { gap: 14px !important; }
}
