/* Article styles. Loaded after site.css on every post. Long-form text sits on a nearly opaque
   sheet so it reads like paper; the water only shows around it. */

.post { width: min(46rem, 100% - 24px); margin-inline: auto; padding: clamp(14px, 4vh, 44px) 0 72px; }

.sheet {
  padding: clamp(20px, 5vw, 56px) clamp(18px, 5.5vw, 60px) clamp(28px, 5vw, 56px);
  background: linear-gradient(rgba(255, 255, 255, .985), rgba(247, 253, 254, .97));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #1b2f3a;
  font: 1.125rem/1.65 Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* no sheen on the reading sheet: it sat behind the title as a stray arc */
.sheet::before { content: none; }

.sheet > header { margin-bottom: 2.1em; padding-bottom: 1.3em; border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 #fff; }
.sheet h1 {
  margin: 0 0 .5em;
  font: 400 clamp(1.75rem, 4.6vw, 2.5rem)/1.14 var(--sans);
  letter-spacing: -.02em;
  color: var(--ink-deep);
  text-wrap: balance;
}
.sheet .date { margin: 0; font: .875rem/1.5 var(--sans); color: var(--ink-soft); }

.sheet h2, .sheet h3 { color: var(--ink-deep); line-height: 1.25; text-wrap: balance; }
.sheet h2 { margin: 2.3em 0 .5em; font-size: 1.35em; }
.sheet h3 { margin: 1.8em 0 .45em; font-size: 1.08em; }
.sheet h2 + h3 { margin-top: .9em; }
.sheet p { margin: 0 0 1.05em; }
.sheet section > :last-child { margin-bottom: 0; }

.sheet a { text-decoration-color: rgba(10, 93, 143, .45); transition: text-decoration-color .2s; }
.sheet a:hover { text-decoration-color: currentColor; }

.sheet ul, .sheet ol { margin: 0 0 1.05em; padding-left: 1.4em; }
.sheet li { margin: .25em 0; padding-left: .2em; }
.sheet li::marker { color: var(--link); }
.sheet blockquote { margin: 0 0 1.05em 1.4em; padding: 0; }

.sheet figure { margin: 1.9em 0; }
.sheet figure img, .sheet figure video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 6px;
  background: #e6f1f5;
  box-shadow: 0 0 0 1px rgba(8, 60, 100, .16), 0 6px 16px -8px rgba(6, 56, 92, .45);
}
/* portrait phone photos and screen recordings stay a comfortable height */
.sheet figure .tall { max-height: min(34rem, 80vh); width: auto; }
.sheet figure.small img { max-width: 58%; }
.sheet figure video { background: #000; }
.sheet figcaption { margin-top: .7em; font: .8125rem/1.45 var(--sans); color: var(--ink-soft); text-align: center; text-wrap: balance; }

.post-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 2.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 #fff;
  font: .9375rem/1.5 var(--sans);
}
.post-end a { display: inline-block; padding: 8px 0; }

@media (prefers-reduced-motion: no-preference) {
  .post .sheet { animation: settle .8s var(--ease) both; }
}
@media (max-width: 500px) {
  .sheet { font-size: 1.0625rem; }
  .sheet figure.small img { max-width: 78%; }
}
@media print {
  .post { width: auto; padding: 0; }
  .sheet { padding: 0; font-size: 11pt; }
  .post-end { display: none; }
}
