@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap");
@import url("assets/google-fonts.css");

:root {
  --blue: #000080;
  --blue-soft: #4e73de;
  --ink: #2c313f;
  --text: #73757d;
  --light: #f3f3f3;
  --border: #e9e9e9;
  --shadow: rgba(0, 0, 0, 0.5);
  --wrap: 56.25rem;
  --page-pad: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--blue);
}

p,
ul,
ol,
figure,
pre,
hr {
  margin: 0 0 1.5rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

em {
  font-style: italic;
}

code,
kbd,
pre,
samp {
  font-family: Inconsolata, monospace;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--light);
}

.site-header-inner,
.content-wrap {
  width: calc(100% - 3rem);
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.site-branding {
  margin: 1.5rem auto 0 0;
  padding-right: 1.5rem;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: min(100%, 180px);
  max-width: 180px;
}

.site-title,
.site-description {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin: 1.5rem 0 0 auto;
}

.site-menu {
  margin: 1.5rem 0 0 auto;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: inline-block;
  padding: 0.2rem 0 0.3rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 700;
}

.primary-menu a[aria-current="page"] {
  border-bottom-color: var(--blue);
}

.primary-menu a:hover,
.primary-menu a:focus {
  border-bottom-color: var(--blue);
}

.site-content {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 30vh;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-shadow: 0 0 0.15em var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero .content-wrap {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero .entry-title {
  color: #fff;
  margin-bottom: 0;
}

.entry-title,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.entry-title {
  font-size: clamp(2.5rem, 4vw, 3.125rem);
  line-height: 1.2;
}

h2,
.section-title {
  font-size: clamp(1.9rem, 3vw, 2rem);
}

h3 {
  font-size: 1.5625rem;
}

h4 {
  font-size: 1.25rem;
}

.content-section {
  width: 100%;
  background: #fff;
}

.content-section .content-wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.entry-content li + li {
  margin-top: 0.75rem;
}

.home .content-section .content-wrap {
  padding-top: 4rem;
}

.content-section .entry-title {
  margin-bottom: 1.75rem;
}

.content-section .entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content a,
.contact-form a,
.footer-note a {
  text-decoration: underline;
}

.entry-content a:hover,
.entry-content a:focus,
.contact-form a:hover,
.contact-form a:focus,
.footer-note a:hover,
.footer-note a:focus {
  text-decoration: none;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.35rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.0625em;
  line-height: 1.3847;
  text-transform: uppercase;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.95);
  color: #fff;
}

.button.button-outline:hover,
.button.button-outline:focus {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}

.button.button-accent {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: #fff;
}

.button.button-accent:hover,
.button.button-accent:focus {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}

.hero-copy {
  max-width: 100%;
}

.hero-copy p {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-copy .button {
  margin-top: 0.2rem;
}

.body-copy p,
.body-copy ul,
.body-copy ol,
.body-copy pre,
.body-copy figure,
.body-copy hr {
  max-width: 100%;
}

.separator {
  border: 0;
  border-top: 1px solid var(--light);
  margin: 2rem 0;
}

.separator.separator-dark {
  border-top-color: var(--ink);
}

figure {
  text-align: center;
}

figure img {
  margin-left: auto;
  margin-right: auto;
}

.figure-small img {
  width: 238px;
}

.figure-medium img {
  width: 350px;
}

.figure-crest img {
  width: 250px;
}

.figure-hero img {
  width: 100%;
}

pre.code-sample {
  overflow: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--light);
  border-radius: 0;
  background: #f3f3f3;
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

pre.code-sample code {
  display: block;
  padding: 0;
  background: transparent;
  font-family: Inconsolata, monospace;
  white-space: pre;
}

.contact-form {
  margin-top: 1rem;
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form label {
  color: var(--ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0;
  background: var(--light);
  color: var(--ink);
  padding: 0.75rem;
  font: inherit;
  line-height: 1.5;
  appearance: none;
}

.contact-form textarea {
  min-height: 19rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  background: transparent;
}

.contact-form .submit-row {
  margin-top: 2rem;
}

.form-notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: #f7f8ff;
  color: var(--ink);
}

.form-notice p:last-child,
.form-notice ul:last-child {
  margin-bottom: 0;
}

.form-notice ul {
  margin-top: 0.75rem;
}

.form-notice-success {
  border-left-color: #1f7a4f;
  background: #f1fbf5;
}

.form-notice-error {
  border-left-color: #b42318;
  background: #fff1f1;
}

.inbox-meta {
  margin-bottom: 1rem;
  color: var(--text);
}

.inbox-empty {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: #f7f8ff;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.inbox-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
}

.inbox-table th,
.inbox-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.inbox-table th {
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inbox-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.inbox-message {
  white-space: pre-wrap;
}

.cta-band {
  width: 100%;
  background: var(--blue);
  color: #fff;
}

.cta-band .content-wrap {
  padding-top: 3.25rem;
  padding-bottom: 3rem;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 2.25rem;
  font-size: clamp(1.9rem, 3vw, 2rem);
}

.cta-band p {
  margin-bottom: 2rem;
}

.site-footer {
  border-top: 1px solid var(--light);
  background: #fff;
}

.site-footer .content-wrap {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.site-info {
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.3847;
}

.portfolio-intro h2,
.portfolio-intro h3,
.portfolio-intro h4 {
  margin-bottom: 1.25rem;
}

.portfolio-intro p:last-child,
.portfolio-intro ul:last-child {
  margin-bottom: 0;
}

.portfolio-layout > * + * {
  margin-top: 0;
}

.portfolio-layout .figure-medium {
  margin-bottom: 1.25rem;
}

.portfolio-layout .figure-small {
  margin-bottom: 1rem;
}

.portfolio-layout .figure-crest {
  margin-top: 1rem;
}

.portfolio-layout .separator + .figure-crest,
.portfolio-layout .figure-crest + .separator {
  margin-top: 0;
}

@media (min-width: 900px) {
  .custom-logo {
    width: auto;
    height: 70px;
    max-width: none;
    margin-bottom: 1rem;
  }
}

@media (max-width: 760px) {
  .site-header-inner,
  .content-wrap {
    width: calc(100% - 2rem);
  }

  .site-branding {
    margin-top: 1rem;
  }

  .custom-logo {
    max-width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .site-menu.is-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--light);
  }

  .hero {
    min-height: 18rem;
  }

  .hero .content-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .content-section .content-wrap,
  .home .content-section .content-wrap,
  .cta-band .content-wrap,
  .site-footer .content-wrap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .site-footer .content-wrap {
    padding-bottom: 2.5rem;
  }

  .contact-form textarea {
    min-height: 14rem;
  }
}
