/* Where Is Jesus? — site styles */

:root {
  --ink: #333;
  --ink-strong: #000;
  --page: #e7e5de;
  --band: #eeedea;
  --paper: #fff;
  --rule: #dad7ce;
  --rule-light: #efede7;
  --dark: #23282d;
  --tab: #a2a4a5;
  --footer-link: #e7e5de;
  --footer-link-hover: #99cc33;

  --content-width: 570px;
  --site-width: 1000px;
  --gutter: 16px;

  --font-body: Verdana, Arial, Helvetica, sans-serif;
  --font-title: Georgia, "Times New Roman", Times, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 12px/1.4 var(--font-body);
}

a { color: inherit; }

.container {
  width: min(var(--site-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-top: 3px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}
.site-header .logo { display: inline-block; vertical-align: top; }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--band);
  border-top: 1px solid #f9f9f5;
  box-shadow: 0 1px 0 #9a9994, 0 2px 6px rgb(0 0 0 / 0.15);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 4px 10px;
}
.site-nav a {
  display: block;
  padding: 0 10px;
  border-radius: 4px;
  color: #292929;
  font-weight: bold;
  line-height: 25px;
  text-transform: uppercase;
}
.site-nav a:hover { text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--tab); color: #fff; }

/* ---------- Main column ---------- */
.site-main {
  flex: 1;
  padding-block: 30px 10px;
}
.content {
  width: min(var(--content-width), 100%);
  border-right: 1px solid var(--rule);
  box-shadow: inset -1px 0 0 var(--rule-light);
}

/* ---------- Posts & pages ---------- */
.entry {
  margin: 0 20px 35px 10px;
}
.entry-title {
  padding-block: 5px;
  color: var(--ink-strong);
  font: normal 24px/1.2 var(--font-title);
  text-transform: uppercase;
}
.entry-title a { color: inherit; text-decoration: none; }

.entry-meta {
  display: flex;
  gap: 8px;
  min-height: 1.4em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-light);
  font-size: 10px;
}
.entry-meta time { text-transform: uppercase; }
.entry-meta .category {
  padding-left: 20px;
  /* small folder icon */
  background: no-repeat left center / 13px 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M.5 1.5h4l1 1.5h7v7.5H.5z' fill='%23e3c77a' stroke='%23a8893a'/%3E%3C/svg%3E");
}

.entry-body p { margin-bottom: 10px; }
.entry-body::after { content: ""; display: table; clear: both; }

.align-left { float: left; margin: 4px 10px 10px 4px; }
.centered { margin: 0 auto 10px; }
.video {
  clear: both;
  width: 500px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin-bottom: 10px;
  border: 0;
}

/* ---------- The game ---------- */
.content--game {
  background: var(--paper);
  border: 0;
  box-shadow: none;
  padding: 5px 0 30px;
  text-align: center;
}
.content--game img { margin-inline: auto; }
.game-message { margin: 15px; font-weight: bold; }
#jesus { cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  line-height: 35px;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--footer-link-hover); }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .content { border: 0; box-shadow: none; }
  .entry { margin-inline: 0; }
  .site-nav ul { gap: 4px 6px; padding-inline: 0; }
  .site-nav a { font-size: 11px; padding-inline: 8px; }
  .site-footer { line-height: 1.5; padding-block: 10px; }
}
@media (max-width: 480px) {
  .align-left { float: none; margin: 0 auto 10px; }
}
