@font-face {
  font-family: "Ubuntu";
  src: url("ubuntu-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ubuntu-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ubuntu-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --blue: #0f4e66;
  --blue-light: #1e7a9d;
  --ink: #463f3f;
  --paper: #fff;
  --panel: #f9f9f9;
  --dark: #333;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--dark) url("bg-master.jpg") left center / contain fixed;
  font: 400 1rem/1.58 "Ubuntu", Helvetica, Arial, sans-serif;
}

a { color: #222; text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-light); }

.site-shell {
  width: min(100%, 1170px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--panel);
  box-shadow: 0 0 25px rgb(0 0 0 / 28%);
}

.top-strip {
  height: 20px;
  background: var(--blue);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 105px;
  padding: 20px 30px;
  background: var(--panel);
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 215px; height: 65px; }

.main-nav {
  display: flex;
  gap: 2.25rem;
  margin: 0 auto;
  padding-right: 215px;
}

.main-nav a {
  position: relative;
  padding: .55rem .1rem;
  color: #333;
  font-size: 1rem;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] { color: var(--blue); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

.contact-band,
.content-band {
  padding: 20px;
  background: var(--panel);
}

.contact-box {
  color: #212529;
  font-style: italic;
}

.contact-box address {
  margin: 0;
  font-style: inherit;
}

.contact-box hr {
  width: 170px;
  margin: .75rem 0;
  border: 0;
  border-top: 1px solid #c9c9c9;
}

.contact-line { display: block; }
.contact-line .icon { display: inline-block; width: 1.25rem; font-style: normal; }

.content-card {
  min-height: 240px;
  padding: 12px 20px 28px;
  background: var(--paper);
}

h1, h2, h3 {
  color: var(--blue);
  font-weight: 400;
  line-height: 1.25;
}

h1 { margin: 0 0 1.25rem; font-size: 1.6rem; }
h2 { margin: 1.8rem 0 .65rem; font-size: 1.4rem; }
h3 { margin: 1.35rem 0 .45rem; font-size: 1.2rem; }

p { margin: 0 0 1rem; }
ul { padding-left: 1.3rem; }

.home-copy { min-height: 210px; }
.home-illustration {
  display: block;
  width: 210px;
  height: auto;
  margin: 1.5rem 0 0;
}

.legal-copy { max-width: 900px; }
.legal-copy strong { color: #333; }
.legal-copy a { text-decoration: underline; text-underline-offset: 2px; }

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding: 11px 30px;
  color: #fff;
  background: var(--blue);
  font-size: .9rem;
}

.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ccc; }

@media (max-width: 780px) {
  body { background-size: cover; }
  .site-header { min-height: 86px; padding: 10px 20px; }
  .brand img { width: 178px; height: auto; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem 20px 1rem;
    border-top: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .75rem .25rem; }
  .main-nav a::after { display: none; }
  .contact-band, .content-band { padding: 18px 20px; }
  .content-card { padding: 14px 18px 24px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.25rem; }
  .home-illustration {
    float: none;
    display: block;
    width: min(210px, 100%);
    margin: 1.5rem auto 0;
  }
  .site-footer { justify-content: flex-start; padding: 11px 20px; }
}

@media print {
  body { background: #fff; }
  .site-shell { width: 100%; box-shadow: none; }
  .top-strip, .menu-toggle, .main-nav { display: none; }
}
