/* Dorset Gallery. A bright, light-only gallery wall: near-white ground,
   each picture on a white mount with a hairline edge, a small museum label
   under it, and sea blue for links. No web fonts: the CSP allows nothing
   off-site, so the serif is whatever the reader already has. */

:root {
  --wall: #fbfaf7;
  --mount: #ffffff;
  --edge: #e4e0d6;
  --ink: #1d2830;
  --muted: #5f6c75;
  --rule: #e4e0d6;
  --sea: #16688f;
  --focus: #16688f;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
}

body {
  background: var(--wall);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sea);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---- masthead ------------------------------------------------------------ */

.masthead {
  max-width: 1112px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) 16px clamp(32px, 5vw, 56px);
  text-align: center;
}

.masthead h1,
.masthead .title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.masthead .title a {
  color: inherit;
  text-decoration: none;
}

.masthead .lede {
  margin: 14px 0 0;
  color: var(--sea);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
}

.masthead .title + .lede {
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-style: normal;
}

/* ---- the wall ------------------------------------------------------------ */

.wall {
  max-width: 1112px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: clamp(40px, 7vw, 80px) 48px;
}

.wall-short {
  padding-bottom: 96px;
  text-align: center;
}

.work {
  margin: 0;
}

.work a {
  display: block;
  padding: clamp(8px, 1.4vw, 14px);
  background: var(--mount);
  border: 1px solid var(--edge);
  box-shadow: 0 1px 2px rgb(29 40 48 / 0.05), 0 10px 24px -14px rgb(29 40 48 / 0.25);
  line-height: 0;
}

.work img {
  display: block;
  width: 100%;
  height: auto;
}

.label {
  margin-top: 14px;
  display: grid;
  gap: 1px;
  font-size: 0.95rem;
}

.label cite {
  font-style: italic;
  font-size: 1.05rem;
}

.label .collection {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .wall {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .work-wide {
    grid-column: 1 / -1;
  }

  .work-feature {
    grid-column: 1 / -1;
    width: min(820px, 100%);
    justify-self: center;
  }
}

/* ---- footer and prose ---------------------------------------------------- */

.colophon {
  max-width: 640px;
  margin: clamp(64px, 12vw, 120px) auto 0;
  padding: 24px 16px 56px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.colophon p {
  margin: 0 0 10px;
}

.note {
  margin: 0;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 96px;
}

.prose h2 {
  margin: 2.2em 0 0.4em;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin: 0 0 0.9em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.prose .meta {
  margin-top: 2.4em;
  color: var(--muted);
  font-size: 0.875rem;
}
