/* Logo colours: design/reachrd-brand (dark #111317, coral #FF5C39). No external fonts or assets. */
:root {
  --bg: #111317;
  --surface: #191c22;
  --line: #2a2e38;
  --text: #e9edf5;
  --muted: #8b93a7;
  --accent: #ff5c39;
  --link: #ff7a5c;
  --on-accent: #111317;
  --mark: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --line: #dde1e8;
    --text: #111317;
    --muted: #5d6578;
    --link: #c0351a;
    --mark: #111317;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--line);
}

.bar,
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

/* Typography */
h1 {
  margin: 16px 0 8px;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 40px 0 12px;
  font-size: 1.5rem;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

p {
  margin: 0 0 12px;
}

.accent {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}

.lead {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.muted,
.meta {
  color: var(--muted);
}

.meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
  font-size: 0.9em;
}

.hash {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: top;
}

/* Hero */
.hero {
  max-width: 44rem;
  margin: 24px auto 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  color: var(--link);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.card h2,
.card h3 {
  margin: 8px 0;
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.security h2 {
  margin-top: 8px;
}

.plain {
  padding-left: 1.2rem;
}

.plain li {
  margin-bottom: 8px;
}

/* Download */
.downloads {
  margin-top: 16px;
}

.platform.is-recommended {
  border-color: var(--accent);
  border-width: 2px;
}

.badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.file {
  margin-top: 16px;
}

.file .btn {
  width: 100%;
}

.notice {
  max-width: 40rem;
}

.verify dt {
  margin-top: 12px;
  font-weight: 600;
}

.verify dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.notes {
  padding-left: 1.2rem;
}

.notes li {
  margin-bottom: 8px;
}

/* Instructions */
.toc {
  margin: 16px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.doc {
  max-width: 46rem;
}

.doc ol,
.doc ul {
  padding-left: 1.4rem;
}

.doc li {
  margin-bottom: 8px;
}

.modes dt {
  margin-top: 16px;
  font-weight: 600;
}

.modes dd {
  margin: 4px 0 0;
}

/* Forms (feedback, panel sign-in) */
.form {
  max-width: 40rem;
  margin-top: 16px;
}

.field {
  margin: 0 0 16px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

button.btn {
  background: transparent;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn.small {
  min-height: 36px;
  padding: 0.25rem 0.9rem;
}

button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Honeypot: out of sight for people, still in the page for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.alert,
.ok {
  max-width: 40rem;
  margin: 12px 0;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
}

.flash p {
  margin: 0;
}

div.alert p {
  margin: 4px 0;
}

/* Panel */
.panel-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-nav form.inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.filters input[type="search"] {
  flex: 1 1 16rem;
  width: auto;
}

.filters select {
  width: auto;
}

.msgs {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg.is-new {
  border-color: var(--accent);
}

.msg p {
  overflow-wrap: anywhere;
}

.body-text {
  max-width: 46rem;
  overflow-wrap: anywhere;
}

.actions.left {
  justify-content: flex-start;
}

.table-wrap {
  overflow-x: auto;
}

.stats {
  border-collapse: collapse;
  min-width: 28rem;
}

.stats th,
.stats td {
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stats .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Logo mark */
.mark-ring {
  stroke: var(--accent);
}

.mark-line {
  stroke: var(--mark);
}

.mark-dot {
  fill: var(--mark);
}

@media (max-width: 30rem) {
  h1,
  .hero h1 {
    font-size: 2rem;
  }

  .hero .btn {
    width: 100%;
  }
}


/* ALTCHA widget (vendor/altcha/altcha.css) in the site colours */
.captcha {
  --altcha-color-base: var(--surface);
  --altcha-color-base-content: var(--text);
  --altcha-color-neutral: var(--line);
  --altcha-color-neutral-content: var(--muted);
  --altcha-color-primary: var(--accent);
  --altcha-color-primary-content: var(--on-accent);
  --altcha-border-color: var(--line);
  --altcha-border-radius: 10px;
  --altcha-max-width: 20rem;
}

.card.second {
  margin-top: 16px;
}
