/* SD Staffing single page. Colors, type and spacing all come from brand/tokens.css. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

img, svg { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

/* Type */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  margin: 0;
}
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-5); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

.rule {
  display: block;
  width: 48px;
  border-top: var(--rule);
  margin: 0 0 var(--space-5);
}

/* Links and focus */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease);
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Intro */

.intro {
  padding: var(--section-pad) 0;
  text-align: center;
}
.crest { margin: 0 auto var(--space-7); }
.crest img {
  width: clamp(220px, 60vw, 340px);
  margin: 0 auto;
}
.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto;
}

/* Sections */

.section { padding: var(--section-pad) 0; }
.section.alt { background: var(--bg-alt); }
.section.alt .eyebrow { color: var(--color-brass-deep); }

.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
}
.section-head .rule { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 0; }

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-2);
}

/* Roles grid */

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}
.roles li {
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.roles p { color: var(--text-muted); margin: 0; }

/* Process steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-6);
}
.steps li {
  border-top: var(--rule);
  padding-top: var(--space-5);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.steps p { color: var(--text-muted); margin: 0; }

.aside {
  color: var(--text-muted);
  margin: var(--space-5) auto 0;
}

/* Contact, on navy */

.section.inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.inverse .eyebrow { color: var(--accent-inverse); }
.inverse .rule { border-top-color: var(--accent-inverse); }
.inverse a { text-decoration-color: var(--accent-inverse); }
.inverse :focus-visible { outline-color: var(--accent-inverse); }

.contact {
  margin: var(--space-6) 0 0;
  border-top: 1px solid var(--color-slate);
}
.contact div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-slate);
}
.contact dt {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-inverse-muted);
  padding-top: 0.3em;
}
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */

.footer {
  background: var(--bg-inverse);
  color: var(--text-inverse-muted);
  padding: 0 0 var(--space-8);
  text-align: center;
  font-size: var(--fs-small);
}
.footer .container {
  border-top: 1px solid var(--color-slate);
  padding-top: var(--space-7);
}
.footer-mark { width: 48px; margin: 0 auto var(--space-4); }

@media (max-width: 420px) {
  .contact div { grid-template-columns: 1fr; gap: var(--space-1); }
}
