/* Base Sapper template styles */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: "Graphik", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Segoe UI, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em 0;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2em;
}

a {
  color: inherit;
}

code {
  font-family: "Goldwyn", monospace;
  font-size: calc(1em - 2px);
  color: #555;
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 2px;
}

img {
  object-fit: cover;
  vertical-align: middle;
}

p {
  margin: 0;
}

/* Eric Meyer's CSS reset https://meyerweb.com/eric/tools/css/reset/ */
iframe {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 400px) {
  body {
    font-size: 16px;
  }
}

/* Fonts */

@font-face {
  font-display: swap;
  font-family: "DrukWide";
  font-style: normal;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/druk/wide/DrukWide-Medium.woff2"),
    url("https://www.theatlantic.com/packages/fonts/druk/wide/DrukWide-Medium.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Graphik";
  font-style: normal;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Regular-Web.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Regular-Web.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Graphik";
  font-style: normal;
  font-weight: 500;
  src: url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Medium.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Medium.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Graphik";
  font-style: normal;
  font-weight: 600;
  src: url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Semibold-Web.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/graphik/Graphik-Semibold-Web.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Goldwyn";
  font-style: normal;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/goldwyn/goldwyn-medium.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/goldwyn/goldwyn-medium.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "AGaramondPro";
  font-stretch: normal;
  font-style: normal;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Regular.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Regular.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "AGaramondPro";
  font-style: normal;
  font-weight: 600;
  src: url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Semibold.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Semibold.woff")
      format("woff");
}
@font-face {
  font-display: swap;
  font-family: "AGaramondPro";
  font-stretch: normal;
  font-style: italic;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Italic.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/garamond/AGaramondPro-Italic.woff")
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Atlantic Serif";
  font-stretch: normal;
  font-style: normal;
  font-weight: 400;
  src: url("https://www.theatlantic.com/packages/fonts/atlantic/Atlantic-Serif.woff2")
      format("woff2"),
    url("https://www.theatlantic.com/packages/fonts/atlantic/Atlantic-Serif.woff")
      format("woff");
}
