@font-face {
  font-family: "Goudy Bookletter 1911";
  src: url("/fonts/goudy-bookletter-1911.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: italic;
  src: url("/fonts/barlow-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 300;
  src: url("/fonts/barlow-light.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 300;
  font-style: italic;
  src: url("/fonts/barlow-light-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 500;
  src: url("/fonts/barlow-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-style: italic;
  src: url("/fonts/barlow-medium-italic.woff2") format("woff2");
}

a {
  color: #E4C59E;
}

a:hover {
  background-color: hsla(0, 0%, 100%, 0.2);
}

body {
  background-color: hsl(0, 0%, 20%);
  color: white;
	font-family: Barlow, sans-serif;
  font-size: 1.2rem;
  margin: 0 auto;
  max-width: 40em;
  padding: 40px;
}

a.button {
  align-items: center;
  background: white;
  border-radius: 12px;
  border: 2px solid black;
  color: black;
  display: flex;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.025em;
  padding: 4px;
  text-align: center;
  text-decoration: none;
}

a.button:hover {
  background-color: hsl(0, 0%, 90%);
  transform: scale(1.025);
}

a.button.emphasized {
  position: relative;
}

a.button.emphasized::before {
  content: "";
  pointer-events: none;
  border: 2px solid black;
  top: 2px;
  left: 2px;
  right: 2px;
  position: absolute;
  bottom: 2px;
  border-radius: 8px;
}

a.fill-container {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

h1, h2, h3 {
  font-family: "Goudy Bookletter 1911", serif;
  font-weight: normal;
}

img.pixel {
  image-rendering: pixelated;
}

p, li {
  line-height: 140%;
}

.boxed {
  border: 2px dotted hsl(0, 0%, 50%);
  padding: 20px;
}

.margin-trim :first-child {
  margin-top: 0;
}

.margin-trim :last-child {
  margin-bottom: 0;
}

.subheading-group {
  margin-bottom: 1em;
}

.subheading-group h3 {
  font: 100% Barlow, sans-serif;
  font-weight: 600;
	margin-bottom: 0;
}

.subheading-group p {
  margin-top: 0;
}

.plaintext-email b {
  /* https://spencermortensen.com/articles/email-obfuscation/ */
  display: none;
}

/* https://techstacker.com/how-to-responsive-youtube-videos/ */

.youtube-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.youtube-embed::after {
  display: block;
  content: "";
  padding-top: 56.25%;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 600px) {
  body {
    padding: 20px;
  }
}