@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

/*
=========================================================
ETHAN_S WEBSITE
KOBO + E-INK FRIENDLY CSS
=========================================================
*/

html {
  background: #f2f1ed;
}

body {
  margin: 0;
  padding: 0;
  background: #f2f1ed;
  color: #111111;
  font-family: 'Lexend', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#page {
  max-width: 1000px;
  margin: 32px auto;
  padding: 24px;
  background: #ffffff;
  border: 2px solid #222222;
  box-shadow: 6px 6px 0 #333333;
}

h1 {
  margin: 0 0 24px;
  padding: 8px 10px;
  color: #111111;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}

h2 {
  margin: 28px 0 16px;
  padding: 8px 10px;
  border-bottom: 2px solid #222222;
  background: #f3f2ee;
  color: #111111;
  font-size: 22px;
}

h3 {
  margin: 22px 0 12px;
  padding: 8px 10px;
  border: 2px solid #222222;
  background: #f3f2ee;
  color: #111111;
  font-size: 18px;
}

a {
  color: #17365d;
  text-decoration: underline;
  font-weight: 600;
}

a:visited {
  color: #4d3b68;
}

a:hover,
a:focus {
  color: #000000;
  background: #f0eee8;
}

.welcome-banner {
  margin: 12px 0 18px;
  padding: 13px 14px;
  border: 2px solid #222222;
  background: #f3f2ee;
}

.buttons {
  margin: 16px 0;
  text-align: center;
}

button {
  display: inline-block;
  margin: 5px;
  padding: 10px 15px;
  border: 2px solid #111111;
  background: #000000;
  color: #ffffff;
  font-family: 'Lexend', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
button:focus {
  background: #ffffff;
  color: #111111;
  box-shadow: 3px 3px 0 #333333;
}

button:active {
  background: #e7e5df;
  color: #111111;
  box-shadow: 1px 1px 0 #333333;
}

.navline {
  margin: 0 0 16px;
  padding: 9px 10px;
  border: 2px solid #222222;
  background: #f8f7f3;
  line-height: 2;
}

ul {
  padding-left: 0;
}

.site-card {
  display: block;
  margin: 12px 0;
  padding: 12px 13px;
  border: 2px solid #222222;
  background: #faf9f6;
  list-style-position: inside;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-card > a {
  font-size: 18px;
}

.site-card small {
  display: inline;
  color: #222222;
  font-size: 14px;
}

.site-card:hover,
.site-card:focus-within {
  border-color: #111111;
  background: #f1f0eb;
  box-shadow: 3px 3px 0 #555555;
}

.random-card {
  max-width: 700px;
  margin: 28px auto;
  padding: 20px;
  border: 2px solid #222222;
  background: #f3f2ee;
  text-align: center;
  box-shadow: 5px 5px 0 #333333;
}

.random-card h2 {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.random-site-name {
  padding: 12px;
  border: 2px solid #222222;
  background: #ffffff;
  font-size: 22px;
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 2px solid #222222;
  margin: 24px 0;
}

li {
  margin-bottom: 7px;
}

strong {
  color: #000000;
}

@media screen and (max-width: 600px) {
  body {
    font-size: 15px;
  }

  #page {
    margin: 12px 8px;
    padding: 12px;
    box-shadow: 4px 4px 0 #333333;
  }

  h1 {
    font-size: 25px;
    padding: 7px;
  }

  h2 {
    font-size: 20px;
  }

  button {
    width: 100%;
    margin: 5px 0;
    padding: 11px 8px;
  }

  .site-card {
    padding: 10px;
  }

  .site-card > a {
    font-size: 17px;
  }
}

@media (monochrome) {
  html,
  body,
  #page {
    background: #ffffff;
    color: #000000;
  }

  #page {
    border-color: #000000;
    box-shadow: 5px 5px 0 #000000;
  }

  .welcome-banner,
  .site-card,
  .random-card,
  .navline,
  h2,
  h3 {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
  }

  h1 {
    color: #000000;
  }

  a,
  a:visited {
    color: #000000;
  }

  button {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
  }

  button:hover,
  button:focus {
    background: #ffffff;
    color: #000000;
    box-shadow: 2px 2px 0 #000000;
  }
}

@media print {
  html,
  body {
    background: #ffffff;
  }

  #page {
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  button {
    display: none;
  }

  .site-card {
    page-break-inside: avoid;
  }
}
