/* +People, technology recruitment, Sydney
   Palette taken from the logo: brush green #7ED957, charcoal #454545.
   Green is a fill colour, never a text colour. It fails contrast at any size,
   so links use a darkened version of the same hue.
   Type: IBM Plex Mono for headings, labels and data; Newsreader for body copy.
   Mono sets wider than the serif, so the heading scale is pulled back to suit.
   Signature: the logo's hand-drawn plus, filled when a role is open,
   hollow when it has closed. */

:root {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #454545;
  --muted: #6A6A6A;
  --rule: #E0DED6;
  --green: #7ED957;
  --green-text: #3D7522;
  --green-soft: #EDF9E6;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 68rem;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: var(--step-0);
  font-optical-sizing: auto;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type roles ---------- */

h1, h2, h3, h4 {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 1.16rem + 0.65vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); }

.mono, .meta, .eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}
/* The wordmark's plus, echoed as a typographic mark on every section label. */
.eyebrow::before {
  content: "+";
  color: var(--green-text);
  font-weight: 500;
  margin-right: 0.6em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--green-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-text);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- logo ---------- */

.logo { display: inline-block; line-height: 0; }
.logo img { display: block; height: 36px; width: auto; }
@media (min-width: 40rem) { .logo img { height: 44px; } }

.logo-foot img { display: block; height: 64px; width: auto; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 1.75rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.site-nav a { color: var(--muted); text-decoration: none; padding-block: 0.25rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--green);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }

.hero-lede {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.16rem + 0.65vw, 1.7rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
  max-width: 34ch;
  margin: 0 0 1.5rem;
}

.hero-sub { color: var(--muted); max-width: var(--measure); margin-bottom: 0; }

/* ---------- role list ---------- */

.roles { border-top: 2px solid var(--green); margin-block: 0 2rem; }

.role {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 0 1.1rem;
  align-items: start;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.role:hover { color: inherit; }
.role:hover .role-title { color: var(--green-text); }

/* Filled mark for an open role, hollow for one that has closed. */
.role-mark {
  width: 24px;
  height: 24px;
  margin-top: 0.2rem;
  background: url("/assets/brand/mark-open.png") center / contain no-repeat;
}
.role-mark[data-status="Closed"] { background-image: url("/assets/brand/mark-closed.png"); }

@media (prefers-reduced-motion: no-preference) {
  .role-mark { animation: mark-in 420ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  .role:nth-child(2) .role-mark { animation-delay: 60ms; }
  .role:nth-child(3) .role-mark { animation-delay: 120ms; }
  .role:nth-child(4) .role-mark { animation-delay: 180ms; }
  .role:nth-child(5) .role-mark { animation-delay: 240ms; }
  .role:nth-child(n + 6) .role-mark { animation-delay: 300ms; }
  @keyframes mark-in {
    from { transform: scale(0.4) rotate(-12deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

.role-title {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0 0 0.4rem;
  transition: color 160ms ease;
}

.role-meta {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.role-meta span + span::before { content: " / "; opacity: 0.5; }

.role-ref {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.3rem;
}

@media (max-width: 34rem) {
  .role { grid-template-columns: 26px 1fr; gap: 0 0.85rem; }
  .role-ref { grid-column: 2; padding-top: 0.3rem; }
}

.roles-empty {
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--rule);
  padding-block: 2.25rem;
  color: var(--ink);
}
.roles-empty p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }

.section-head { margin-bottom: 1.5rem; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 0.5rem clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 52rem) { .two-col { grid-template-columns: 14rem 1fr; } }
.two-col + .two-col { margin-top: 1.75rem; }
.two-col-label { color: var(--muted); margin: 0; }

.prose h2 { margin-top: 2.25rem; margin-bottom: 0.65rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.4rem; font-weight: 600; }
.prose ul { max-width: var(--measure); padding-left: 0; margin: 0 0 1.1em; list-style: none; }
.prose li { margin-bottom: 0.45em; padding-left: 1.4rem; position: relative; }
.prose li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
}
.prose > :first-child { margin-top: 0; }

/* ---------- job detail ---------- */

.job-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.75rem; }

.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem 2rem;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.4rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.fact-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}
.fact-value { font-size: var(--step-0); line-height: 1.35; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: 0.3rem 0.7rem 0.3rem 0.45rem;
  margin-bottom: 1rem;
}
.status-mark {
  width: 18px;
  height: 18px;
  background: url("/assets/brand/mark-open.png") center / contain no-repeat;
}
.status-tag[data-status="Closed"] { background: var(--surface); border-color: var(--rule); color: var(--muted); }
.status-tag[data-status="Closed"] .status-mark { background-image: url("/assets/brand/mark-closed.png"); }

/* ---------- apply form ---------- */

.apply {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-block: clamp(2.5rem, 6vw, 4rem);
}
.apply h2 { margin-bottom: 0.5rem; }
.apply > p { color: var(--muted); }

.field { display: block; margin-bottom: 1.1rem; max-width: 32rem; }
.field-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
}
.field input:focus, .field textarea:focus { border-color: var(--green-text); }
.field textarea { min-height: 8rem; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.form-note { margin-top: 1rem; font-size: var(--step--1); font-family: "IBM Plex Mono", monospace; }
.form-note[data-state="error"] { color: #A0261B; }
.form-note[data-state="ok"] { color: var(--green-text); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: 2.5rem 3.5rem;
  background: var(--surface);
}
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 44rem) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot-grid p { margin: 0 0 0.3rem; max-width: none; }
.foot-legal { color: var(--muted); }
.foot-links { display: flex; gap: 1.25rem; font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.back {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.back:hover { color: var(--green-text); }

/* ---------- file input ---------- */

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1);
  color: var(--muted);
}

.field input[type="file"] {
  padding: 0.55rem 0.65rem;
  font-size: var(--step--1);
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: 0.4rem 0.9rem;
  margin-right: 0.75rem;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover {
  background: var(--green);
}

/* ---------- statement heading ---------- */
/* A heading that reads as a sentence rather than a label, so it takes the
   body serif and the hero's scale instead of the display sans. */

h2.statement {
  line-height: 1.42;
  max-width: 34ch;
}
