/* Omarchy's look: JetBrains Mono on the colors of an Omarchy theme
   (themes.css, generated from each theme's colors.toml). */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.1vw + 10px, 16px);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 60rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

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

.masthead {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 1.25em 0;
  border-bottom: 1px solid var(--selection);
}

.brand {
  color: var(--fg-bright);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.crumb { color: var(--fg-dim); }
.crumb::before { content: "/ "; }

main { flex: 1; padding: 1.5em 0 2em; }

h1 {
  color: var(--fg-bright);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 0.75em;
}

h2 {
  color: var(--fg-bright);
  font-size: 1rem;
  margin: 2em 0 0.75em;
}

p { margin: 0 0 0.9em; max-width: 46em; }

.warning {
  border-left: 3px solid var(--yellow);
  padding-left: 0.75em;
  color: var(--yellow);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4em 1.25em;
  margin: 1.5em 0;
  padding: 1em 1.25em;
  background: var(--bg-dark);
  border: 1px solid var(--selection);
  border-radius: 6px;
}

.facts dt { color: var(--fg-dim); }
.facts dd { margin: 0; color: var(--fg-bright); overflow-wrap: anywhere; }
.facts dd.alert { color: var(--red); }

.actions { display: flex; flex-wrap: wrap; gap: 0.6em; }

button, .button {
  font: inherit;
  color: var(--fg-bright);
  background: var(--bg-light);
  border: 1px solid var(--selection);
  border-radius: 6px;
  padding: 0.55em 1em;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.status { min-height: 1.55em; margin: 0.6em 0 0; color: var(--green); }
.hint { color: var(--fg-dim); font-size: 0.875rem; }

pre {
  position: relative; /* the offsetParent of its lines, for scrolling to the panic */
  margin: 0;
  padding: 1em;
  max-height: 70vh;
  overflow: auto;
  background: var(--bg-dark);
  border: 1px solid var(--selection);
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre;
}

pre .key { color: var(--red); font-weight: 700; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75em 1.5em;
  padding: 1.25em 0 1.5em;
  border-top: 1px solid var(--selection);
  color: var(--fg-dim);
  font-size: 0.875rem;
}

footer p { margin: 0; }

.theme select {
  font: inherit;
  color: var(--fg);
  background: var(--bg-light);
  border: 1px solid var(--selection);
  border-radius: 4px;
  padding: 0.2em 0.4em;
  margin-left: 0.4em;
}

[hidden] { display: none !important; }
