/* Garde hiring page. Brand book 2026 tokens. Mobile first, one column. */

:root {
  --ink: #25260b;
  --cream: #f5f5ed;
  --chartreuse: #e7ea86;
  --forest: #1f4023;
  --peach: #e3b58f;
  --rose: #c0607a;
  --orange: #cc6f3c;
  --ink-soft: rgba(37, 38, 11, 0.72);
  --ink-line: rgba(37, 38, 11, 0.28);
  --cream-soft: rgba(245, 245, 237, 0.74);
  --cream-line: rgba(245, 245, 237, 0.32);
  --display: "Bai Jamjuree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 680px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Eyebrow and rule */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .rule {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Hero */

.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 0 40px;
}

.hero .wordmark {
  width: 84px;
  height: auto;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 9vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.hl {
  background: var(--chartreuse);
  color: var(--ink);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .subhead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin: 0 0 18px;
  max-width: 560px;
}

.hero .payline {
  margin: 0 0 28px;
  color: var(--cream);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--chartreuse);
  color: var(--ink);
  border-color: var(--chartreuse);
}

.btn-primary:hover {
  background: #eff291;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream-line);
}

.btn-ghost:hover {
  border-color: var(--cream);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--chartreuse);
  outline-offset: 3px;
}

main .btn:focus-visible,
main a:focus-visible,
main summary:focus-visible {
  outline-color: var(--forest);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Cards */

main {
  padding: 8px 0 24px;
}

.card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 24px 20px 20px;
  margin: 16px 0;
}

.card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.rows {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.rows li {
  padding: 11px 0;
  border-top: 1px solid var(--ink-line);
}

.rows li:last-child {
  padding-bottom: 4px;
}

/* Proof */

.proof-intro {
  color: var(--ink-soft);
}

.figures {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.figures li {
  padding: 16px 0 14px;
  border-top: 1px solid var(--ink-line);
}

.figure {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.figure-label {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Process */

.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-line);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-top: 5px;
}

.steps .step {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.steps .detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Full JD */

details.card {
  padding: 0;
}

details.card summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.card summary::-webkit-details-marker {
  display: none;
}

details.card summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  flex: none;
}

details.card[open] summary::after {
  content: "\2013";
}

details.card[open] summary {
  border-bottom: 1px solid var(--ink-line);
}

.jd {
  padding: 8px 20px 24px;
}

.jd h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: 24px 0 8px;
}

.jd h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0 8px;
}

.jd p,
.jd li {
  font-size: 16px;
}

.jd ul,
.jd ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.jd li {
  margin: 0 0 8px;
}

.jd p {
  margin: 0 0 12px;
}

/* Form */

.form-intro {
  color: var(--ink-soft);
}

.field {
  margin: 20px 0 0;
}

.field label,
.field legend,
.field .label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
  padding: 0;
}

.field .help {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.field .optional {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder {
  color: var(--ink-line);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2325260b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

.field.invalid input,
.field.invalid select,
.field.invalid .segmented {
  border-color: var(--rose);
}

.error {
  display: none;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.field.invalid .error {
  display: block;
}

fieldset.field {
  border: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  min-width: 0;
}

/* Segmented toggle */

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.segmented label {
  margin: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border-left: 2px solid var(--ink);
}

.segmented label:first-of-type {
  border-left: 0;
}

.segmented input:checked + label {
  background: var(--ink);
  color: var(--cream);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--forest);
  outline-offset: -4px;
}

/* Checkbox group */

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  min-height: 32px;
  margin: 0;
  cursor: pointer;
}

.checks input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
  flex: none;
}

.checks input:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

.reveal {
  margin-top: 10px;
}

.reveal[hidden] {
  display: none;
}

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

.submit-row {
  margin-top: 28px;
}

.submit-row .btn {
  width: 100%;
}

.form-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.form-error {
  display: none;
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.form-error.show {
  display: block;
}

.notice {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
}

/* Footer */

footer {
  border-top: 2px solid var(--ink);
  padding: 24px 0 40px;
}

footer .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

footer p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}

footer a {
  color: inherit;
}

footer img {
  width: 72px;
  height: auto;
  flex: none;
}

/* Thanks page */

.page-hero {
  padding-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(30px, 8vw, 44px);
}

.page-hero p {
  margin: 0;
  color: var(--cream-soft);
  font-size: 18px;
}

/* Wider screens */

@media (min-width: 600px) {
  body {
    font-size: 18px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero .wordmark {
    width: 96px;
  }

  .hero .subhead {
    font-size: 19px;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    padding: 28px 28px 24px;
    margin: 20px 0;
  }

  .jd {
    padding: 8px 28px 28px;
  }

  details.card summary {
    padding: 22px 28px;
  }

  .figures {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .figure {
    font-size: 60px;
  }

  .checks {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .submit-row .btn {
    width: auto;
    min-width: 220px;
  }
}

/* Resume upload. Lives here because the thank-you page is the one place a
   late resume can be added; the role pages carry their own copy of this. */

input[type="file"] {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

input[type="file"]::file-selector-button {
  margin: 0 12px 0 0;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--chartreuse);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

input[type="file"]:hover::file-selector-button { background: var(--cream); }

.dropzone {
  border: 2px dashed var(--ink-line);
  border-radius: 6px;
  padding: 14px 14px 12px;
  transition: border-color .12s ease, background-color .12s ease;
}

.dropzone.over {
  border-color: var(--forest);
  border-style: solid;
  background: rgba(31, 64, 35, 0.06);
}

.dropzone input[type="file"] { margin-bottom: 10px; }

.dropzone-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.dropzone.over .dropzone-hint,
.dropzone-hint.chosen { color: var(--forest); font-weight: 500; }

.field.invalid .dropzone,
.field.invalid input[type="file"] { border-color: var(--rose); }

@media (prefers-reduced-motion: reduce) {
  .dropzone { transition: none; }
}

/* The Garde logo goes back to the main site. Inline-flex so the anchor is
   exactly the logo, with no stray baseline gap under it. */
.home-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 3px;
}

.home-link:focus-visible {
  outline: 2px solid var(--chartreuse);
  outline-offset: 3px;
}
