:root {
  --ink: #000000;
  --muted: #000000;
  --line: #e2e2e2;
  --bg: #ffffff;
  --accent: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

header.site img.logo {
  max-height: 30px;
}

nav.main a {
  color: var(--ink);
  margin-left: 26px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

nav.main a:first-child { margin-left: 0; }
nav.main a.active { color: var(--accent); font-weight: 700; }

nav.main { display: flex; flex-wrap: wrap; }

main { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }

.hero {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero.is-medium { padding: 40px 20px; }

@media screen and (min-width: 980px) {
  .hero.is-medium { padding: 120px 20px; }
}

.hero.is-fixed { background-attachment: fixed; }

.hero img.icon {
  display: inline-block;
  margin-bottom: 0;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.4285714;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #000;
  margin: 0 0 20px;
}

.hero.is-home h1 {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: #000;
}

.hero.is-white h1,
.hero.is-white .subtitle {
  color: #fff;
}

.hero .subtitle {
  font-size: 18px;
  line-height: 1.125;
  font-weight: 500;
  color: #000;
  margin-top: 20px;
}

.hero .subtitle a { color: #000; }

.hero.is-white .subtitle a { color: #fff; }

.hero-end {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-end img.icon { display: inline-block; }

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero.is-home h1 { font-size: 28px; }
  .hero img.icon { width: 60px; height: auto; }
}

h2 { font-size: 20px; margin-top: 40px; }
h3 { font-size: 17px; margin-top: 32px; }
h4 { font-size: 15px; margin-top: 24px; }

p { color: #000; }

.portrait {
  display: block;
  max-width: 220px;
  margin: 24px auto;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.services a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  text-align: center;
  font-size: 15px;
}

.services a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.subnav {
  text-align: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.subnav a {
  display: inline-block;
  padding: 20px 10px;
  margin: 4px;
  min-width: 130px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  border: 3px solid whitesmoke;
  color: var(--ink);
}

.subnav a:hover { border-color: #aaa; text-decoration: none; }
.subnav a.active { color: var(--accent); border-color: var(--accent); }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  header.site .inner { flex-direction: column; align-items: flex-start; }
  nav.main a { margin-left: 0; margin-right: 16px; }
}
