/* stockfleth.ca: one page, hand-written, no build step. The colours are the
   plate's own: its paper, the red of the shield, the gold of the star, and
   the felt of the games for the one link out. */
:root {
  --paper: #f3ecdf;
  --paper-deep: #e9dfce;
  --ink: #2a2622;
  --ink-soft: #6a6157;
  --red: #b3352a;
  --gold: #a9812f;
  --felt: #0d592e;
  --rule: #d3c6b0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

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

h1, h2 { font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }

/* The title */

.title { text-align: center; padding-top: 72px; }

.overline {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 13vw, 5.2rem); letter-spacing: 0.01em; }

.lede {
  max-width: 30em;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-style: italic;
  text-wrap: balance;
}

/* The plate, mounted like a print */

.plate { margin: 48px auto 0; max-width: 400px; }

.plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid #fbf8f1;
  outline: 1px solid var(--rule);
  box-shadow: 0 14px 34px rgb(60 40 20 / 0.22);
}

.plate figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Sections, each under a short red rule */

section { margin-top: 64px; }

h2 { font-size: 1.55rem; margin-bottom: 16px; }

h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--red);
}

p { margin: 0 0 16px; }

.aside { color: var(--ink-soft); font-size: 0.92rem; font-style: italic; }

.people { margin: 0; }

.people div { padding: 12px 0; border-top: 1px solid var(--rule); }
.people div:last-child { border-bottom: 1px solid var(--rule); }

.people dt { font-weight: 600; }

.people dt span {
  margin-left: 0.5em;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.people dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.97rem; }

/* The link out to the games, on their felt */

.made {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--felt);
  color: #cfe3d6;
  font: 0.95rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.made:hover, .made:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 26px rgb(0 0 0 / 0.26); }

.made img { flex: none; border-radius: 22%; }

.made strong { display: block; color: #fff; font-size: 1.15rem; }

.sources ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.9rem; }
.sources li { margin-bottom: 6px; }

footer {
  margin-top: 72px;
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .made { transition: none; }
  .made:hover, .made:focus-visible { transform: none; }
}
