/**
 * Base typography and controls for legacy tools (bakery, remix, …).
 * Body theme: VT323. Brand bar uses Marcellus via brand-header.css.
 */
@import url("./brand-font.css");

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/shared/fonts/vt323-v17-latin-regular.woff") format("woff");
}

a {
  text-decoration: none;
  color: #fff;
}

a:hover {
  color: var(--hodlr-control-hover-text);
}

html {
  min-height: 100%;
}

body {
  font-family: "VT323", monospace;
  background-color: var(--bg, var(--hodlr-surface, #1b1b1b));
  margin: 0;
  color: #fff;
  min-height: 100vh;
  /* clip (not hidden) so position:sticky chrome still floats on scroll */
  overflow-x: clip;
  font-size: var(--font-ui);
}

h1,
h2,
h3,
p,
label {
  font-family: "VT323", monospace;
}

h1 {
  font-size: var(--font-h1);
  margin: 0.5rem 0;
  font-weight: 400;
}

h2 {
  font-size: var(--font-h2);
  margin: 0.35rem 0;
  font-weight: 400;
}

h3 {
  font-size: var(--font-h3);
  font-weight: 400;
}

p {
  font-size: var(--font-ui);
  line-height: 1.4;
}

.siteShell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.siteShellMain {
  flex: 1 0 auto;
}

.sitePage {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 1rem var(--page-padding-x) 2rem;
  box-sizing: border-box;
}

button,
input,
select {
  font-family: "VT323", monospace;
}

button:not(.siteNavControlBtn) {
  margin: 0.25rem;
  border: 1px solid var(--hodlr-control-border);
  background-color: var(--hodlr-control-bg);
  color: var(--hodlr-control-text);
  border-radius: 4px;
  font-size: var(--font-ui);
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

button:not(.siteNavControlBtn):hover:not(:disabled) {
  color: var(--hodlr-control-hover-text);
  border-color: var(--hodlr-control-hover-border);
}

button:not(.siteNavControlBtn):disabled {
  border-color: #999;
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

input,
select {
  border: 1px solid var(--hodlr-control-border);
  background-color: var(--hodlr-control-bg);
  color: var(--hodlr-control-text);
  border-radius: 4px;
  font-size: var(--font-ui);
  padding: 8px 12px;
}

input:focus,
select:focus {
  outline: 1px solid var(--focus, var(--hodlr-accent));
  outline-offset: 1px;
}

#connected {
  display: none;
}

#connected .siteNavControlBtn {
  color: var(--hodlr-accent);
  border-color: var(--hodlr-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
