/* =========================================
   THE LOST LANDS
   Old-School Fantasy Archive Style
   ========================================= */


/* =========================================
   PAGE BACKGROUND
   ========================================= */

html {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 40px 15px;

  background-color: #30291f;
  color: #241d15;

  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}


/* =========================================
   BOOK COVER / PAGE
   ========================================= */

header,
main,
footer,
.cover-art {
  width: calc(100% - 30px);
  max-width: 750px;

  margin-left: auto;
  margin-right: auto;

  box-sizing: border-box;

  background-color: #d6c292;
}


/* =========================================
   TITLE AREA
   ========================================= */

header {
  padding: 45px 35px 30px;

  border-top: 8px double #2b2118;
  border-left: 8px double #2b2118;
  border-right: 8px double #2b2118;

  text-align: center;
}


/* =========================================
   MAIN TITLE
   ========================================= */

h1 {
  margin: 0;

  color: #7c211b;

  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0.08em;

  text-transform: uppercase;

  text-shadow:
    2px 2px 0 #d6c292,
    4px 4px 0 #2b2118;
}


/* =========================================
   SUBTITLE
   ========================================= */

header p {
  margin: 18px 0 0;

  color: #2b2118;

  font-size: 1.1rem;
  font-style: italic;
}


/* =========================================
   HEADER DECORATION
   ========================================= */

header::after {
  content: "◆ ◆ ◆";

  display: block;

  margin-top: 25px;

  color: #2b2118;

  font-size: 1rem;
  letter-spacing: 0.5em;
}


/* =========================================
   COVER ART
   ========================================= */

.cover-art {
  margin-top: 0;
  margin-bottom: 0;
  padding: 10px 50px 15px;

  border-left: 8px double #2b2118;
  border-right: 8px double #2b2118;

  text-align: center;
}

.cover-art img {
  display: block;

  width: auto;
  max-width: 100%;
  max-height: 620px;

  margin: 0 auto;

  border: 3px solid #2b2118;

  box-sizing: border-box;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

main {
  padding: 25px 50px 50px;

  border-left: 8px double #2b2118;
  border-right: 8px double #2b2118;
}


/* =========================================
   GENERAL SECTION HEADINGS
   ========================================= */

h2 {
  margin-top: 35px;
  margin-bottom: 15px;
  padding: 8px 5px;

  color: #7c211b;

  border-top: 3px solid #2b2118;
  border-bottom: 3px solid #2b2118;

  font-size: 1.5rem;
  letter-spacing: 0.08em;

  text-align: center;
  text-transform: uppercase;
}


/* =========================================
   PARAGRAPHS
   ========================================= */

p {
  margin: 14px 0;
}


/* =========================================
   LINKS
   ========================================= */

a {
  color: #711d18;

  font-weight: bold;
  text-decoration: underline;
}

a:hover {
  color: #a53226;
}


/* =========================================
   GRAND ARCHIVE INTRODUCTION
   ========================================= */

.archive-intro {
  padding: 10px 20px 30px;

  text-align: center;
}

.archive-intro h2 {
  margin-top: 5px;
  margin-bottom: 15px;

  padding: 0;

  border-top: none;
  border-bottom: none;

  font-size: 2rem;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 0;

  color: #5b4631;

  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.25em;

  text-transform: uppercase;
}

.archive-description {
  max-width: 580px;

  margin: 15px auto;

  font-size: 1.05rem;
  font-style: italic;
}

.archive-divider {
  display: flex;
  justify-content: center;
  gap: 18px;

  margin-top: 25px;

  color: #7c211b;

  font-size: 0.75rem;
}


/* =========================================
   AVAILABLE TALES
   ========================================= */

.tales-section {
  margin-top: 10px;
}

.tale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;

  margin-top: 25px;
}


/* =========================================
   TALE CARDS
   ========================================= */

.tale-card {
  position: relative;

  min-width: 0;
  padding: 8px;

  background-color: rgba(108, 78, 40, 0.12);

  border: 1px solid #5d4935;

  box-shadow:
    0 0 0 4px #d6c292,
    0 0 0 6px #2b2118,
    5px 7px 0 rgba(43, 33, 24, 0.25);

  box-sizing: border-box;
}

.tale-card::before,
.tale-card::after {
  content: "◆";

  position: absolute;

  color: #7c211b;

  font-size: 0.75rem;
}

.tale-card::before {
  top: 5px;
  left: 8px;
}

.tale-card::after {
  right: 8px;
  bottom: 5px;
}

