/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* 👇 Start custom code 👇 */

html {
  background-color: #202020;
  color: antiquewhite;
}

body {
  font-family: "Lumanosimo", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
}

header h1 {
  text-align: center;
  font-family: "Seaweed Script", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3rem, 10vw, 8rem);
}

header h2 {
  font-size: clamp(0.8rem, 2vw, 2rem);
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin: 40px auto;
  max-width: 80vw;
}

#title-author-text {
  border: 10px solid antiquewhite;
  border-radius: 10px;
  padding: 15px;
}

#title-author-text h1, #title-author-text h2 {
  margin: 0;
}

#poem-text {
  width: fit-content;
  margin: 0 auto 40px auto;
  column-count: 2;
  column-gap: 50px;
  column-fill: balance; 
  border: 10px solid antiquewhite;
  border-radius: 5px;
  padding: 15px 15px 0px 15px;
}

#poem-text div {
  margin-bottom: 35px;
}

#poem-text p {
  margin-top: 5px;
  font-size: clamp(0.65rem, 3vw, 1.5rem);
}

#poem-text p:nth-of-type(even) {
  padding-left: 45px;
}

#lighthouse-img {
  width: fit-content;
  max-width: min(40vw, 1000px);
}

#lighthouse-img figcaption {
  font-size: clamp(0.7rem, 1.5vw, 1.2rem);
}

#lighthouse-img img {
  height: auto;
  width: 100%;
  border: 10px solid antiquewhite;
  border-radius: 10px;
}

@media only screen and (max-width: 1800px) {
  header {
    flex-direction: column;
    max-width: 100%;
  }

  #poem-text {
    column-count: 1;
  }

  #lighthouse-img {
    max-width: max(80vw, 300px);
  }

  #lighthouse-img figcaption {
    text-align: center;
  }  
}

@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    max-width: 100%;
  }

  #poem-text {
    padding: 0px;
    border: 0px;
  }

  #poem-text p:nth-of-type(even) {
    padding-left: 20px;
  }

  #title-author-text {
    border: 5px solid antiquewhite;
    padding: 5px;
  }

  #lighthouse-img img {
    height: auto;
    width: 100%;
    border: 5px solid antiquewhite;
  }
}