/* Gatemark Systems site v0.1. Every value from design/tokens.json. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/AtkinsonHyperlegibleMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/AtkinsonHyperlegibleMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #F4F6F1;
  --ink: #0F1611;
  --gate: #1B5736;
  --struck: #3D9C62;
  --held: #7A5314;
  --fault: #9C3324;
  --rule: #D8DED4;
  --mute: #4C5B50;
}

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

::selection { background: var(--gate); color: var(--paper); }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/26px "Atkinson Hyperlegible Next", Verdana, sans-serif;
  margin: 0;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { max-width: 66ch; margin: 0 auto; }

/* Header */

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--rule);
}

header.site .lockup img { display: block; height: 26px; width: auto; }

nav.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}

nav.site a {
  color: var(--mute);
  font-size: 15px;
  line-height: 22px;
  text-decoration: none;
}
nav.site a:hover { color: var(--gate); text-decoration: underline; text-underline-offset: 3px; }
nav.site a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Type */

h1 {
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.02;
  font-size: clamp(38px, 9vw, 58px);
  margin: 64px 0 20px;
  text-wrap: balance;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.1;
  font-size: 22px;
  margin: 48px 0 12px;
}

h3 { font-weight: 700; font-size: 17px; margin: 28px 0 6px; }

p { margin: 10px 0; max-width: 66ch; }
.lead { font-weight: 500; font-size: 19px; line-height: 29px; }
.mute { color: var(--mute); }
.mono { font-family: "Atkinson Hyperlegible Mono", monospace; font-size: 15px; line-height: 24px; color: var(--mute); }

a { color: var(--gate); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 1.5px; }

ul, ol { padding-left: 1.3em; margin: 14px 0; }
li { margin: 10px 0; }
li::marker { color: var(--mute); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* The manifesto: three lines, the last one the page's single accent */

.manif {
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.12;
  font-size: clamp(22px, 5vw, 30px);
  margin: 6px 0;
}

.manif-accent { color: var(--gate); }

/* The three doors */

.doors { list-style: none; padding: 0; margin: 0; }
.doors li { font-size: 19px; line-height: 29px; margin: 14px 0; }
.doors a { font-weight: 500; text-decoration: none; }
.doors a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doors span { color: var(--mute); }

/* The mark: strikes once, on load, where the counts are shown */

.mark-hero { margin: 72px 0 8px; }
.mark-hero svg { display: block; width: 120px; height: 120px; }

.mark-anim .solid {
  opacity: 0;
  animation: strike 360ms ease-out 250ms forwards;
}
@keyframes strike { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mark-anim .solid { opacity: 1; animation: none; }
}

/* The hallmark row */

.hallmark {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
}
.hallmark .cartouche {
  border: 1px solid var(--rule);
  padding: 10px 14px;
}
.hallmark .k {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--mute);
  margin-bottom: 2px;
}
.hallmark .v {
  display: block;
  font-family: "Atkinson Hyperlegible Mono", monospace;
  font-size: 14px;
  line-height: 20px;
}

/* Forms */

.form { margin: 24px 0 8px; max-width: 46ch; }

.field { margin: 0 0 18px; }

.field__label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.field__optional { color: var(--mute); font-weight: 400; }

.field__hint { color: var(--mute); font-size: 15px; line-height: 22px; margin: 0 0 4px; }

.field__input {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--mute);
  border-radius: 4px;
  padding: 9px 10px;
}

textarea.field__input { resize: vertical; }

.field__input:focus-visible {
  outline: 2px solid var(--gate);
  outline-offset: 1px;
  border-color: var(--gate);
}

.button {
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  color: var(--paper);
  background: var(--gate);
  border: 1px solid var(--gate);
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
}

.button:hover { background: var(--ink); border-color: var(--ink); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The spam trap. Hidden by this class, never by a style attribute. */
.trap { display: none; }

/* Footer */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 72px;
  padding: 20px 0 48px;
  color: var(--mute);
}
footer.site p { margin: 4px 0; font-size: 15px; line-height: 24px; }
footer.site a { color: var(--gate); }

@media (min-width: 720px) {
  body { padding: 0 40px; }
}
