/* Hayo Bethlehem Version XX (c) 2025. */
* {
	margin: 0; 
	padding: 0;
}
@font-face {
	font-family: 'Lora';
	src: url('/assets/design/font/lora.woff2') format('woff2');
	unicode-range: U+0020-00FE;
	font-display: swap;
}
body {	
	font-size: 15pt;
	line-height: 1.8em;
	font-family: 'Lora', sans-serif;
	text-rendering: optimizeLegibility;
	color: #111; 
	scroll-behavior: smooth;
}

a {
	color: #bda46a;
	transition: all .2s ease-in-out;
}


header {
	background: #08293a;
	text-align: center;
}
header section {
	max-width: 70rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding: 0.5rem 0;
}
header img {
	display: block;
}

header section > a {
	width: 30%;
	display: block;
}
nav {
	width: 70%;
}
nav > ul {	
	display: flex; 
	justify-content: flex-end; 
	list-style: none;
  margin : 0.5em 0;
}


ul ul {display:none;}
ul li.active ul {
	display: flex;
	background-color: #051923;
	box-shadow: inset 0px 3px 3px rgba(0,0,0,0.7);
	text-align: center;
	justify-content: center;
	list-style: none;
	position: absolute;
	width: 100%;
  margin-top: 0.4em;
	left: 0;
	z-index: 9999;
}



nav a {
	text-decoration: none;
	text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
	font-size: 115%;
	padding: 0.5em 0.7em;
	display: block;
}
nav a:hover {text-decoration: underline;}

.active > a {
	color: white;
  background-color: rgba(0,0,0,0.4);
  border-radius: 1em;
}
nav ul ul a {
	font-size: 100%;
}
ul ul .active > a { 
	border-radius: 0;
	text-decoration: underline;
}
article {
	padding: 5em 2em 2em 2em;
	width: 60rem;
	margin: 0 auto;
}
article ul {
	padding-bottom: 2em;
	padding-left: 1em;
}
article li {
	padding-bottom: 0.5em;
}


article img {
	width: 100%;
	border-radius: .5em;
	height: auto;
	display: block;
}
.single {
  margin: 0 0 1em 1em;
}

figure, #lightbox-content {
	display: block;
	position: relative;
	margin-bottom: 3rem;
	border: 0.1em solid white;
}
.byline + figure {
	margin-bottom: 0;
}
.half {
	width: calc(50% - 0.2em);
	float:right;
	border: 0.1em solid white;
}
.third {
	width: calc(33% - 0.2em);
	float:right;
}
figure:hover figcaption {
	opacity: 0;
}

figcaption {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 66%;
  opacity: 1;
  line-height: 1.4;
  border-radius: .6em;
  padding: .5em 1em;
  position: absolute;
  width: calc(100% - 2.8em);
  bottom: 0;
  margin: 0.4em;
 	transition: all .2s ease-in-out;

}
figcaption span {
  clear: both;
  display: block;
  font-style: italic;
  font-size: 80%;
  opacity: .8;
}

p {
	padding-bottom: 3rem;
}

h1,h2,h3,h4 {
  padding-bottom: 1em;
}

h1  { font-size: 245%; line-height: 1.1em; }
h2  { font-size: 195%; line-height: 1.2em; }
h3  { font-size: 155%; line-height: 1.3em; }
h4  { font-size: 125%; line-height: 1.4em; }


.byline	{
	font-size: 85%;
	color: rgba(0,0,0,0.5);
}



article p.byline + p,
article p.byline + img + p,
article p.byline + figure + p {
	font-size: 125%;
	line-height: 1.6em;
}
article p.byline + p::first-letter,
article p.byline + img + p::first-letter,
article p.byline + figure + p::first-letter {
	color: #bda46a;
	padding: 0.15em 0.2em 0em 0;
	float: left;
	font-size: 320%;
	text-shadow: 1px 1px 0px black;
	display: block;
}

#articles ul {
	padding-left: 0;
}
#articles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#articles .date {
  flex: 0 0 0; /* Fixed width */
  text-align: right;
}

