/* ===========================
   Box sizing
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===========================
   Root
   =========================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  line-height: 1.5;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   Headings
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

/* ===========================
   Paragraphs & Lists
   =========================== */

p,
ul,
ol,
dl,
blockquote {
  margin: 0;
}

ul,
ol {
  padding-left: 1.5rem;
}

/* ===========================
   Links
   =========================== */

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Media
   =========================== */

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ===========================
   Forms
   =========================== */

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* ===========================
   Tables
   =========================== */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===========================
   Text overflow
   =========================== */

p,
li {
  overflow-wrap: break-word;
}

/* ===========================
   Hidden
   =========================== */

[hidden] {
  display: none !important;
}


@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Definitions shared by all display sizes */

:root {

  --plan9bg: #FFFFE0;
  --default-text-color: #666;
  --default-bg-color: #F9F9F0C0; 
  --heading-text-color: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
  --default-text-color: #EEE;
  --default-bg-color: #999;
  --heading-text-color: #BBB;
  }
}

html {
  background: url(/jam/common/images/backgrounds/bg.gif);
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

p {
  max-width: 62ch;
  margin: 0 auto;
}

blockquote p {
  border-left: 0.2rem solid linen;
  padding-left: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  color: var(--heading-text-color);
  margin-bottom: 1rem;
}

body {
  color: var(--default-text-color);
  min-height: 100%;
}

/* --------------------------------------------------------------------------*/

button.copy-link {
  all: unset;
  cursor: pointer;
}

a,
button.copy-link {
  background:
    linear-gradient(
      transparent 60%,
      rgba(255, 220, 100, .35) 60%
    );
}

a:hover,
button.copy-link:hover {
  background-color: #EEE;
}

a:focus-visible,
button.copy-link:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------*/

.inline-icon{

    display: inline;
    height: 16px;
    width: 16px;
    vertical-align: baseline;
    margin-left: 0.3em;
}

.outmost {
    background-color: var(--default-bg-color);

 /*   background: linear-gradient(
        to right,
          var(--default-bg-color) 0%,
         var(--default-bg-color) 15%,
        #ffffff 50%,
         var(--default-bg-color) 85%,
         var(--default-bg-color) 100%
    ); */

    border-radius: 33px 33px 33px 33px;
    border: 1px solid bisque;
    margin: 1rem auto 1rem auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 3rem;
    min-height: 100vh;
}

.injected-markdown {
  margin: 1rem auto 2rem auto;
  max-width: 68ch;
  p {
    color: var(--default-text-color);
    font-size: 1.2rem;
    padding-bottom: 1rem;
  }
}

/* --------------------------------------------------------------------------*/

.topmenu {
 display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2rem;

  a {
    font-weight: normal;
    font-size: 1rem;
    color: silver;
  }
  .logobox { 
    font-weight: bolder;
    font-size: 1.2rem;
  }
}

.landingpage-list a {
  text-decoration: none;
}

.landingpage-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landingpage-list li {
    margin: 0;
}

.landingpage-list a {
    color: var(--default-text-color);
    text-decoration: none;
    font-weight: 500;

    border-radius: 0.25rem;
}

/* --------------------------------------------------------------------------*/

.latest-tabular {
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.6rem 0 0.6rem 1rem;
  border-radius: 4px;

  h3 {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
  }

  h2 {
    text-decoration: underline;
    margin-top: 2rem;
  }
}

.series-group {
  margin: 0;
  td {
    padding: 2px 0.4rem 0 0;
  }
  td:not(:first-child) {
    font-weight: bolder;
  }
}

.series-group {
  margin: 0;
}

/* --------------------------------------------------------------------------*/

footer .box {
 /* border-top: 1px dashed #d1d5db; */
  padding: 3px 0;
  text-align: left;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  text-align: center;
  color: silver;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------*/

.list-of-series, .list-of-section {
   color: var(--default-text-color);	
   table {
    margin: 0.5rem 0 2rem 0;
    border-collapse: separate;
    border-spacing: 8px;
   }
   td{
    background-color: var(--plan9bg);
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    border-radius: 4px;
   }
}

/* --------------------------------------------------------------------------*/

.lead-in {
  color: var(--default-text-color);
  margin-top: 2rem;
  border-bottom: 3px solid linen;
  display: inline-block;
  animation: appear 0.5s ease-out forwards;
}

/* --------------------------------------------------------------------------*/

.series-header {
}

.series-footer {

	p {
	    margin-top: 0.7rem;
	}

	.taglist {
	    margin-bottom: 2rem;
	    display: flex;
	    flex-wrap: wrap;
	    gap: .4em;
	}

	.taglist span {
	    font-variant-caps: small-caps;
	    background-color: #FAFAFA;
	    border-radius: .4em;
	    padding: .1em .5em;
	}
}


/* --------------------------------------------------------------------------*/

.book-list {
}

.book-year {
}

.book-entry{
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.book-data {
 display: inline-block;
 padding: 0;
 margin: 0;
 list-style: none;
 
 li:first-child span {
   background-color: var(--plan9bg);
 }
}

.book-comment {
  padding: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------*/

.sermon {
  max-width: 68ch;
  margin-inline: auto;
  margin-block: 1.5rem;
  box-sizing: border-box;
  summary {
    margin-top: 2rem;
  }
  .donation-button {
    margin-top: 1rem;
  }
}


/* --------------------------------------------------------------------------*/

figure {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;  

  picture {
    width: fit-content;
    img {
      border: 1.0rem solid white;
      transition: filter 0.3s ease;
      &:hover {
        filter: brightness(1.1) contrast(1.1);
      }
    }
  }

  figcaption {
    height: fit-content;
    ul {
      margin: 0;
      padding: 0;
      width: fit-content;
      list-style: none;
      li {
        margin-bottom: 0.2rem;
      }
    }
  }
}


/* --------------------------------------------------------------------------*/

.catalog-pages {
  list-style:none;
  li {
    display: inline;
    padding: 0.2rem 1rem;
    background-color: #F2F2F0;
    border-radius: 8px;
  }
}


.imgtitle {
  display: inline-block;
  margin-left: 0.4rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.bordered-photo {
  border: 1rem solid white;
}

.tech-warning {
  margin-top: 2rem;
  margin-left: 0.3rem;
}

.server-info {
  margin-top: 3rem;
  padding-top: 0.4rem;
  border-top: 2px dashed bisque;
}
/* Screens 400 CSS pixels and wider */
@media (min-width: 400px) {
    .outmost {
        width: 70vw;
        max-width: 1000px;
    }
}

/* Screens narrower than 400 CSS pixels */
@media (max-width: 399px) {
    .outmost {
        width: 100vw;
    }
}


.langtabs {
  display: inline-block;
  input.langselector {
    display: none;
  }

  label {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border: 1px solid linen;
    display: inline-block;
  }
}

.panel {
  display: none;
}

#english:checked ~ .english,
#spanish:checked ~ .spanish {
  display: block;
}

#english:checked ~ label[for="english"],
#spanish:checked ~ label[for="spanish"] {
  background: var(--plan9bg);
}

.langtabs-free {
  margin: 2rem auto;
  max-width: 68ch;
  p {
    color: var(--default-text-color);
    font-size: 1.2rem;
    padding-bottom: 1rem;
  }
}
