:root {
  color-scheme: light;
  --paper: #f2f0e7;
  --surface: #fbfaf5;
  --ink: #29362e;
  --muted: #798176;
  --rule: #d2d4c8;
  --moss: #41624a;
  --screen: #17221c;
  --screen-text: #d2e5c5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.65 "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: #243c2b; }
button, input, textarea { font: inherit; }
.site { width: min(760px, calc(100% - 40px)); margin: 3.5rem auto; }
.masthead {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.hal-logo { display: block; width: 54px; height: 54px; object-fit: contain; background: transparent; flex: none; }
.auth-logo { width: 124px; height: 124px; margin: -.7rem auto 1.5rem; }
nav { display: flex; align-items: center; gap: 1.15rem; font-size: 12px; }
nav a, .link-button { color: var(--muted); text-decoration: none; }
nav a:hover, .link-button:hover { color: var(--ink); text-decoration: underline; }
.inline { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; }
h1 { margin: 2.4rem 0 1.6rem; font-size: 1.55rem; font-weight: 500; letter-spacing: -.06em; line-height: 1.25; }
h2 { margin: 2.5rem 0 .6rem; color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
form { margin: 0; }
label { display: block; margin: 1rem 0 .4rem; color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
input, textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
}
textarea { min-height: 168px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: 2px solid #89a17e; outline-offset: 1px; }
textarea::placeholder { color: #a0a397; }
button:not(.link-button) {
  padding: .55rem 1.1rem;
  border: 1px solid var(--moss);
  border-radius: 2px;
  background: var(--moss);
  color: var(--surface);
  cursor: pointer;
}
button:not(.link-button):hover { background: #304b38; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; }
output, .empty { color: var(--muted); font-size: .8rem; }
.recent { margin-top: 2.6rem; border-top: 1px solid var(--rule); }
.recent ul { margin: 0; padding: 0; list-style: none; }
.recent li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.recent li small { display: block; color: var(--muted); font-size: .72rem; }
.empty { font-style: italic; }
.prompt { margin: 0 0 1rem; padding-left: .9rem; border-left: 2px solid #a8b29f; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin: 0 0 1rem; font-size: .72rem; letter-spacing: .04em; }
.activity .state { color: var(--moss); font-weight: 700; letter-spacing: .12em; }
.activity .elapsed { color: var(--ink); }
.activity .dead-after { color: var(--muted); }
.activity.dead .state { color: #9a5146; }
.logs {
  min-height: 16rem;
  max-height: 60vh;
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow: auto;
  border: 1px solid #304338;
  border-radius: 2px;
  background: var(--screen);
  box-shadow: inset 0 1px 5px #0d1511;
  color: var(--screen-text);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.centered { max-width: 400px; margin-top: 5rem; }
.about-copy { max-width: 620px; font-size: 1rem; }
.centered .masthead { justify-content: center; border-bottom: 0; }
.centered h1 { margin: 1.2rem 0 2rem; text-align: center; }
.centered form { padding: 0 .5rem; }
.auth-switch { margin-top: 1.5rem; text-align: center; font-size: .82rem; }
.error { color: #9a473d; font-size: .85rem; }
@media (max-width: 520px) {
  .site { margin-top: 1.5rem; }
  nav { gap: .7rem; }
  h1 { margin-top: 1.8rem; }
}
