/* font */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local("Lato Regular"), local("Lato-Regular"), font-url("fonts/Lato-Regular.ttf") format("truetype");
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local("Lato Italic"), local("Lato-Italic"), font-url("fonts/Lato-Italic.ttf") format("truetype");
}

html {
  font-size: 12px;
}

body {
  background: #ffffee ;
  margin-top: 1rem;
  margin-bottom: 0;
}

@media (min-width: 760px) {
  body {
    background: #ffffee url('/assets/images/cubes-right.png') top right repeat-y;
  }
}

header, h1, h2, h3 {
  color: #422335;
  font-style: normal;
}
h1 a, h2 a, h1 a:link, h2 a:link, h1 a:visited, h2 a:visited {
  background: none;
  color: #422335;
  text-decoration: none;
  text-shadow: none;
}
h2 > .under-headline {
  margin-top: 3.5rem;
}

/* make link clickable even if floated so next article would cover it */
#masthead {
  z-index: 1;
}
@media (max-width: 760px) {
  #masthead .marginnote {
    margin: 0 0 1rem 0;
    text-align: center;
  }
}

#title-toggle { position: relative; }
#title-toggle-cb { display: none; outline: none; }
#title-toggle-cb:checked + #title-toggle:after {
  content: '\25f4';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffee;
}

h1.entry-title {
  margin-top: 1rem;
}

header.p {
  margin: 0;
}

header a:link {
  background: none;
  text-shadow: none;
}

header nav ol {
  margin: 0;
  padding: 0.5rem 0 0 1px;
}

header nav ol li {
  display: inline;
  margin-right: 1rem;
}

header .promo {
  margin-top: 0.2rem;
}


body > footer {
  margin-top: 3rem;
}


.center {
  margin: 0 auto;
}


.clearfix {
  clear: both;
}

table.tags {
  border-spacing: 0 1rem;
}
table.tags td {
  font-size: 14px;
  vertical-align: top;
}
table.tags li {
  list-style-type: none;
}

dl { padding: 0; }
dt { margin-top: 1em; }


input, textarea {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}

/* wp-geshi defaults are kinda hideous */
.wp-geshi-highlight {
  background-color: transparent;
  border: 0;
  margin: 0 0 0 2rem;
  padding: 0;
  max-width: 90%;
}

.comment-content p {
  width: 55%;
}

/* /reviews css */

/* checkbox hack for toggling to only starred reviews */

/* hide from browsers that don't support :has, only FF as of 2023-05 */
.starcontrol { display: none; }
.starcontrol:has(input) { display: inline; }

/* empty star, fill when filtering to starred */
.stared:has( ~ #starred:not(:checked))::after {
  text-stroke: 1px #d3b56f;
  -webkit-text-stroke: 1px #d3b56f;
  color: transparent;
}

/* for series */
dt + dt {
  margin-top: 0;
}

/* yes officer that's him right there */
article:has(#starred:not(:checked)) dt:not(:has(.starred)),
article:has(#starred:not(:checked)) dt:not(:has(.starred)) + dd {
  /*
  Guess at review max-height. Low will cut off a long review,
  but the animation runs '0 to specified max-height' not '0 to apparent highest'
  so a high makes the animation appear shorter as part of the animation runtime
  is spent on the values between 'apparent highest' and 'specified max-height'
  */
  max-height: 10em;
  transition: all 0.5s ease-in-out;
}
article:has(#starred:checked) dt:not(:has(.starred)),
article:has(#starred:checked) dt:not(:has(.starred)) + dd {
  margin-top: 0;
  margin-bottom: 0;
  max-height: 0px;
  opacity: 0%;
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.5s ease-in-out;
}

/*
Nice css hack: I want only want a single span holding a * in my book review
markup (so it's easily copied) but I want to display an empty absolute span
wrapping a relative div with a unicode star (so it's hanging into the left
margin).
*/
.starred {
  position: absolute;
  color: #ffeeee; /* hide the * by making it the same color as the bg */
  z-index: -1; /* and behind the text */
}
.starred::after {
  color: #d3b56f;
  content: "\2605"; /* display a nice unicode star */
  position: relative;
  left: -2.5em;
}

#footer {
  /* background-color: #d3b56f;*/
  background-color: #a79364;
  clear: both;
  margin: 0 0 0 -15%;
  padding: 1rem 45% 1rem 15%;
  text-align: left;
  width: 55%;
}
#footer a:link, a.next, a.prev {
  background: none;
  text-decoration: none;
  text-shadow: none;
}
