:root {
  /* Colours sampled from the supplied BAMOT logo. */
  --blue: #2d4197;
  --red: #d40303;
  --paper: #fefefe;
  --muted: #545b6b;
  --line: #d9dce6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--blue); font: 1rem/1.45 Arial, Helvetica, sans-serif; }
main { width: min(30rem, calc(100% - 2.25rem)); margin: clamp(1.25rem,5vh,3.25rem) auto 2rem; }
header { text-align: center; border-top: 1px solid var(--line); padding: 1.1rem 0 1.55rem; position: relative; }
header::before { content: ""; position: absolute; width: 2.5rem; height: 3px; background: var(--red); top: -2px; left: calc(50% - 1.25rem); }
header img { display: block; width: 6.75rem; height: auto; margin: 0 auto .65rem; }
h1 { margin: 0; font: 500 clamp(1.7rem, 6.8vw, 2.45rem)/1.1 Georgia, serif; letter-spacing: -.045em; }
header p { margin: .48rem 0 0; color: var(--muted); font-size: .93rem; }
nav { display: grid; gap: .7rem; }
a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .85rem; min-height: 5.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: white; color: var(--blue); text-decoration: none; }
a.primary { background: var(--blue); border-color: var(--blue); color: white; }
a.secondary { border-color: var(--blue); }
a:hover { box-shadow: 0 3px 12px rgb(30 47 103 / 12%); border-color: var(--blue); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.icon { width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border-radius: .65rem; background: #f0f2fa; }
.primary .icon { background: rgb(255 255 255 / 13%); }
svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
strong, small { display: block; overflow-wrap: anywhere; }
strong { font-size: 1.04rem; line-height: 1.25; }
small { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.primary small { color: white; }
.arrow { width: 1rem; }
footer { margin: 1.4rem 0 0; border-top: 1px solid var(--line); padding: 1rem 0; text-align: center; color: var(--muted); font-size: .8rem; }
@media (max-width: 23rem) {
  a { padding: .85rem .75rem; gap: .6rem; }
  .icon { width: 2rem; height: 2.25rem; }
}
