/* mtnlab.art: app styles. colors and fonts come from /brand/brand.css (mtnlab brand, project "art": red rock sandstone on paper). */
:root {
  --ground: var(--paper);
  --ground-2: var(--white);
  --line: var(--sand);
  --text: var(--ink);
  --muted: var(--graphite);
  --faint: var(--graphite);   /* stone is too light for small text on paper */
  --link: var(--deep);
  --accent-ink: var(--paper);
  --display: var(--font-display);
  --body: var(--font-body);
  --mono: var(--font-mono);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--text); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
section { padding: 40px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.kicker {
  font: 500 14.5px var(--mono); letter-spacing: .06em;
  text-transform: lowercase; color: var(--link); margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; text-transform: lowercase; font-optical-sizing: auto; }
h1, h2 { line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 10vw, 60px); }
h2 { font-size: clamp(26px, 6vw, 34px); }
h3 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; text-decoration: none; color: var(--text); text-transform: lowercase; }

/* the name, as tangent.day does it: the word in ink, the domain ending in the project color */
.brand b, .brand-name b { font-weight: inherit; color: var(--deep); }

/* buttons */
.btn {
  display: inline-block; padding: 13px 20px; min-height: 48px;
  border-radius: 8px; font: 700 16px var(--body); text-decoration: none;
  border: 2px solid var(--deep); cursor: pointer;
}
.btn-solid { background: var(--deep); color: var(--accent-ink); }
.btn-solid:hover { background: var(--text); border-color: var(--text); color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--deep); }
.btn-line:hover { color: var(--text); border-color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* orientation map */
.map { position: relative; border-radius: 10px; overflow: hidden; background: var(--sand); }
.map img { width: 100%; height: auto; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 700 15px var(--body); cursor: pointer; padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.pin[aria-pressed="true"] { background: var(--deep); color: var(--paper); border-color: var(--paper); }
.pin:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.tag {
  position: absolute; transform: translate(-50%, calc(-100% - 24px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--deep);
  font: 700 13px var(--body); padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  pointer-events: none;
}
.map.labels-off .tag { display: none; }
.north {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(31,36,33,.8); color: var(--paper); font: 700 13px var(--body);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.map-tools { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 18px; gap: 12px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); cursor: pointer; min-height: 44px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--deep); }

.key { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.key button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  background: transparent; color: var(--text); border: 0; border-radius: 8px; padding: 10px 8px;
  font: inherit; cursor: pointer;
}
.key button:hover, .key button[aria-pressed="true"] { background: var(--tint); }
.key .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--ground);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.key button[aria-pressed="true"] .num { background: var(--deep); }
.key .desc { display: block; color: var(--muted); font-size: 15px; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.steps li::before {
  content: counter(s); font: 500 30px/1 var(--display); color: var(--accent);
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--ground-2); margin-top: 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.note { background: var(--tint); border-radius: 10px; padding: 16px 18px; }

/* forms */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
input, select, textarea {
  font: 16px var(--body); color: var(--text); background: var(--ground-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 48px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--deep); border-color: var(--deep); }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hint { font-weight: 400; color: var(--faint); font-size: 14px; }
pre.out {
  white-space: pre-wrap; background: var(--ground-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; font: 14px/1.5 var(--mono); color: var(--muted);
}

/* cards on the home page */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--ground-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.card:hover { outline: 2px solid var(--deep); color: var(--text); }
.card .body { padding: 14px 16px 18px; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; width: 100%; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); }
