/* skeet reference site */

:root {
  --bg: #0c0c0c;
  --text: #e4e2db;
  --dim: #85857c;
  --accent: #4a8a5f;
  --rule: #26261f;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); height: 100%; }

body {
  font-family: Consolas, 'Cascadia Mono', 'Courier New', ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.content { flex: 1 0 auto; }
header.top, footer.foot { flex-shrink: 0; }

a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
::selection { background: #2a2a24; color: #fff; }

code { color: #fff; font-family: inherit; }
code.fn { color: var(--text); font-weight: 700; font-size: 1.05em; }

/* top nav */
header.top {
  border-bottom: 1px solid var(--rule);
}
header.top .bar {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.top .brand {
  color: var(--text);
  font-family: 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.03em;
}
header.top .brand .dot { color: var(--dim); }
header.top nav { display: flex; gap: 22px; }
header.top nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13.5px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
header.top nav a:hover { color: var(--text); }
header.top nav a.here { color: var(--text); border-bottom-color: var(--accent); }

/* content */
main.content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 24px 60px;
}
main.content.wide { max-width: 940px; }

main.content h1 { color: var(--text); font-size: 28px; margin: 0 0 4px; }
main.content .lede { color: var(--dim); font-size: 14px; margin: 0 0 34px; }

.sec { margin: 0 0 34px; }
.sec h2 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.sec p { margin: 0 0 8px; }
.dim { color: var(--dim); }

table.plain { border-collapse: collapse; font-size: 14px; width: 100%; }
table.plain td, table.plain th {
  text-align: left;
  padding: 5px 14px 5px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
table.plain th {
  color: var(--dim);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
table.plain td:first-child { color: var(--text); white-space: nowrap; }
table.plain td.fname { color: var(--text); font-weight: 700; font-size: 15px; }
table.plain tr:last-child td { border-bottom: none; }

ul.plain-list { margin: 0; padding: 0; list-style: none; }
ul.plain-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
}
ul.plain-list li:last-child { border-bottom: none; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.ghost { border-color: var(--rule); color: var(--dim); }
.btn.ghost:hover { background: transparent; color: var(--text); border-color: var(--text); }
.btn.small { padding: 7px 14px; font-size: 12.5px; }

.cmd {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  color: var(--text);
  font-size: 14px;
  margin: 4px 0;
  overflow-x: auto;
}
.cmd .sym { color: var(--dim); margin-right: 10px; }

/* form fields (search box, submit form) */
input.search,
.field input,
.field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
}
input.search:focus,
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--text); }
.field textarea { resize: vertical; }

.field { margin-bottom: 16px; }
.field span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input.search:disabled,
.field input:disabled,
.field textarea:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:disabled:hover { background: transparent; color: var(--text); }

.empty-state {
  border: 1px dashed var(--rule);
  padding: 22px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
}

.mt { margin-top: 12px; }

footer.foot {
  width: 100%;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 14px 24px 70px;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.foot .legal { display: flex; gap: 16px; }
footer.foot .legal a {
  color: var(--dim);
  font-weight: 400;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
footer.foot .legal a:hover { color: var(--text); text-decoration-color: var(--text); }

/* legal pages */
.legal-note {
  border: 1px solid var(--rule);
  padding: 10px 14px;
  color: var(--dim);
  font-size: 13px;
  margin: 0 0 30px;
}
.sec address { font-style: normal; }

/* cookie banner */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 16px 24px;
  z-index: 50;
  display: none;
}
#cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 13px; color: var(--dim); max-width: 46ch; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* back-to-top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--dim);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--text); border-color: var(--text); }
.to-top svg { display: block; width: 16px; height: 16px; }

@media (max-width: 560px) {
  header.top .bar { flex-direction: column; align-items: flex-start; height: auto; padding: 14px 18px; gap: 10px; }
  header.top nav { gap: 14px; }
  main.content { padding: 30px 18px 46px; }
  footer.foot { padding-bottom: 90px; }
}
