/* ALDERGRAVE — in-fiction corporate site
   Deliberately single-theme. An unmaintained corporate site does not have
   a dark mode. The flatness is the point. */

:root {
  color-scheme: light;

  --page:    #FFFFFF;
  --panel:   #F6F7F8;
  --panel-2: #ECEEF0;
  --ink:     #2B3138;
  --ink-2:   #4E565F;
  --faint:   #8A929B;
  --hair:    #DCDFE3;
  --hair-2:  #EDEFF1;
  --accent:  #4A6E8F;
  --accent-2:#3B5A76;
  --flag:    #8A5A2B;

  --f: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --m: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-bottom: 3.5rem;          /* room for the disclosure bar */
  background: var(--page);
  color: var(--ink);
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 54rem; margin: 0 auto; padding: 0 1.5rem; }

h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- masthead ---------- */
header.site { border-bottom: 1px solid var(--hair); }
header.site .shell { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.wordmark {
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.estd { font-family: var(--m); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
nav.site { margin-left: auto; display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav.site a { font-size: 0.82rem; color: var(--ink-2); text-decoration: none; }
nav.site a:hover, nav.site a.here { color: var(--accent); }

/* ---------- hero / page head ---------- */
.ph { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--hair-2); }
.ph .eyebrow { font-family: var(--m); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.ph h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; max-width: 20ch; }
.ph .tag { margin-top: 1.2rem; font-size: 1.05rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- generic sections ---------- */
main section { padding: 2.75rem 0; border-bottom: 1px solid var(--hair-2); }
main section:last-of-type { border-bottom: 0; }
main h2 { font-size: 1.3rem; margin-bottom: 1rem; }
main h3 { font-size: 1rem; margin: 1.75rem 0 0.6rem; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.cols p { margin-bottom: 0; }

/* image slots that never loaded — the site is not maintained */
.imgslot {
  background: var(--panel-2); border: 1px solid var(--hair);
  aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
  margin: 1.5rem 0; padding: 1rem; text-align: center;
}
.imgslot span { font-family: var(--m); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }

/* ---------- reference strip ---------- */
.refstrip {
  font-family: var(--m); font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--faint); border-top: 1px solid var(--hair-2);
  padding: 0.9rem 0; display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* ---------- forms ---------- */
form { max-width: 40rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; }
legend {
  font-family: var(--m); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
  padding: 0 0 0.9rem; border-bottom: 1px solid var(--hair); width: 100%; margin-bottom: 1.5rem;
}
.field { margin-bottom: 1.5rem; }
.field > label { display: block; font-size: 0.92rem; margin-bottom: 0.45rem; color: var(--ink); }
.field .qn { font-family: var(--m); font-size: 0.72rem; color: var(--faint); margin-right: 0.5rem; }
.hint { font-size: 0.8rem; color: var(--faint); margin: 0.3rem 0 0; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--page); border: 1px solid var(--hair); border-radius: 0;
  padding: 0.6rem 0.7rem; line-height: 1.55;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }

.radios { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }
.radios label { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }

button.primary {
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  background: var(--accent); color: #fff; border: 0; border-radius: 0;
  padding: 0.7rem 1.6rem; cursor: pointer;
}
button.primary:hover { background: var(--accent-2); }
button.secondary {
  font-family: inherit; font-size: 0.85rem;
  background: transparent; color: var(--ink-2); border: 1px solid var(--hair);
  padding: 0.6rem 1.2rem; cursor: pointer;
}
button.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- the consent gate — deliberately NOT in the corporate style ---------- */
.gate {
  border: 2px solid #2E6B4F; background: #F1F7F3; color: #1C2A23;
  padding: 1.4rem 1.4rem 1.2rem; margin: 2.5rem 0; max-width: 40rem;
  font-family: var(--f);
}
.gate .glabel {
  font-family: var(--m); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #2E6B4F; display: block; margin-bottom: 0.7rem;
}
.gate h4 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.gate p { font-size: 0.89rem; margin-bottom: 0.7rem; max-width: none; }
.gate .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.gate button.go { background: #2E6B4F; color: #fff; border: 0; padding: 0.6rem 1.3rem; font-family: inherit; font-size: 0.87rem; cursor: pointer; }
.gate button.go:hover { background: #24553E; }
.gate a.out { align-self: center; font-size: 0.85rem; color: #2E6B4F; }

.hidden { display: none; }

/* ---------- status portal ---------- */
.status { border: 1px solid var(--hair); margin: 2rem 0; }
.status-head {
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--hair); background: var(--panel);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.status-head .who { font-weight: 600; }
.status-head .ref { font-family: var(--m); font-size: 0.72rem; color: var(--faint); }

.bar { height: 4px; background: var(--panel-2); position: relative; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 52%; }

.stagelist { list-style: none; margin: 0; padding: 0; }
.stagelist li {
  display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem;
  padding: 0.75rem 1.2rem; border-bottom: 1px solid var(--hair-2);
  font-size: 0.9rem; align-items: baseline;
}
.stagelist li:last-child { border-bottom: 0; }
.stagelist .sn { font-family: var(--m); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; }
.stagelist .sl { color: var(--ink-2); }
.stagelist .st { font-family: var(--m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.st.done { color: var(--faint); }
.st.now  { color: var(--accent); }
.st.pend { color: var(--hair); }
.stagelist li.unnamed .sl { color: var(--faint); }

/* ---------- archive listing ---------- */
.filelist { font-family: var(--m); font-size: 0.8rem; line-height: 1.9; border: 1px solid var(--hair); background: var(--panel); padding: 1.1rem 1.2rem; overflow-x: auto; }
.filelist a { text-decoration: none; }
.filelist .dir { color: var(--flag); }
.filelist .sz { color: var(--faint); float: right; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--hair); margin-top: 3rem; padding: 2.5rem 0 2rem; }
footer.site .cols { gap: 2rem 3rem; }
footer.site h5 { font-family: var(--m); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.7rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
footer.site li { font-size: 0.84rem; color: var(--ink-2); }
footer.site .legal { margin-top: 2.5rem; font-size: 0.75rem; color: var(--faint); line-height: 1.75; }
footer.site .legal p { max-width: 74ch; margin-bottom: 0.6rem; }

/* ---------- the standing disclosure bar. never in character. ---------- */
.disclosure {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #1C1F23; color: #D6DBE0;
  border-top: 2px solid #8A5A2B;
  font-family: var(--m); font-size: 0.7rem; line-height: 1.5;
  padding: 0.6rem 1.5rem;
}
.disclosure .inner { max-width: 54rem; margin: 0 auto; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.disclosure b { color: #E8B77A; font-weight: 600; }
.disclosure a { color: #9FC4E6; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- print ----------
   The posting carries a line that is not shown on screen.
   Almost nobody prints a job description. Somebody will. */
.printonly { display: none; }

@media print {
  .disclosure { position: static; border-top: 1px solid #999; background: #fff; color: #000; margin-top: 2rem; }
  .disclosure b { color: #000; }
  nav.site, header.site .estd { display: none; }
  body { padding-bottom: 0; font-size: 11pt; }
  .printonly {
    display: block;
    margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #000;
    font-family: var(--m); font-size: 9pt; line-height: 1.7;
  }
  a { color: #000; text-decoration: none; }
}
