/* Tampa Bay Work From Home: shared styles
   Type: Newsreader (headlines, 400/700) + system sans (body, forms).
   Color: newsprint cream, ink, one green reserved for actions. */

:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --ink: #1c1915;
  --muted: #5a5248;
  --line: #e3dacb;
  --rule: #1c1915;
  --field-border: #7a7166;
  --action: #0f5c3f;
  --action-hover: #0b4a32;
  --action-ink: #ffffff;
  --link: #0f5c3f;
  --focus: #c26a00;
  --tag-bg: #f3d9a4;
  --tag-ink: #3a2a06;
  --error-bg: #fdecec;
  --error-ink: #8f1a1a;
  --error-line: #c94a4a;
  --radius: 6px;
  --gutter: 16px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e;
    --surface: #1f1b16;
    --ink: #f3ede3;
    --muted: #c2b8a9;
    --line: #3b352d;
    --rule: #8a8072;
    --field-border: #8a8072;
    --action: #5cc79a;
    --action-hover: #79d4ad;
    --action-ink: #0b1a12;
    --link: #7dd3ae;
    --focus: #f0a640;
    --tag-bg: #4a3a16;
    --tag-ink: #f6dfa8;
    --error-bg: #3a1414;
    --error-ink: #ffb4ab;
    --error-line: #e06a5e;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink);
    --line: var(--field-border);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 7.5vw, 2.75rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 45rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
}
.skip:focus {
  top: 8px;
}

/* Top bar */
.topbar {
  border-bottom: 3px double var(--rule);
  background: var(--bg);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover {
  text-decoration: underline;
}

/* Page sections */
main {
  padding-bottom: 48px;
}
.hero {
  padding-top: 32px;
  padding-bottom: 8px;
}
.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.lede {
  font-size: 1.1875rem;
  color: var(--ink);
  max-width: 38rem;
}
.section {
  padding-top: 40px;
}
.section > h2 {
  border-top: 2px solid var(--rule);
  padding-top: 12px;
}
.section-intro {
  color: var(--muted);
}
.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Proof bullets */
.proof {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 10px;
}
.proof li {
  position: relative;
  padding-left: 32px;
}
.proof li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.3em;
  width: 8px;
  height: 14px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Cards */
.cards {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin-bottom: 6px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .card-action {
  margin-top: 16px;
}
.app-card {
  display: flex;
  flex-direction: column;
}
.app-card p {
  flex: 1;
}
.skip-card {
  border-left: 4px solid var(--rule);
}
.skip-card .tag {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--tag-bg);
  color: var(--tag-ink);
  padding: 4px 8px;
  border-radius: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font: 700 1.0625rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--action);
  background: var(--action);
  color: var(--action-ink);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.btn:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  min-height: 56px;
  font-size: 1.125rem;
}
.btn-secondary {
  background: transparent;
  color: var(--link);
  min-height: 44px;
  padding: 10px 16px;
}
.btn-secondary:hover {
  background: var(--action);
  color: var(--action-ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Form */
.form-card {
  background: var(--surface);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.form-card h2 {
  font-size: 1.375rem;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 400 1.0625rem/1.3 var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
}
.field input:focus-visible {
  border-color: var(--focus);
  outline-offset: 1px;
}
.consent {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.45;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--error-bg);
  color: var(--error-ink);
  border: 2px solid var(--error-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert[hidden] {
  display: none;
}
.alert::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--error-ink);
  color: var(--error-bg);
  font-weight: 800;
  line-height: 1;
}

/* Thank-you offer */
.offer {
  border: 2px solid var(--rule);
}
.offer .tag {
  margin-bottom: 12px;
}
.offer .btn {
  margin-top: 8px;
}
.offer-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Jobs table: stacked cards on phones, table on wide screens */
.wrap-wide {
  max-width: 64rem;
}
.wrap-wide > h2,
.wrap-wide > p {
  max-width: calc(45rem - 2 * var(--gutter));
  margin-inline: auto;
}
.jobs {
  width: 100%;
  border-collapse: collapse;
}
.jobs,
.jobs tbody,
.jobs tr,
.jobs td {
  display: block;
}
.jobs thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.jobs tr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.jobs td {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.jobs td::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding-top: 0.1em;
}
.jobs td:first-child {
  display: block;
  border-top: 0;
  padding: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}
.jobs td:first-child::before {
  content: none;
}

@media (min-width: 820px) {
  .jobs {
    display: table;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .jobs thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .jobs tbody {
    display: table-row-group;
  }
  .jobs tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: none;
  }
  .jobs th,
  .jobs td {
    display: table-cell;
    text-align: left;
    vertical-align: top;
    padding: 12px;
    border-top: 1px solid var(--line);
  }
  .jobs th {
    border-top: 0;
    border-bottom: 2px solid var(--rule);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
  }
  .jobs td::before {
    content: none;
  }
  .jobs td:first-child {
    display: table-cell;
    padding: 12px;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .jobs tbody tr:nth-child(even) {
    background: var(--bg);
  }
}

.cta-box {
  background: var(--surface);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.cta-box h2 {
  border: 0;
  padding: 0;
}

/* Footer */
.site-footer {
  border-top: 3px double var(--rule);
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.site-footer p {
  margin-bottom: 10px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:active {
    transform: none;
  }
}
