@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2E3192;
  --red: #ED1C24;
  --magenta: #9F1F63;
  --grey: #737373;
  --ground: #FFFFFF;
}

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

html {
  font-size: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #333;
  background: var(--ground);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header / Nav ---- */

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--navy);
}

.header-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

/* ---- Main ---- */

main {
  flex: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

/* ---- Hero (Home) ---- */

.hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.bar-field {
  position: absolute;
  top: 0;
  right: -1rem;
  width: 50%;
  max-width: 20rem;
  height: 100%;
  opacity: 0.12;
  z-index: 0;
  overflow: hidden;
}

/* ---- Section headings ---- */

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Body copy ---- */

p {
  margin-bottom: 1rem;
  max-width: 40rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Core Values ---- */

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  margin-bottom: 1rem;
  padding-left: 0;
}

.values-list strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---- Projects ---- */

.project-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.project-entry:last-child {
  border-bottom: none;
}

/* ---- News ---- */

.news-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey);
  display: block;
  margin-bottom: 0.25rem;
}

/* ---- Images ---- */

.page-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.evrisia-wordmark {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 1.5rem 0;
}

/* ---- Links ---- */

a {
  color: var(--navy);
}

a:hover {
  color: var(--red);
}

/* ---- Footer ---- */

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--navy);
  text-align: center;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--grey);
  margin: 0 auto 0.25rem;
  max-width: 40rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--grey);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--navy);
}

/* ---- 404 ---- */

.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found h1 {
  color: var(--navy);
}

/* ---- Desktop ---- */

@media (min-width: 48rem) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-tagline {
    font-size: 2.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  main {
    padding: 3.5rem 2rem;
  }

  .evrisia-wordmark {
    max-width: 360px;
  }
}
