@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/DMMono-300.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/DMMono-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/DMMono-500.woff2") format("woff2");
}

:root {
  --bg: #121110;
  --text: #e8e3d6;
  --muted: #9a958a;
  --rule: #4a4741;
  --leader: #6b675f;
  --accent: #e0a45c;
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  max-width: 620px;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  text-align: left;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.logo { display: block; height: 26px; width: auto; }

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1;
  text-transform: uppercase;
}

.intro { margin: 0; font-size: 24px; line-height: 1.5; }
.intro .inline, .prose a { border-bottom: 1px dotted var(--leader); }

/* Ledger */
.ledger {
  list-style: none;
  margin: 0;
  padding: 28px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  line-height: 1.4;
}
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.name { font-weight: 500; }
.leader { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--leader); }
.tail { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.desc { color: var(--muted); }
.desc.no-link { padding-right: 30px; }
.arrow { color: var(--accent); width: 18px; text-align: right; }
.ext { color: var(--accent); }

/* Notices shown via :target after a form post */
.notice {
  display: none;
  margin: 0;
  padding: 28px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  font-size: 18px;
  line-height: 1.5;
}
.notice:target { display: block; }
.notice:target ~ form { border-top: 0; }
.notice .ok { color: var(--accent); }

/* Forms */
form { display: flex; flex-direction: column; border-top: 1px dashed var(--rule); }

fieldset {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

legend, .label {
  display: block;
  padding: 0;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
}
legend { float: left; width: 100%; }

.options { display: flex; flex-direction: column; gap: 12px; font-size: 18px; line-height: 1.4; clear: both; }
.options label { display: flex; align-items: baseline; gap: 14px; cursor: pointer; }

input[type="radio"], input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  position: relative;
  top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.field { display: flex; flex-direction: column; }

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted var(--leader);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  line-height: 1.4;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--leader); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); border-bottom-style: solid; }

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

.submit { padding: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }

button {
  align-self: flex-start;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
button:hover { background: var(--text); color: var(--bg); }
button:hover .ext { color: var(--bg); }

.fine { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.fine a { color: var(--text); border-bottom: 1px dotted var(--leader); }

/* Long-form text (privacy) */
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.6; }
.prose h2 { margin: 24px 0 0; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose .meta { font-size: 14px; color: var(--muted); padding-bottom: 24px; border-bottom: 1px dashed var(--rule); }

/* Footer */
footer { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
footer p { margin: 0; }
footer .links { color: var(--muted); }
footer .links a { font-size: 14px; color: var(--text); }

@media (max-width: 480px) {
  h1 { font-size: 18px; letter-spacing: 4px; }
  .intro { font-size: 20px; }
  .ledger, .options, input[type="text"], input[type="email"], input[type="url"], textarea { font-size: 16px; }
}