#articles li a {
  flex: 1;
  text-align: left;
  margin: 0 1em; /* Optional spacing between elements */
}

#articles li em {
  flex: 2em 0 0; /* Fixed width */
  text-align: left;
  text-indent: -9999em;
  background-repeat: no-repeat;
}
#articles li em.art-reviews { background-image: url("/assets/design/img/review.svg");}
#articles li em.art-journal { background-image: url("/assets/design/img/journal.svg");}
#articles li em.art-internet { background-image: url("/assets/design/img/internet.svg");}

pre {
    max-width: calc(60rem - 20px);
    margin: 0 auto;
    color: #222;
    margin-bottom: 40px;
    font-size: 60%;
    background: #bbb;
    border-radius: 0.3em;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4);
    padding: 10px 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}



section[itemprop*="review"] { 

  background: linear-gradient(45deg,white,#ccc);
  padding: 1em;
  border-radius: 1em;
  position: relative;
  box-shadow: 0.1em 0.1em 0.1em rgba(0,0,0,0.3);
}
section[itemprop*="review"] h2 {
  font-size: 150%;
}
section[itemprop*="review"] p {
  padding-bottom: 0;
}
.rating { 
  position: absolute;
  top: -1.5em;
  right: 4em;
  background: white;
  border-radius: 2em;
  padding: 0 .5em;

}

    .star {
      width: 3em;
      height: 3em;
      margin-left: 0.3em;
    }
    .star-outline {
      fill: #ddd;
      stroke: #ccc;
      stroke-width: 0.5;
      opacity: 0.4;
    }
    .star-filled {
      fill: gold;
      stroke: #cc9900;
      stroke-width: 0.5;
      filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4));
    }

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#lightbox img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 0 20px #000;
  border-radius: .3em;
}

#lightbox-close {
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 2em;
  color: white;
  cursor: pointer;
}


.booklist {
	display: flex;
	flex-wrap: wrap;
	align-content: stretch;
}


#home {
	display: flex;
}
#home section {width: 66%;}
#home .booklist {width: 33%;  align-content: baseline;}

.booklist.all a {
  margin: .1em;
  box-shadow: none;
}
.book-group {
  display: flex;
}
.booklist a {
  box-shadow: 0 0 2em -1em black;
  position: relative;
  
}

.booklist img {
  border-radius: 0;
  height: 15em;
}
#home .booklist img {
  height: 18em;
}
.booklist img + div {
  z-index: 1;
  width: 100%;
  height: 100%;
  background-size: cover;
  border-radius: 3px;
  box-shadow: inset 4px 1px 3px #ffffff60, inset 0 -1px 2px #00000080;
  position: absolute;
  top: 0;
  bottom: 0;
}

.booklist img + div + div { 
  width: 20px;
  height: 100%;
  margin-left: 10px;
  border-left: 2px solid #00000010;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transition: all .5s ease;
  position: absolute;
  top: 0;
}
.finished {display: none;}
.book-group a:hover .finished {
position: absolute;
  display: block;
  bottom: 0;
  border: 0.1em solid #08293a;
  color: #08293a;
  width: 100%;
  transition: all .2s ease-in-out;
  z-index: 1000;
  border-radius: 0.5em;
  margin: 0.5em;
  font-size: 70%;
  line-height: 1.2;
  box-shadow: 0.1em 0.1em 0.5em #08293a;
  padding: .5em;
  background: white;
}
#eyecatcher {
  position: relative;
  padding: 5em 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(8,41,58,1) 55%, rgba(5,25,35,1) 100%);
  overflow: hidden;
}
#eyecatcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/design/img/square.svg');
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto 100%;
  opacity: 0.2;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgb(0, 0, 0) 50%, transparent 100%);
}


#eyecatcher figcaption {
	display: none;
}
#eyecatcher figure {
	border: none;
  width: 100%;
  margin-bottom: 0;
}
#eyecatcher img {
	border-radius: 10em;
	float: none;
	width: 12em;
	height: auto;
  box-shadow: 0 0 2em -.5em black;
}


