:root {
  --paper: #f7f4ee;
  --ink: #1b1b19;
  --muted: #6d6a62;
  --rule: #d9d4c8;
  --accent: #b4482a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow > * {
  max-width: 640px;
}

/* Header */
.top {
  padding: 1.5rem 0;
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.top a {
  text-decoration: none;
  font-size: 0.95rem;
}

.top .name {
  font-weight: 600;
}

.top .back {
  color: var(--muted);
}

/* Home */
.intro {
  padding: 3.5rem 0 3rem;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 17ch;
}

.intro p {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
  color: #3c3a35;
}

.label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.jobs {
  padding-bottom: 3rem;
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.job:last-child {
  border-bottom: 1px solid var(--rule);
}

.job h2 {
  font-size: 1.65rem;
}

.job .meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.job .go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.4rem;
  transition: transform 0.15s ease;
}

.job:hover .go {
  transform: translateX(4px);
}

.job:hover h2 {
  color: var(--accent);
}

.about {
  padding: 1rem 0 3.5rem;
}

.about p {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 36rem;
}

.steps li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.foot {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--rule);
}

/* Apply page */
.role-head {
  padding: 2rem 0 1.5rem;
}

.role-head h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.role-head .meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.role-body h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

.role-body p {
  margin: 0 0 1rem;
}

.role-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.role-body li {
  margin-bottom: 0.4rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0 2rem;
}

.apply h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.apply .sub {
  color: var(--muted);
  margin: 0 0 2rem;
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdb7a8;
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="file"] {
  font: inherit;
  font-size: 0.95rem;
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.two {
  display: grid;
  gap: 0 1.25rem;
}

@media (min-width: 600px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}

.or {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.4rem 0 1rem;
}

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 3px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--accent);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--ink);
  background: #fff;
  font-size: 0.95rem;
}

.form-status--error {
  border-left-color: var(--accent);
  color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
}

.job.is-closed {
  opacity: 0.55;
  pointer-events: none;
}

.closed-note {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: #fff;
}