.tale-symbol {
  padding: 18px 10px 10px;

  color: #7c211b;

  font-size: 2.5rem;
  line-height: 1;
  text-align: center;

  text-shadow: 1px 2px 0 rgba(43, 33, 24, 0.25);
}

.tale-content {
  padding: 5px 20px 20px;

  text-align: center;
}

.tale-content h3 {
  margin: 4px 0 12px;

  color: #711d18;

  font-size: 1.55rem;
  letter-spacing: 0.05em;
  line-height: 1.2;

  text-transform: uppercase;
}

.tale-content p {
  font-size: 0.95rem;
}

.tale-type {
  margin-bottom: 0;

  color: #5b4631;

  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* =========================================
   GAME BUTTONS
   ========================================= */

.tale-button {
  display: inline-block;

  margin: 12px 0 5px;
  padding: 10px 18px;

  background-color: #711d18;
  color: #ead9ad;

  border: 2px solid #2b2118;

  box-shadow:
    inset 0 0 0 2px #9a5040,
    3px 3px 0 #2b2118;

  font-size: 0.9rem;
  letter-spacing: 0.08em;

  text-decoration: none;
  text-transform: uppercase;
}

.tale-button:hover {
  position: relative;

  top: 2px;
  left: 2px;

  background-color: #8b2921;
  color: #fff1c8;

  box-shadow:
    inset 0 0 0 2px #b86550,
    1px 1px 0 #2b2118;
}

.tale-button:focus {
  outline: 3px solid #2b2118;
  outline-offset: 3px;
}

.tale-date {
  margin-top: 12px;

  color: #5b4631;

  font-size: 0.72rem;
  font-style: italic;
}


/* =========================================
   SEALED SHELVES
   ========================================= */

.sealed-shelves {
  margin-top: 50px;

  text-align: center;
}

.sealed-shelves > p {
  max-width: 540px;

  margin: 0 auto 25px;

  font-style: italic;
}

.future-tales {
  display: flex;
  justify-content: center;
  gap: 20px;

  margin-top: 25px;
}

.sealed-tale {
  width: 210px;
  padding: 16px;

  background-color: rgba(65, 52, 38, 0.10);
  color: #594936;

  border: 2px dashed #76624c;

  box-sizing: border-box;
}

.sealed-tale strong,
.sealed-tale small {
  display: block;
}

.sealed-tale strong {
  margin-top: 7px;
}

.sealed-tale small {
  margin-top: 4px;

  font-style: italic;
}

.sealed-icon {
  display: block;

  color: #7c211b;

  font-size: 1.4rem;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 20px 35px 30px;

  border-left: 8px double #2b2118;
  border-right: 8px double #2b2118;
  border-bottom: 8px double #2b2118;

  color: #3f3426;

  font-size: 0.85rem;
  text-align: center;
}


/* =========================================
   PRINTED PAPER TEXTURE
   ========================================= */

header,
main,
footer,
.cover-art {
  background-image:
    radial-gradient(
      rgba(70, 50, 25, 0.10) 1px,
      transparent 1px
    );

  background-size: 5px 5px;
}


/* =========================================
   TABLET AND MOBILE
   ========================================= */

@media screen and (max-width: 700px) {

  body {
    padding: 15px 5px;
  }

  header,
  main,
  footer,
  .cover-art {
    width: calc(100% - 10px);
  }

  header {
    padding: 35px 20px 25px;
  }

  h1 {
    font-size: 2.2rem;
    letter-spacing: 0.05em;
  }

  .cover-art {
    padding: 8px 20px 12px;
  }

  main {
    padding: 20px 25px 35px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .archive-intro {
    padding-left: 0;
    padding-right: 0;
  }

  .archive-intro h2 {
    font-size: 1.6rem;
  }

  .tale-grid {
    grid-template-columns: 1fr;
  }

  .future-tales {
    flex-direction: column;
    align-items: center;
  }

  .sealed-tale {
    width: 100%;
    max-width: 280px;
  }

}


/* =========================================
   SMALL PHONES
   ========================================= */

@media screen and (max-width: 400px) {

  body {
    padding-left: 0;
    padding-right: 0;
  }

  header,
  main,
  footer,
  .cover-art {
    width: calc(100% - 10px);
  }

  header {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tale-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tale-content h3 {
    font-size: 1.3rem;
  }

  .tale-button {
    width: 100%;

    padding-left: 8px;
    padding-right: 8px;

    box-sizing: border-box;
  }

}