:root {
  --paper: #eceee9;
  --ink: #15181a;
  --muted: #5c6360;
  --rule: #bcc2ba;
  --field: #e2e5df;
  --brass: #815b0f;
  --measure: 34rem;
  --rail: 8.5rem;
  --serif: "Newsreader", Iowan Old Style, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101312;
    --ink: #e6e9e4;
    --muted: #939b96;
    --rule: #343b38;
    --field: #171b19;
    --brass: #c9973c;
  }
}
:root[data-theme="dark"] {
  --paper: #101312;
  --ink: #e6e9e4;
  --muted: #939b96;
  --rule: #343b38;
  --field: #171b19;
  --brass: #c9973c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 4rem) 1.5rem 4rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--field);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 2; }

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--ink);
}
.masthead svg { width: 30px; height: 30px; color: var(--ink); flex: none; }
.strike { fill: var(--brass); }
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
}
.tm { font-size: 0.4em; vertical-align: super; letter-spacing: 0.02em; margin-left: 0.1em; }
.masthead .elsewhere {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Opening statement */

.statement { padding: 2.6rem 0 0.5rem; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.05rem);
  line-height: 1.28;
  letter-spacing: -0.011em;
  text-wrap: balance;
  max-width: 44rem;
  margin: 0 0 1.5rem;
}
.statement p { color: var(--muted); max-width: 40rem; }

/* Sections: the rule struck across the measure */

.sec {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--measure));
  gap: 0 2.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.rail { position: sticky; top: 1.5rem; align-self: start; }
.num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}
.sec h2 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

/* The offer index */

.index-wrap { overflow-x: auto; margin: 1.4rem 0 1.2rem; }
table.index { width: 100%; border-collapse: collapse; }
table.index caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.4rem;
}
table.index th,
table.index td { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
table.index tr:last-child th,
table.index tr:last-child td { border-bottom: 0; }
table.index th { text-align: left; font-weight: 500; font-size: 1rem; padding-right: 1.5rem; }
table.index td {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
  text-align: right;
  white-space: nowrap;
}

/* Engagements */

.job { scroll-margin-top: 1.5rem; }
.job + .job { border-top: 1px solid var(--rule); margin-top: 2.2rem; padding-top: 2.2rem; }
.job h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.006em;
  margin: 0 0 0.2rem;
}
.price {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.lead { font-style: italic; }

details {
  margin: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
details:last-child { margin-bottom: 0; }
summary {
  cursor: pointer;
  padding: 0.6rem 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
summary::marker { color: var(--brass); }
summary:hover { color: var(--brass); }
/* Say what the disclosure does, so a closed section does not read as an empty heading. */
summary::after {
  content: " open";
  color: var(--brass);
}
details[open] summary { color: var(--brass); }
details[open] summary::after { content: " close"; }
details .body { padding: 0.5rem 0 0.9rem; }

/* The one control on the page that takes money. It should not look like a footnote. */
.buy {
  display: inline-block;
  margin: 1.2rem 0 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--brass);
  text-decoration: none;
}
.buy:hover { background: var(--brass); color: var(--paper); }

ul.spec { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
ul.spec li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
ul.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 1px;
  background: var(--brass);
}
ul.spec li b { font-weight: 600; }

/* Definition lists: misfits and terms */

dl.terms { margin: 0; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.75rem 1.5rem; }
dl.terms dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.28rem;
}
dl.terms dd { margin: 0; }

.note {
  background: var(--field);
  border-left: 2px solid var(--brass);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  font-size: 1rem;
}

.contact {
  font-family: var(--mono);
  font-size: 0.92rem;
  margin: 1.2rem 0 0;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--muted);
}
footer p { margin: 0; max-width: none; }

code { font-family: var(--mono); font-size: 0.85em; }

/* Commands and keys a reader copies exactly. */

pre.cmd {
  margin: 1rem 0 1.2rem;
  padding: 0.8rem 1rem;
  max-width: var(--measure);
  overflow-x: auto;
  background: var(--field);
  border-left: 2px solid var(--brass);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre;
}

/* Site navigation. Below 64rem it is a wrapped list under the masthead that doubles as the
   table of contents. From 64rem up it is a sticky left column beside the reading column,
   which keeps its width. */

.site-nav {
  margin: 1rem 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
/* Narrow screens: Start, Terms, Verify, and Contact share the first row, then each group is
   its label over two aligned columns. Order only applies here; the wide layout is a block. */
.site-nav > ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.4rem; }
.site-nav .group { order: 1; flex-basis: 100%; margin-top: 0.6rem; }
.site-nav .group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1rem;
}
.site-nav .label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
}
.site-nav .fee { display: none; }

@media screen and (min-width: 64rem) {
  :root { --rail: 10.5rem; }
  .wrap {
    max-width: 65.5rem;
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 2.5rem;
    align-content: start;
  }
  .wrap > * { grid-column: 2; }
  .wrap > .masthead { grid-column: 1 / -1; }
  .site-nav {
    grid-column: 1;
    grid-row: 2 / span 2;
    align-self: start;
    position: sticky;
    top: 1.5rem;
    margin: 2.6rem 0 0;
    padding: 0;
    border: 0;
  }
  .site-nav > ul,
  .site-nav .group,
  .site-nav .group ul { display: block; }
  .site-nav .group { margin-top: 0; }
  .site-nav .label { margin: 1.2rem 0 0.3rem; padding-left: calc(0.75rem + 2px); }
  .site-nav a {
    display: block;
    padding: 0.3rem 0 0.3rem 0.75rem;
    border-left: 2px solid transparent;
  }
  .site-nav a[aria-current="page"] { text-decoration: none; border-left-color: var(--brass); }
  .site-nav .fee {
    display: block;
    font-size: 0.68rem;
    color: var(--brass);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 52rem) {
  .sec { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { position: static; margin-bottom: 1.1rem; }
  .num { display: inline; margin-right: 0.6rem; }
  .sec h2 { display: inline; }
}

@media (max-width: 34rem) {
  dl.terms { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  dl.terms dd { margin-bottom: 0.9rem; }
  .masthead .elsewhere { display: none; }
}

@media print {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .skip, .masthead .elsewhere, .site-nav { display: none; }
  details[open] .body, details .body { display: block; }
}
