/* Geoffrey Lefever — restored site.
   Colours and typefaces follow the original 2010–2016 design:
   blue headings/links #006699, brown hover #6e4321, grey borders #ccc,
   grey page background #eee. */
:root {
  --blue: #006699;
  --brown: #6e4321;
  --ink: #333;
  --muted: #6b6b6b;
  --rule: #ccc;
  --page: #eee;
  --paper: #fff;
  --cream: #fdfaef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); font-weight: bold; text-decoration: none; }
a:hover, a:focus-visible { color: var(--brown); text-decoration: underline; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

/* masthead: the original splatter strip with the outlined name over it */
.masthead {
  background: var(--cream) url(images/graphics/banner-bckgrd.gif) left center / auto 100% repeat-x;
  border-bottom: 2px solid var(--rule);
  padding: 10px 16px;
}
.brand { display: block; max-width: 790px; }
.brand img { display: block; width: 100%; height: auto; }

.sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.sitenav a { white-space: nowrap; padding: 2px 0; }
.sitenav a + a::before {
  content: "|";
  color: var(--rule);
  font-weight: normal;
  padding: 0 10px;
}
.sitenav a[aria-current="page"] { color: var(--brown); }

main { padding: 8px 24px 24px; }
article { max-width: 100%; }
article::after { content: ""; display: block; clear: both; }

h1, h2, h3, h4 {
  color: var(--blue);
  margin: 18px 0 10px;
  line-height: 1.3;
}
h1 { font: bold 1.35rem/1.3 Verdana, Arial, sans-serif; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 12px; }
article > p, article > section > p, article aside > p { max-width: 72ch; }

.bold { font-weight: bold; }
.italic { font-style: italic; }
.fontSmaller { font-size: .85em; font-weight: normal; }
.centerAlign { text-align: center; }
.centerAlign p, p.centerAlign { margin-left: auto; margin-right: auto; }
.borderTop { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 18px; }

.floatLeft { float: left; margin: 4px 22px 12px 0; max-width: 45%; }
.floatRight { float: right; margin: 4px 0 12px 22px; max-width: 45%; }
h3.floatLeft { font-weight: normal; font-size: .9rem; color: var(--ink); }
h3.floatLeft .bold { color: var(--blue); }
aside { display: block; }
article > aside:first-of-type:has(> a > img) { float: right; max-width: 40%; margin: 0 0 12px 22px; }

/* image grids (formerly tables) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px 22px;
  margin: 18px 0 26px;
  align-items: end;
}
.grid .cell { text-align: center; font-size: .9rem; line-height: 1.4; }
.grid .cell p { margin: 0; }
.grid:not(.text) { align-items: start; }
.grid .cell img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto 10px;
}
.grid:not(.text) .cell a { font-weight: normal; color: var(--ink); }
.grid:not(.text) .cell a:hover { color: var(--brown); }

/* exhibitions page: two text columns */
.grid.text {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px 40px;
}
.grid.text .cell { text-align: left; font-size: 1rem; line-height: 1.6; }
.headerExhibitions { border-bottom: 1px solid var(--rule); padding-bottom: 4px; }

/* single-painting pages */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 6px 0 18px;
  font-size: .95rem;
}
article section { text-align: center; }
article section > p, article section > h3 { margin-left: auto; margin-right: auto; }
img.survivor {
  display: block;
  margin: 10px auto 12px;
  border: 1px solid #e2e2e2;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.note {
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
  text-align: center;
}
.totop { margin-top: 26px; font-size: .9rem; }

footer {
  border-top: 2px solid var(--rule);
  padding: 14px 24px 22px;
  font-size: .8rem;
  color: var(--muted);
}
footer p { margin: 0 0 4px; }
footer .sep { color: var(--rule); padding: 0 6px; }

@media (max-width: 640px) {
  main { padding: 4px 16px 20px; }
  .masthead { padding: 8px 16px; }
  .sitenav { font-size: 14px; gap: 4px 18px; }
  .sitenav a + a::before { content: none; }
  .floatLeft, .floatRight, article > aside:first-of-type:has(> a > img) {
    float: none; max-width: 100%; margin: 8px 0 14px;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .grid.text { grid-template-columns: 1fr; }
  .grid .cell img { height: 150px; }
  h1 { font-size: 1.2rem; }
}
