:root {
  --bg: #edf1f3;
  --paper: #ffffff;
  --paper-soft: #f8fbfc;
  --ink: #16222c;
  --muted: #5f6f79;
  --line: #c8d7df;
  --accent: #0f6c81;
  --accent-dark: #0b4f5f;
  --accent-soft: #dff0f4;
  --shadow: 0 18px 45px rgba(12, 37, 48, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 108, 129, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(29, 73, 98, 0.09), transparent 24%),
    linear-gradient(180deg, #f7fbfc 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

input,
button {
  font: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner,
.section-heading,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 84px;
  max-width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-dark);
}

.inline-form {
  margin: 0;
}

.nav-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.subtitle,
.job-meta,
.hero-meta,
.lede,
.back-link,
dd,
.empty-state p,
.section-note,
.detail-note {
  color: var(--muted);
}

.hero {
  padding: 56px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

h2 {
  margin-top: 0;
}

.gate-shell {
  min-height: calc(100vh - 240px);
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 380px);
  gap: 24px;
  align-items: center;
}

.gate-copy {
  max-width: 700px;
}

.gate-notes {
  display: grid;
  gap: 16px;
  max-width: 56ch;
}

.hero-panel,
.info-card,
.footer-card,
.detail-callout,
.gate-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.gate-panel {
  padding: 28px;
}

.hero-copy {
  display: grid;
  align-content: end;
}

.gate-form {
  display: grid;
  gap: 12px;
}

.gate-form label {
  font-weight: 700;
}

.gate-form input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.form-error {
  margin: 0;
  color: #9b1c1c;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-meta {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 20px;
}

.info-card,
.footer-card {
  padding: 24px;
}

.section-heading {
  padding: 14px 0 18px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.job-card,
.detail-panel,
.empty-state {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.job-card h2 {
  margin-bottom: 8px;
}

.job-card h2 a {
  text-decoration: none;
}

.salary {
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(15, 108, 129, 0.34);
}

.job-detail {
  padding: 36px 0 48px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.detail-note {
  margin-top: 18px;
}

.detail-callout {
  margin-top: 28px;
  padding: 22px;
}

dl {
  margin: 0;
}

dt {
  margin-top: 14px;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
}

.rich-copy p:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 0 0 48px;
}

.footer-grid {
  align-items: stretch;
}

.footer-grid .footer-card {
  flex: 1 1 0;
}

.footer-contact a {
  color: var(--accent-dark);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header-inner,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .gate-shell,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-meta {
    text-align: left;
  }

  .site-nav {
    width: 100%;
  }

  .brand-mark {
    width: 68px;
  }
}
