/* Rondack Hiring — site styles
   Palette and type are defined once here; change them in :root. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --birch: #f2f4ef;        /* page background */
  --paper: #ffffff;        /* form surfaces */
  --spruce: #14342b;       /* text, dark bands */
  --spruce-soft: #24493e;
  --granite: #56615b;      /* secondary text */
  --line: #cfd6cc;         /* hairlines */
  --marker-yellow: #f2b705;
  --marker-red: #c23b22;
  --marker-blue: #2b6cb0;
  --error: #a32a16;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--birch);
  color: var(--spruce);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

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

h1, h2, h3 {
  margin: 0;
  font-stretch: 116%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }

p { margin: 0; max-width: 62ch; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--marker-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--spruce);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-stretch: 116%;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand { white-space: nowrap; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
  font-size: 1rem;
}
.nav-link { text-decoration: none; font-weight: 500; white-space: nowrap; }
@media (max-width: 38rem) { .nav-link { display: none; } }
.nav-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--spruce);
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--marker-yellow); color: var(--spruce); }
.btn-primary:hover { background: #ffd24a; }
.btn-secondary { background: transparent; color: var(--spruce); }
.btn-secondary:hover { background: var(--spruce); color: #fff; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.band-dark .btn-secondary { border-color: #fff; color: #fff; }
.band-dark .btn-secondary:hover { background: #fff; color: var(--spruce); }
.band-dark .btn-primary { border-color: var(--marker-yellow); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2rem, 6vw, 5rem) 0;
}
.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.4rem, 4.3vw, 3.7rem); }
.hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.map {
  position: relative;
  aspect-ratio: 900 / 640;
  margin-inline: calc(var(--gutter) * -1);
  /* soften the top and bottom edges of the map */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.map-terrain,
.map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-label {
  font-family: var(--font);
  font-size: 34px;   /* SVG units: the map is small on phones, so labels are drawn large */
  font-weight: 650;
  fill: var(--spruce);
  paint-order: stroke;
  stroke: var(--birch);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.map-label-summit { font-size: 38px; font-weight: 800; }
@media (min-width: 40rem) {
  .map-label { font-size: 24px; }
  .map-label-summit { font-size: 28px; }
}

/* One load animation: the route draws itself from the trailhead to the summit. */
.route-reveal {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: route-draw 2.2s cubic-bezier(0.45, 0, 0.25, 1) 0.3s backwards;
}
.waypoint { animation: waypoint-in 0.4s ease-out backwards; transform-box: fill-box; transform-origin: center; }
.waypoint-1 { animation-delay: 0.3s; }
.waypoint-2 { animation-delay: 1.0s; }
.waypoint-3 { animation-delay: 1.7s; }
.waypoint-4 { animation-delay: 2.4s; }

@keyframes route-draw { from { stroke-dashoffset: 1; } }
@keyframes waypoint-in { from { opacity: 0; transform: scale(0.5); } }

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding-block: clamp(3rem, 6vw, 5.5rem);
  }
  .map {
    /* run the map out to the right edge of the window */
    margin-inline: 0 calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter));
    margin-block: -2rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .map-label { font-size: 20px; }
  .map-label-summit { font-size: 24px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-rule { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
}
.section-intro { margin-top: 1.25rem; color: var(--granite); }

/* What we do: three fields, each marked like a trail */
.fields { list-style: none; margin: 0; padding: 0; }
.field {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.25rem 1.1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.field:first-child { border-top: 0; padding-top: 0.2rem; }
.field:last-child { padding-bottom: 0; }
.trail-disc {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.3rem solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--spruce);
  margin-top: 0.1rem;
}
.trail-red { background: var(--marker-red); }
.trail-blue { background: var(--marker-blue); }
.trail-yellow { background: var(--marker-yellow); }
.field-body { grid-column: 2; }
.field-text { margin-top: 0.5rem; }
.field-roles { margin-top: 0.6rem; color: var(--granite); font-size: 0.98rem; }

/* How it works: a real sequence, so it is numbered */
.band-dark { background: var(--spruce); color: #fff; }
.band-dark .section-intro { color: #c9d6cf; }
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  counter-reset: step;
}
.step { counter-increment: step; border-top: 2px solid var(--marker-yellow); padding-top: 1.1rem; }
.step::before {
  content: counter(step);
  display: block;
  font-stretch: 116%;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--marker-yellow);
  margin-bottom: 0.9rem;
}
.step-text { margin-top: 0.6rem; color: #dbe4de; font-size: 1rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

/* Two audiences */
.audiences {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.audience { padding-block: 2.5rem; }
.audience + .audience { border-top: 1px solid var(--line); }
.audience-text { margin-top: 1rem; }
.audience-action { margin-top: 1.6rem; }
@media (min-width: 52rem) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { padding-block: 0; padding-right: 3.5rem; }
  .audience + .audience { border-top: 0; border-left: 1px solid var(--line); padding-left: 3.5rem; padding-right: 0; }
}

/* About */
.about-text { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.about-text + .about-text { margin-top: 1.2rem; }
.about-facts {
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  font-size: 1rem;
}
.about-facts dt { color: var(--granite); }
.about-facts dd { margin: 0; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--spruce);
  color: #dbe4de;
  padding-block: 3rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}
@media (min-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.footer-name { color: #fff; font-stretch: 116%; font-weight: 750; font-size: 1.15rem; }
.footer-line { margin-top: 0.35rem; }
.footer-eeo { color: #b6c6be; max-width: 46ch; }
.footer-legal { margin-top: 1.5rem; color: #9fb2a9; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .contact-aside { position: sticky; top: 2rem; }
}
.contact-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.contact-lede { margin-top: 1.25rem; font-size: 1.15rem; line-height: 1.5; }
.contact-direct { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--granite); }
.contact-email { display: inline-block; margin-top: 0.25rem; color: var(--spruce); font-weight: 650; font-size: 1.15rem; }

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.who { border: 0; margin: 0; padding: 0; }
.who-legend { padding: 0; font-weight: 650; margin-bottom: 0.6rem; }
.who-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.who-option { position: relative; }
.who-input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.who-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}
.who-label::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--spruce);
  background: var(--paper);
}
.who-input:checked + .who-label { border-color: var(--spruce); background: var(--birch); }
.who-input:checked + .who-label::before { background: var(--marker-yellow); box-shadow: inset 0 0 0 2px var(--paper); }
.who-input:focus-visible + .who-label { outline: 3px solid var(--marker-blue); outline-offset: 3px; }

.fields-group { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 36rem) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.label { display: block; font-weight: 650; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--granite); }
.hint { display: block; margin-top: 0.4rem; color: var(--granite); font-size: 0.93rem; }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #9aa69e;
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--spruce);
  font: inherit;
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--spruce); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--marker-blue); outline-offset: 1px; border-color: var(--spruce); }

.file {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 2px dashed #9aa69e;
  border-radius: 0.75rem;
  background: var(--birch);
  font: inherit;
  color: var(--spruce);
  cursor: pointer;
}
.file::file-selector-button {
  margin-right: 1rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--spruce);
  border-radius: 999px;
  background: var(--paper);
  color: var(--spruce);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.file:hover { border-color: var(--spruce); }

.check { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check-input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--spruce); }
.check-text { font-size: 0.98rem; }

.form-foot { margin-top: 1.75rem; display: grid; gap: 1rem; }
.form-note { color: var(--granite); font-size: 0.93rem; }
.form-status { font-weight: 600; }
.form-status-error {
  color: var(--error);
  border-left: 4px solid var(--error);
  padding: 0.2rem 0 0.2rem 0.9rem;
}
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

.sent { padding-block: 1rem; }
.sent-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.sent-text { margin-top: 1rem; }
.sent-action { margin-top: 1.75rem; }

[hidden] { display: none !important; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); }
.notfound-text { margin-top: 1.25rem; }
.notfound-action { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-reveal, .waypoint { animation: none; }
  .btn { transition: none; }
}
