/* As plain as the real thing: the browser's own Times, blue links that turn purple once visited, one rule. */
html { background: #fff; color: #000; }
body { margin: 8px; background: #fff; color: #000; font-family: "Times New Roman", Times, serif; font-size: 16px; overflow-wrap: break-word; }
.c { text-align: center; }
img { border: 0; }
.potd { display: inline-block; vertical-align: bottom; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); }
.potd-portrait { max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); }
p.pic { margin: 0; }
/* the explanation keeps a readable line, about 95 characters, centred under the picture */
p.text { max-width: 39em; margin-left: auto; margin-right: auto; }
/* the date line's < and >: the same plain links, with room for a thumb */
p.date a, p.date span { display: inline-block; padding: 6px 10px; margin: -6px 0; }

/* the day's real work, under the explanation */
#work.ab-media { --ab-chrome: 40px; --ab-gap: 16px; margin: 1.5em 0; }
#work .ab-heading { text-align: center; font-weight: bold; }
#work figcaption { text-align: center; font-size: 1em; font-style: italic; }
#work .ab-sounds { max-width: 640px; margin: 0 auto; width: 100%; }
#work .ab-audio figcaption { text-align: left; font-style: normal; }
#work .ab-landscape { max-width: 960px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  /* two films to a row once there are several, so the arrows at the bottom stay close */
  #work .ab-landscape:has(> .ab-film:nth-child(2)) { max-width: 1240px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #work .ab-landscape:has(> .ab-film:nth-child(2)) > .ab-film:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}

/* archive, index, search */
.list { line-height: 1.75; }
.idx { line-height: 1.6; }
.idx b { white-space: nowrap; }
.found { margin: 0 0 1em; }
input[type="search"], input[type="text"] { font: inherit; }

/* calendar */
table.cal { margin: 0 auto 1.5em; border-collapse: separate; width: 100%; max-width: 900px; table-layout: fixed; }
table.cal caption { font-weight: bold; font-size: 1.17em; margin: .5em 0; }
table.cal th { font-weight: bold; }
table.cal td { vertical-align: top; padding: 3px; height: 3.2em; }
table.cal td img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; margin-top: 2px; }
table.cal td.out { color: #808080; }

@media (max-width: 560px) {
  h1 { font-size: 1.7em; }
  table.cal td { padding: 1px; font-size: 13px; height: 2.6em; }
}
