/* Chirnsley, LLC. Three inks on paper — see logo/seal.py, which owns the values. */

:root {
  color-scheme: light;

  --paper: #e7e2d1;
  --ink: #141414;
  --green: #1e6f50;
  --faint: #8a8674;
  --overdue: #9a4a1f;
  --rule: rgba(30, 111, 80, 0.25);

  /* The surface the sheet lies on: the green taken down, not out. */
  --surface: #17402f;

  --serif: Georgia, "Times New Roman", serif;
  --mono: "SF Mono", "Cascadia Mono", "Fira Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  padding: 3.5rem 1.5rem 5rem;
}

/* The sheet, ringed on all four edges. Two assets rather than one stretched:
   rule-vertical.svg is the same wave turned on its side, so the wavelength
   matches all the way round instead of smearing up the sides. Both are
   generated — see logo/seal.py. */
.sheet {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 3.25rem 3rem;
  border: 1px solid rgba(20, 20, 20, 0.28);
  box-shadow: 0 3px 26px rgba(0, 0, 0, 0.32);

  background-color: var(--paper);
  background-image: url("rule.svg"), url("rule.svg");
  background-repeat: repeat-x, repeat-x;
  background-position: left top 12px, left bottom 12px;
  background-size: auto 12px, auto 12px;
}

/* The sides. Inset to start where the top and bottom bands stop, so the
   corners close instead of leaving stubs. */
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 12px;
  background: url("rule-vertical.svg") repeat-y center / 12px auto;
}

.sheet::before { left: 12px; }
.sheet::after { right: 12px; }

h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 1rem;
}

header { margin-bottom: 3.5rem; }

section { margin-bottom: 3rem; }

h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.prose {
  font-size: 0.98rem;
  max-width: 34rem;
}

.prose + .prose {
  margin-top: 1rem;
  color: var(--faint);
}

/* Schedules. Label left, figure right, hairline between. */
.schedule {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.schedule .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.schedule .row:first-child { border-top: 1px solid var(--rule); }

.schedule .label {
  color: var(--faint);
  letter-spacing: 0.06em;
}

.schedule .value {
  color: var(--ink);
  text-align: right;
}

/* Specific enough to beat .schedule .value, which also sets colour. */
.schedule .serial {
  color: var(--green);
  letter-spacing: 0.22em;
}

.overdue { color: var(--overdue); }

ul {
  list-style: none;
  font-size: 0.92rem;
}

ul li { padding: 0.35rem 0; }

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

a:hover { border-bottom-color: var(--green); }

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

/* The attestation. The seal authenticates; the rule above the label is where a
   signature would go if the company were allowed to sign for itself. */
.attest {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  margin-top: 4.5rem;
}

.seal {
  display: block;
  width: 124px;
  height: auto;
  flex-shrink: 0;
}

.signature {
  flex: 1;
  max-width: 22rem;
}

.signature-rule {
  height: 2.75rem;
  border-bottom: 1px solid var(--ink);
}

.signature-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.6rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 2;
  color: var(--faint);
}

/* Minutes */

article { margin-bottom: 3rem; }

.entry-date {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.6rem;
}

article h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

article p {
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.2rem;
}

.signoff {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-top: 2.5rem;
}

@media (max-width: 40rem) {
  body { padding: 1.5rem 0.75rem 3rem; }

  .sheet { padding: 3rem 2rem 2.25rem; }

  h1 { font-size: 1.7rem; letter-spacing: 0.12em; }

  .attest {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .signature { max-width: none; }

  .schedule .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .schedule .value { text-align: left; }
}
