/* 4s-corp.com layout on top of brand/4s.css (tokens + Exo 2). */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--brand-bg);
  color: var(--brand-text);
  font: 400 1rem/1.6 var(--brand-font);
  color-scheme: dark;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-ice); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-ice); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 700; }

/* type scale 1.25 -- the same hierarchy as auth and wiki */
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; margin: 2rem 0 .75rem; }
h1 { font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
     padding-bottom: .35rem; border-bottom: 3px solid var(--brand-crimson); margin-top: 0; }
h2 { font-size: 1.5625rem; font-weight: 600; color: var(--brand-ice); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin: .2rem 0; }
li::marker { color: var(--brand-blue); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding: .6rem clamp(16px, 4vw, 40px);
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--brand-text); font-weight: 700; letter-spacing: .03em; }
.brand:hover { color: var(--brand-text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin-left: auto; }
.site-nav a { color: var(--brand-text); font-weight: 500; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand-ice); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand-crimson); }

/* content column, ~65 characters per line */
main { max-width: 820px; margin: 0 auto; padding: 2.5rem clamp(16px, 4vw, 40px) 3rem; }
.lead { font-size: 1.125rem; color: var(--brand-muted); }


/* cards: application steps, recruitment and legal sections */
.step {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.25rem;
  display: flow-root;
}
.step > :first-child { margin-top: 0; }
.step > :last-child { margin-bottom: 0; }
.step img { display: block; margin: .75rem 0 0; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); }
/* home: logo floated next to the history text */
.step img.step-logo { display: inline; float: right; width: 120px; height: 120px; margin: 0 0 .75rem 1.25rem; border: 0; }
@media (max-width: 520px) { .step img.step-logo { width: 80px; height: 80px; } }

/* home: CEO table, years and names each in their own column */
.ceo-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ceo-table th, .ceo-table td { text-align: left; vertical-align: top; padding: .5rem .75rem; border-bottom: 1px solid var(--brand-line); }
.ceo-table th { font-size: .85rem; font-weight: 700; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .06em; }
.ceo-table th:first-child, .ceo-table td:first-child { width: 1%; white-space: nowrap; padding-left: 0; padding-right: 3rem; color: var(--brand-ice); }
.ceo-table th:first-child { color: var(--brand-muted); }
.ceo-table tbody tr:last-child td { border-bottom: 0; }
.ceo-table .note { color: var(--brand-muted); font-size: .9rem; }

/* footer */
.site-footer {
  border-top: 1px solid var(--brand-line);
  padding: 2rem clamp(16px, 4vw, 40px) 2.5rem;
  display: grid; justify-items: center; gap: .5rem;
  text-align: center; color: var(--brand-muted); font-size: .9rem;
}
.site-footer img { width: 96px; height: 96px; }
.site-footer p { margin: 0; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
