/*
   The Frame of Mind Software look, so this service's pages and the company site read as
   the same firm: one column, warm paper, a serif for headings against a plain sans, and
   no motion. Kept in step with frameofmindsoftware.ca by hand; the two are separate
   deployments and neither can serve the other's stylesheet.

   Full width bands are made with a gutter that grows with the viewport instead of an
   inner wrapper div, so the templates stay free of layout-only markup.
*/

:root {
  --bg: #faf8f4;
  --band: #f1ece3;
  --ink: #1b1e24;
  --muted: #5b6068;
  --accent: #a3611c;
  --rule: #ded5c7;
  --column: 44rem;
  --gutter: max(1.5rem, calc((100% - var(--column)) / 2));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 1.75rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--accent);
  display: inline-block;
}

p {
  margin: 0 0 1.1rem;
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

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

a:hover {
  color: var(--ink);
}

/* Header */

.site-header {
  padding: 2.75rem var(--gutter) 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}

/* The mark has no empty margin of its own, so it is set smaller than the text it sits
   beside would suggest, and given a wider gap. */
.wordmark-logo {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.5rem;
  flex: none;
}

.wordmark-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.005em;
}

.wordmark-line {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Sections */

section {
  padding: 3.25rem var(--gutter);
}

.band {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* The header and the footer draw their own edge, so a band against either would put two
   hairlines on top of each other. */
main > .band:first-child {
  border-top: none;
}

main > .band:last-child {
  border-bottom: none;
}

.lede h1 {
  max-width: 20ch;
}

.lede p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0;
}

.updated {
  color: var(--muted);
  font-size: 0.98rem;
}

/* The address is an image, and its alt is empty, so that it is not scraped out of the
   markup. */
.email {
  display: block;
  width: 100%;
  max-width: 20.5rem;
  height: auto;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  padding: 2.25rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}
