/*========== Variables ==========*/

:root {
  --cover-color: #FC9C73;
  --link-color: black;
  --highlight-color: #FFFF66;
}

/*========== Dark mode ==========*/

:root {
  color-scheme: light dark; /* both supported */
}

@media (prefers-color-scheme: dark) {
  :root {
    --cover-color: #FC9C73;
    --link-color: white;
    --highlight-color: hsl(0, 0%, 40%);
  }
}

/*========== Basics ==========*/

body {
  font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  margin: 0 0 0 0;
}
#page-content {
  margin: 2em auto 2em auto;
  max-width: 40em;
  font-size: 1.1em;
  line-height: 1.5;
}

h2 {
  border-bottom: thin solid lightgray;
}
pre {
  font-size: 1.2em;
  line-height: 1.4;
  margin-left: 1em;
  overflow-x: auto;
}
@media print {
  pre {
    overflow-x: visible;
    overflow-wrap: break-word;
  }
}
  
/*----- anchors -----*/

/* Highlight what the current hash points to */
*:target {
  background-color: var(--highlight-color);
}

a[href] {
  color: var(--link-color);
  text-underline-offset: 0.2em;
}

a[href]:visited {
  color: var(--link-color);
}

/*----- .heading-id-link -----*/

a.heading-id-link, a.heading-id-link:visited {
  text-decoration: none;
  color: inherit;
}

a.heading-id-link:hover,
a.heading-id-link:focus {
  text-decoration: underline;
}

a.heading-id-link:hover::after,
a.heading-id-link:focus::after {
  color: gray;
  content: "\0020#";
}

/*----- Packages & cover -----*/

a.buy-now {
  display: block;
  text-align: center;
  background-color: var(--cover-color);
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  /* box-shadow: 1px 1px 1px; */
}

span.checkmark {
  font-size: 140%;
  font-weight: bold;
  color: var(--cover-color);
}

.cover img {
  box-shadow: 5px 5px 10px;
}

a.cover {
  color: black;
}

/*----- Tables -----*/

table.framed {
  border-collapse: collapse;
}

table.framed td {
  vertical-align: text-top;
}

table.framed td,
table.framed th {
  border: thin solid gray;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
