/* Chartres Software Limited — chartressoftware.com */

:root {
  --frost: #eef2f5;
  --paper: #ffffff;
  --ink: #14202b;
  --slate: #55697a;
  --steel: #cbd6de;
  --ember: #b03806;
  --ember-soft: #f5e2d6;

  --measure: 66ch;
  --step: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.masthead {
  padding: 2.25rem 0 0;
}

.mark {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.mark:hover { color: var(--ember); }

nav.top {
  margin-top: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--steel);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav.top a {
  font-size: 0.95rem;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.top a:hover { color: var(--ink); }
nav.top a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

/* ---- hero (home only) ---- */

.hero {
  padding: 3.5rem 0 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero p {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 52ch;
  margin: 0;
}

/* the one bold device: a rule that runs cold to hot */
.heatline {
  height: 3px;
  margin: 2.75rem 0 0;
  border: 0;
  background: linear-gradient(
    to right,
    var(--steel) 0%,
    var(--steel) 34%,
    #d9822b 72%,
    var(--ember) 100%
  );
}

/* ---- page headers (inner pages) ---- */

.page-head {
  padding: 3rem 0 0;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.effective {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}

/* ---- body content ---- */

main { padding-bottom: 4rem; }

section { margin-top: 2.75rem; }

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

ul, ol {
  max-width: var(--measure);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li { margin-bottom: 0.5rem; }

a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

strong { font-weight: 600; }

/* data table */

.data {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.data thead th {
  text-align: left;
  font-weight: 600;
  padding: 0 1.25rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.data td {
  vertical-align: top;
  padding: 0.75rem 1.25rem 0.75rem 0;
  border-bottom: 1px solid var(--steel);
}

.data td:first-child { font-weight: 500; white-space: nowrap; }

/* callout — used sparingly, safety only */

.safety {
  background: var(--ember-soft);
  border-left: 3px solid var(--ember);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.safety p:last-child { margin-bottom: 0; }

/* contact block */

.contact {
  background: var(--paper);
  border: 1px solid var(--steel);
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.contact p:last-child { margin-bottom: 0; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--steel);
  padding: 1.75rem 0 3rem;
  font-size: 0.9rem;
  color: var(--slate);
}

footer p { margin: 0 0 0.4rem; max-width: none; }
footer a { color: var(--slate); }
footer a:hover { color: var(--ember); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a { text-decoration: none; }

/* ---- accessibility ---- */

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  nav.top { gap: 1rem 1.1rem; }
}
