/* ⬇✨ Setting the style variables ⬇✨ */
:root {
  /*colours*/
  --background-colour: #fff;
  --text-colour: #000;
  --accent-colour: #78c0a8;

  /*fonts*/
  --sans-serif-font: ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif,
    "Segoe UI Emoji", "Segoe UI Symbol";

  --serif-font: Georgia, ui-serif, serif;
  --body-font: var(--sans-serif-font);

  --heading-font: var(--sans-serif-font);

  /*layout*/
  --page-width: 60ch;
  --wide-image-width: 60%;
}

/* ✨ Page body ✨ */

body {
  background-color: var(--background-colour);
  font-family: var(--body-font);
  font-size: 18px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2em 2em 4em 2em;
  overflow-x: hidden;
}

/* ✨ Text styling: headings, paragraphs ✨*/

p {
  line-height: 1.8;
  margin: 1.5em 0;
}

h1 {
  margin: 1em 0;
  font-family: var(--heading-font);
}

h2,
h3,
h4,
h5,
h6 {
  margin: 2em 0 1em 0;
  font-family: var(--heading-font);
}

.byline {
  font-style: italic;
}

/* ✨ Fixing the size of the video, image, audio and PDF iframe ✨ */
video,
audio,
iframe,
img {
  width: 100%;
}

iframe {
  height: 500px;
  border: none;
}

/* ✨ Sizing of Full-width media ✨*/

.wide-media {
  display: block;
  margin: 4em calc(-50vw + 50%);
  text-align: center;
  overflow: hidden;
}

.wide-media img {
  min-width: var(--page-width);
  max-width: var(--wide-image-width);
  height: auto;
}

/* ✨ Blockquote styling ✨ */
blockquote {
  font-size: 1.2em;
  width: 60%;
  margin: 2em auto;
  font-style: italic;
  padding: 1.2em 30px 1.2em 75px;
  border-left: 8px solid var(--accent-colour);
  line-height: 1.6;
  position: relative;
  background: #00000012;
}

blockquote::before {
  font-family: var(--serif-font);
  content: "\201C";
  color: var(--accent-colour);
  font-size: 4em;
  position: absolute;
  left: 10px;
  top: -10px;
}

blockquote::after {
  content: "";
}
