/* The Standardised Staples company website. The same company as the intranet (logo, name, the
   Staple Rust accent, the same photos), with a cleaner, more modern look: a sans-serif typeface,
   white space, larger photos with rounded corners. */

:root {
  --ink: #1f2933;
  --muted: #4f5b67;
  --line: #d9dde2;
  --soft: #f5f4ef;
  --navy: #26323d;
  --accent: #9c3a12;
  --accent-dark: #7a2d0e;
  --focus: #1a5fb4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.4rem;
  margin-top: 0.4em;
}

h2 {
  font-size: 1.6rem;
  margin-top: 1.6em;
}

h3 {
  font-size: 1.2rem;
}

p,
ul {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #ffffff;
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* The line that says this is a game, with the way in. */
.game-banner {
  margin: 0;
  padding: 8px 20px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.85rem;
  text-align: center;
}

.game-banner a {
  color: #ffffff;
  font-weight: 600;
}

/* Header and menu */
.top {
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-mark {
  width: 40px;
  height: 34px;
  color: var(--accent);
}

.menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 6px 0 14px;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a[aria-current='page'] {
  border-bottom-color: var(--accent);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.button-quiet {
  background: #ffffff;
  color: var(--accent);
}

.button-small {
  padding: 7px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Pages */
main.wrap {
  padding-bottom: 56px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.actions .button {
  margin: 0 8px 8px 0;
}

.hero h1 {
  font-size: 2.8rem;
  max-width: 14em;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 16px;
}

.welcome,
.frontier {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 32px;
  background: var(--soft);
  border-radius: 16px;
}

.welcome h2,
.frontier h2 {
  margin-top: 0;
}

.signature {
  font-weight: 700;
}

.person-photo {
  flex: none;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.features {
  display: grid;
  gap: 28px;
}

.feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.feature-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

.people {
  display: grid;
  gap: 36px;
  margin-top: 28px;
}

.person {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.person h3 {
  margin-bottom: 0;
}

.role {
  color: var(--muted);
  margin-bottom: 0.6em;
}

blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-style: italic;
}

.news {
  max-width: 46em;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}

.vacancy {
  margin: 24px 0 8px;
  padding: 20px 24px;
  border: 2px solid var(--accent);
  border-radius: 16px;
}

.vacancy p:last-child {
  margin-bottom: 0;
}

/* Footer */
.foot {
  background: var(--navy);
  color: #ffffff;
  padding: 32px 0;
  font-size: 0.9rem;
}

.foot a {
  color: #ffffff;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0 0 18px;
  padding: 0;
}

.guild {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guild img {
  border-radius: 50%;
  background: #ffffff;
}

.disclaimer {
  color: #e3e7ea;
  margin-bottom: 0;
}

/* Phones */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  h1,
  .hero h1 {
    font-size: 2rem;
  }
  .welcome,
  .frontier,
  .person {
    flex-direction: column;
    gap: 16px;
  }
  .welcome,
  .frontier {
    padding: 20px;
  }
  .person-photo {
    width: 180px;
    height: 180px;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .menu ul {
    gap: 2px 16px;
  }
  .brand {
    font-size: 1.1rem;
    gap: 8px;
  }
  .logo-mark {
    width: 32px;
    height: 27px;
  }
}

.feature-text {
  grid-template-columns: minmax(0, 1fr);
}
