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

:root {
  --ink: #1a1a1a;
  --muted: #555;
  --line: #ddd;
  --bg: #fafafa;
  --card: #fff;
  --accent: #0b5fff;
  --accent-hover: #0949c6;
  --ok: #0a7a3e;
  --err: #b00020;
  --radius: 8px;
  --max: 720px;
  --listings-max: 960px;
  --job-max: 800px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

main {
  padding: 1.5rem 1rem 3rem;
}

.site-header {
  max-width: var(--job-max);
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: underline;
}

.site-tag {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero,
.signup,
.listings,
.job-page {
  max-width: var(--max);
  margin: 0 auto 2rem;
}

.listings {
  max-width: var(--listings-max);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .who {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero .promise {
  margin: 0;
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.signup h2,
.listings h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.signup-lead {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.field {
  margin-bottom: 1rem;
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

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

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.pay-ask {
  margin: 1.25rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pay-ask p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.pay-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.pay-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}

button[type="submit"] {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.status.ok {
  background: #e8f5ee;
  color: var(--ok);
}

.status.err {
  background: #fde8eb;
  color: var(--err);
}

.status[hidden] {
  display: none;
}

.listings-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f3f3f3;
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

td a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  text-decoration: underline;
}

.job-extra {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.job-page {
  max-width: var(--job-max);
}

.crumb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--accent);
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.job-page h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.job-page .employer {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.job-meta {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.meta-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-row:last-child {
  border-bottom: none;
}

.job-meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.job-meta dd {
  margin: 0;
}

.apply-btn {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.apply-btn:hover {
  background: var(--accent-hover);
}

.description h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.description p {
  margin: 0 0 0.9rem;
  white-space: pre-wrap;
}

.description .unavailable {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .hero h1,
  .job-page h1 {
    font-size: 1.5rem;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .pay-options {
    flex-direction: column;
  }
}
