/* Shared styles for the secondary pages (careers, job descriptions, privacy, 404).
   Tokens and type mirror the inline styles in index.html — keep the two in sync. */

/* ─── Self-hosted fonts ──────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --paper:       #FCFAF3;
  --paper-deep:  #F4F1E6;
  --forest:      #2C4A35;
  --forest-deep: #17291E;
  --night:       #0F1D15;
  --soil:        #1A1A18;
  --granite:     #575A54;
  --fog:         #E2E8DF;
  --gold:        #C9962A;
  --gold-bright: #D9A53A;
  --gold-ink:    #8A6110;
  --on-dark:     rgba(244,241,230,0.92);
  --on-dark-dim: rgba(244,241,230,0.68);

  --max-w:        1180px;
  --display-font: 'Cormorant Garamond', Georgia, serif;
  --body-font:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

body {
  background: var(--paper);
  color: var(--soil);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.eyebrow {
  display: block;
  font-family: var(--body-font);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-bright); }

/* ─── PAGE HEADER (dark band with the road motif) ────────── */
.page-hero {
  position: relative;
  color: var(--on-dark);
  background:
    linear-gradient(90deg, rgba(15,29,21,0.94) 0%, rgba(15,29,21,0.7) 45%, rgba(15,29,21,0.15) 80%),
    url('road-motif.svg') center 42% / cover no-repeat,
    linear-gradient(180deg, var(--night), var(--forest-deep));
  padding: 0 2rem 4.5rem;
}

.sub-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.sub-nav .nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--body-font);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--gold-bright); }

.nav-links .nav-cta {
  color: var(--night);
  background: var(--gold);
  padding: 0.6rem 1.1rem;
  border-radius: 2px;
}

.nav-links .nav-cta:hover { color: var(--night); background: var(--gold-bright); }

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #FCFAF3;
  max-width: 820px;
}

.page-hero h1 em { font-style: italic; color: var(--gold-bright); }

.page-hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--on-dark-dim);
  max-width: 620px;
}

.back-link {
  display: block;
  width: fit-content;
  font-family: var(--body-font);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark-dim);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold-bright); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.meta-row span {
  font-family: var(--body-font);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark);
  border: 1px solid rgba(244,241,230,0.22);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
}

/* ─── CONTENT ───────────────────────────────────────────── */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

.section-label {
  font-family: var(--body-font);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
  margin-bottom: 1.4rem;
}

/* Long-form text (job descriptions, policies) */
.prose h2 {
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 3.2rem 0 1rem;
}

.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--body-font);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
  margin: 2rem 0 0.9rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: #33352F;
}

.prose p { margin-bottom: 1.2rem; }

.prose ul {
  list-style: none;
  margin: 0 0 1.4rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 7px;
  height: 1.5px;
  background: var(--gold);
}

.prose strong { font-weight: 600; color: var(--soil); }

.prose a {
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid rgba(44,74,53,0.3);
  transition: border-color 0.2s;
}

.prose a:hover { border-color: var(--forest); }

.rule {
  height: 1px;
  background: var(--fog);
  margin: 3.5rem 0;
}

.fine-print {
  font-family: var(--body-font);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--granite);
}

/* Card with a gold top rule (apply box, empty states) */
.card {
  border-top: 1px solid #D9DFD3;
  border-bottom: 1px solid #D9DFD3;
  padding: 2rem 0;
}

.card > :last-child { margin-bottom: 0; }

/* ─── CAREERS ───────────────────────────────────────────── */
.role-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #D9DFD3;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid #D9DFD3;
  padding: 1.8rem 0;
  position: relative;
}

.role-title {
  font-family: var(--display-font);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.role-meta {
  font-family: var(--body-font);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--granite);
}

.role-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.role-arrow svg { width: 16px; height: 16px; }

.role-card:hover .role-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

.other-roles {
  font-size: 1rem;
  color: var(--granite);
}

.other-roles a {
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid rgba(44,74,53,0.3);
}

.other-roles a:hover { border-color: var(--forest); }

/* ─── JOB DESCRIPTION ───────────────────────────────────── */
.terms-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  border-top: 1px solid var(--fog);
  margin-bottom: 1rem;
}

.terms-list dt,
.terms-list dd {
  padding: 1rem 0;
  border-bottom: 1px solid var(--fog);
}

.terms-list dt {
  font-family: var(--body-font);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
  padding-right: 2rem;
  padding-top: 1.2rem;
}

.terms-list dd {
  font-size: 1rem;
  line-height: 1.7;
  color: #33352F;
}

.apply-cta { margin-top: 2rem; }

.eeo {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--granite);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.bottom-bar {
  background: var(--night);
  border-top: 1px solid rgba(244,241,230,0.08);
  padding: 1.6rem 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

footer {
  font-family: var(--body-font);
  font-size: 0.79rem;
  letter-spacing: 0.01em;
  color: rgba(232,226,214,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

footer a {
  color: rgba(232,226,214,0.55);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

footer a:hover { color: var(--gold-bright); }
footer svg { width: 13px; height: 13px; fill: currentColor; }

.disclaimer {
  font-family: var(--body-font);
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: rgba(232,226,214,0.5);
  max-width: 640px;
  text-align: center;
  line-height: 1.6;
}

/* ─── 404 ───────────────────────────────────────────────── */
.page-404 {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(15,29,21,0.55) 0%, rgba(15,29,21,0.75) 100%),
    url('road-motif.svg') center / cover no-repeat,
    var(--night);
  color: var(--on-dark);
}

.page-404 .sub-nav { width: 100%; padding: 0 2rem; margin-bottom: 0; }

.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 5rem;
}

.notfound h1 {
  font-family: var(--display-font);
  font-size: clamp(3.4rem, 10vw, 7rem);
  font-weight: 500;
  line-height: 1;
  color: #FCFAF3;
  margin-bottom: 1.2rem;
}

.notfound p {
  font-size: 1.15rem;
  color: var(--on-dark-dim);
  max-width: 460px;
  margin-bottom: 2.4rem;
}

.page-404 .bottom-bar { background: transparent; border-top: 1px solid rgba(244,241,230,0.08); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-hero { padding: 0 1.5rem 3.5rem; }
  .sub-nav { margin-bottom: 2.5rem; }
  .page-404 .sub-nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page { padding: 3.5rem 1.5rem 5rem; }
  .card { padding: 1.8rem 1.5rem; }
  .role-card { padding: 1.6rem 1.4rem; }
  .role-title { font-size: 1.45rem; }
  .terms-list { grid-template-columns: 1fr; }
  .terms-list dt { padding-bottom: 0; border-bottom: none; }
  .terms-list dd { padding-top: 0.3rem; }
}
