/* MIGP Capital Corporation — migp.ca */
/* Palette drawn from the corporation's own materials:
   navy #1e345d (identity), stone #e2e2e2 (band), oxblood #7a1f1f (contact card),
   paper #f7f6f3, ink #26314b */

:root {
  --navy: #1e345d;
  --navy-deep: #16294a;
  --paper: #f7f6f3;
  --stone: #e2e2e2;
  --ink: #26314b;
  --muted: #5b647a;
  --rule: #cfd3da;
  --oxblood: #7a1f1f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Century Gothic", "CenturyGothic", "AppleGothic", "Futura", "Trebuchet MS", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Letterhead band — navy rule, grey plate, navy hairline */
.letterhead {
  border-top: 6px solid var(--navy);
  background: var(--stone);
  border-bottom: 1px solid var(--navy);
  padding: 2.25rem 1.25rem 2rem;
  text-align: center;
}
.letterhead img.wordmark {
  width: 340px;
  max-width: 82%;
  height: auto;
  display: inline-block;
}
.letterhead .estline {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}

nav.masthead {
  text-align: center;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}
nav.masthead a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 1.1rem;
}
nav.masthead a:hover { color: var(--oxblood); }
nav.masthead a:focus-visible,
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 3rem 0 0.4rem;
}
main > .eyebrow:first-child { margin-top: 0; }
.eyebrow + .rule {
  border: 0;
  border-top: 1px solid var(--navy);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: 1.55rem;
  font-weight: normal;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

p { margin: 0 0 1rem; }
a { color: var(--navy); }
a:hover { color: var(--oxblood); }

.pub {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.pub .pub-title {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.pub .pub-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.pub p:last-child { margin-bottom: 0; }

.contact-card { margin: 1.25rem 0; }
.contact-card img { width: 440px; max-width: 100%; height: auto; display: block; }

/* Key lineage — the corporation's correspondence chain, 2013 to present */
.lineage { margin: 1.75rem 0; }
.keyplate {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 1.1rem 1.3rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}
.keyplate .kp-label {
  font-family: "Century Gothic", "CenturyGothic", "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.keyplate .kp-fpr { color: var(--oxblood); word-break: break-all; }
.certifies {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.55rem 0;
}
.certifies::before, .certifies::after { content: ""; }

pre.armor {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 1.1rem 1.3rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-x: auto;
  color: var(--ink);
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.05rem 0.35rem;
}

footer {
  background: var(--navy);
  color: #dfe4ee;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 1.1rem 1.25rem;
}
footer p { margin: 0; }
footer .neq {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #aeb9d2;
  margin-top: 0.35rem;
}
footer a { color: #dfe4ee; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 480px) {
  nav.masthead a { margin: 0 0.55rem; letter-spacing: 0.16em; }
  main { padding-top: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, nav.masthead a { transition: color 120ms ease; }
}

@media print {
  .letterhead { border-top-color: #000; background: #fff; }
  footer { background: #fff; color: #000; }
}
