/* freeminers.club v0.1
   Direction: working equipment in daylight. Concrete ground, stamped nameplates,
   safety orange for actions, hazard yellow reserved for one thing only -- the
   hopper level. Condensed display type for plates and readouts, plain sans for
   anything a user has to read carefully. */

:root {
  --concrete: #e6e4df;
  --panel:    #f8f7f4;
  --ink:      #16202b;
  --steel:    #526475;
  --hairline: #c9c6bf;
  --safety:   #d94f1e;
  --hazard:   #f2b707;
  --shadow:   0 1px 0 #fff inset, 0 1px 2px rgba(22, 32, 43, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 16px/1.55 "IBM Plex Sans", system-ui, sans-serif;
}

a { color: var(--safety); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--ink);
}

.mark { text-decoration: none; }
.mark:hover { text-decoration: none; }

.mark-plate {
  display: inline-block;
  padding: 5px 12px 4px;
  border: 2px solid var(--hazard);
  color: var(--hazard);
  font: 700 20px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font: 600 15px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav a { color: var(--panel); }
.nav-quiet { color: var(--steel) !important; }

.nav-cta {
  padding: 7px 12px 6px;
  background: var(--safety);
  color: #fff !important;
}
.nav-cta:hover { text-decoration: none; background: #c0451a; }

.nav-balance {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--hazard);
}

/* --- structure --------------------------------------------------------- */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.flashes { max-width: 880px; margin: 16px auto 0; padding: 0 20px; }

.flash {
  margin: 0 0 8px;
  padding: 11px 14px;
  border-left: 4px solid var(--ink);
  background: var(--panel);
  font-size: 15px;
}
.flash-ok   { border-left-color: #2f7d4f; }
.flash-warn { border-left-color: var(--hazard); }
.flash-err  { border-left-color: var(--safety); }

.panel {
  margin: 0 0 20px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  font: 600 13px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}

h1, h2, h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
  text-transform: uppercase;
}
h1 { font-size: clamp(32px, 7vw, 52px); }
h2 { font-size: 26px; }
h3 { font-size: 19px; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 18px; max-width: 52ch; }
.muted { color: var(--steel); }
.small { font-size: 14px; }

/* --- the hopper gauge: the one loud element on the site ---------------- */

.rig {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  align-items: stretch;
}

.hopper {
  position: relative;
  min-height: 260px;
  border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(
      to top,
      transparent 0 23px,
      var(--hairline) 23px 24px
    ),
    var(--panel);
  overflow: hidden;
}

.hopper-fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--hazard) 0 10px,
      #d9a406 10px 20px
    );
  transition: height .4s linear;
}

.hopper-fill.is-full {
  background: repeating-linear-gradient(135deg, var(--safety) 0 10px, #b9410f 10px 20px);
}

.hopper-fill.is-idle { opacity: .38; }

.hopper-readout {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 6px;
  background: var(--ink);
  color: var(--panel);
  font: 600 13px/1.3 "IBM Plex Mono", monospace;
  text-align: center;
}

.hopper-pct { display: block; font-size: 19px; color: var(--hazard); }

.rig-body { display: flex; flex-direction: column; }

.readout {
  margin: 0 0 18px;
  font: 600 clamp(30px, 6vw, 44px)/1 "IBM Plex Mono", monospace;
  letter-spacing: -.02em;
}
.readout .unit {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--steel);
  text-transform: uppercase;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px;
  margin: 0 0 20px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.spec { padding: 10px 12px; background: var(--panel); }
.spec dt {
  margin: 0 0 3px;
  font: 600 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec dd { margin: 0; font: 600 16px/1.2 "IBM Plex Mono", monospace; }

.fuel-bar {
  height: 10px;
  margin: 0 0 8px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.fuel-bar span { display: block; height: 100%; background: var(--steel); }
.fuel-bar span.is-dry { background: var(--safety); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* --- controls ---------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 20px 11px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: 600 16px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: #0d1620; }
.btn-go { background: var(--safety); }
.btn-go:hover { background: #c0451a; }
.btn[disabled] { background: var(--hairline); color: var(--steel); cursor: not-allowed; }

.field { margin: 0 0 16px; }
.field label {
  display: block;
  margin: 0 0 5px;
  font: 600 13px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--steel);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.3 "IBM Plex Sans", sans-serif;
}
.field .hint { margin: 5px 0 0; font-size: 13px; color: var(--steel); }

.form-narrow { max-width: 420px; }

/* --- tables ----------------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.table th {
  font: 600 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.table td.num, .table th.num { text-align: right; font-family: "IBM Plex Mono", monospace; }
.table-scroll { overflow-x: auto; }

.tag {
  display: inline-block;
  padding: 2px 7px 1px;
  border: 1px solid var(--hairline);
  font: 600 11px/1.4 "Barlow Condensed", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tag-pending { border-color: var(--hazard); color: #8a6800; }
.tag-paid    { border-color: #2f7d4f; color: #1f5f3a; }
.tag-rejected{ border-color: var(--safety); color: var(--safety); }

/* --- steps on the landing page ---------------------------------------- */

.steps { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.step { padding: 18px 20px; background: var(--panel); }
.step-n {
  font: 700 13px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .2em;
  color: var(--safety);
}
.step h3 { margin: 8px 0 6px; }
.step p { font-size: 15px; }

/* --- footer ----------------------------------------------------------- */

.footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--hairline);
}
.footer-plain { max-width: 60ch; font-size: 14px; color: var(--steel); }
.footer-meta {
  font: 600 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

@media (max-width: 560px) {
  .rig { grid-template-columns: 1fr; }
  .hopper { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .hopper-fill { transition: none; }
}
