/*
 * Web Fonts from fontspring.com
 *
 * All OpenType features and all extended glyphs have been removed.
 * Fully installable fonts can be purchased at http://www.fontspring.com
 *
 * The fonts included in this stylesheet are subject to the End User License you purchased
 * from Fontspring. The fonts are protected under domestic and international trademark and
 * copyright law. You are prohibited from modifying, reverse engineering, duplicating, or
 * distributing this font software.
 *
 * (c) 2010-2014 Fontspring
 *
 *
 *
 *
 * The fonts included are copyrighted by the vendor listed below.
 *
 * Vendor:      exljbris Font Foundry
 * License URL: http://www.fontspring.com/licenses/exljbris/webfont
 *
 *
 */

/* The header above is Fontspring's, kept whole as its licence requires. The
   site build points each font URL below at the font's hashed path. */

@font-face {
  font-family: "Tenso";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/tenso-regular.069fe588.woff2") format("woff2");
}

@font-face {
  font-family: "Tenso";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/tenso-italic.1a4c4af4.woff2") format("woff2");
}

@font-face {
  font-family: "Tenso";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/tenso-medium.94b9ee7e.woff2") format("woff2");
}

@font-face {
  font-family: "Tenso";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/tenso-bold.c153da61.woff2") format("woff2");
}

/* The house palette: the greens and the table tint come from the company's
   documents, the darker light-theme greens and the dark theme from aw.tools,
   where each text colour was checked for 4.5:1 contrast on its background. */
:root {
  color-scheme: light dark;
  --bg: #fbfbf8;
  --surface: #f1f2ea;
  --ink: #161a14;
  --ink-2: #4a5044;
  --line: #d9dcd2;
  --accent: #58ac25;
  --link: #297400;
  --heading: #297400;
  --tint: #d6e9cc;
  --button-bg: #2f8500;
  --button-ink: #fbfbf8;
  --field: #ffffff;
  --logo-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12140f;
    --surface: #1b1e17;
    --ink: #eceee5;
    --ink-2: #b8bcaf;
    --line: #2e3229;
    --accent: #6fbe3a;
    --link: #8fd65a;
    --heading: #8fd65a;
    --tint: #22331a;
    --button-bg: #58ac25;
    --button-ink: #12140f;
    --field: #1b1e17;
    /* The logo's black lettering turns white; its greens keep their hue. */
    --logo-filter: invert(1) hue-rotate(180deg);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.125rem/1.5 "Tenso", "Helvetica Neue", Arial, sans-serif;
  /* The footer sits at the bottom of the window however short the page. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and footer run wider than the reading column. */
header,
main,
footer {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
  max-width: 40rem;
  min-height: 24rem;
}

/* The documents' letterhead: the logo, then a thin rule to the right edge. */
header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

header::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.65rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 4rem;
  filter: var(--logo-filter);
}

footer {
  margin-top: 3rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
}

a {
  color: var(--link);
}

h1,
h2 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

strong,
b {
  font-weight: 700;
}

.lede {
  color: var(--ink-2);
}

.terms {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

.terms dt {
  font-weight: 500;
}

.terms dd {
  margin: 0;
}

form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 500;
}

label.tick {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}

label.tick input {
  margin-top: 0.35rem;
  accent-color: var(--button-bg);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  display: grid;
  gap: 0.4rem;
}

legend {
  font-weight: 500;
}

.hint {
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 400;
}

button {
  justify-self: start;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--button-bg);
  color: var(--button-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.closed {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--tint);
}

.version {
  color: var(--ink-2);
  font-size: 0.85rem;
}