#eyecatcher div + div  {
	font-size: 90%;
  --s: 1.5em; /* triangle size */
  --p: 50%; /* triangle position (0%:top 100%:bottom) */
  --r: 1em; /* the radius */

  padding: 1.5em;
  border: var(--s) solid #0000;
  border-radius: calc(var(--r) + var(--s));
  background: border-box linear-gradient(-45deg,white,#ccc); /* the coloration */
  --_m:/var(--s) var(--s) no-repeat;
  --_p: clamp(var(--r) + 3*var(--s)/2,var(--p),100% - var(--r) - 3*var(--s)/2);
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    radial-gradient(100% 100% at 0 100%,#0000 99%,#000 102%) 0 calc(var(--_p) + var(--s)/2) var(--_m),
    radial-gradient(100% 100% at 0 0   ,#0000 99%,#000 102%) 0 calc(var(--_p) - var(--s)/2) var(--_m);
    max-width: 42em;
}
#eyecatcher div + div p {padding-bottom: 0;}
#eyecatcher div + div h1 {padding-bottom: 1rem;}

table {border: 0.01em solid rgba(8, 41, 58, 0.7); border-collapse:collapse; margin-bottom: 3rem; text-align: left;}
thead {background: rgba(8, 41, 58, 0.5); color: white;}
td, th {border: 0.01em solid rgba(8, 41, 58, 0.7); padding: 0.4em;}



footer {
	text-align: center;
	background-color: #1c1e20;
	padding: 2em 0 5em 0;
}
footer p {
	color: #888; 
	font-size: 75%;
}
footer p a  {
	color: #888;
	padding: 0 3em;
	text-decoration: none;	
}
footer p a:hover {
	color: white;
}
footer img {
	display: inline-block;
}

footer .seal {
	width: 4em;
	margin-top: 40px;
	fill: #888;
}

footer p a:first-child::after {
  content: "⁘";
  margin-left: 3em;
}
footer p a:last-child::before {
  content: "⁘";
  margin-right: 3em;
}


footer p a:hover:first-child::after,
footer p a:hover:last-child::before {
  color: #888;
}



@media (max-width: 600px) {
  header section {display: block;}
  header section > a {
    width: 80%;
    margin: 0.5em auto;
  }
  body {  
  font-size: 12pt;
  line-height: 1.4em;
}
  article {
    width: inherit;
    padding: 3em 1em 1em 1em;
  }
  article p {
    padding-bottom: 1rem;
  }
  h1 {font-size: 170%;}
  h2 { font-size: 140%; }
 

  nav ul li.active > ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    
  }

  nav ul li.active > ul {
    scrollbar-width: none;
  }

  nav ul li.active > ul::before,
  nav ul li.active > ul::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    z-index: 1;
    background: linear-gradient(to right, #051923cc, transparent);
    pointer-events: auto;
    cursor: pointer;
  }

  ul li.active > ul::after {
    content: '▶';
    right: 0;
    background: linear-gradient(to left, #051923cc, transparent);
  }

  ul li.active > ul::before {
    content: '◀';
    left: 0;
    background: linear-gradient(to right, #051923cc, transparent);
  }

  /* Optional: hide arrows if not scrollable */
  ul li.active > ul.hide-left::before { display: none; }
  ul li.active > ul.hide-right::after { display: none; }

  nav {
    width: 100%;
  }
  nav > ul {
    justify-content: center;
  }
  #eyecatcher {
    padding: 0.5em;
  }
  .booklist img {
    height: 8em;
  }
  #home .booklist, #home .booklist h3 {
    width: 100%;
  }
  #home section {
    width: 100%;
  }
  
  #home article {
    flex-direction: column-reverse;
    display: flex;
  }

  #articles li em {
    flex: 1em 0 0;
  }
  #eyecatcher img {
    width: 8em;
  }
  footer p a:first-child::after {    margin-left: 2em;}
  footer p a:first-child::before {  margin-right: 2em;}
  footer p a {	padding: 0 2em;}

}
