@font-face {
  font-family: "Oswald";
  src: url("Oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --navy: #061D45;
  --azure: #006CBC;
  --ink: #282828;
  --line: #d9dee6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

/* Shared family header bar (Variant A on this site) */
.family-bar {
  background: var(--navy);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
}
.bar-lockup { height: 44px; width: auto; }
.bar-projects { display: flex; gap: 12px; flex-wrap: wrap; }
.bar-button {
  background: var(--azure);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bar-button-static { cursor: default; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 8px;
}

h1, h2, h3 { color: var(--navy); font-weight: 600; }
h1 { font-size: 34px; text-align: center; margin: 8px 0 18px; }
h2 { font-size: 26px; margin: 40px 0 14px; }
h3 { font-size: 21px; margin: 14px 0 8px; }

.intro p {
  font-size: 19px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
/* The link line sits at the bottom of the card, so the two cards stay
   the same height and their links align even if the texts differ by a
   line at some width. */
.project-link { margin-top: auto; padding-top: 10px; }
.project-logo {
  display: block;
  max-width: 220px;
  max-height: 150px;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.project-card h3 { text-align: center; }
.project-card p { font-size: 16.5px; }
.project-link a { color: var(--azure); }

.contact h2, .contact > p { text-align: center; }
.contact form {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}
.contact label { font-size: 16px; color: var(--navy); }
.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}
.contact button {
  font: inherit;
  background: var(--azure);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 10px 26px;
  justify-self: start;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.4em; }

.policy h2 { font-size: 20px; margin: 26px 0 8px; }
.policy p { font-size: 17px; }
.policy .updated { text-align: center; color: #555; }
.policy .back { margin-top: 32px; }
.policy a, footer a { color: var(--azure); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 28px 24px 36px;
  text-align: center;
}
.footer-lockup { max-width: 170px; height: auto; }
footer p { margin: 8px 0 0; }

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .family-bar { padding: 8px 14px; flex-wrap: wrap; justify-content: center; }
  .bar-lockup { height: 36px; }
  .bar-projects { justify-content: center; }
  .bar-button { font-size: 14px; padding: 7px 12px; }
  h1 { font-size: 28px; }
  .intro p { font-size: 17.5px; }
}
