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

@font-face {
  font-family: "compacta";
  src: url("../fonts/compactabt.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
}

a {
  color:#4CB944;
}

a:hover {
  color: #FF2E00;
}

a:active {
  color: #EB9486;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Lato, serif;
  font-size: 1rem;
  color: #000000;
  background: #0047AB;
  line-height: 1.6;
}

/* general layout */
.page {
  display: flex;
  gap: 48px;
  margin: 0px;
  flex: 1;
  padding: 24px;
}

/* sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-flow: column;
}

.site-title {
  font-size: 4rem;
  font-family: "compacta";
  font-weight: normal;
  margin-bottom: 20px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  height: calc(100vh - 96px);
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: space-between;
}

.sidebar-nav a {
  text-decoration: none;
  color: #000000;
}

/* main */
.content {
  flex: 1;
  max-width: none;
}

/* home postcards */
.home-postcard {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  align-items: stretch;
}

.postcard-image {
  flex: 0 0 420px;
  height: 240px;
  overflow: hidden;
}

.postcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.postcard-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.postcard-title {
  font-family: "compacta";
  font-size: 3.2rem;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 8px;
}

.postcard-title a {
  text-decoration: none;
  color: #000000;
}

.postcard-meta {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #000000;
}

.postcard-subhead {
  font-size: 1.1rem;
  line-height: 1.5;
}

.post-header {
  margin-bottom: 32px;
}

.post-title {
  font-family: "compacta";
  font-weight: normal;
  font-size: 3.2rem;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.9rem;
  color: #000000;
}

/* centered text body */
.post-body {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px;
  color: #ffffff;
  background-color: #000000;
}

.post-body p {
  margin-bottom: 16px;
}


/* footer */
.footer {
  position: sticky;
  bottom: 0px;
  padding: 8px 0;
  margin-left: 24px;
  font-size: 0.85rem;
  color: #000000;
  background-color: #0047AB;
  z-index: 10;
}
