/* Branding follows the GLAM-E Lab site (github.com/NYUEngelberg/glam-e-lab-website):
   Cooper Hewitt type, black on light gray, pill buttons, black footer, beam artwork. */
@font-face {
  font-family: "Cooper Hewitt";
  src: url("fonts/CooperHewitt-Book.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("fonts/CooperHewitt-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* GLAM-E palette (source/_sass/_colors.scss) */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f0f0f0;
  --gray-200: #fafafa;
  --purple: #57068c;
  --blue: #264bef;
  --green: #00854d;
  --orange: #cf4827;
  --yellow: #eabf1e;
  --pink: #ed76ad;
  --sky: #20b6ea;

  --bg: var(--gray-200);
  --surface: var(--white);
  --text: var(--black);
  --muted: rgba(0, 0, 0, 0.62);
  --line: rgba(0, 0, 0, 0.18);
  --accent: var(--purple);
  --ok: var(--green);
  --warn: #8a5a00;
  --danger: #a3221b;
  --font: "Cooper Hewitt", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- public pages ---------- */
.site-bar { background: var(--gray-50); padding: 1rem 16px 0; }
.site-bar__logo { display: inline-block; }
.site-bar__logo img { display: block; height: 28px; width: auto; }

.hero {
  background: var(--gray-50) url("img/beam.png") no-repeat right center / auto 100%;
  padding: 4rem 0 4.5rem;
}
.hero--short { padding: 2.5rem 0 3rem; }
.hero__inner { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); margin: 0; }
.hero h1 a { text-decoration: none; }
.hero__tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); margin: 0.5rem 0 0; max-width: 26rem; }
@media (max-width: 760px) {
  /* keep text legible: shrink the beam into the corner on phones */
  .hero { padding: 2.5rem 0 120px; background-size: auto 110px; background-position: right bottom; }
  .hero--short { padding-bottom: 120px; }
}

.page { max-width: 44rem; margin: 0 auto; padding: 2.5rem 16px 4rem; }
.intro p { font-size: 1.2rem; margin: 0 0 1rem; }
.apply { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.apply h2 { font-size: 1.8rem; margin: 0 0 1.25rem; }

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 1.05rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.error, .form-error { color: var(--danger); margin: 0.35rem 0 0; font-size: 0.95rem; }
.form-error { padding: 0.75rem; border: 1px solid var(--danger); border-radius: var(--radius); margin-bottom: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 1.5rem 0 1.25rem; }
.privacy { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

.site-footer { background: var(--black); color: var(--white); padding: 2.5rem 0; }
.site-footer__inner { max-width: 44rem; margin: 0 auto; padding: 0 16px; display: grid; gap: 1.25rem; }
.site-footer__logo { max-width: 11rem; display: block; }
.site-footer p { margin: 0; color: var(--white); }
.site-footer a { color: var(--white); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-size: 0.95rem; padding: 0.5rem 0.9rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  text-decoration: none;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
/* the glamelab.org pill button */
.btn--pill {
  font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.02em;
  border: 1px solid var(--black); border-radius: 27px; padding: 0.6rem 1.6rem;
  background: transparent; transition: background-color 0.3s, color 0.3s;
}
.btn--pill:hover, .btn--pill:focus-visible { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.small { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
.btn.approve { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn.reject { color: var(--danger); border-color: var(--danger); }

/* ---------- review queue (internal) ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.who { color: var(--muted); font-size: 0.9rem; }
.queue { max-width: 52rem; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 1rem 0; }
.tabs a { padding: 0.5rem 0.9rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
.count { display: inline-block; min-width: 1.5em; text-align: center; font-size: 0.8rem; background: var(--gray-50); border-radius: 999px; padding: 0 0.4em; }
.hint, .empty { color: var(--muted); }
.banner { padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid; margin: 0.5rem 0; }
.banner.ok { color: var(--ok); border-color: var(--ok); }
.banner.warn { color: var(--warn); border-color: var(--warn); }
.banner.error { color: var(--danger); border-color: var(--danger); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.card h2 { margin: 0; font-size: 1.25rem; }
.card .email { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.2rem; }
.meta, .prior, .note { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }
.prior { color: var(--warn); }
.pill { font-size: 0.8rem; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid; }
.pill.needs_info { color: var(--warn); }
.pill.approved { color: var(--ok); }
.pill.rejected { color: var(--danger); }
.answers dt { font-weight: 700; margin-top: 0.9rem; font-size: 0.95rem; }
.answers dd { margin: 0.2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.actions form { margin: 0; }
