/* Em Campbell Design: static shell
   Replicates the 2021 WordPress/Sinatra/Elementor look. Restyle later. */

:root {
  --text: #30373e;
  --black: #000;
  --accent: #db2c49;
  --light: #f6f6f6;
  --dark: #222;
  --muted: #9ba1a7;
  --font: "DM Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.73;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Header */
.site-header { border-bottom: 1px solid #eee; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo img { display: block; width: 67px; height: 30px; object-fit: contain; object-position: left; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; }
.nav a {
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--black); }

/* Hero */
.hero { padding: 150px 0 120px; }
.hero .container { max-width: 960px; }
.hero h1 {
  margin: 0 0 30px;
  max-width: 460px;
  font-size: 84px;
  line-height: 84px;
  font-weight: 600;
  letter-spacing: -3px;
  color: var(--black);
}
.hero h1 .dot { color: var(--accent); }
.hero p {
  margin: 0 0 40px;
  max-width: 420px;
  font-size: 20px;
  line-height: 1.6;
  color: #777;
}

.button {
  display: inline-block;
  padding: 20px 40px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: 3px;
}
.button.small { padding: 15px 30px; font-size: 16px; }
.button:hover { filter: brightness(0.92); }

/* Positioning + logo strip */
.positioning {
  background: var(--light);
  padding: 80px 0 60px;
  text-align: center;
}
.label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.positioning h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 36px;
  font-weight: 600;
  color: var(--black);
}
.positioning p { margin: 0 auto 50px; max-width: 560px; font-size: 18px; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-row li { width: 220px; text-align: center; }
.logo-row .mark { height: 50px; }
.logo-row p { margin: 14px 0 0; text-wrap: balance; font-size: 14px; line-height: 1.4; color: #595959; }
.logo-row img { display: block; width: auto; margin-left: auto; margin-right: auto; }
.logo-row .sage { height: 46px; } /* margin-tops align the baselines, descenders ignored */
.logo-row .elevate { height: 34px; margin-top: 2.3px; transform: translateX(8px); } /* optical centring: the colour wheel is lighter than the text */
.logo-row .leverage { height: 38px; margin-top: 3px; }

/* Skillset (dark) */
.skillset {
  background: var(--dark);
  color: #fff;
  padding: 100px 25px;
}
.skillset .container { max-width: 960px; padding: 0; }
.skillset .label { color: var(--accent); }
.skillset h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}
.skillset .lead { max-width: 480px; margin: 0 0 30px; color: #ccc; font-size: 17px; }
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
  margin-top: 40px;
}
.services h3 {
  margin: 30px 0 8px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
}
.services p { margin: 0; color: #ccc; }

/* Portfolio */
.portfolio { padding: 100px 25px; }
.portfolio .container { max-width: 960px; padding: 0; }
.portfolio h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--black);
}
.portfolio p { max-width: 560px; margin: 0 0 40px; font-size: 18px; }
/* Case study cards go here as each one is finished */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

/* Footer */
.site-footer { padding: 25px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .container { padding: 0 24px; }
  .nav { gap: 18px; }
  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: 56px; line-height: 56px; letter-spacing: -2px; }
  .positioning h2 { font-size: 28px; line-height: 1.15; }
  .services { grid-template-columns: 1fr; }
}
