* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #abc5dc;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
}


/* PAGE LAYOUT */

.journal-page {
  width: min(1050px, calc(100% - 50px));
  margin: 0 auto;
  padding: 55px 0 70px;

  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 45px;
}


/* SHARED PINK HIGHLIGHT */

.highlight {
  display: inline;
  padding: 1px 5px 2px;
  background: #f5dce4;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* SIDEBAR */

.journal-sidebar {
  width: 190px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 12px;

  border: 1px dashed #f5dce4;
  background: transparent;
  color: #111111;

  font-size: 0.95rem;
  text-decoration: none;
}

.back-link:visited {
  color: #111111;
}

.back-link:hover,
.back-link:focus-visible {
  background: #f5dce4;
}

.sidebar-box {
  width: 190px;
  padding: 16px;

  border: 1px dashed #f5dce4;
  background: transparent;
}

.sidebar-box h1 {
  margin: 0 0 16px;

  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.08em;
}

.journal-subtitle {
  margin: 0;

  font-size: 0.88rem;
  line-height: 1.5;
  font-style: italic;
}


/* JOURNAL COLUMN */

.journal-content {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 22px;
}


/* JOURNAL ENTRIES */

.journal-entry {
  width: 100%;
  padding: 18px 20px 20px;

  border: 1px dashed #f5dce4;
  background: transparent;
}

.journal-entry h2 {
  margin: 0 0 16px;
  text-align: left;

  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.5;
}

.entry-text {
  max-width: 720px;
}

.entry-text p {
  margin: 0 0 14px;

  font-size: 0.95rem;
  line-height: 1.7;
}

.entry-text p:last-child {
  margin-bottom: 0;
}


/* TABLETS */

@media (max-width: 760px) {
  .journal-page {
    width: min(680px, calc(100% - 36px));
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
  }

  .journal-sidebar,
  .sidebar-box {
    width: 160px;
  }
}


/* PHONES */

@media (max-width: 580px) {
  .journal-page {
    width: min(520px, calc(100% - 30px));
    padding: 30px 0 50px;

    grid-template-columns: 1fr;
    gap: 30px;
  }

  .journal-sidebar,
  .sidebar-box {
    width: 100%;
  }

  .back-link {
    margin-bottom: 18px;
  }

  .journal-content {
    gap: 18px;
  }

  .journal-entry {
    padding: 16px;
  }
}