:root {
  --bg:     #173829;
  --text:   #d9d4c4;
  --muted:  #8fa396;
  --gold:   #e0a458;
  --line:   #2a4c3c;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 22px 120px;
}

/* top image */
img.top {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  /* dull the photo so it blends with the muted page:
     saturate <1 = less colorful · brightness <1 = darker · opacity <1 lets the green bg tint it */
  filter: saturate(0.7) brightness(0.75);
  opacity: 0.9;
}
.caption { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

/* title */
h1 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  margin: 34px 0 0;
}

/* body text */
p { margin: 20px 0 0; }
.muted { color: var(--muted); }

/* key/value meta block — boxed as a little terminal panel */
.meta {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
}
.meta div { margin: 2px 0; }
.meta .k { color: var(--muted); display: inline-block; min-width: 88px; }

/* section heading — one grammar, repeated per section */
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 38px 0 10px;
}
.hash { color: var(--muted); }

/* organizers list */
.people div { margin: 3px 0; }

/* funding acknowledgement — small, italic, dimmed gold sign-off */
.ack {
  display: block;
  margin-top: 30px;
  max-width: 60ch;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.6;
  color: var(--gold);
  opacity: 0.6;                 /* dim so it warms without reading as a link; use var(--muted) + opacity:1 to recede */
}

/* links */
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { background: var(--gold); color: var(--bg); text-decoration: none; }

/* keeps the muted color instead of the gold link styling */
a.plain { color: var(--muted); }
a.plain:hover { background: none; color: var(--text); text-decoration: underline; }

.prompt { color: var(--muted); }

/* application form (apply.html) */
.form { margin-top: 30px; }
.field { margin-top: 22px; }
.field label { display: block; color: var(--muted); margin-bottom: 7px; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;                       /* inherit the monospace body font */
  padding: 10px 12px;
}
.field textarea { min-height: 92px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(224, 164, 88, 0.06);
}
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }   /* honeypot */

.submit {
  margin-top: 28px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.submit:hover:not(:disabled) { background: var(--gold); color: var(--bg); }
.submit:disabled { opacity: 0.55; cursor: default; }

.form-status { margin-top: 16px; min-height: 1.2em; }
.form-status.ok  { color: var(--gold); }
.form-status.err { color: #d98b6a; }

/* ---- decorative: forest around the clearing (built by trees.js) ---- */
.forest-shade {
  position: fixed;
  inset: 0;
  z-index: -1;                        /* above the trees, below the content */
  pointer-events: none;
  /* bright clearing in the middle, deep-woods shadow at the screen edges */
  background: radial-gradient(120% 100% at 50% 42%, transparent 20%, rgba(9, 28, 20, 0.55) 100%);
}
.gutter, .canopy {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;                        /* behind the shade + content, above the background */
}
.gutter { top: 0; bottom: 0; width: calc((100vw - 700px) / 2); }   /* the empty margin beside the column */
.gutter-l { left: 0; }
.gutter-r { right: 0; }
.gutter pre {
  position: absolute;                 /* back + front depth layers stack in place */
  top: 0;
  margin: 0;
  font: 12px/1.4 ui-monospace, Menlo, monospace;   /* line-height must match LINE_H in trees.js */
}
.gutter-l pre { left: 0; }            /* forest hugs the left screen edge  */
.gutter-r pre { right: 0; }           /* forest hugs the right screen edge */
/* two-tone depth: far trees dim, near trees brighter */
.depth-back  { color: #55705f;      opacity: 0.28; }
.depth-front { color: var(--muted); opacity: 0.3; }

/* canopy peeking into the top-left corner of the clearing */
.canopy { top: 0; height: 130px; left: calc((100vw - 700px) / 2 - 66px); }
.canopy pre { margin: 0; font: 12px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); opacity: 0.24; }

@media (max-width: 899px) {
  .gutter, .canopy, .forest-shade { display: none; }
}
